diff --git a/docs/API_docs/index.md b/docs/API_docs/index.md index 47306dbd..6a7ab83e 100644 --- a/docs/API_docs/index.md +++ b/docs/API_docs/index.md @@ -4,11 +4,11 @@ description: MadelineProto API documentation (layer 75) --- # MadelineProto API documentation (layer 75) +[Back to main documentation](..) + + [Methods](methods/) [Constructors](constructors/) -[Types](types/) - - -[Back to main documentation](..) +[Types](types/) \ No newline at end of file diff --git a/docs/API_docs/methods/account_changePhone.md b/docs/API_docs/methods/account_changePhone.md index aeb5c4bc..65f0b0d0 100644 --- a/docs/API_docs/methods/account_changePhone.md +++ b/docs/API_docs/methods/account_changePhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); diff --git a/docs/API_docs/methods/account_checkUsername.md b/docs/API_docs/methods/account_checkUsername.md index 0124bb38..08107762 100644 --- a/docs/API_docs/methods/account_checkUsername.md +++ b/docs/API_docs/methods/account_checkUsername.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); diff --git a/docs/API_docs/methods/account_confirmPhone.md b/docs/API_docs/methods/account_confirmPhone.md index c6a1dba6..68490f35 100644 --- a/docs/API_docs/methods/account_confirmPhone.md +++ b/docs/API_docs/methods/account_confirmPhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->confirmPhone(['phone_code_hash' => 'string', 'phone_code' => 'string', ]); diff --git a/docs/API_docs/methods/account_deleteAccount.md b/docs/API_docs/methods/account_deleteAccount.md index e8b46c24..3a6f4700 100644 --- a/docs/API_docs/methods/account_deleteAccount.md +++ b/docs/API_docs/methods/account_deleteAccount.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); diff --git a/docs/API_docs/methods/account_getAccountTTL.md b/docs/API_docs/methods/account_getAccountTTL.md index 0cdd0b98..ab6a6ea1 100644 --- a/docs/API_docs/methods/account_getAccountTTL.md +++ b/docs/API_docs/methods/account_getAccountTTL.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); diff --git a/docs/API_docs/methods/account_getAuthorizations.md b/docs/API_docs/methods/account_getAuthorizations.md index f92db8fe..303203e4 100644 --- a/docs/API_docs/methods/account_getAuthorizations.md +++ b/docs/API_docs/methods/account_getAuthorizations.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_Authorizations = $MadelineProto->account->getAuthorizations(); diff --git a/docs/API_docs/methods/account_getNotifySettings.md b/docs/API_docs/methods/account_getNotifySettings.md index f00be12c..ad492f49 100644 --- a/docs/API_docs/methods/account_getNotifySettings.md +++ b/docs/API_docs/methods/account_getNotifySettings.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); diff --git a/docs/API_docs/methods/account_getPassword.md b/docs/API_docs/methods/account_getPassword.md index c189421d..2692dab1 100644 --- a/docs/API_docs/methods/account_getPassword.md +++ b/docs/API_docs/methods/account_getPassword.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_Password = $MadelineProto->account->getPassword(); diff --git a/docs/API_docs/methods/account_getPasswordSettings.md b/docs/API_docs/methods/account_getPasswordSettings.md index 96cb953e..2039d405 100644 --- a/docs/API_docs/methods/account_getPasswordSettings.md +++ b/docs/API_docs/methods/account_getPasswordSettings.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PasswordSettings = $MadelineProto->account->getPasswordSettings(['current_password_hash' => 'bytes', ]); diff --git a/docs/API_docs/methods/account_getPrivacy.md b/docs/API_docs/methods/account_getPrivacy.md index 979bfb94..5480ffbb 100644 --- a/docs/API_docs/methods/account_getPrivacy.md +++ b/docs/API_docs/methods/account_getPrivacy.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); diff --git a/docs/API_docs/methods/account_getTmpPassword.md b/docs/API_docs/methods/account_getTmpPassword.md index a90f9b2b..01b1ebfc 100644 --- a/docs/API_docs/methods/account_getTmpPassword.md +++ b/docs/API_docs/methods/account_getTmpPassword.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_TmpPassword = $MadelineProto->account->getTmpPassword(['password_hash' => 'bytes', 'period' => int, ]); diff --git a/docs/API_docs/methods/account_getWallPapers.md b/docs/API_docs/methods/account_getWallPapers.md index 89b281be..7c8bff39 100644 --- a/docs/API_docs/methods/account_getWallPapers.md +++ b/docs/API_docs/methods/account_getWallPapers.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); diff --git a/docs/API_docs/methods/account_getWebAuthorizations.md b/docs/API_docs/methods/account_getWebAuthorizations.md index 8d54b0a7..4711ca65 100644 --- a/docs/API_docs/methods/account_getWebAuthorizations.md +++ b/docs/API_docs/methods/account_getWebAuthorizations.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_WebAuthorizations = $MadelineProto->account->getWebAuthorizations(); diff --git a/docs/API_docs/methods/account_registerDevice.md b/docs/API_docs/methods/account_registerDevice.md index f1856bf8..c94ed9e0 100644 --- a/docs/API_docs/methods/account_registerDevice.md +++ b/docs/API_docs/methods/account_registerDevice.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', 'app_sandbox' => Bool, 'other_uids' => [int, int], ]); diff --git a/docs/API_docs/methods/account_reportPeer.md b/docs/API_docs/methods/account_reportPeer.md index a07c87d0..c5fe7073 100644 --- a/docs/API_docs/methods/account_reportPeer.md +++ b/docs/API_docs/methods/account_reportPeer.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->reportPeer(['peer' => InputPeer, 'reason' => ReportReason, ]); diff --git a/docs/API_docs/methods/account_resetAuthorization.md b/docs/API_docs/methods/account_resetAuthorization.md index 4155d3c8..543aee08 100644 --- a/docs/API_docs/methods/account_resetAuthorization.md +++ b/docs/API_docs/methods/account_resetAuthorization.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetAuthorization(['hash' => long, ]); diff --git a/docs/API_docs/methods/account_resetNotifySettings.md b/docs/API_docs/methods/account_resetNotifySettings.md index ccc836a9..557373b0 100644 --- a/docs/API_docs/methods/account_resetNotifySettings.md +++ b/docs/API_docs/methods/account_resetNotifySettings.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); diff --git a/docs/API_docs/methods/account_resetWebAuthorization.md b/docs/API_docs/methods/account_resetWebAuthorization.md index 4f37785a..ce635206 100644 --- a/docs/API_docs/methods/account_resetWebAuthorization.md +++ b/docs/API_docs/methods/account_resetWebAuthorization.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetWebAuthorization(['hash' => long, ]); diff --git a/docs/API_docs/methods/account_resetWebAuthorizations.md b/docs/API_docs/methods/account_resetWebAuthorizations.md index 7e82e637..f123ac14 100644 --- a/docs/API_docs/methods/account_resetWebAuthorizations.md +++ b/docs/API_docs/methods/account_resetWebAuthorizations.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetWebAuthorizations(); diff --git a/docs/API_docs/methods/account_sendChangePhoneCode.md b/docs/API_docs/methods/account_sendChangePhoneCode.md index c9f9c174..bdf7331f 100644 --- a/docs/API_docs/methods/account_sendChangePhoneCode.md +++ b/docs/API_docs/methods/account_sendChangePhoneCode.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendChangePhoneCode(['allow_flashcall' => Bool, 'phone_number' => 'string', 'current_number' => Bool, ]); diff --git a/docs/API_docs/methods/account_sendConfirmPhoneCode.md b/docs/API_docs/methods/account_sendConfirmPhoneCode.md index 3785ba75..86035d19 100644 --- a/docs/API_docs/methods/account_sendConfirmPhoneCode.md +++ b/docs/API_docs/methods/account_sendConfirmPhoneCode.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendConfirmPhoneCode(['allow_flashcall' => Bool, 'hash' => 'string', 'current_number' => Bool, ]); diff --git a/docs/API_docs/methods/account_setAccountTTL.md b/docs/API_docs/methods/account_setAccountTTL.md index 5100e62e..bacdd77a 100644 --- a/docs/API_docs/methods/account_setAccountTTL.md +++ b/docs/API_docs/methods/account_setAccountTTL.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); diff --git a/docs/API_docs/methods/account_setPrivacy.md b/docs/API_docs/methods/account_setPrivacy.md index fbcedae7..6e24ded7 100644 --- a/docs/API_docs/methods/account_setPrivacy.md +++ b/docs/API_docs/methods/account_setPrivacy.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); diff --git a/docs/API_docs/methods/account_unregisterDevice.md b/docs/API_docs/methods/account_unregisterDevice.md index 7bba019e..fd771afc 100644 --- a/docs/API_docs/methods/account_unregisterDevice.md +++ b/docs/API_docs/methods/account_unregisterDevice.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', 'other_uids' => [int, int], ]); diff --git a/docs/API_docs/methods/account_updateDeviceLocked.md b/docs/API_docs/methods/account_updateDeviceLocked.md index ef816501..cd52093a 100644 --- a/docs/API_docs/methods/account_updateDeviceLocked.md +++ b/docs/API_docs/methods/account_updateDeviceLocked.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); diff --git a/docs/API_docs/methods/account_updateNotifySettings.md b/docs/API_docs/methods/account_updateNotifySettings.md index 18cbdb75..db020309 100644 --- a/docs/API_docs/methods/account_updateNotifySettings.md +++ b/docs/API_docs/methods/account_updateNotifySettings.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); diff --git a/docs/API_docs/methods/account_updatePasswordSettings.md b/docs/API_docs/methods/account_updatePasswordSettings.md index 0754dd63..8af1e37f 100644 --- a/docs/API_docs/methods/account_updatePasswordSettings.md +++ b/docs/API_docs/methods/account_updatePasswordSettings.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updatePasswordSettings(['current_password_hash' => 'bytes', 'new_settings' => account_PasswordInputSettings, ]); diff --git a/docs/API_docs/methods/account_updateProfile.md b/docs/API_docs/methods/account_updateProfile.md index e24ef2f5..59629188 100644 --- a/docs/API_docs/methods/account_updateProfile.md +++ b/docs/API_docs/methods/account_updateProfile.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', 'about' => 'string', ]); diff --git a/docs/API_docs/methods/account_updateStatus.md b/docs/API_docs/methods/account_updateStatus.md index 4b049e65..50b99b1e 100644 --- a/docs/API_docs/methods/account_updateStatus.md +++ b/docs/API_docs/methods/account_updateStatus.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); diff --git a/docs/API_docs/methods/account_updateUsername.md b/docs/API_docs/methods/account_updateUsername.md index 08d2abe0..7276e2aa 100644 --- a/docs/API_docs/methods/account_updateUsername.md +++ b/docs/API_docs/methods/account_updateUsername.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); diff --git a/docs/API_docs/methods/api_index.md b/docs/API_docs/methods/api_index.md new file mode 100644 index 00000000..1ad3dd83 --- /dev/null +++ b/docs/API_docs/methods/api_index.md @@ -0,0 +1,543 @@ +--- +title: Methods +description: List of methods +--- +# Methods +[Back to API documentation index](..) + +[Go to the new description-version method index](index.html) + +$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); + +$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); + +$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); + +$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); + +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); + + +$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); + +$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); + +$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); + +$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); + +$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); + + +$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); + +$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); + +*** +

$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) + +$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->confirmPhone](account_confirmPhone.md)(\['phone_code_hash' => [string](../types/string.md), 'phone_code' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) + +$MadelineProto->[account->getAuthorizations](account_getAuthorizations.md)(\[\]) === [$account\_Authorizations](../types/account_Authorizations.md) + +$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) + +$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md) + +$MadelineProto->[account->getPasswordSettings](account_getPasswordSettings.md)(\['current_password_hash' => [bytes](../types/bytes.md), \]) === [$account\_PasswordSettings](../types/account_PasswordSettings.md) + +$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->getTmpPassword](account_getTmpPassword.md)(\['password_hash' => [bytes](../types/bytes.md), 'period' => [int](../types/int.md), \]) === [$account\_TmpPassword](../types/account_TmpPassword.md) + +$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) + +$MadelineProto->[account->getWebAuthorizations](account_getWebAuthorizations.md)(\[\]) === [$account\_WebAuthorizations](../types/account_WebAuthorizations.md) + +$MadelineProto->[account->registerDevice](account_registerDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), 'app_sandbox' => [Bool](../types/Bool.md), 'other_uids' => \[[int](../types/int.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->reportPeer](account_reportPeer.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reason' => [ReportReason](../types/ReportReason.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->resetWebAuthorization](account_resetWebAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->resetWebAuthorizations](account_resetWebAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[account->sendConfirmPhoneCode](account_sendConfirmPhoneCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'hash' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) + +$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), 'other_uids' => \[[int](../types/int.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$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) + +$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) + +*** +

$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) + +$MadelineProto->[auth->cancelCode](auth_cancelCode.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) + +$MadelineProto->[auth->dropTempAuthKeys](auth_dropTempAuthKeys.md)(\['except_auth_keys' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) + +$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$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) + +$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->recoverPassword](auth_recoverPassword.md)(\['code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->requestPasswordRecovery](auth_requestPasswordRecovery.md)(\[\]) === [$auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) + +$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) + +$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->sendCode](auth_sendCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'phone_number' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), 'api_id' => [int](../types/int.md), 'api_hash' => [string](../types/string.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) + +$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$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) + +*** +

$MadelineProto->[bots->answerWebhookJSONQuery](bots_answerWebhookJSONQuery.md)(\['query_id' => [long](../types/long.md), 'data' => [DataJSON](../types/DataJSON.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[bots->sendCustomRequest](bots_sendCustomRequest.md)(\['custom_method' => [string](../types/string.md), 'params' => [DataJSON](../types/DataJSON.md), \]) === [$DataJSON](../types/DataJSON.md) + +*** +

$MadelineProto->[channels->checkUsername](channels_checkUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->deleteChannel](channels_deleteChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->deleteHistory](channels_deleteHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[channels->deleteMessages](channels_deleteMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[channels->deleteUserHistory](channels_deleteUserHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[channels->editAbout](channels_editAbout.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'about' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[channels->editAdmin](channels_editAdmin.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), 'admin_rights' => [ChannelAdminRights](../types/ChannelAdminRights.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->editBanned](channels_editBanned.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), 'banned_rights' => [ChannelBannedRights](../types/ChannelBannedRights.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->editPhoto](channels_editPhoto.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->editTitle](channels_editTitle.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->exportInvite](channels_exportInvite.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) + +$MadelineProto->[channels->exportMessageLink](channels_exportMessageLink.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => [int](../types/int.md), 'grouped' => [Bool](../types/Bool.md), \]) === [$ExportedMessageLink](../types/ExportedMessageLink.md) + +$MadelineProto->[channels->getAdminLog](channels_getAdminLog.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'q' => [string](../types/string.md), 'events_filter' => [ChannelAdminLogEventsFilter](../types/ChannelAdminLogEventsFilter.md), 'admins' => \[[InputUser](../types/InputUser.md)\], 'max_id' => [long](../types/long.md), 'min_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), \]) === [$channels\_AdminLogResults](../types/channels_AdminLogResults.md) + +$MadelineProto->[channels->getAdminedPublicChannels](channels_getAdminedPublicChannels.md)(\[\]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[channels->getChannels](channels_getChannels.md)(\['id' => \[[InputChannel](../types/InputChannel.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[channels->getFullChannel](channels_getFullChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$MadelineProto->[channels->getMessages](channels_getMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[InputMessage](../types/InputMessage.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) + +$MadelineProto->[channels->getParticipant](channels_getParticipant.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) + +$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), 'hash' => [int](../types/int.md), \]) === [$channels\_ChannelParticipants](../types/channels_ChannelParticipants.md) + +$MadelineProto->[channels->inviteToChannel](channels_inviteToChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'users' => \[[InputUser](../types/InputUser.md)\], \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->joinChannel](channels_joinChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->leaveChannel](channels_leaveChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->readHistory](channels_readHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[channels->readMessageContents](channels_readMessageContents.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->setStickers](channels_setStickers.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[channels->toggleInvites](channels_toggleInvites.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->togglePreHistoryHidden](channels_togglePreHistoryHidden.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->toggleSignatures](channels_toggleSignatures.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$MadelineProto->[channels->updateUsername](channels_updateUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) + +$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) + +$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) + +$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [int](../types/int.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) + +$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) + +$MadelineProto->[contacts->getTopPeers](contacts_getTopPeers.md)(\['correspondents' => [Bool](../types/Bool.md), 'bots_pm' => [Bool](../types/Bool.md), 'bots_inline' => [Bool](../types/Bool.md), 'phone_calls' => [Bool](../types/Bool.md), 'groups' => [Bool](../types/Bool.md), 'channels' => [Bool](../types/Bool.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'hash' => [int](../types/int.md), \]) === [$contacts\_TopPeers](../types/contacts_TopPeers.md) + +$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) + +$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) + +$MadelineProto->[contacts->resetSaved](contacts_resetSaved.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->resetTopPeerRating](contacts_resetTopPeerRating.md)(\['category' => [TopPeerCategory](../types/TopPeerCategory.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) + +$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) + +$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[help->getAppChangelog](help_getAppChangelog.md)(\['prev_app_version' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[help->getAppUpdate](help_getAppUpdate.md)(\[\]) === [$help\_AppUpdate](../types/help_AppUpdate.md) + +$MadelineProto->[help->getCdnConfig](help_getCdnConfig.md)(\[\]) === [$CdnConfig](../types/CdnConfig.md) + +$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) + +$MadelineProto->[help->getInviteText](help_getInviteText.md)(\[\]) === [$help\_InviteText](../types/help_InviteText.md) + +$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) + +$MadelineProto->[help->getRecentMeUrls](help_getRecentMeUrls.md)(\['referer' => [string](../types/string.md), \]) === [$help\_RecentMeUrls](../types/help_RecentMeUrls.md) + +$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) + +$MadelineProto->[help->getTermsOfService](help_getTermsOfService.md)(\[\]) === [$help\_TermsOfService](../types/help_TermsOfService.md) + +$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[help->setBotUpdatesStatus](help_setBotUpdatesStatus.md)(\['pending_updates_count' => [int](../types/int.md), 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +*** +

$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), 'system_lang_code' => [string](../types/string.md), 'lang_pack' => [string](../types/string.md), 'lang_code' => [string](../types/string.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeWithoutUpdates](invokeWithoutUpdates.md)(\['query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[langpack->getDifference](langpack_getDifference.md)(\['from_version' => [int](../types/int.md), \]) === [$LangPackDifference](../types/LangPackDifference.md) + +$MadelineProto->[langpack->getLangPack](langpack_getLangPack.md)(\['lang_code' => [string](../types/string.md), \]) === [$LangPackDifference](../types/LangPackDifference.md) + +$MadelineProto->[langpack->getLanguages](langpack_getLanguages.md)(\[\]) === [$Vector\_of\_LangPackLanguage](../types/LangPackLanguage.md) + +$MadelineProto->[langpack->getStrings](langpack_getStrings.md)(\['lang_code' => [string](../types/string.md), 'keys' => \[[string](../types/string.md)\], \]) === [$Vector\_of\_LangPackString](../types/LangPackString.md) + +*** +

$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) + +$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) + +$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md) + +$MadelineProto->[messages->clearRecentStickers](messages_clearRecentStickers.md)(\['attached' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['just_clear' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['revoke' => [Bool](../types/Bool.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->editInlineBotMessage](messages_editInlineBotMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'stop_geo_live' => [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)\], 'geo_point' => [InputGeoPoint](../types/InputGeoPoint.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->editMessage](messages_editMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'stop_geo_live' => [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)\], 'geo_point' => [InputGeoPoint](../types/InputGeoPoint.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) + +$MadelineProto->[messages->faveSticker](messages_faveSticker.md)(\['id' => [InputDocument](../types/InputDocument.md), 'unfave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'with_my_score' => [Bool](../types/Bool.md), 'grouped' => [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) + +$MadelineProto->[messages->getAllChats](messages_getAllChats.md)(\['except_ids' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[messages->getAllDrafts](messages_getAllDrafts.md)(\[\]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) + +$MadelineProto->[messages->getArchivedStickers](messages_getArchivedStickers.md)(\['masks' => [Bool](../types/Bool.md), 'offset_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), \]) === [$messages\_ArchivedStickers](../types/messages_ArchivedStickers.md) + +$MadelineProto->[messages->getAttachedStickers](messages_getAttachedStickers.md)(\['media' => [InputStickeredMedia](../types/InputStickeredMedia.md), \]) === [$Vector\_of\_StickerSetCovered](../types/StickerSetCovered.md) + +$MadelineProto->[messages->getBotCallbackAnswer](messages_getBotCallbackAnswer.md)(\['game' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'msg_id' => [int](../types/int.md), 'data' => [bytes](../types/bytes.md), \]) === [$messages\_BotCallbackAnswer](../types/messages_BotCallbackAnswer.md) + +$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[messages->getCommonChats](messages_getCommonChats.md)(\['user_id' => [InputUser](../types/InputUser.md), 'max_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) + +$MadelineProto->[messages->getDialogs](messages_getDialogs.md)(\['exclude_pinned' => [Bool](../types/Bool.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) + +$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) + +$MadelineProto->[messages->getFavedStickers](messages_getFavedStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_FavedStickers](../types/messages_FavedStickers.md) + +$MadelineProto->[messages->getFeaturedStickers](messages_getFeaturedStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_FeaturedStickers](../types/messages_FeaturedStickers.md) + +$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$MadelineProto->[messages->getGameHighScores](messages_getGameHighScores.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_HighScores](../types/messages_HighScores.md) + +$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), 'hash' => [int](../types/int.md), \]) === [$messages\_Messages](../types/messages_Messages.md) + +$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) + +$MadelineProto->[messages->getInlineGameHighScores](messages_getInlineGameHighScores.md)(\['id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_HighScores](../types/messages_HighScores.md) + +$MadelineProto->[messages->getMaskStickers](messages_getMaskStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) + +$MadelineProto->[messages->getMessageEditData](messages_getMessageEditData.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$messages\_MessageEditData](../types/messages_MessageEditData.md) + +$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[InputMessage](../types/InputMessage.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) + +$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) + +$MadelineProto->[messages->getPeerDialogs](messages_getPeerDialogs.md)(\['peers' => \[[InputPeer](../types/InputPeer.md)\], \]) === [$messages\_PeerDialogs](../types/messages_PeerDialogs.md) + +$MadelineProto->[messages->getPeerSettings](messages_getPeerSettings.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$PeerSettings](../types/PeerSettings.md) + +$MadelineProto->[messages->getPinnedDialogs](messages_getPinnedDialogs.md)(\[\]) === [$messages\_PeerDialogs](../types/messages_PeerDialogs.md) + +$MadelineProto->[messages->getRecentLocations](messages_getRecentLocations.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Messages](../types/messages_Messages.md) + +$MadelineProto->[messages->getRecentStickers](messages_getRecentStickers.md)(\['attached' => [Bool](../types/Bool.md), 'hash' => [int](../types/int.md), \]) === [$messages\_RecentStickers](../types/messages_RecentStickers.md) + +$MadelineProto->[messages->getSavedGifs](messages_getSavedGifs.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_SavedGifs](../types/messages_SavedGifs.md) + +$MadelineProto->[messages->getStickerSet](messages_getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +$MadelineProto->[messages->getStickers](messages_getStickers.md)(\['emoticon' => [string](../types/string.md), 'hash' => [string](../types/string.md), \]) === [$messages\_Stickers](../types/messages_Stickers.md) + +$MadelineProto->[messages->getUnreadMentions](messages_getUnreadMentions.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset_id' => [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) + +$MadelineProto->[messages->getWebPage](messages_getWebPage.md)(\['url' => [string](../types/string.md), 'hash' => [int](../types/int.md), \]) === [$WebPage](../types/WebPage.md) + +$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$MessageMedia](../types/MessageMedia.md) + +$MadelineProto->[messages->hideReportSpam](messages_hideReportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'archived' => [Bool](../types/Bool.md), \]) === [$messages\_StickerSetInstallResult](../types/messages_StickerSetInstallResult.md) + +$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->readFeaturedStickers](messages_readFeaturedStickers.md)(\['id' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->readHistory](messages_readHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->readMentions](messages_readMentions.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_ReceivedNotifyMessage](../types/ReceivedNotifyMessage.md) + +$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) + +$MadelineProto->[messages->reorderPinnedDialogs](messages_reorderPinnedDialogs.md)(\['force' => [Bool](../types/Bool.md), 'order' => \[[InputPeer](../types/InputPeer.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->reorderStickerSets](messages_reorderStickerSets.md)(\['masks' => [Bool](../types/Bool.md), 'order' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->reportEncryptedSpam](messages_reportEncryptedSpam.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->reportSpam](messages_reportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) + +$MadelineProto->[messages->saveDraft](messages_saveDraft.md)(\['no_webpage' => [Bool](../types/Bool.md), 'reply_to_msg_id' => [int](../types/int.md), 'peer' => [InputPeer](../types/InputPeer.md), 'message' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->saveGif](messages_saveGif.md)(\['id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->saveRecentSticker](messages_saveRecentSticker.md)(\['attached' => [Bool](../types/Bool.md), 'id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->search](messages_search.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'q' => [string](../types/string.md), 'from_id' => [InputUser](../types/InputUser.md), 'filter' => [MessagesFilter](../types/MessagesFilter.md), 'min_date' => [int](../types/int.md), 'max_date' => [int](../types/int.md), 'offset_id' => [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) + +$MadelineProto->[messages->searchGifs](messages_searchGifs.md)(\['q' => [string](../types/string.md), 'offset' => [int](../types/int.md), \]) === [$messages\_FoundGifs](../types/messages_FoundGifs.md) + +$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) + +$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$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) + +$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$MadelineProto->[messages->sendInlineBotResult](messages_sendInlineBotResult.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'query_id' => [long](../types/long.md), 'id' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'media' => [InputMedia](../types/InputMedia.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->sendMultiMedia](messages_sendMultiMedia.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'multi_media' => \[[InputSingleMedia](../types/InputSingleMedia.md)\], \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->sendScreenshotNotification](messages_sendScreenshotNotification.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->setBotCallbackAnswer](messages_setBotCallbackAnswer.md)(\['alert' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'message' => [string](../types/string.md), 'url' => [string](../types/string.md), 'cache_time' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setBotPrecheckoutResults](messages_setBotPrecheckoutResults.md)(\['success' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'error' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setBotShippingResults](messages_setBotShippingResults.md)(\['query_id' => [long](../types/long.md), 'error' => [string](../types/string.md), 'shipping_options' => \[[ShippingOption](../types/ShippingOption.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setGameScore](messages_setGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'force' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$MadelineProto->[messages->setInlineGameScore](messages_setInlineGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'force' => [Bool](../types/Bool.md), 'id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->toggleDialogPin](messages_toggleDialogPin.md)(\['pinned' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->uploadEncryptedFile](messages_uploadEncryptedFile.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'file' => [InputEncryptedFile](../types/InputEncryptedFile.md), \]) === [$EncryptedFile](../types/EncryptedFile.md) + +$MadelineProto->[messages->uploadMedia](messages_uploadMedia.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'media' => [InputMedia](../types/InputMedia.md), \]) === [$MessageMedia](../types/MessageMedia.md) + +*** +

$MadelineProto->[payments->clearSavedInfo](payments_clearSavedInfo.md)(\['credentials' => [Bool](../types/Bool.md), 'info' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[payments->getPaymentForm](payments_getPaymentForm.md)(\['msg_id' => [int](../types/int.md), \]) === [$payments\_PaymentForm](../types/payments_PaymentForm.md) + +$MadelineProto->[payments->getPaymentReceipt](payments_getPaymentReceipt.md)(\['msg_id' => [int](../types/int.md), \]) === [$payments\_PaymentReceipt](../types/payments_PaymentReceipt.md) + +$MadelineProto->[payments->getSavedInfo](payments_getSavedInfo.md)(\[\]) === [$payments\_SavedInfo](../types/payments_SavedInfo.md) + +$MadelineProto->[payments->sendPaymentForm](payments_sendPaymentForm.md)(\['msg_id' => [int](../types/int.md), 'requested_info_id' => [string](../types/string.md), 'shipping_option_id' => [string](../types/string.md), 'credentials' => [InputPaymentCredentials](../types/InputPaymentCredentials.md), \]) === [$payments\_PaymentResult](../types/payments_PaymentResult.md) + +$MadelineProto->[payments->validateRequestedInfo](payments_validateRequestedInfo.md)(\['save' => [Bool](../types/Bool.md), 'msg_id' => [int](../types/int.md), 'info' => [PaymentRequestedInfo](../types/PaymentRequestedInfo.md), \]) === [$payments\_ValidatedRequestedInfo](../types/payments_ValidatedRequestedInfo.md) + +*** +

$MadelineProto->[phone->acceptCall](phone_acceptCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'g_b' => [bytes](../types/bytes.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) + +$MadelineProto->[phone->confirmCall](phone_confirmCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'g_a' => [bytes](../types/bytes.md), 'key_fingerprint' => [long](../types/long.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) + +$MadelineProto->[phone->discardCall](phone_discardCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'duration' => [int](../types/int.md), 'reason' => [PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md), 'connection_id' => [long](../types/long.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[phone->getCallConfig](phone_getCallConfig.md)(\[\]) === [$DataJSON](../types/DataJSON.md) + +$MadelineProto->[phone->receivedCall](phone_receivedCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[phone->requestCall](phone_requestCall.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a_hash' => [bytes](../types/bytes.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) + +$MadelineProto->[phone->saveCallDebug](phone_saveCallDebug.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'debug' => [DataJSON](../types/DataJSON.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[phone->setCallRating](phone_setCallRating.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'rating' => [int](../types/int.md), 'comment' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +*** +

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) + +$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) + +$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) + +$MadelineProto->[photos->uploadProfilePhoto](photos_uploadProfilePhoto.md)(\['file' => [InputFile](../types/InputFile.md), \]) === [$photos\_Photo](../types/photos_Photo.md) + +*** +

$MadelineProto->[stickers->addStickerToSet](stickers_addStickerToSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'sticker' => [InputStickerSetItem](../types/InputStickerSetItem.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +$MadelineProto->[stickers->changeStickerPosition](stickers_changeStickerPosition.md)(\['sticker' => [InputDocument](../types/InputDocument.md), 'position' => [int](../types/int.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +$MadelineProto->[stickers->createStickerSet](stickers_createStickerSet.md)(\['masks' => [Bool](../types/Bool.md), 'user_id' => [InputUser](../types/InputUser.md), 'title' => [string](../types/string.md), 'short_name' => [string](../types/string.md), 'stickers' => \[[InputStickerSetItem](../types/InputStickerSetItem.md)\], \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +$MadelineProto->[stickers->removeStickerFromSet](stickers_removeStickerFromSet.md)(\['sticker' => [InputDocument](../types/InputDocument.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +*** +

$MadelineProto->[updates->getChannelDifference](updates_getChannelDifference.md)(\['force' => [Bool](../types/Bool.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) + +$MadelineProto->[updates->getDifference](updates_getDifference.md)(\['pts' => [int](../types/int.md), 'pts_total_limit' => [int](../types/int.md), 'date' => [int](../types/int.md), 'qts' => [int](../types/int.md), \]) === [$updates\_Difference](../types/updates_Difference.md) + +$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) + +*** +

$MadelineProto->[upload->getCdnFile](upload_getCdnFile.md)(\['file_token' => [bytes](../types/bytes.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$upload\_CdnFile](../types/upload_CdnFile.md) + +$MadelineProto->[upload->getCdnFileHashes](upload_getCdnFileHashes.md)(\['file_token' => [bytes](../types/bytes.md), 'offset' => [int](../types/int.md), \]) === [$Vector\_of\_CdnFileHash](../types/CdnFileHash.md) + +$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) + +$MadelineProto->[upload->getWebFile](upload_getWebFile.md)(\['location' => [InputWebFileLocation](../types/InputWebFileLocation.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$upload\_WebFile](../types/upload_WebFile.md) + +$MadelineProto->[upload->reuploadCdnFile](upload_reuploadCdnFile.md)(\['file_token' => [bytes](../types/bytes.md), 'request_token' => [bytes](../types/bytes.md), \]) === [$Vector\_of\_CdnFileHash](../types/CdnFileHash.md) + +$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) + +$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) + +*** +

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) + +$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) + diff --git a/docs/API_docs/methods/auth_cancelCode.md b/docs/API_docs/methods/auth_cancelCode.md index 2ad15548..52b85d4c 100644 --- a/docs/API_docs/methods/auth_cancelCode.md +++ b/docs/API_docs/methods/auth_cancelCode.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->cancelCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/docs/API_docs/methods/auth_checkPhone.md b/docs/API_docs/methods/auth_checkPhone.md index 291221de..1826ce63 100644 --- a/docs/API_docs/methods/auth_checkPhone.md +++ b/docs/API_docs/methods/auth_checkPhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); diff --git a/docs/API_docs/methods/auth_dropTempAuthKeys.md b/docs/API_docs/methods/auth_dropTempAuthKeys.md index 6474bbb3..5aa98b3b 100644 --- a/docs/API_docs/methods/auth_dropTempAuthKeys.md +++ b/docs/API_docs/methods/auth_dropTempAuthKeys.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->dropTempAuthKeys(['except_auth_keys' => [long, long], ]); diff --git a/docs/API_docs/methods/auth_recoverPassword.md b/docs/API_docs/methods/auth_recoverPassword.md index cdc9bd7d..5e37b0f3 100644 --- a/docs/API_docs/methods/auth_recoverPassword.md +++ b/docs/API_docs/methods/auth_recoverPassword.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_Authorization = $MadelineProto->auth->recoverPassword(['code' => 'string', ]); diff --git a/docs/API_docs/methods/auth_requestPasswordRecovery.md b/docs/API_docs/methods/auth_requestPasswordRecovery.md index e18c6c93..c69d0c49 100644 --- a/docs/API_docs/methods/auth_requestPasswordRecovery.md +++ b/docs/API_docs/methods/auth_requestPasswordRecovery.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_PasswordRecovery = $MadelineProto->auth->requestPasswordRecovery(); diff --git a/docs/API_docs/methods/auth_resendCode.md b/docs/API_docs/methods/auth_resendCode.md index de437402..253480a3 100644 --- a/docs/API_docs/methods/auth_resendCode.md +++ b/docs/API_docs/methods/auth_resendCode.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_SentCode = $MadelineProto->auth->resendCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/docs/API_docs/methods/auth_resetAuthorizations.md b/docs/API_docs/methods/auth_resetAuthorizations.md index 47feea16..a46c880d 100644 --- a/docs/API_docs/methods/auth_resetAuthorizations.md +++ b/docs/API_docs/methods/auth_resetAuthorizations.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); diff --git a/docs/API_docs/methods/auth_sendInvites.md b/docs/API_docs/methods/auth_sendInvites.md index be32fe6b..9b88b4a3 100644 --- a/docs/API_docs/methods/auth_sendInvites.md +++ b/docs/API_docs/methods/auth_sendInvites.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); diff --git a/docs/API_docs/methods/bots_answerWebhookJSONQuery.md b/docs/API_docs/methods/bots_answerWebhookJSONQuery.md index 61056bb4..40cb0477 100644 --- a/docs/API_docs/methods/bots_answerWebhookJSONQuery.md +++ b/docs/API_docs/methods/bots_answerWebhookJSONQuery.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->bots->answerWebhookJSONQuery(['query_id' => long, 'data' => DataJSON, ]); diff --git a/docs/API_docs/methods/bots_sendCustomRequest.md b/docs/API_docs/methods/bots_sendCustomRequest.md index fc8e764d..5a7f4e86 100644 --- a/docs/API_docs/methods/bots_sendCustomRequest.md +++ b/docs/API_docs/methods/bots_sendCustomRequest.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $DataJSON = $MadelineProto->bots->sendCustomRequest(['custom_method' => 'string', 'params' => DataJSON, ]); diff --git a/docs/API_docs/methods/channels_checkUsername.md b/docs/API_docs/methods/channels_checkUsername.md index 7bc7c245..7e3d5a89 100644 --- a/docs/API_docs/methods/channels_checkUsername.md +++ b/docs/API_docs/methods/channels_checkUsername.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->checkUsername(['channel' => InputChannel, 'username' => 'string', ]); diff --git a/docs/API_docs/methods/channels_createChannel.md b/docs/API_docs/methods/channels_createChannel.md index 1305e4fb..a5ddc379 100644 --- a/docs/API_docs/methods/channels_createChannel.md +++ b/docs/API_docs/methods/channels_createChannel.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->createChannel(['broadcast' => Bool, 'megagroup' => Bool, 'title' => 'string', 'about' => 'string', ]); diff --git a/docs/API_docs/methods/channels_deleteChannel.md b/docs/API_docs/methods/channels_deleteChannel.md index e660d25c..69dad9a3 100644 --- a/docs/API_docs/methods/channels_deleteChannel.md +++ b/docs/API_docs/methods/channels_deleteChannel.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->deleteChannel(['channel' => InputChannel, ]); diff --git a/docs/API_docs/methods/channels_deleteHistory.md b/docs/API_docs/methods/channels_deleteHistory.md index 55a5e371..856a32e8 100644 --- a/docs/API_docs/methods/channels_deleteHistory.md +++ b/docs/API_docs/methods/channels_deleteHistory.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->deleteHistory(['channel' => InputChannel, 'max_id' => int, ]); diff --git a/docs/API_docs/methods/channels_deleteMessages.md b/docs/API_docs/methods/channels_deleteMessages.md index fb9d3cc2..b12270b3 100644 --- a/docs/API_docs/methods/channels_deleteMessages.md +++ b/docs/API_docs/methods/channels_deleteMessages.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int, int], ]); diff --git a/docs/API_docs/methods/channels_deleteUserHistory.md b/docs/API_docs/methods/channels_deleteUserHistory.md index fbe34341..75f531bb 100644 --- a/docs/API_docs/methods/channels_deleteUserHistory.md +++ b/docs/API_docs/methods/channels_deleteUserHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->channels->deleteUserHistory(['channel' => InputChannel, 'user_id' => InputUser, ]); diff --git a/docs/API_docs/methods/channels_editAbout.md b/docs/API_docs/methods/channels_editAbout.md index 8908f29e..67521065 100644 --- a/docs/API_docs/methods/channels_editAbout.md +++ b/docs/API_docs/methods/channels_editAbout.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->editAbout(['channel' => InputChannel, 'about' => 'string', ]); diff --git a/docs/API_docs/methods/channels_editAdmin.md b/docs/API_docs/methods/channels_editAdmin.md index dcec7d2f..7cecbd64 100644 --- a/docs/API_docs/methods/channels_editAdmin.md +++ b/docs/API_docs/methods/channels_editAdmin.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editAdmin(['channel' => InputChannel, 'user_id' => InputUser, 'admin_rights' => ChannelAdminRights, ]); diff --git a/docs/API_docs/methods/channels_editBanned.md b/docs/API_docs/methods/channels_editBanned.md index 9859bcae..ca9f2596 100644 --- a/docs/API_docs/methods/channels_editBanned.md +++ b/docs/API_docs/methods/channels_editBanned.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editBanned(['channel' => InputChannel, 'user_id' => InputUser, 'banned_rights' => ChannelBannedRights, ]); diff --git a/docs/API_docs/methods/channels_editPhoto.md b/docs/API_docs/methods/channels_editPhoto.md index 9ccd864f..c854c64a 100644 --- a/docs/API_docs/methods/channels_editPhoto.md +++ b/docs/API_docs/methods/channels_editPhoto.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editPhoto(['channel' => InputChannel, 'photo' => InputChatPhoto, ]); diff --git a/docs/API_docs/methods/channels_editTitle.md b/docs/API_docs/methods/channels_editTitle.md index b1024faf..9bc6773e 100644 --- a/docs/API_docs/methods/channels_editTitle.md +++ b/docs/API_docs/methods/channels_editTitle.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editTitle(['channel' => InputChannel, 'title' => 'string', ]); diff --git a/docs/API_docs/methods/channels_exportInvite.md b/docs/API_docs/methods/channels_exportInvite.md index f0c737d5..ca65dcc8 100644 --- a/docs/API_docs/methods/channels_exportInvite.md +++ b/docs/API_docs/methods/channels_exportInvite.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedChatInvite = $MadelineProto->channels->exportInvite(['channel' => InputChannel, ]); diff --git a/docs/API_docs/methods/channels_exportMessageLink.md b/docs/API_docs/methods/channels_exportMessageLink.md index 1a1752d4..ee22d67c 100644 --- a/docs/API_docs/methods/channels_exportMessageLink.md +++ b/docs/API_docs/methods/channels_exportMessageLink.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedMessageLink = $MadelineProto->channels->exportMessageLink(['channel' => InputChannel, 'id' => int, 'grouped' => Bool, ]); diff --git a/docs/API_docs/methods/channels_getAdminLog.md b/docs/API_docs/methods/channels_getAdminLog.md index 8aa33d23..4a419778 100644 --- a/docs/API_docs/methods/channels_getAdminLog.md +++ b/docs/API_docs/methods/channels_getAdminLog.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $channels_AdminLogResults = $MadelineProto->channels->getAdminLog(['channel' => InputChannel, 'q' => 'string', 'events_filter' => ChannelAdminLogEventsFilter, 'admins' => [InputUser, InputUser], 'max_id' => long, 'min_id' => long, 'limit' => int, ]); diff --git a/docs/API_docs/methods/channels_getAdminedPublicChannels.md b/docs/API_docs/methods/channels_getAdminedPublicChannels.md index 9646f529..febc44f9 100644 --- a/docs/API_docs/methods/channels_getAdminedPublicChannels.md +++ b/docs/API_docs/methods/channels_getAdminedPublicChannels.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->channels->getAdminedPublicChannels(); diff --git a/docs/API_docs/methods/channels_getChannels.md b/docs/API_docs/methods/channels_getChannels.md index 9cd9e798..af22556f 100644 --- a/docs/API_docs/methods/channels_getChannels.md +++ b/docs/API_docs/methods/channels_getChannels.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel, InputChannel], ]); diff --git a/docs/API_docs/methods/channels_getMessages.md b/docs/API_docs/methods/channels_getMessages.md index 9e7a1b57..3056e1f9 100644 --- a/docs/API_docs/methods/channels_getMessages.md +++ b/docs/API_docs/methods/channels_getMessages.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [InputMessage, InputMessage], ]); diff --git a/docs/API_docs/methods/channels_getParticipant.md b/docs/API_docs/methods/channels_getParticipant.md index db9b1fc6..be5fe96a 100644 --- a/docs/API_docs/methods/channels_getParticipant.md +++ b/docs/API_docs/methods/channels_getParticipant.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $channels_ChannelParticipant = $MadelineProto->channels->getParticipant(['channel' => InputChannel, 'user_id' => InputUser, ]); diff --git a/docs/API_docs/methods/channels_getParticipants.md b/docs/API_docs/methods/channels_getParticipants.md index 9b2b6c2a..3772ef4b 100644 --- a/docs/API_docs/methods/channels_getParticipants.md +++ b/docs/API_docs/methods/channels_getParticipants.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $channels_ChannelParticipants = $MadelineProto->channels->getParticipants(['channel' => InputChannel, 'filter' => ChannelParticipantsFilter, 'offset' => int, 'limit' => int, 'hash' => int, ]); diff --git a/docs/API_docs/methods/channels_inviteToChannel.md b/docs/API_docs/methods/channels_inviteToChannel.md index 676f800c..e7d12db7 100644 --- a/docs/API_docs/methods/channels_inviteToChannel.md +++ b/docs/API_docs/methods/channels_inviteToChannel.md @@ -52,12 +52,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser, InputUser], ]); diff --git a/docs/API_docs/methods/channels_joinChannel.md b/docs/API_docs/methods/channels_joinChannel.md index 721f707c..3ac2b326 100644 --- a/docs/API_docs/methods/channels_joinChannel.md +++ b/docs/API_docs/methods/channels_joinChannel.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->joinChannel(['channel' => InputChannel, ]); diff --git a/docs/API_docs/methods/channels_leaveChannel.md b/docs/API_docs/methods/channels_leaveChannel.md index 7f02e08c..95b60a90 100644 --- a/docs/API_docs/methods/channels_leaveChannel.md +++ b/docs/API_docs/methods/channels_leaveChannel.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->leaveChannel(['channel' => InputChannel, ]); diff --git a/docs/API_docs/methods/channels_readHistory.md b/docs/API_docs/methods/channels_readHistory.md index cca891f0..c6b14541 100644 --- a/docs/API_docs/methods/channels_readHistory.md +++ b/docs/API_docs/methods/channels_readHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->readHistory(['channel' => InputChannel, 'max_id' => int, ]); diff --git a/docs/API_docs/methods/channels_readMessageContents.md b/docs/API_docs/methods/channels_readMessageContents.md index 861844c4..aa9893c2 100644 --- a/docs/API_docs/methods/channels_readMessageContents.md +++ b/docs/API_docs/methods/channels_readMessageContents.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->readMessageContents(['channel' => InputChannel, 'id' => [int, int], ]); diff --git a/docs/API_docs/methods/channels_reportSpam.md b/docs/API_docs/methods/channels_reportSpam.md index 09af14e0..ca5c28f5 100644 --- a/docs/API_docs/methods/channels_reportSpam.md +++ b/docs/API_docs/methods/channels_reportSpam.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int, int], ]); diff --git a/docs/API_docs/methods/channels_setStickers.md b/docs/API_docs/methods/channels_setStickers.md index 9ed5bd55..d9be32a4 100644 --- a/docs/API_docs/methods/channels_setStickers.md +++ b/docs/API_docs/methods/channels_setStickers.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->setStickers(['channel' => InputChannel, 'stickerset' => InputStickerSet, ]); diff --git a/docs/API_docs/methods/channels_toggleInvites.md b/docs/API_docs/methods/channels_toggleInvites.md index 5b541f67..e9e6450d 100644 --- a/docs/API_docs/methods/channels_toggleInvites.md +++ b/docs/API_docs/methods/channels_toggleInvites.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->toggleInvites(['channel' => InputChannel, 'enabled' => Bool, ]); diff --git a/docs/API_docs/methods/channels_togglePreHistoryHidden.md b/docs/API_docs/methods/channels_togglePreHistoryHidden.md index 9327de90..d07784de 100644 --- a/docs/API_docs/methods/channels_togglePreHistoryHidden.md +++ b/docs/API_docs/methods/channels_togglePreHistoryHidden.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->togglePreHistoryHidden(['channel' => InputChannel, 'enabled' => Bool, ]); diff --git a/docs/API_docs/methods/channels_toggleSignatures.md b/docs/API_docs/methods/channels_toggleSignatures.md index f233a8e1..36d1eccb 100644 --- a/docs/API_docs/methods/channels_toggleSignatures.md +++ b/docs/API_docs/methods/channels_toggleSignatures.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->toggleSignatures(['channel' => InputChannel, 'enabled' => Bool, ]); diff --git a/docs/API_docs/methods/channels_updatePinnedMessage.md b/docs/API_docs/methods/channels_updatePinnedMessage.md index f06d1f0f..f8d10ece 100644 --- a/docs/API_docs/methods/channels_updatePinnedMessage.md +++ b/docs/API_docs/methods/channels_updatePinnedMessage.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->updatePinnedMessage(['silent' => Bool, 'channel' => InputChannel, 'id' => int, ]); diff --git a/docs/API_docs/methods/channels_updateUsername.md b/docs/API_docs/methods/channels_updateUsername.md index ad34490a..2093b6ce 100644 --- a/docs/API_docs/methods/channels_updateUsername.md +++ b/docs/API_docs/methods/channels_updateUsername.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->updateUsername(['channel' => InputChannel, 'username' => 'string', ]); diff --git a/docs/API_docs/methods/contacts_block.md b/docs/API_docs/methods/contacts_block.md index d0729d30..e592cace 100644 --- a/docs/API_docs/methods/contacts_block.md +++ b/docs/API_docs/methods/contacts_block.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); diff --git a/docs/API_docs/methods/contacts_deleteContact.md b/docs/API_docs/methods/contacts_deleteContact.md index b8c17544..1a3f2a27 100644 --- a/docs/API_docs/methods/contacts_deleteContact.md +++ b/docs/API_docs/methods/contacts_deleteContact.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); diff --git a/docs/API_docs/methods/contacts_deleteContacts.md b/docs/API_docs/methods/contacts_deleteContacts.md index 64c69460..f6627599 100644 --- a/docs/API_docs/methods/contacts_deleteContacts.md +++ b/docs/API_docs/methods/contacts_deleteContacts.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); diff --git a/docs/API_docs/methods/contacts_exportCard.md b/docs/API_docs/methods/contacts_exportCard.md index b05f57ce..1d2129f3 100644 --- a/docs/API_docs/methods/contacts_exportCard.md +++ b/docs/API_docs/methods/contacts_exportCard.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); diff --git a/docs/API_docs/methods/contacts_getBlocked.md b/docs/API_docs/methods/contacts_getBlocked.md index d7d8c5cc..44d24aba 100644 --- a/docs/API_docs/methods/contacts_getBlocked.md +++ b/docs/API_docs/methods/contacts_getBlocked.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); diff --git a/docs/API_docs/methods/contacts_getContacts.md b/docs/API_docs/methods/contacts_getContacts.md index 3e06bea4..589572dc 100644 --- a/docs/API_docs/methods/contacts_getContacts.md +++ b/docs/API_docs/methods/contacts_getContacts.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => int, ]); diff --git a/docs/API_docs/methods/contacts_getStatuses.md b/docs/API_docs/methods/contacts_getStatuses.md index b927a140..5cef3084 100644 --- a/docs/API_docs/methods/contacts_getStatuses.md +++ b/docs/API_docs/methods/contacts_getStatuses.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); diff --git a/docs/API_docs/methods/contacts_getTopPeers.md b/docs/API_docs/methods/contacts_getTopPeers.md index 226d3aa0..4958e6b2 100644 --- a/docs/API_docs/methods/contacts_getTopPeers.md +++ b/docs/API_docs/methods/contacts_getTopPeers.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_TopPeers = $MadelineProto->contacts->getTopPeers(['correspondents' => Bool, 'bots_pm' => Bool, 'bots_inline' => Bool, 'phone_calls' => Bool, 'groups' => Bool, 'channels' => Bool, 'offset' => int, 'limit' => int, 'hash' => int, ]); diff --git a/docs/API_docs/methods/contacts_importCard.md b/docs/API_docs/methods/contacts_importCard.md index 81a1e138..89c96657 100644 --- a/docs/API_docs/methods/contacts_importCard.md +++ b/docs/API_docs/methods/contacts_importCard.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); diff --git a/docs/API_docs/methods/contacts_importContacts.md b/docs/API_docs/methods/contacts_importContacts.md index 16ecd74b..ccc0eada 100644 --- a/docs/API_docs/methods/contacts_importContacts.md +++ b/docs/API_docs/methods/contacts_importContacts.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], ]); diff --git a/docs/API_docs/methods/contacts_resetSaved.md b/docs/API_docs/methods/contacts_resetSaved.md index 50034ace..d6d9d95d 100644 --- a/docs/API_docs/methods/contacts_resetSaved.md +++ b/docs/API_docs/methods/contacts_resetSaved.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->resetSaved(); diff --git a/docs/API_docs/methods/contacts_resetTopPeerRating.md b/docs/API_docs/methods/contacts_resetTopPeerRating.md index 4b485921..4b5e96f1 100644 --- a/docs/API_docs/methods/contacts_resetTopPeerRating.md +++ b/docs/API_docs/methods/contacts_resetTopPeerRating.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->resetTopPeerRating(['category' => TopPeerCategory, 'peer' => InputPeer, ]); diff --git a/docs/API_docs/methods/contacts_search.md b/docs/API_docs/methods/contacts_search.md index 68daecd6..64ff748e 100644 --- a/docs/API_docs/methods/contacts_search.md +++ b/docs/API_docs/methods/contacts_search.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); diff --git a/docs/API_docs/methods/contacts_unblock.md b/docs/API_docs/methods/contacts_unblock.md index f7d151b9..ec72ae2d 100644 --- a/docs/API_docs/methods/contacts_unblock.md +++ b/docs/API_docs/methods/contacts_unblock.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); diff --git a/docs/API_docs/methods/help_getAppChangelog.md b/docs/API_docs/methods/help_getAppChangelog.md index 477df2f8..eda473a6 100644 --- a/docs/API_docs/methods/help_getAppChangelog.md +++ b/docs/API_docs/methods/help_getAppChangelog.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->help->getAppChangelog(['prev_app_version' => 'string', ]); diff --git a/docs/API_docs/methods/help_getAppUpdate.md b/docs/API_docs/methods/help_getAppUpdate.md index b88906ae..c6a42922 100644 --- a/docs/API_docs/methods/help_getAppUpdate.md +++ b/docs/API_docs/methods/help_getAppUpdate.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(); diff --git a/docs/API_docs/methods/help_getCdnConfig.md b/docs/API_docs/methods/help_getCdnConfig.md index 809ea1fb..b98949ed 100644 --- a/docs/API_docs/methods/help_getCdnConfig.md +++ b/docs/API_docs/methods/help_getCdnConfig.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $CdnConfig = $MadelineProto->help->getCdnConfig(); diff --git a/docs/API_docs/methods/help_getConfig.md b/docs/API_docs/methods/help_getConfig.md index 16e25c68..ca4bfc25 100644 --- a/docs/API_docs/methods/help_getConfig.md +++ b/docs/API_docs/methods/help_getConfig.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); diff --git a/docs/API_docs/methods/help_getInviteText.md b/docs/API_docs/methods/help_getInviteText.md index 6b226bff..7311b7fb 100644 --- a/docs/API_docs/methods/help_getInviteText.md +++ b/docs/API_docs/methods/help_getInviteText.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(); diff --git a/docs/API_docs/methods/help_getNearestDc.md b/docs/API_docs/methods/help_getNearestDc.md index 35a8bf91..458f60ab 100644 --- a/docs/API_docs/methods/help_getNearestDc.md +++ b/docs/API_docs/methods/help_getNearestDc.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); diff --git a/docs/API_docs/methods/help_getRecentMeUrls.md b/docs/API_docs/methods/help_getRecentMeUrls.md index 43a47dad..29d2e21f 100644 --- a/docs/API_docs/methods/help_getRecentMeUrls.md +++ b/docs/API_docs/methods/help_getRecentMeUrls.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_RecentMeUrls = $MadelineProto->help->getRecentMeUrls(['referer' => 'string', ]); diff --git a/docs/API_docs/methods/help_getSupport.md b/docs/API_docs/methods/help_getSupport.md index a5bab0f2..9ee25b00 100644 --- a/docs/API_docs/methods/help_getSupport.md +++ b/docs/API_docs/methods/help_getSupport.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); diff --git a/docs/API_docs/methods/help_getTermsOfService.md b/docs/API_docs/methods/help_getTermsOfService.md index 487cd83a..4dea9f79 100644 --- a/docs/API_docs/methods/help_getTermsOfService.md +++ b/docs/API_docs/methods/help_getTermsOfService.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_TermsOfService = $MadelineProto->help->getTermsOfService(); diff --git a/docs/API_docs/methods/help_saveAppLog.md b/docs/API_docs/methods/help_saveAppLog.md index 0165b6e3..a7884c47 100644 --- a/docs/API_docs/methods/help_saveAppLog.md +++ b/docs/API_docs/methods/help_saveAppLog.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); diff --git a/docs/API_docs/methods/help_setBotUpdatesStatus.md b/docs/API_docs/methods/help_setBotUpdatesStatus.md index ff314b5c..a1a3ab1b 100644 --- a/docs/API_docs/methods/help_setBotUpdatesStatus.md +++ b/docs/API_docs/methods/help_setBotUpdatesStatus.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->help->setBotUpdatesStatus(['pending_updates_count' => int, 'message' => 'string', ]); diff --git a/docs/API_docs/methods/index.md b/docs/API_docs/methods/index.md index fdd81c1a..d4923773 100644 --- a/docs/API_docs/methods/index.md +++ b/docs/API_docs/methods/index.md @@ -1,542 +1,537 @@ --- title: Methods -description: List of methods +description: What do you want to do? --- -# Methods -[Back to API documentation index](..) +# What do you want to do? +[Go back to API documentation index](..) +[Go to the old code-version method index](api_index.html) -$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); +* [Logout](https://docs.madelineproto.xyz/logout.html) -$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); +* [Login](https://docs.madelineproto.xyz/docs/LOGIN.html) -$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); +* [Get all chats, broadcast a message to all chats](https://docs.madelineproto.xyz/docs/DIALOGS.html) -$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); +* [Get the full participant list of a channel/group/supergroup](https://docs.madelineproto.xyz/get_pwr_chat.html) -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); +* [Get full info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_full_info.html) +* [Get info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_info.html) -$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); +* [Get info about the currently logged-in user](https://docs.madelineproto.xyz/get_self.html) -$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); +* [Upload or download files up to 1.5 GB](https://docs.madelineproto.xyz/docs/FILES.html) -$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); +* [Make a phone call and play a song](https://docs.madelineproto.xyz/docs/CALLS.html) -$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); - -$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); - - -$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); - -$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); +* [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) *** -

$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) +

* Change the phone number associated to this account -$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Check if this username is available -$MadelineProto->[account->confirmPhone](account_confirmPhone.md)(\['phone_code_hash' => [string](../types/string.md), 'phone_code' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode -$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Delete this account -$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) +* Get account TTL -$MadelineProto->[account->getAuthorizations](account_getAuthorizations.md)(\[\]) === [$account\_Authorizations](../types/account_Authorizations.md) +* Get all logged-in authorizations -$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) +* Get notification settings -$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md) +* Get the current password -$MadelineProto->[account->getPasswordSettings](account_getPasswordSettings.md)(\['current_password_hash' => [bytes](../types/bytes.md), \]) === [$account\_PasswordSettings](../types/account_PasswordSettings.md) +* Get the current 2FA settings -$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Get privacy settings -$MadelineProto->[account->getTmpPassword](account_getTmpPassword.md)(\['password_hash' => [bytes](../types/bytes.md), 'period' => [int](../types/int.md), \]) === [$account\_TmpPassword](../types/account_TmpPassword.md) +* Get temporary password for buying products through bots -$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) +* Returns a list of available wallpapers. -$MadelineProto->[account->getWebAuthorizations](account_getWebAuthorizations.md)(\[\]) === [$account\_WebAuthorizations](../types/account_WebAuthorizations.md) +* Get telegram web login authorizations -$MadelineProto->[account->registerDevice](account_registerDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), 'app_sandbox' => [Bool](../types/Bool.md), 'other_uids' => \[[int](../types/int.md)\], \]) === [$Bool](../types/Bool.md) +* Register device for push notifications -$MadelineProto->[account->reportPeer](account_reportPeer.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reason' => [ReportReason](../types/ReportReason.md), \]) === [$Bool](../types/Bool.md) +* Report for spam -$MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) +* Delete a certain session -$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) +* Reset all notification settings -$MadelineProto->[account->resetWebAuthorization](account_resetWebAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) +* Delete a certain telegram web login authorization -$MadelineProto->[account->resetWebAuthorizations](account_resetWebAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) +* Reset all telegram web login authorizations -$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) +* Change the phone number -$MadelineProto->[account->sendConfirmPhoneCode](account_sendConfirmPhoneCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'hash' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) +* Send confirmation phone code -$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) +* Set account TTL -$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Set privacy settings -$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), 'other_uids' => \[[int](../types/int.md)\], \]) === [$Bool](../types/Bool.md) +* Stop sending PUSH notifications to app -$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Disable all notifications for a certain period -$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) +* Change notification settings -$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) +* Update the 2FA password settings -$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) +* Update profile info -$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Update online status -$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) +* Update this user's username *** -

$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) +

* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info -$MadelineProto->[auth->cancelCode](auth_cancelCode.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Invalidate sent phone code -$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) +* Check if this phone number is registered on telegram -$MadelineProto->[auth->dropTempAuthKeys](auth_dropTempAuthKeys.md)(\['except_auth_keys' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) +* Delete all temporary authorization keys except the ones provided -$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) +* You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$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) +* You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->recoverPassword](auth_recoverPassword.md)(\['code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account -$MadelineProto->[auth->requestPasswordRecovery](auth_requestPasswordRecovery.md)(\[\]) === [$auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) +* Send an email to recover the 2FA password -$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) +* Resend the SMS verification code -$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) +* Delete all logged-in sessions. -$MadelineProto->[auth->sendCode](auth_sendCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'phone_number' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), 'api_id' => [int](../types/int.md), 'api_hash' => [string](../types/string.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) +* Use phone_login instead -$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Invite friends to telegram! -$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) +* You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) -$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) +* You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) *** -

$MadelineProto->[bots->answerWebhookJSONQuery](bots_answerWebhookJSONQuery.md)(\['query_id' => [long](../types/long.md), 'data' => [DataJSON](../types/DataJSON.md), \]) === [$Bool](../types/Bool.md) +

* Send webhook request via bot API -$MadelineProto->[bots->sendCustomRequest](bots_sendCustomRequest.md)(\['custom_method' => [string](../types/string.md), 'params' => [DataJSON](../types/DataJSON.md), \]) === [$DataJSON](../types/DataJSON.md) +* Send a custom request to the bot API *** -

$MadelineProto->[channels->checkUsername](channels_checkUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +

* Check if this username is free and can be assigned to a channel/supergroup -$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) +* Create channel/supergroup -$MadelineProto->[channels->deleteChannel](channels_deleteChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Delete a channel/supergroup -$MadelineProto->[channels->deleteHistory](channels_deleteHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Delete the history of a supergroup/channel -$MadelineProto->[channels->deleteMessages](channels_deleteMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Delete channel/supergroup messages -$MadelineProto->[channels->deleteUserHistory](channels_deleteUserHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Delete all messages of a user in a channel/supergroup -$MadelineProto->[channels->editAbout](channels_editAbout.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'about' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Edit the about text of a channel/supergroup -$MadelineProto->[channels->editAdmin](channels_editAdmin.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), 'admin_rights' => [ChannelAdminRights](../types/ChannelAdminRights.md), \]) === [$Updates](../types/Updates.md) +* Edit admin permissions of a user in a channel/supergroup -$MadelineProto->[channels->editBanned](channels_editBanned.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), 'banned_rights' => [ChannelBannedRights](../types/ChannelBannedRights.md), \]) === [$Updates](../types/Updates.md) +* Kick or ban a user from a channel/supergroup -$MadelineProto->[channels->editPhoto](channels_editPhoto.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) +* Edit the photo of a supergroup/channel -$MadelineProto->[channels->editTitle](channels_editTitle.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Edit the title of a supergroup/channel -$MadelineProto->[channels->exportInvite](channels_exportInvite.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) +* Export the invite link of a channel -$MadelineProto->[channels->exportMessageLink](channels_exportMessageLink.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => [int](../types/int.md), 'grouped' => [Bool](../types/Bool.md), \]) === [$ExportedMessageLink](../types/ExportedMessageLink.md) +* Get the link of a message in a channel -$MadelineProto->[channels->getAdminLog](channels_getAdminLog.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'q' => [string](../types/string.md), 'events_filter' => [ChannelAdminLogEventsFilter](../types/ChannelAdminLogEventsFilter.md), 'admins' => \[[InputUser](../types/InputUser.md)\], 'max_id' => [long](../types/long.md), 'min_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), \]) === [$channels\_AdminLogResults](../types/channels_AdminLogResults.md) +* Get admin log of a channel/supergroup -$MadelineProto->[channels->getAdminedPublicChannels](channels_getAdminedPublicChannels.md)(\[\]) === [$messages\_Chats](../types/messages_Chats.md) +* Get all supergroups/channels where you're admin -$MadelineProto->[channels->getChannels](channels_getChannels.md)(\['id' => \[[InputChannel](../types/InputChannel.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get info about multiple channels/supergroups -$MadelineProto->[channels->getFullChannel](channels_getFullChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) +* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[channels->getMessages](channels_getMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[InputMessage](../types/InputMessage.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get channel/supergroup messages -$MadelineProto->[channels->getParticipant](channels_getParticipant.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) +* Get info about a certain channel/supergroup participant -$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), 'hash' => [int](../types/int.md), \]) === [$channels\_ChannelParticipants](../types/channels_ChannelParticipants.md) +* Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead) -$MadelineProto->[channels->inviteToChannel](channels_inviteToChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'users' => \[[InputUser](../types/InputUser.md)\], \]) === [$Updates](../types/Updates.md) +* Add users to channel/supergroup -$MadelineProto->[channels->joinChannel](channels_joinChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Join a channel/supergroup -$MadelineProto->[channels->leaveChannel](channels_leaveChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Leave a channel/supergroup -$MadelineProto->[channels->readHistory](channels_readHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Mark channel/supergroup history as read -$MadelineProto->[channels->readMessageContents](channels_readMessageContents.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$Bool](../types/Bool.md) +* Mark channel/supergroup messages as read -$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) +* Report a supergroup/channel for spam -$MadelineProto->[channels->setStickers](channels_setStickers.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) +* Set the supergroup/channel stickerpack -$MadelineProto->[channels->toggleInvites](channels_toggleInvites.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Allow or disallow any user to invite users to this channel/supergroup -$MadelineProto->[channels->togglePreHistoryHidden](channels_togglePreHistoryHidden.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Enable or disable hidden history for new channel/supergroup users -$MadelineProto->[channels->toggleSignatures](channels_toggleSignatures.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Toggle channel signatures -$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) +* Set the pinned message of a channel/supergroup -$MadelineProto->[channels->updateUsername](channels_updateUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Update the username of a supergroup/channel *** -

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +

* Block a user -$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) +* Delete a contact -$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) +* Delete multiple contacts -$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) +* Export contact as card -$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) +* Get blocked users -$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [int](../types/int.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) +* Get info about a certain contact -$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) +* Get online status of all users -$MadelineProto->[contacts->getTopPeers](contacts_getTopPeers.md)(\['correspondents' => [Bool](../types/Bool.md), 'bots_pm' => [Bool](../types/Bool.md), 'bots_inline' => [Bool](../types/Bool.md), 'phone_calls' => [Bool](../types/Bool.md), 'groups' => [Bool](../types/Bool.md), 'channels' => [Bool](../types/Bool.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'hash' => [int](../types/int.md), \]) === [$contacts\_TopPeers](../types/contacts_TopPeers.md) +* Get most used chats -$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) +* Import card as contact -$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) +* Add phone number as contact -$MadelineProto->[contacts->resetSaved](contacts_resetSaved.md)(\[\]) === [$Bool](../types/Bool.md) +* Reset saved contacts -$MadelineProto->[contacts->resetTopPeerRating](contacts_resetTopPeerRating.md)(\['category' => [TopPeerCategory](../types/TopPeerCategory.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Reset top peer rating for a certain category/peer -$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) +* You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) +* Search contacts -$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +* Unblock a user *** -

$MadelineProto->[help->getAppChangelog](help_getAppChangelog.md)(\['prev_app_version' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +

* Get the changelog of this app -$MadelineProto->[help->getAppUpdate](help_getAppUpdate.md)(\[\]) === [$help\_AppUpdate](../types/help_AppUpdate.md) +* Get info about app updates -$MadelineProto->[help->getCdnConfig](help_getCdnConfig.md)(\[\]) === [$CdnConfig](../types/CdnConfig.md) +* Get CDN configuration -$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) +* Get server configuration -$MadelineProto->[help->getInviteText](help_getInviteText.md)(\[\]) === [$help\_InviteText](../types/help_InviteText.md) +* Get invitation text -$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) +* Get nearest datacenter -$MadelineProto->[help->getRecentMeUrls](help_getRecentMeUrls.md)(\['referer' => [string](../types/string.md), \]) === [$help\_RecentMeUrls](../types/help_RecentMeUrls.md) +* Get recent t.me URLs -$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) +* Get info of support user -$MadelineProto->[help->getTermsOfService](help_getTermsOfService.md)(\[\]) === [$help\_TermsOfService](../types/help_TermsOfService.md) +* Get terms of service -$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) +* Log data for developer of this app -$MadelineProto->[help->setBotUpdatesStatus](help_setBotUpdatesStatus.md)(\['pending_updates_count' => [int](../types/int.md), 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Set the update status of webhook *** -

$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), 'system_lang_code' => [string](../types/string.md), 'lang_pack' => [string](../types/string.md), 'lang_code' => [string](../types/string.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Initializes connection and save information on the user's device and application. *** -

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invokes a query after successfull completion of one of the previous queries. *** -

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Result type returned by a current query. *** -

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invoke this method with layer X *** -

$MadelineProto->[invokeWithoutUpdates](invokeWithoutUpdates.md)(\['query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invoke with method without returning updates in the socket *** -

$MadelineProto->[langpack->getDifference](langpack_getDifference.md)(\['from_version' => [int](../types/int.md), \]) === [$LangPackDifference](../types/LangPackDifference.md) +

* Get language pack updates -$MadelineProto->[langpack->getLangPack](langpack_getLangPack.md)(\['lang_code' => [string](../types/string.md), \]) === [$LangPackDifference](../types/LangPackDifference.md) +* Get language pack -$MadelineProto->[langpack->getLanguages](langpack_getLanguages.md)(\[\]) === [$Vector\_of\_LangPackLanguage](../types/LangPackLanguage.md) +* Get available languages -$MadelineProto->[langpack->getStrings](langpack_getStrings.md)(\['lang_code' => [string](../types/string.md), 'keys' => \[[string](../types/string.md)\], \]) === [$Vector\_of\_LangPackString](../types/LangPackString.md) +* Get language pack strings *** -

$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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Add a user to a normal chat (use channels->inviteToChannel for supergroups) -$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md) +* Check if an invitation link is valid -$MadelineProto->[messages->clearRecentStickers](messages_clearRecentStickers.md)(\['attached' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Clear all recent stickers -$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Create a chat (not supergroup) -$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md) +* Delete a user from a chat (not supergroup) -$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['just_clear' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Delete chat history -$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['revoke' => [Bool](../types/Bool.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Delete messages -$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Edit admin permissions -$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) +* Edit the photo of a normal chat (not supergroup) -$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Edit the title of a normal chat (not supergroup) -$MadelineProto->[messages->editInlineBotMessage](messages_editInlineBotMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'stop_geo_live' => [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)\], 'geo_point' => [InputGeoPoint](../types/InputGeoPoint.md), \]) === [$Bool](../types/Bool.md) +* Edit a sent inline message -$MadelineProto->[messages->editMessage](messages_editMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'stop_geo_live' => [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)\], 'geo_point' => [InputGeoPoint](../types/InputGeoPoint.md), \]) === [$Updates](../types/Updates.md) +* Edit a message -$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) +* Export chat invite -$MadelineProto->[messages->faveSticker](messages_faveSticker.md)(\['id' => [InputDocument](../types/InputDocument.md), 'unfave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Add a sticker to favorites -$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'with_my_score' => [Bool](../types/Bool.md), 'grouped' => [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) +* Forward messages -$MadelineProto->[messages->getAllChats](messages_getAllChats.md)(\['except_ids' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get all chats (not supergroups or channels) -$MadelineProto->[messages->getAllDrafts](messages_getAllDrafts.md)(\[\]) === [$Updates](../types/Updates.md) +* Get all message drafts -$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) +* Get all stickerpacks -$MadelineProto->[messages->getArchivedStickers](messages_getArchivedStickers.md)(\['masks' => [Bool](../types/Bool.md), 'offset_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), \]) === [$messages\_ArchivedStickers](../types/messages_ArchivedStickers.md) +* Get all archived stickers -$MadelineProto->[messages->getAttachedStickers](messages_getAttachedStickers.md)(\['media' => [InputStickeredMedia](../types/InputStickeredMedia.md), \]) === [$Vector\_of\_StickerSetCovered](../types/StickerSetCovered.md) +* Get stickers attachable to images -$MadelineProto->[messages->getBotCallbackAnswer](messages_getBotCallbackAnswer.md)(\['game' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'msg_id' => [int](../types/int.md), 'data' => [bytes](../types/bytes.md), \]) === [$messages\_BotCallbackAnswer](../types/messages_BotCallbackAnswer.md) +* Get the callback answer of a bot (after clicking a button) -$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get info about chats -$MadelineProto->[messages->getCommonChats](messages_getCommonChats.md)(\['user_id' => [InputUser](../types/InputUser.md), 'max_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get chats in common with a user -$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) +* You cannot use this method directly, instead use $MadelineProto->get_dh_config(); -$MadelineProto->[messages->getDialogs](messages_getDialogs.md)(\['exclude_pinned' => [Bool](../types/Bool.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) +* Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html -$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) +* Get document by SHA256 hash -$MadelineProto->[messages->getFavedStickers](messages_getFavedStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_FavedStickers](../types/messages_FavedStickers.md) +* Get favorite stickers -$MadelineProto->[messages->getFeaturedStickers](messages_getFeaturedStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_FeaturedStickers](../types/messages_FeaturedStickers.md) +* Get featured stickers -$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) +* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[messages->getGameHighScores](messages_getGameHighScores.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_HighScores](../types/messages_HighScores.md) +* Get high scores of a game -$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), 'hash' => [int](../types/int.md), \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get previous messages of a group -$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) +* Call inline bot -$MadelineProto->[messages->getInlineGameHighScores](messages_getInlineGameHighScores.md)(\['id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_HighScores](../types/messages_HighScores.md) +* Get high scores of a game sent in an inline message -$MadelineProto->[messages->getMaskStickers](messages_getMaskStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) +* Get masks -$MadelineProto->[messages->getMessageEditData](messages_getMessageEditData.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$messages\_MessageEditData](../types/messages_MessageEditData.md) +* Check if about to edit a message or a media caption -$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[InputMessage](../types/InputMessage.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get messages -$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) +* Get and increase message views -$MadelineProto->[messages->getPeerDialogs](messages_getPeerDialogs.md)(\['peers' => \[[InputPeer](../types/InputPeer.md)\], \]) === [$messages\_PeerDialogs](../types/messages_PeerDialogs.md) +* Get dialog info of peers -$MadelineProto->[messages->getPeerSettings](messages_getPeerSettings.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$PeerSettings](../types/PeerSettings.md) +* Get the settings of apeer -$MadelineProto->[messages->getPinnedDialogs](messages_getPinnedDialogs.md)(\[\]) === [$messages\_PeerDialogs](../types/messages_PeerDialogs.md) +* Get pinned dialogs -$MadelineProto->[messages->getRecentLocations](messages_getRecentLocations.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get recent locations -$MadelineProto->[messages->getRecentStickers](messages_getRecentStickers.md)(\['attached' => [Bool](../types/Bool.md), 'hash' => [int](../types/int.md), \]) === [$messages\_RecentStickers](../types/messages_RecentStickers.md) +* Get recent stickers -$MadelineProto->[messages->getSavedGifs](messages_getSavedGifs.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_SavedGifs](../types/messages_SavedGifs.md) +* Get saved gifs -$MadelineProto->[messages->getStickerSet](messages_getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) +* Get a stickerset -$MadelineProto->[messages->getStickers](messages_getStickers.md)(\['emoticon' => [string](../types/string.md), 'hash' => [string](../types/string.md), \]) === [$messages\_Stickers](../types/messages_Stickers.md) +* Get stickers -$MadelineProto->[messages->getUnreadMentions](messages_getUnreadMentions.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset_id' => [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) +* Get unread mentions -$MadelineProto->[messages->getWebPage](messages_getWebPage.md)(\['url' => [string](../types/string.md), 'hash' => [int](../types/int.md), \]) === [$WebPage](../types/WebPage.md) +* Get webpage preview -$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$MessageMedia](../types/MessageMedia.md) +* Get webpage preview -$MadelineProto->[messages->hideReportSpam](messages_hideReportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Hide report spam popup -$MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Import chat invite -$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'archived' => [Bool](../types/Bool.md), \]) === [$messages\_StickerSetInstallResult](../types/messages_StickerSetInstallResult.md) +* Add a sticker set -$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) +* Convert chat to supergroup -$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Mark messages as read in secret chats -$MadelineProto->[messages->readFeaturedStickers](messages_readFeaturedStickers.md)(\['id' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) +* Mark new featured stickers as read -$MadelineProto->[messages->readHistory](messages_readHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Mark messages as read -$MadelineProto->[messages->readMentions](messages_readMentions.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Mark mentions as read -$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Mark message as read -$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_ReceivedNotifyMessage](../types/ReceivedNotifyMessage.md) +* Mark messages as read -$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) +* You cannot use this method directly -$MadelineProto->[messages->reorderPinnedDialogs](messages_reorderPinnedDialogs.md)(\['force' => [Bool](../types/Bool.md), 'order' => \[[InputPeer](../types/InputPeer.md)\], \]) === [$Bool](../types/Bool.md) +* Reorder pinned dialogs -$MadelineProto->[messages->reorderStickerSets](messages_reorderStickerSets.md)(\['masks' => [Bool](../types/Bool.md), 'order' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) +* Reorder sticker sets -$MadelineProto->[messages->reportEncryptedSpam](messages_reportEncryptedSpam.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), \]) === [$Bool](../types/Bool.md) +* Report for spam a secret chat -$MadelineProto->[messages->reportSpam](messages_reportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Report a peer for spam -$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$MadelineProto->[messages->saveDraft](messages_saveDraft.md)(\['no_webpage' => [Bool](../types/Bool.md), 'reply_to_msg_id' => [int](../types/int.md), 'peer' => [InputPeer](../types/InputPeer.md), 'message' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Bool](../types/Bool.md) +* Save a message draft -$MadelineProto->[messages->saveGif](messages_saveGif.md)(\['id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Save a GIF -$MadelineProto->[messages->saveRecentSticker](messages_saveRecentSticker.md)(\['attached' => [Bool](../types/Bool.md), 'id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Add a sticker to recent stickers -$MadelineProto->[messages->search](messages_search.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'q' => [string](../types/string.md), 'from_id' => [InputUser](../types/InputUser.md), 'filter' => [MessagesFilter](../types/MessagesFilter.md), 'min_date' => [int](../types/int.md), 'max_date' => [int](../types/int.md), 'offset_id' => [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) +* Search peers or messages -$MadelineProto->[messages->searchGifs](messages_searchGifs.md)(\['q' => [string](../types/string.md), 'offset' => [int](../types/int.md), \]) === [$messages\_FoundGifs](../types/messages_FoundGifs.md) +* Search gifs -$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) +* Global message search -$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send message to secret chat -$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) +* Send a file to a secret chat -$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send a service message to a secret chat -$MadelineProto->[messages->sendInlineBotResult](messages_sendInlineBotResult.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'query_id' => [long](../types/long.md), 'id' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Send a received bot result to the chat -$MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'media' => [InputMedia](../types/InputMedia.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Updates](../types/Updates.md) +* Send a media -$MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Updates](../types/Updates.md) +* Send a message -$MadelineProto->[messages->sendMultiMedia](messages_sendMultiMedia.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'multi_media' => \[[InputSingleMedia](../types/InputSingleMedia.md)\], \]) === [$Updates](../types/Updates.md) +* Send an album -$MadelineProto->[messages->sendScreenshotNotification](messages_sendScreenshotNotification.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) +* Send screenshot notification -$MadelineProto->[messages->setBotCallbackAnswer](messages_setBotCallbackAnswer.md)(\['alert' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'message' => [string](../types/string.md), 'url' => [string](../types/string.md), 'cache_time' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Bots only: set the callback answer (after a button was clicked) -$MadelineProto->[messages->setBotPrecheckoutResults](messages_setBotPrecheckoutResults.md)(\['success' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'error' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Bots only: set precheckout results -$MadelineProto->[messages->setBotShippingResults](messages_setBotShippingResults.md)(\['query_id' => [long](../types/long.md), 'error' => [string](../types/string.md), 'shipping_options' => \[[ShippingOption](../types/ShippingOption.md)\], \]) === [$Bool](../types/Bool.md) +* Bots only: set shipping results -$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Send typing notification to secret chat -$MadelineProto->[messages->setGameScore](messages_setGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'force' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) +* Set the game score -$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) +* Bots only: set the results of an inline query -$MadelineProto->[messages->setInlineGameScore](messages_setInlineGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'force' => [Bool](../types/Bool.md), 'id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Set the game score of an inline message -$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) +* Change typing status -$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) +* Start a bot -$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Enable all users are admins in normal groups (not supergroups) -$MadelineProto->[messages->toggleDialogPin](messages_toggleDialogPin.md)(\['pinned' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Pin or unpin dialog -$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) +* Remove a sticker set -$MadelineProto->[messages->uploadEncryptedFile](messages_uploadEncryptedFile.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'file' => [InputEncryptedFile](../types/InputEncryptedFile.md), \]) === [$EncryptedFile](../types/EncryptedFile.md) +* Upload a secret chat file without sending it to anyone -$MadelineProto->[messages->uploadMedia](messages_uploadMedia.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'media' => [InputMedia](../types/InputMedia.md), \]) === [$MessageMedia](../types/MessageMedia.md) +* Upload a file without sending it to anyone *** -

$MadelineProto->[payments->clearSavedInfo](payments_clearSavedInfo.md)(\['credentials' => [Bool](../types/Bool.md), 'info' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +

* Clear saved payments info -$MadelineProto->[payments->getPaymentForm](payments_getPaymentForm.md)(\['msg_id' => [int](../types/int.md), \]) === [$payments\_PaymentForm](../types/payments_PaymentForm.md) +* Get payment form -$MadelineProto->[payments->getPaymentReceipt](payments_getPaymentReceipt.md)(\['msg_id' => [int](../types/int.md), \]) === [$payments\_PaymentReceipt](../types/payments_PaymentReceipt.md) +* Get payment receipt -$MadelineProto->[payments->getSavedInfo](payments_getSavedInfo.md)(\[\]) === [$payments\_SavedInfo](../types/payments_SavedInfo.md) +* Get saved payments info -$MadelineProto->[payments->sendPaymentForm](payments_sendPaymentForm.md)(\['msg_id' => [int](../types/int.md), 'requested_info_id' => [string](../types/string.md), 'shipping_option_id' => [string](../types/string.md), 'credentials' => [InputPaymentCredentials](../types/InputPaymentCredentials.md), \]) === [$payments\_PaymentResult](../types/payments_PaymentResult.md) +* Bots only: send payment form -$MadelineProto->[payments->validateRequestedInfo](payments_validateRequestedInfo.md)(\['save' => [Bool](../types/Bool.md), 'msg_id' => [int](../types/int.md), 'info' => [PaymentRequestedInfo](../types/PaymentRequestedInfo.md), \]) === [$payments\_ValidatedRequestedInfo](../types/payments_ValidatedRequestedInfo.md) +* Validate requested payment info *** -

$MadelineProto->[phone->acceptCall](phone_acceptCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'g_b' => [bytes](../types/bytes.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) +

* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls -$MadelineProto->[phone->confirmCall](phone_confirmCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'g_a' => [bytes](../types/bytes.md), 'key_fingerprint' => [long](../types/long.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls -$MadelineProto->[phone->discardCall](phone_discardCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'duration' => [int](../types/int.md), 'reason' => [PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md), 'connection_id' => [long](../types/long.md), \]) === [$Updates](../types/Updates.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls -$MadelineProto->[phone->getCallConfig](phone_getCallConfig.md)(\[\]) === [$DataJSON](../types/DataJSON.md) +* Get call configuration -$MadelineProto->[phone->receivedCall](phone_receivedCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), \]) === [$Bool](../types/Bool.md) +* Notify server that you received a call (server will refuse all incoming calls until the current call is over) -$MadelineProto->[phone->requestCall](phone_requestCall.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a_hash' => [bytes](../types/bytes.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls -$MadelineProto->[phone->saveCallDebug](phone_saveCallDebug.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'debug' => [DataJSON](../types/DataJSON.md), \]) === [$Bool](../types/Bool.md) +* Save call debugging info -$MadelineProto->[phone->setCallRating](phone_setCallRating.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'rating' => [int](../types/int.md), 'comment' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Set phone call rating *** -

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) +

* Delete profile photos -$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) +* Get the profile photos of a user -$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) +* Update the profile photo (use photos->uploadProfilePhoto to upload the photo) -$MadelineProto->[photos->uploadProfilePhoto](photos_uploadProfilePhoto.md)(\['file' => [InputFile](../types/InputFile.md), \]) === [$photos\_Photo](../types/photos_Photo.md) +* Upload profile photo *** -

$MadelineProto->[stickers->addStickerToSet](stickers_addStickerToSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'sticker' => [InputStickerSetItem](../types/InputStickerSetItem.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) +

* Add sticker to stickerset -$MadelineProto->[stickers->changeStickerPosition](stickers_changeStickerPosition.md)(\['sticker' => [InputDocument](../types/InputDocument.md), 'position' => [int](../types/int.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) +* Change sticker position in photo -$MadelineProto->[stickers->createStickerSet](stickers_createStickerSet.md)(\['masks' => [Bool](../types/Bool.md), 'user_id' => [InputUser](../types/InputUser.md), 'title' => [string](../types/string.md), 'short_name' => [string](../types/string.md), 'stickers' => \[[InputStickerSetItem](../types/InputStickerSetItem.md)\], \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) +* Create stickerset -$MadelineProto->[stickers->removeStickerFromSet](stickers_removeStickerFromSet.md)(\['sticker' => [InputDocument](../types/InputDocument.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) +* Remove sticker from stickerset *** -

$MadelineProto->[updates->getChannelDifference](updates_getChannelDifference.md)(\['force' => [Bool](../types/Bool.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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates -$MadelineProto->[updates->getDifference](updates_getDifference.md)(\['pts' => [int](../types/int.md), 'pts_total_limit' => [int](../types/int.md), 'date' => [int](../types/int.md), 'qts' => [int](../types/int.md), \]) === [$updates\_Difference](../types/updates_Difference.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates -$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates *** -

$MadelineProto->[upload->getCdnFile](upload_getCdnFile.md)(\['file_token' => [bytes](../types/bytes.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$upload\_CdnFile](../types/upload_CdnFile.md) +

* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$MadelineProto->[upload->getCdnFileHashes](upload_getCdnFileHashes.md)(\['file_token' => [bytes](../types/bytes.md), 'offset' => [int](../types/int.md), \]) === [$Vector\_of\_CdnFileHash](../types/CdnFileHash.md) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$MadelineProto->[upload->getWebFile](upload_getWebFile.md)(\['location' => [InputWebFileLocation](../types/InputWebFileLocation.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$upload\_WebFile](../types/upload_WebFile.md) +* Download a file through telegram -$MadelineProto->[upload->reuploadCdnFile](upload_reuploadCdnFile.md)(\['file_token' => [bytes](../types/bytes.md), 'request_token' => [bytes](../types/bytes.md), \]) === [$Vector\_of\_CdnFileHash](../types/CdnFileHash.md) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info *** -

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) +

* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) +* Get info about users diff --git a/docs/API_docs/methods/initConnection.md b/docs/API_docs/methods/initConnection.md index d1d725e7..c66aa8b1 100644 --- a/docs/API_docs/methods/initConnection.md +++ b/docs/API_docs/methods/initConnection.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->initConnection(['api_id' => int, 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'system_lang_code' => 'string', 'lang_pack' => 'string', 'lang_code' => 'string', 'query' => !X, ]); diff --git a/docs/API_docs/methods/invokeAfterMsg.md b/docs/API_docs/methods/invokeAfterMsg.md index e33a2c93..8e953e78 100644 --- a/docs/API_docs/methods/invokeAfterMsg.md +++ b/docs/API_docs/methods/invokeAfterMsg.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); diff --git a/docs/API_docs/methods/invokeAfterMsgs.md b/docs/API_docs/methods/invokeAfterMsgs.md index 3150a613..bc8a83b7 100644 --- a/docs/API_docs/methods/invokeAfterMsgs.md +++ b/docs/API_docs/methods/invokeAfterMsgs.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); diff --git a/docs/API_docs/methods/invokeWithLayer.md b/docs/API_docs/methods/invokeWithLayer.md index 71d02abb..8a0c4e79 100644 --- a/docs/API_docs/methods/invokeWithLayer.md +++ b/docs/API_docs/methods/invokeWithLayer.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); diff --git a/docs/API_docs/methods/invokeWithoutUpdates.md b/docs/API_docs/methods/invokeWithoutUpdates.md index 2bab236a..2d90a776 100644 --- a/docs/API_docs/methods/invokeWithoutUpdates.md +++ b/docs/API_docs/methods/invokeWithoutUpdates.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeWithoutUpdates(['query' => !X, ]); diff --git a/docs/API_docs/methods/langpack_getDifference.md b/docs/API_docs/methods/langpack_getDifference.md index 0eed6475..0a6512e4 100644 --- a/docs/API_docs/methods/langpack_getDifference.md +++ b/docs/API_docs/methods/langpack_getDifference.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $LangPackDifference = $MadelineProto->langpack->getDifference(['from_version' => int, ]); diff --git a/docs/API_docs/methods/langpack_getLangPack.md b/docs/API_docs/methods/langpack_getLangPack.md index 4f26fd7a..45a9ca47 100644 --- a/docs/API_docs/methods/langpack_getLangPack.md +++ b/docs/API_docs/methods/langpack_getLangPack.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $LangPackDifference = $MadelineProto->langpack->getLangPack(['lang_code' => 'string', ]); diff --git a/docs/API_docs/methods/langpack_getLanguages.md b/docs/API_docs/methods/langpack_getLanguages.md index 6e8dab41..b573a5eb 100644 --- a/docs/API_docs/methods/langpack_getLanguages.md +++ b/docs/API_docs/methods/langpack_getLanguages.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_LangPackLanguage = $MadelineProto->langpack->getLanguages(); diff --git a/docs/API_docs/methods/langpack_getStrings.md b/docs/API_docs/methods/langpack_getStrings.md index 40612baf..841b02db 100644 --- a/docs/API_docs/methods/langpack_getStrings.md +++ b/docs/API_docs/methods/langpack_getStrings.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_LangPackString = $MadelineProto->langpack->getStrings(['lang_code' => 'string', 'keys' => ['string', 'string'], ]); diff --git a/docs/API_docs/methods/messages_addChatUser.md b/docs/API_docs/methods/messages_addChatUser.md index 3e4c5ccc..c6ef275f 100644 --- a/docs/API_docs/methods/messages_addChatUser.md +++ b/docs/API_docs/methods/messages_addChatUser.md @@ -46,12 +46,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); diff --git a/docs/API_docs/methods/messages_checkChatInvite.md b/docs/API_docs/methods/messages_checkChatInvite.md index de1d9ff4..cea63313 100644 --- a/docs/API_docs/methods/messages_checkChatInvite.md +++ b/docs/API_docs/methods/messages_checkChatInvite.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ChatInvite = $MadelineProto->messages->checkChatInvite(['hash' => 'string', ]); diff --git a/docs/API_docs/methods/messages_clearRecentStickers.md b/docs/API_docs/methods/messages_clearRecentStickers.md index 9c1b3754..1d6ec8c9 100644 --- a/docs/API_docs/methods/messages_clearRecentStickers.md +++ b/docs/API_docs/methods/messages_clearRecentStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->clearRecentStickers(['attached' => Bool, ]); diff --git a/docs/API_docs/methods/messages_createChat.md b/docs/API_docs/methods/messages_createChat.md index 68c0263a..966f58dc 100644 --- a/docs/API_docs/methods/messages_createChat.md +++ b/docs/API_docs/methods/messages_createChat.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); diff --git a/docs/API_docs/methods/messages_deleteChatUser.md b/docs/API_docs/methods/messages_deleteChatUser.md index 0a6830de..9a9227ba 100644 --- a/docs/API_docs/methods/messages_deleteChatUser.md +++ b/docs/API_docs/methods/messages_deleteChatUser.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); diff --git a/docs/API_docs/methods/messages_deleteHistory.md b/docs/API_docs/methods/messages_deleteHistory.md index e44433c1..45e9890d 100644 --- a/docs/API_docs/methods/messages_deleteHistory.md +++ b/docs/API_docs/methods/messages_deleteHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['just_clear' => Bool, 'peer' => InputPeer, 'max_id' => int, ]); diff --git a/docs/API_docs/methods/messages_deleteMessages.md b/docs/API_docs/methods/messages_deleteMessages.md index 0da41180..c8670444 100644 --- a/docs/API_docs/methods/messages_deleteMessages.md +++ b/docs/API_docs/methods/messages_deleteMessages.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['revoke' => Bool, 'id' => [int, int], ]); diff --git a/docs/API_docs/methods/messages_editChatAdmin.md b/docs/API_docs/methods/messages_editChatAdmin.md index 7916f8b1..5bba0559 100644 --- a/docs/API_docs/methods/messages_editChatAdmin.md +++ b/docs/API_docs/methods/messages_editChatAdmin.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]); diff --git a/docs/API_docs/methods/messages_editChatPhoto.md b/docs/API_docs/methods/messages_editChatPhoto.md index 122913c4..5827a5cc 100644 --- a/docs/API_docs/methods/messages_editChatPhoto.md +++ b/docs/API_docs/methods/messages_editChatPhoto.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); diff --git a/docs/API_docs/methods/messages_editChatTitle.md b/docs/API_docs/methods/messages_editChatTitle.md index 3a1e974b..2e69d790 100644 --- a/docs/API_docs/methods/messages_editChatTitle.md +++ b/docs/API_docs/methods/messages_editChatTitle.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); diff --git a/docs/API_docs/methods/messages_editInlineBotMessage.md b/docs/API_docs/methods/messages_editInlineBotMessage.md index 3c7fa055..21a55e36 100644 --- a/docs/API_docs/methods/messages_editInlineBotMessage.md +++ b/docs/API_docs/methods/messages_editInlineBotMessage.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->editInlineBotMessage(['no_webpage' => Bool, 'stop_geo_live' => Bool, 'id' => InputBotInlineMessageID, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', 'geo_point' => InputGeoPoint, ]); diff --git a/docs/API_docs/methods/messages_editMessage.md b/docs/API_docs/methods/messages_editMessage.md index f2533fc2..e3178d97 100644 --- a/docs/API_docs/methods/messages_editMessage.md +++ b/docs/API_docs/methods/messages_editMessage.md @@ -53,12 +53,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editMessage(['no_webpage' => Bool, 'stop_geo_live' => Bool, 'peer' => InputPeer, 'id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', 'geo_point' => InputGeoPoint, ]); diff --git a/docs/API_docs/methods/messages_exportChatInvite.md b/docs/API_docs/methods/messages_exportChatInvite.md index 98685d96..ec80e207 100644 --- a/docs/API_docs/methods/messages_exportChatInvite.md +++ b/docs/API_docs/methods/messages_exportChatInvite.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]); diff --git a/docs/API_docs/methods/messages_faveSticker.md b/docs/API_docs/methods/messages_faveSticker.md index c1ffb16a..ee1eb66a 100644 --- a/docs/API_docs/methods/messages_faveSticker.md +++ b/docs/API_docs/methods/messages_faveSticker.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->faveSticker(['id' => InputDocument, 'unfave' => Bool, ]); diff --git a/docs/API_docs/methods/messages_forwardMessages.md b/docs/API_docs/methods/messages_forwardMessages.md index 11dfd921..2dbcfe21 100644 --- a/docs/API_docs/methods/messages_forwardMessages.md +++ b/docs/API_docs/methods/messages_forwardMessages.md @@ -63,12 +63,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessages(['silent' => Bool, 'background' => Bool, 'with_my_score' => Bool, 'grouped' => Bool, 'from_peer' => InputPeer, 'id' => [int, int], 'to_peer' => InputPeer, ]); diff --git a/docs/API_docs/methods/messages_getAllChats.md b/docs/API_docs/methods/messages_getAllChats.md index 127456e4..513fc06f 100644 --- a/docs/API_docs/methods/messages_getAllChats.md +++ b/docs/API_docs/methods/messages_getAllChats.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getAllChats(['except_ids' => [int, int], ]); diff --git a/docs/API_docs/methods/messages_getAllDrafts.md b/docs/API_docs/methods/messages_getAllDrafts.md index 2c0ecd42..43a95bb2 100644 --- a/docs/API_docs/methods/messages_getAllDrafts.md +++ b/docs/API_docs/methods/messages_getAllDrafts.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->getAllDrafts(); diff --git a/docs/API_docs/methods/messages_getAllStickers.md b/docs/API_docs/methods/messages_getAllStickers.md index 16fdba6c..2ba37a91 100644 --- a/docs/API_docs/methods/messages_getAllStickers.md +++ b/docs/API_docs/methods/messages_getAllStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => int, ]); diff --git a/docs/API_docs/methods/messages_getArchivedStickers.md b/docs/API_docs/methods/messages_getArchivedStickers.md index f037e1bc..ee36b542 100644 --- a/docs/API_docs/methods/messages_getArchivedStickers.md +++ b/docs/API_docs/methods/messages_getArchivedStickers.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_ArchivedStickers = $MadelineProto->messages->getArchivedStickers(['masks' => Bool, 'offset_id' => long, 'limit' => int, ]); diff --git a/docs/API_docs/methods/messages_getAttachedStickers.md b/docs/API_docs/methods/messages_getAttachedStickers.md index 890680cd..9f8a66c5 100644 --- a/docs/API_docs/methods/messages_getAttachedStickers.md +++ b/docs/API_docs/methods/messages_getAttachedStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_StickerSetCovered = $MadelineProto->messages->getAttachedStickers(['media' => InputStickeredMedia, ]); diff --git a/docs/API_docs/methods/messages_getBotCallbackAnswer.md b/docs/API_docs/methods/messages_getBotCallbackAnswer.md index 09c283f5..0136227f 100644 --- a/docs/API_docs/methods/messages_getBotCallbackAnswer.md +++ b/docs/API_docs/methods/messages_getBotCallbackAnswer.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_BotCallbackAnswer = $MadelineProto->messages->getBotCallbackAnswer(['game' => Bool, 'peer' => InputPeer, 'msg_id' => int, 'data' => 'bytes', ]); diff --git a/docs/API_docs/methods/messages_getChats.md b/docs/API_docs/methods/messages_getChats.md index 290438a1..e84c7193 100644 --- a/docs/API_docs/methods/messages_getChats.md +++ b/docs/API_docs/methods/messages_getChats.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); diff --git a/docs/API_docs/methods/messages_getCommonChats.md b/docs/API_docs/methods/messages_getCommonChats.md index e6eca283..15ed6713 100644 --- a/docs/API_docs/methods/messages_getCommonChats.md +++ b/docs/API_docs/methods/messages_getCommonChats.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getCommonChats(['user_id' => InputUser, 'max_id' => int, 'limit' => int, ]); diff --git a/docs/API_docs/methods/messages_getDialogs.md b/docs/API_docs/methods/messages_getDialogs.md index e100228b..53f9ac62 100644 --- a/docs/API_docs/methods/messages_getDialogs.md +++ b/docs/API_docs/methods/messages_getDialogs.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['exclude_pinned' => Bool, 'offset_date' => int, 'offset_id' => int, 'offset_peer' => InputPeer, 'limit' => int, ]); diff --git a/docs/API_docs/methods/messages_getDocumentByHash.md b/docs/API_docs/methods/messages_getDocumentByHash.md index 1af5bad4..ad8e22be 100644 --- a/docs/API_docs/methods/messages_getDocumentByHash.md +++ b/docs/API_docs/methods/messages_getDocumentByHash.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Document = $MadelineProto->messages->getDocumentByHash(['sha256' => 'bytes', 'size' => int, 'mime_type' => 'string', ]); diff --git a/docs/API_docs/methods/messages_getFavedStickers.md b/docs/API_docs/methods/messages_getFavedStickers.md index 1be542be..8ef3e565 100644 --- a/docs/API_docs/methods/messages_getFavedStickers.md +++ b/docs/API_docs/methods/messages_getFavedStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_FavedStickers = $MadelineProto->messages->getFavedStickers(['hash' => int, ]); diff --git a/docs/API_docs/methods/messages_getFeaturedStickers.md b/docs/API_docs/methods/messages_getFeaturedStickers.md index 512f2e85..8e49e1ef 100644 --- a/docs/API_docs/methods/messages_getFeaturedStickers.md +++ b/docs/API_docs/methods/messages_getFeaturedStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_FeaturedStickers = $MadelineProto->messages->getFeaturedStickers(['hash' => int, ]); diff --git a/docs/API_docs/methods/messages_getGameHighScores.md b/docs/API_docs/methods/messages_getGameHighScores.md index 5137baea..113e4647 100644 --- a/docs/API_docs/methods/messages_getGameHighScores.md +++ b/docs/API_docs/methods/messages_getGameHighScores.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_HighScores = $MadelineProto->messages->getGameHighScores(['peer' => InputPeer, 'id' => int, 'user_id' => InputUser, ]); diff --git a/docs/API_docs/methods/messages_getHistory.md b/docs/API_docs/methods/messages_getHistory.md index 687ab6a8..585a2b52 100644 --- a/docs/API_docs/methods/messages_getHistory.md +++ b/docs/API_docs/methods/messages_getHistory.md @@ -48,12 +48,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getHistory(['peer' => InputPeer, 'offset_id' => int, 'offset_date' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, 'hash' => int, ]); diff --git a/docs/API_docs/methods/messages_getInlineBotResults.md b/docs/API_docs/methods/messages_getInlineBotResults.md index 8ab5bf78..4d86caf5 100644 --- a/docs/API_docs/methods/messages_getInlineBotResults.md +++ b/docs/API_docs/methods/messages_getInlineBotResults.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_BotResults = $MadelineProto->messages->getInlineBotResults(['bot' => InputUser, 'peer' => InputPeer, 'geo_point' => InputGeoPoint, 'query' => 'string', 'offset' => 'string', ]); diff --git a/docs/API_docs/methods/messages_getInlineGameHighScores.md b/docs/API_docs/methods/messages_getInlineGameHighScores.md index 790bfdd9..d5a80005 100644 --- a/docs/API_docs/methods/messages_getInlineGameHighScores.md +++ b/docs/API_docs/methods/messages_getInlineGameHighScores.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_HighScores = $MadelineProto->messages->getInlineGameHighScores(['id' => InputBotInlineMessageID, 'user_id' => InputUser, ]); diff --git a/docs/API_docs/methods/messages_getMaskStickers.md b/docs/API_docs/methods/messages_getMaskStickers.md index f4ed9411..70e2e6d4 100644 --- a/docs/API_docs/methods/messages_getMaskStickers.md +++ b/docs/API_docs/methods/messages_getMaskStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getMaskStickers(['hash' => int, ]); diff --git a/docs/API_docs/methods/messages_getMessageEditData.md b/docs/API_docs/methods/messages_getMessageEditData.md index 12e71bee..34f8534f 100644 --- a/docs/API_docs/methods/messages_getMessageEditData.md +++ b/docs/API_docs/methods/messages_getMessageEditData.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_MessageEditData = $MadelineProto->messages->getMessageEditData(['peer' => InputPeer, 'id' => int, ]); diff --git a/docs/API_docs/methods/messages_getMessages.md b/docs/API_docs/methods/messages_getMessages.md index 81744474..a41e73f7 100644 --- a/docs/API_docs/methods/messages_getMessages.md +++ b/docs/API_docs/methods/messages_getMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getMessages(['id' => [InputMessage, InputMessage], ]); diff --git a/docs/API_docs/methods/messages_getMessagesViews.md b/docs/API_docs/methods/messages_getMessagesViews.md index b8d78c85..934adc16 100644 --- a/docs/API_docs/methods/messages_getMessagesViews.md +++ b/docs/API_docs/methods/messages_getMessagesViews.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int, int], 'increment' => Bool, ]); diff --git a/docs/API_docs/methods/messages_getPeerDialogs.md b/docs/API_docs/methods/messages_getPeerDialogs.md index da82cfc6..063b6e7d 100644 --- a/docs/API_docs/methods/messages_getPeerDialogs.md +++ b/docs/API_docs/methods/messages_getPeerDialogs.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_PeerDialogs = $MadelineProto->messages->getPeerDialogs(['peers' => [InputPeer, InputPeer], ]); diff --git a/docs/API_docs/methods/messages_getPeerSettings.md b/docs/API_docs/methods/messages_getPeerSettings.md index f1f2a3bb..a18126f0 100644 --- a/docs/API_docs/methods/messages_getPeerSettings.md +++ b/docs/API_docs/methods/messages_getPeerSettings.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $PeerSettings = $MadelineProto->messages->getPeerSettings(['peer' => InputPeer, ]); diff --git a/docs/API_docs/methods/messages_getPinnedDialogs.md b/docs/API_docs/methods/messages_getPinnedDialogs.md index d12779fe..3f49ed75 100644 --- a/docs/API_docs/methods/messages_getPinnedDialogs.md +++ b/docs/API_docs/methods/messages_getPinnedDialogs.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_PeerDialogs = $MadelineProto->messages->getPinnedDialogs(); diff --git a/docs/API_docs/methods/messages_getRecentLocations.md b/docs/API_docs/methods/messages_getRecentLocations.md index 1f73943d..a1bad267 100644 --- a/docs/API_docs/methods/messages_getRecentLocations.md +++ b/docs/API_docs/methods/messages_getRecentLocations.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getRecentLocations(['peer' => InputPeer, 'limit' => int, ]); diff --git a/docs/API_docs/methods/messages_getRecentStickers.md b/docs/API_docs/methods/messages_getRecentStickers.md index d76a2160..0c5ae0c6 100644 --- a/docs/API_docs/methods/messages_getRecentStickers.md +++ b/docs/API_docs/methods/messages_getRecentStickers.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_RecentStickers = $MadelineProto->messages->getRecentStickers(['attached' => Bool, 'hash' => int, ]); diff --git a/docs/API_docs/methods/messages_getSavedGifs.md b/docs/API_docs/methods/messages_getSavedGifs.md index f61348ce..38585538 100644 --- a/docs/API_docs/methods/messages_getSavedGifs.md +++ b/docs/API_docs/methods/messages_getSavedGifs.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => int, ]); diff --git a/docs/API_docs/methods/messages_getStickerSet.md b/docs/API_docs/methods/messages_getStickerSet.md index c86807e4..c9140ab2 100644 --- a/docs/API_docs/methods/messages_getStickerSet.md +++ b/docs/API_docs/methods/messages_getStickerSet.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSet = $MadelineProto->messages->getStickerSet(['stickerset' => InputStickerSet, ]); diff --git a/docs/API_docs/methods/messages_getStickers.md b/docs/API_docs/methods/messages_getStickers.md index 4854696d..d2ea57cf 100644 --- a/docs/API_docs/methods/messages_getStickers.md +++ b/docs/API_docs/methods/messages_getStickers.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Stickers = $MadelineProto->messages->getStickers(['emoticon' => 'string', 'hash' => 'string', ]); diff --git a/docs/API_docs/methods/messages_getUnreadMentions.md b/docs/API_docs/methods/messages_getUnreadMentions.md index d318506c..b8d7b5a5 100644 --- a/docs/API_docs/methods/messages_getUnreadMentions.md +++ b/docs/API_docs/methods/messages_getUnreadMentions.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getUnreadMentions(['peer' => InputPeer, 'offset_id' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); diff --git a/docs/API_docs/methods/messages_getWebPage.md b/docs/API_docs/methods/messages_getWebPage.md index 129f8f06..19ca94b9 100644 --- a/docs/API_docs/methods/messages_getWebPage.md +++ b/docs/API_docs/methods/messages_getWebPage.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $WebPage = $MadelineProto->messages->getWebPage(['url' => 'string', 'hash' => int, ]); diff --git a/docs/API_docs/methods/messages_getWebPagePreview.md b/docs/API_docs/methods/messages_getWebPagePreview.md index 8b6bbe76..f661733b 100644 --- a/docs/API_docs/methods/messages_getWebPagePreview.md +++ b/docs/API_docs/methods/messages_getWebPagePreview.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $MessageMedia = $MadelineProto->messages->getWebPagePreview(['message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/docs/API_docs/methods/messages_hideReportSpam.md b/docs/API_docs/methods/messages_hideReportSpam.md index 856770cb..30523f2a 100644 --- a/docs/API_docs/methods/messages_hideReportSpam.md +++ b/docs/API_docs/methods/messages_hideReportSpam.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->hideReportSpam(['peer' => InputPeer, ]); diff --git a/docs/API_docs/methods/messages_importChatInvite.md b/docs/API_docs/methods/messages_importChatInvite.md index 0d6cd7c8..b1830a9b 100644 --- a/docs/API_docs/methods/messages_importChatInvite.md +++ b/docs/API_docs/methods/messages_importChatInvite.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->importChatInvite(['hash' => 'string', ]); diff --git a/docs/API_docs/methods/messages_installStickerSet.md b/docs/API_docs/methods/messages_installStickerSet.md index 9f6f098c..20f90b71 100644 --- a/docs/API_docs/methods/messages_installStickerSet.md +++ b/docs/API_docs/methods/messages_installStickerSet.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSetInstallResult = $MadelineProto->messages->installStickerSet(['stickerset' => InputStickerSet, 'archived' => Bool, ]); diff --git a/docs/API_docs/methods/messages_migrateChat.md b/docs/API_docs/methods/messages_migrateChat.md index db57adfa..22ccfcc1 100644 --- a/docs/API_docs/methods/messages_migrateChat.md +++ b/docs/API_docs/methods/messages_migrateChat.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]); diff --git a/docs/API_docs/methods/messages_readEncryptedHistory.md b/docs/API_docs/methods/messages_readEncryptedHistory.md index 39b110e3..2ba4cca4 100644 --- a/docs/API_docs/methods/messages_readEncryptedHistory.md +++ b/docs/API_docs/methods/messages_readEncryptedHistory.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); diff --git a/docs/API_docs/methods/messages_readFeaturedStickers.md b/docs/API_docs/methods/messages_readFeaturedStickers.md index 4035c76d..050371da 100644 --- a/docs/API_docs/methods/messages_readFeaturedStickers.md +++ b/docs/API_docs/methods/messages_readFeaturedStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->readFeaturedStickers(['id' => [long, long], ]); diff --git a/docs/API_docs/methods/messages_readHistory.md b/docs/API_docs/methods/messages_readHistory.md index 3de17061..26b608af 100644 --- a/docs/API_docs/methods/messages_readHistory.md +++ b/docs/API_docs/methods/messages_readHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, ]); diff --git a/docs/API_docs/methods/messages_readMentions.md b/docs/API_docs/methods/messages_readMentions.md index e30fbfaf..de7bc42b 100644 --- a/docs/API_docs/methods/messages_readMentions.md +++ b/docs/API_docs/methods/messages_readMentions.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->readMentions(['peer' => InputPeer, ]); diff --git a/docs/API_docs/methods/messages_readMessageContents.md b/docs/API_docs/methods/messages_readMessageContents.md index 9bb1bee8..a09cb63e 100644 --- a/docs/API_docs/methods/messages_readMessageContents.md +++ b/docs/API_docs/methods/messages_readMessageContents.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); diff --git a/docs/API_docs/methods/messages_receivedMessages.md b/docs/API_docs/methods/messages_receivedMessages.md index 7aab635f..b5e87992 100644 --- a/docs/API_docs/methods/messages_receivedMessages.md +++ b/docs/API_docs/methods/messages_receivedMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_ReceivedNotifyMessage = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); diff --git a/docs/API_docs/methods/messages_reorderPinnedDialogs.md b/docs/API_docs/methods/messages_reorderPinnedDialogs.md index 710caf10..94d3b2d4 100644 --- a/docs/API_docs/methods/messages_reorderPinnedDialogs.md +++ b/docs/API_docs/methods/messages_reorderPinnedDialogs.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reorderPinnedDialogs(['force' => Bool, 'order' => [InputPeer, InputPeer], ]); diff --git a/docs/API_docs/methods/messages_reorderStickerSets.md b/docs/API_docs/methods/messages_reorderStickerSets.md index ddc78dd0..66f5e682 100644 --- a/docs/API_docs/methods/messages_reorderStickerSets.md +++ b/docs/API_docs/methods/messages_reorderStickerSets.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reorderStickerSets(['masks' => Bool, 'order' => [long, long], ]); diff --git a/docs/API_docs/methods/messages_reportEncryptedSpam.md b/docs/API_docs/methods/messages_reportEncryptedSpam.md index 58b684d1..cd03c35c 100644 --- a/docs/API_docs/methods/messages_reportEncryptedSpam.md +++ b/docs/API_docs/methods/messages_reportEncryptedSpam.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reportEncryptedSpam(['peer' => InputEncryptedChat, ]); diff --git a/docs/API_docs/methods/messages_reportSpam.md b/docs/API_docs/methods/messages_reportSpam.md index 2e2b1177..09c1e63b 100644 --- a/docs/API_docs/methods/messages_reportSpam.md +++ b/docs/API_docs/methods/messages_reportSpam.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reportSpam(['peer' => InputPeer, ]); diff --git a/docs/API_docs/methods/messages_saveDraft.md b/docs/API_docs/methods/messages_saveDraft.md index bbeed707..59b33b03 100644 --- a/docs/API_docs/methods/messages_saveDraft.md +++ b/docs/API_docs/methods/messages_saveDraft.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->saveDraft(['no_webpage' => Bool, 'reply_to_msg_id' => int, 'peer' => InputPeer, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/docs/API_docs/methods/messages_saveGif.md b/docs/API_docs/methods/messages_saveGif.md index 6f608c4c..145039e7 100644 --- a/docs/API_docs/methods/messages_saveGif.md +++ b/docs/API_docs/methods/messages_saveGif.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->saveGif(['id' => InputDocument, 'unsave' => Bool, ]); diff --git a/docs/API_docs/methods/messages_saveRecentSticker.md b/docs/API_docs/methods/messages_saveRecentSticker.md index 81ad5d48..55757080 100644 --- a/docs/API_docs/methods/messages_saveRecentSticker.md +++ b/docs/API_docs/methods/messages_saveRecentSticker.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->saveRecentSticker(['attached' => Bool, 'id' => InputDocument, 'unsave' => Bool, ]); diff --git a/docs/API_docs/methods/messages_search.md b/docs/API_docs/methods/messages_search.md index 9cab5783..9253828a 100644 --- a/docs/API_docs/methods/messages_search.md +++ b/docs/API_docs/methods/messages_search.md @@ -52,12 +52,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->search(['peer' => InputPeer, 'q' => 'string', 'from_id' => InputUser, 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset_id' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); diff --git a/docs/API_docs/methods/messages_searchGifs.md b/docs/API_docs/methods/messages_searchGifs.md index 103ebfeb..9677bf24 100644 --- a/docs/API_docs/methods/messages_searchGifs.md +++ b/docs/API_docs/methods/messages_searchGifs.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_FoundGifs = $MadelineProto->messages->searchGifs(['q' => 'string', 'offset' => int, ]); diff --git a/docs/API_docs/methods/messages_searchGlobal.md b/docs/API_docs/methods/messages_searchGlobal.md index 0edd1e40..6ad4aec0 100644 --- a/docs/API_docs/methods/messages_searchGlobal.md +++ b/docs/API_docs/methods/messages_searchGlobal.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->searchGlobal(['q' => 'string', 'offset_date' => int, 'offset_peer' => InputPeer, 'offset_id' => int, 'limit' => int, ]); diff --git a/docs/API_docs/methods/messages_sendEncrypted.md b/docs/API_docs/methods/messages_sendEncrypted.md index d48f88d7..76305f32 100644 --- a/docs/API_docs/methods/messages_sendEncrypted.md +++ b/docs/API_docs/methods/messages_sendEncrypted.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/docs/API_docs/methods/messages_sendEncryptedFile.md b/docs/API_docs/methods/messages_sendEncryptedFile.md index 4fd0648e..8db2ead9 100644 --- a/docs/API_docs/methods/messages_sendEncryptedFile.md +++ b/docs/API_docs/methods/messages_sendEncryptedFile.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); diff --git a/docs/API_docs/methods/messages_sendEncryptedService.md b/docs/API_docs/methods/messages_sendEncryptedService.md index d66894bf..c7836c94 100644 --- a/docs/API_docs/methods/messages_sendEncryptedService.md +++ b/docs/API_docs/methods/messages_sendEncryptedService.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/docs/API_docs/methods/messages_sendInlineBotResult.md b/docs/API_docs/methods/messages_sendInlineBotResult.md index 386ac7e3..1a12322c 100644 --- a/docs/API_docs/methods/messages_sendInlineBotResult.md +++ b/docs/API_docs/methods/messages_sendInlineBotResult.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendInlineBotResult(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'query_id' => long, 'id' => 'string', ]); diff --git a/docs/API_docs/methods/messages_sendMedia.md b/docs/API_docs/methods/messages_sendMedia.md index 4c67daf0..19ce2e32 100644 --- a/docs/API_docs/methods/messages_sendMedia.md +++ b/docs/API_docs/methods/messages_sendMedia.md @@ -66,12 +66,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendMedia(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/docs/API_docs/methods/messages_sendMessage.md b/docs/API_docs/methods/messages_sendMessage.md index c4dc8894..83dc6c8b 100644 --- a/docs/API_docs/methods/messages_sendMessage.md +++ b/docs/API_docs/methods/messages_sendMessage.md @@ -65,12 +65,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendMessage(['no_webpage' => Bool, 'silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/docs/API_docs/methods/messages_sendMultiMedia.md b/docs/API_docs/methods/messages_sendMultiMedia.md index 08a7a8a1..4831ff6f 100644 --- a/docs/API_docs/methods/messages_sendMultiMedia.md +++ b/docs/API_docs/methods/messages_sendMultiMedia.md @@ -34,12 +34,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendMultiMedia(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'multi_media' => [InputSingleMedia, InputSingleMedia], ]); diff --git a/docs/API_docs/methods/messages_sendScreenshotNotification.md b/docs/API_docs/methods/messages_sendScreenshotNotification.md index f64f1682..e823fd52 100644 --- a/docs/API_docs/methods/messages_sendScreenshotNotification.md +++ b/docs/API_docs/methods/messages_sendScreenshotNotification.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendScreenshotNotification(['peer' => InputPeer, 'reply_to_msg_id' => int, ]); diff --git a/docs/API_docs/methods/messages_setBotCallbackAnswer.md b/docs/API_docs/methods/messages_setBotCallbackAnswer.md index e6dc6b09..e221ccca 100644 --- a/docs/API_docs/methods/messages_setBotCallbackAnswer.md +++ b/docs/API_docs/methods/messages_setBotCallbackAnswer.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setBotCallbackAnswer(['alert' => Bool, 'query_id' => long, 'message' => 'string', 'url' => 'string', 'cache_time' => int, ]); diff --git a/docs/API_docs/methods/messages_setBotPrecheckoutResults.md b/docs/API_docs/methods/messages_setBotPrecheckoutResults.md index 722bff81..7e3fc3c2 100644 --- a/docs/API_docs/methods/messages_setBotPrecheckoutResults.md +++ b/docs/API_docs/methods/messages_setBotPrecheckoutResults.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setBotPrecheckoutResults(['success' => Bool, 'query_id' => long, 'error' => 'string', ]); diff --git a/docs/API_docs/methods/messages_setBotShippingResults.md b/docs/API_docs/methods/messages_setBotShippingResults.md index d364a04d..3d9f0ae2 100644 --- a/docs/API_docs/methods/messages_setBotShippingResults.md +++ b/docs/API_docs/methods/messages_setBotShippingResults.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setBotShippingResults(['query_id' => long, 'error' => 'string', 'shipping_options' => [ShippingOption, ShippingOption], ]); diff --git a/docs/API_docs/methods/messages_setEncryptedTyping.md b/docs/API_docs/methods/messages_setEncryptedTyping.md index e9afe99c..4e7450eb 100644 --- a/docs/API_docs/methods/messages_setEncryptedTyping.md +++ b/docs/API_docs/methods/messages_setEncryptedTyping.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); diff --git a/docs/API_docs/methods/messages_setGameScore.md b/docs/API_docs/methods/messages_setGameScore.md index aa1f4f0c..90594a1d 100644 --- a/docs/API_docs/methods/messages_setGameScore.md +++ b/docs/API_docs/methods/messages_setGameScore.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->setGameScore(['edit_message' => Bool, 'force' => Bool, 'peer' => InputPeer, 'id' => int, 'user_id' => InputUser, 'score' => int, ]); diff --git a/docs/API_docs/methods/messages_setInlineBotResults.md b/docs/API_docs/methods/messages_setInlineBotResults.md index 79493009..d4ba6e65 100644 --- a/docs/API_docs/methods/messages_setInlineBotResults.md +++ b/docs/API_docs/methods/messages_setInlineBotResults.md @@ -52,12 +52,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setInlineBotResults(['gallery' => Bool, 'private' => Bool, 'query_id' => long, 'results' => [InputBotInlineResult, InputBotInlineResult], 'cache_time' => int, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, ]); diff --git a/docs/API_docs/methods/messages_setInlineGameScore.md b/docs/API_docs/methods/messages_setInlineGameScore.md index 385c8308..2b7326f3 100644 --- a/docs/API_docs/methods/messages_setInlineGameScore.md +++ b/docs/API_docs/methods/messages_setInlineGameScore.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setInlineGameScore(['edit_message' => Bool, 'force' => Bool, 'id' => InputBotInlineMessageID, 'user_id' => InputUser, 'score' => int, ]); diff --git a/docs/API_docs/methods/messages_setTyping.md b/docs/API_docs/methods/messages_setTyping.md index bea4982b..a2b94823 100644 --- a/docs/API_docs/methods/messages_setTyping.md +++ b/docs/API_docs/methods/messages_setTyping.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); diff --git a/docs/API_docs/methods/messages_startBot.md b/docs/API_docs/methods/messages_startBot.md index 94a4d86a..50d6f475 100644 --- a/docs/API_docs/methods/messages_startBot.md +++ b/docs/API_docs/methods/messages_startBot.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'peer' => InputPeer, 'start_param' => 'string', ]); diff --git a/docs/API_docs/methods/messages_toggleChatAdmins.md b/docs/API_docs/methods/messages_toggleChatAdmins.md index ab591fd9..349ea0e6 100644 --- a/docs/API_docs/methods/messages_toggleChatAdmins.md +++ b/docs/API_docs/methods/messages_toggleChatAdmins.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => InputPeer, 'enabled' => Bool, ]); diff --git a/docs/API_docs/methods/messages_toggleDialogPin.md b/docs/API_docs/methods/messages_toggleDialogPin.md index 2bd6a03d..14332533 100644 --- a/docs/API_docs/methods/messages_toggleDialogPin.md +++ b/docs/API_docs/methods/messages_toggleDialogPin.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->toggleDialogPin(['pinned' => Bool, 'peer' => InputPeer, ]); diff --git a/docs/API_docs/methods/messages_uninstallStickerSet.md b/docs/API_docs/methods/messages_uninstallStickerSet.md index 6d04e847..26b2fbb3 100644 --- a/docs/API_docs/methods/messages_uninstallStickerSet.md +++ b/docs/API_docs/methods/messages_uninstallStickerSet.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->uninstallStickerSet(['stickerset' => InputStickerSet, ]); diff --git a/docs/API_docs/methods/messages_uploadEncryptedFile.md b/docs/API_docs/methods/messages_uploadEncryptedFile.md index 0c9bed76..33069609 100644 --- a/docs/API_docs/methods/messages_uploadEncryptedFile.md +++ b/docs/API_docs/methods/messages_uploadEncryptedFile.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $EncryptedFile = $MadelineProto->messages->uploadEncryptedFile(['peer' => InputEncryptedChat, 'file' => InputEncryptedFile, ]); diff --git a/docs/API_docs/methods/messages_uploadMedia.md b/docs/API_docs/methods/messages_uploadMedia.md index c982a860..c09da017 100644 --- a/docs/API_docs/methods/messages_uploadMedia.md +++ b/docs/API_docs/methods/messages_uploadMedia.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $MessageMedia = $MadelineProto->messages->uploadMedia(['peer' => InputPeer, 'media' => InputMedia, ]); diff --git a/docs/API_docs/methods/payments_clearSavedInfo.md b/docs/API_docs/methods/payments_clearSavedInfo.md index 44050dde..8b83266f 100644 --- a/docs/API_docs/methods/payments_clearSavedInfo.md +++ b/docs/API_docs/methods/payments_clearSavedInfo.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->payments->clearSavedInfo(['credentials' => Bool, 'info' => Bool, ]); diff --git a/docs/API_docs/methods/payments_getPaymentForm.md b/docs/API_docs/methods/payments_getPaymentForm.md index 16a32d11..3bdb9ff2 100644 --- a/docs/API_docs/methods/payments_getPaymentForm.md +++ b/docs/API_docs/methods/payments_getPaymentForm.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $payments_PaymentForm = $MadelineProto->payments->getPaymentForm(['msg_id' => int, ]); diff --git a/docs/API_docs/methods/payments_getPaymentReceipt.md b/docs/API_docs/methods/payments_getPaymentReceipt.md index 857585f6..a881aeb7 100644 --- a/docs/API_docs/methods/payments_getPaymentReceipt.md +++ b/docs/API_docs/methods/payments_getPaymentReceipt.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $payments_PaymentReceipt = $MadelineProto->payments->getPaymentReceipt(['msg_id' => int, ]); diff --git a/docs/API_docs/methods/payments_getSavedInfo.md b/docs/API_docs/methods/payments_getSavedInfo.md index 04ac7374..ec1a071b 100644 --- a/docs/API_docs/methods/payments_getSavedInfo.md +++ b/docs/API_docs/methods/payments_getSavedInfo.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $payments_SavedInfo = $MadelineProto->payments->getSavedInfo(); diff --git a/docs/API_docs/methods/payments_sendPaymentForm.md b/docs/API_docs/methods/payments_sendPaymentForm.md index 0a9df99f..79758b56 100644 --- a/docs/API_docs/methods/payments_sendPaymentForm.md +++ b/docs/API_docs/methods/payments_sendPaymentForm.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $payments_PaymentResult = $MadelineProto->payments->sendPaymentForm(['msg_id' => int, 'requested_info_id' => 'string', 'shipping_option_id' => 'string', 'credentials' => InputPaymentCredentials, ]); diff --git a/docs/API_docs/methods/payments_validateRequestedInfo.md b/docs/API_docs/methods/payments_validateRequestedInfo.md index e36f0e42..d473f97c 100644 --- a/docs/API_docs/methods/payments_validateRequestedInfo.md +++ b/docs/API_docs/methods/payments_validateRequestedInfo.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $payments_ValidatedRequestedInfo = $MadelineProto->payments->validateRequestedInfo(['save' => Bool, 'msg_id' => int, 'info' => PaymentRequestedInfo, ]); diff --git a/docs/API_docs/methods/phone_getCallConfig.md b/docs/API_docs/methods/phone_getCallConfig.md index cac622a0..6969c1a3 100644 --- a/docs/API_docs/methods/phone_getCallConfig.md +++ b/docs/API_docs/methods/phone_getCallConfig.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $DataJSON = $MadelineProto->phone->getCallConfig(); diff --git a/docs/API_docs/methods/phone_receivedCall.md b/docs/API_docs/methods/phone_receivedCall.md index 27e3b462..17095622 100644 --- a/docs/API_docs/methods/phone_receivedCall.md +++ b/docs/API_docs/methods/phone_receivedCall.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->phone->receivedCall(['peer' => InputPhoneCall, ]); diff --git a/docs/API_docs/methods/phone_saveCallDebug.md b/docs/API_docs/methods/phone_saveCallDebug.md index 760ad9d5..0ff049a8 100644 --- a/docs/API_docs/methods/phone_saveCallDebug.md +++ b/docs/API_docs/methods/phone_saveCallDebug.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->phone->saveCallDebug(['peer' => InputPhoneCall, 'debug' => DataJSON, ]); diff --git a/docs/API_docs/methods/phone_setCallRating.md b/docs/API_docs/methods/phone_setCallRating.md index b32ba333..d0aab7e0 100644 --- a/docs/API_docs/methods/phone_setCallRating.md +++ b/docs/API_docs/methods/phone_setCallRating.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->phone->setCallRating(['peer' => InputPhoneCall, 'rating' => int, 'comment' => 'string', ]); diff --git a/docs/API_docs/methods/photos_deletePhotos.md b/docs/API_docs/methods/photos_deletePhotos.md index b9daca10..937aadd5 100644 --- a/docs/API_docs/methods/photos_deletePhotos.md +++ b/docs/API_docs/methods/photos_deletePhotos.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); diff --git a/docs/API_docs/methods/photos_getUserPhotos.md b/docs/API_docs/methods/photos_getUserPhotos.md index ea27a44f..d1c15e90 100644 --- a/docs/API_docs/methods/photos_getUserPhotos.md +++ b/docs/API_docs/methods/photos_getUserPhotos.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => long, 'limit' => int, ]); diff --git a/docs/API_docs/methods/photos_updateProfilePhoto.md b/docs/API_docs/methods/photos_updateProfilePhoto.md index 7f0a4c69..2ac8b60d 100644 --- a/docs/API_docs/methods/photos_updateProfilePhoto.md +++ b/docs/API_docs/methods/photos_updateProfilePhoto.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, ]); diff --git a/docs/API_docs/methods/photos_uploadProfilePhoto.md b/docs/API_docs/methods/photos_uploadProfilePhoto.md index efa08bb0..c7ec3063 100644 --- a/docs/API_docs/methods/photos_uploadProfilePhoto.md +++ b/docs/API_docs/methods/photos_uploadProfilePhoto.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, ]); diff --git a/docs/API_docs/methods/stickers_addStickerToSet.md b/docs/API_docs/methods/stickers_addStickerToSet.md index 1f90028c..7c4191d8 100644 --- a/docs/API_docs/methods/stickers_addStickerToSet.md +++ b/docs/API_docs/methods/stickers_addStickerToSet.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSet = $MadelineProto->stickers->addStickerToSet(['stickerset' => InputStickerSet, 'sticker' => InputStickerSetItem, ]); diff --git a/docs/API_docs/methods/stickers_changeStickerPosition.md b/docs/API_docs/methods/stickers_changeStickerPosition.md index 45552df9..d25129c5 100644 --- a/docs/API_docs/methods/stickers_changeStickerPosition.md +++ b/docs/API_docs/methods/stickers_changeStickerPosition.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSet = $MadelineProto->stickers->changeStickerPosition(['sticker' => InputDocument, 'position' => int, ]); diff --git a/docs/API_docs/methods/stickers_createStickerSet.md b/docs/API_docs/methods/stickers_createStickerSet.md index c4e85852..95775849 100644 --- a/docs/API_docs/methods/stickers_createStickerSet.md +++ b/docs/API_docs/methods/stickers_createStickerSet.md @@ -48,12 +48,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSet = $MadelineProto->stickers->createStickerSet(['masks' => Bool, 'user_id' => InputUser, 'title' => 'string', 'short_name' => 'string', 'stickers' => [InputStickerSetItem, InputStickerSetItem], ]); diff --git a/docs/API_docs/methods/stickers_removeStickerFromSet.md b/docs/API_docs/methods/stickers_removeStickerFromSet.md index 4ae30345..73ed78d5 100644 --- a/docs/API_docs/methods/stickers_removeStickerFromSet.md +++ b/docs/API_docs/methods/stickers_removeStickerFromSet.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSet = $MadelineProto->stickers->removeStickerFromSet(['sticker' => InputDocument, ]); diff --git a/docs/API_docs/methods/upload_getWebFile.md b/docs/API_docs/methods/upload_getWebFile.md index e864e4b7..11634633 100644 --- a/docs/API_docs/methods/upload_getWebFile.md +++ b/docs/API_docs/methods/upload_getWebFile.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $upload_WebFile = $MadelineProto->upload->getWebFile(['location' => InputWebFileLocation, 'offset' => int, 'limit' => int, ]); diff --git a/docs/API_docs/methods/users_getUsers.md b/docs/API_docs/methods/users_getUsers.md index ef1c7fd8..bce13ee6 100644 --- a/docs/API_docs/methods/users_getUsers.md +++ b/docs/API_docs/methods/users_getUsers.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); diff --git a/docs/MTProto_docs/index.md b/docs/MTProto_docs/index.md index 4e042a9d..b1867e84 100644 --- a/docs/MTProto_docs/index.md +++ b/docs/MTProto_docs/index.md @@ -4,11 +4,11 @@ description: MadelineProto API documentation (mtproto) --- # MadelineProto API documentation (mtproto) +[Back to main documentation](..) + + [Methods](methods/) [Constructors](constructors/) -[Types](types/) - - -[Back to main documentation](..) +[Types](types/) \ No newline at end of file diff --git a/docs/MTProto_docs/methods/api_index.md b/docs/MTProto_docs/methods/api_index.md new file mode 100644 index 00000000..d45f863a --- /dev/null +++ b/docs/MTProto_docs/methods/api_index.md @@ -0,0 +1,62 @@ +--- +title: Methods +description: List of methods +--- +# Methods +[Back to API documentation index](..) + +[Go to the new description-version method index](index.html) + +$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); + +$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); + +$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); + +$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); + +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); + + +$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); + +$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); + +$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); + +$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); + +$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); + + +$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); + +$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); + +*** +

$MadelineProto->[destroy_session](destroy_session.md)(\['session_id' => [long](../types/long.md), \]) === [$DestroySessionRes](../types/DestroySessionRes.md) + +*** +

$MadelineProto->[get_future_salts](get_future_salts.md)(\['num' => [int](../types/int.md), \]) === [$FutureSalts](../types/FutureSalts.md) + +*** +

$MadelineProto->[http_wait](http_wait.md)(\['max_delay' => [int](../types/int.md), 'wait_after' => [int](../types/int.md), 'max_wait' => [int](../types/int.md), \]) === [$HttpWait](../types/HttpWait.md) + +*** +

$MadelineProto->[ping](ping.md)(\['ping_id' => [long](../types/long.md), \]) === [$Pong](../types/Pong.md) + +$MadelineProto->[ping_delay_disconnect](ping_delay_disconnect.md)(\['ping_id' => [long](../types/long.md), 'disconnect_delay' => [int](../types/int.md), \]) === [$Pong](../types/Pong.md) + +*** +

$MadelineProto->[req_DH_params](req_DH_params.md)(\['nonce' => [int128](../types/int128.md), 'server_nonce' => [int128](../types/int128.md), 'p' => [bytes](../types/bytes.md), 'q' => [bytes](../types/bytes.md), 'public_key_fingerprint' => [long](../types/long.md), 'encrypted_data' => [bytes](../types/bytes.md), \]) === [$Server\_DH\_Params](../types/Server_DH_Params.md) + +$MadelineProto->[req_pq](req_pq.md)(\['nonce' => [int128](../types/int128.md), \]) === [$ResPQ](../types/ResPQ.md) + +$MadelineProto->[req_pq_multi](req_pq_multi.md)(\['nonce' => [int128](../types/int128.md), \]) === [$ResPQ](../types/ResPQ.md) + +*** +

$MadelineProto->[rpc_drop_answer](rpc_drop_answer.md)(\['req_msg_id' => [long](../types/long.md), \]) === [$RpcDropAnswer](../types/RpcDropAnswer.md) + +*** +

$MadelineProto->[set_client_DH_params](set_client_DH_params.md)(\['nonce' => [int128](../types/int128.md), 'server_nonce' => [int128](../types/int128.md), 'encrypted_data' => [bytes](../types/bytes.md), \]) === [$Set\_client\_DH\_params\_answer](../types/Set_client_DH_params_answer.md) + diff --git a/docs/MTProto_docs/methods/destroy_session.md b/docs/MTProto_docs/methods/destroy_session.md index 326e8d8e..b74fbd11 100644 --- a/docs/MTProto_docs/methods/destroy_session.md +++ b/docs/MTProto_docs/methods/destroy_session.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $DestroySessionRes = $MadelineProto->destroy_session(['session_id' => long, ]); diff --git a/docs/MTProto_docs/methods/get_future_salts.md b/docs/MTProto_docs/methods/get_future_salts.md index 9d4be95e..e8451015 100644 --- a/docs/MTProto_docs/methods/get_future_salts.md +++ b/docs/MTProto_docs/methods/get_future_salts.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $FutureSalts = $MadelineProto->get_future_salts(['num' => int, ]); diff --git a/docs/MTProto_docs/methods/http_wait.md b/docs/MTProto_docs/methods/http_wait.md index b5dd94b0..9b5ccad3 100644 --- a/docs/MTProto_docs/methods/http_wait.md +++ b/docs/MTProto_docs/methods/http_wait.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $HttpWait = $MadelineProto->http_wait(['max_delay' => int, 'wait_after' => int, 'max_wait' => int, ]); diff --git a/docs/MTProto_docs/methods/index.md b/docs/MTProto_docs/methods/index.md index 215917a4..eab11852 100644 --- a/docs/MTProto_docs/methods/index.md +++ b/docs/MTProto_docs/methods/index.md @@ -1,61 +1,56 @@ --- title: Methods -description: List of methods +description: What do you want to do? --- -# Methods -[Back to API documentation index](..) +# What do you want to do? +[Go back to API documentation index](..) +[Go to the old code-version method index](api_index.html) -$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); +* [Logout](https://docs.madelineproto.xyz/logout.html) -$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); +* [Login](https://docs.madelineproto.xyz/docs/LOGIN.html) -$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); +* [Get all chats, broadcast a message to all chats](https://docs.madelineproto.xyz/docs/DIALOGS.html) -$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); +* [Get the full participant list of a channel/group/supergroup](https://docs.madelineproto.xyz/get_pwr_chat.html) -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); +* [Get full info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_full_info.html) +* [Get info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_info.html) -$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); +* [Get info about the currently logged-in user](https://docs.madelineproto.xyz/get_self.html) -$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); +* [Upload or download files up to 1.5 GB](https://docs.madelineproto.xyz/docs/FILES.html) -$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); +* [Make a phone call and play a song](https://docs.madelineproto.xyz/docs/CALLS.html) -$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); - -$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); - - -$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); - -$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); +* [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) *** -

$MadelineProto->[destroy_session](destroy_session.md)(\['session_id' => [long](../types/long.md), \]) === [$DestroySessionRes](../types/DestroySessionRes.md) +

* Destroy the current MTProto session *** -

$MadelineProto->[get_future_salts](get_future_salts.md)(\['num' => [int](../types/int.md), \]) === [$FutureSalts](../types/FutureSalts.md) +

* Get future salts *** -

$MadelineProto->[http_wait](http_wait.md)(\['max_delay' => [int](../types/int.md), 'wait_after' => [int](../types/int.md), 'max_wait' => [int](../types/int.md), \]) === [$HttpWait](../types/HttpWait.md) +

* Makes the server send messages waiting in the buffer *** -

$MadelineProto->[ping](ping.md)(\['ping_id' => [long](../types/long.md), \]) === [$Pong](../types/Pong.md) +

* pings the server -$MadelineProto->[ping_delay_disconnect](ping_delay_disconnect.md)(\['ping_id' => [long](../types/long.md), 'disconnect_delay' => [int](../types/int.md), \]) === [$Pong](../types/Pong.md) +* Pings the server and causes disconection if the same method is not called within ping_disconnect_delay *** -

$MadelineProto->[req_DH_params](req_DH_params.md)(\['nonce' => [int128](../types/int128.md), 'server_nonce' => [int128](../types/int128.md), 'p' => [bytes](../types/bytes.md), 'q' => [bytes](../types/bytes.md), 'public_key_fingerprint' => [long](../types/long.md), 'encrypted_data' => [bytes](../types/bytes.md), \]) === [$Server\_DH\_Params](../types/Server_DH_Params.md) +

* Requests Diffie-hellman parameters for key exchange -$MadelineProto->[req_pq](req_pq.md)(\['nonce' => [int128](../types/int128.md), \]) === [$ResPQ](../types/ResPQ.md) +* Requests PQ for factorization -$MadelineProto->[req_pq_multi](req_pq_multi.md)(\['nonce' => [int128](../types/int128.md), \]) === [$ResPQ](../types/ResPQ.md) +* Requests PQ for factorization (new version) *** -

$MadelineProto->[rpc_drop_answer](rpc_drop_answer.md)(\['req_msg_id' => [long](../types/long.md), \]) === [$RpcDropAnswer](../types/RpcDropAnswer.md) +

* Do not send answer to provided request *** -

$MadelineProto->[set_client_DH_params](set_client_DH_params.md)(\['nonce' => [int128](../types/int128.md), 'server_nonce' => [int128](../types/int128.md), 'encrypted_data' => [bytes](../types/bytes.md), \]) === [$Set\_client\_DH\_params\_answer](../types/Set_client_DH_params_answer.md) +

* Sets client diffie-hellman parameters diff --git a/docs/MTProto_docs/methods/ping.md b/docs/MTProto_docs/methods/ping.md index 4ad52852..f987ae89 100644 --- a/docs/MTProto_docs/methods/ping.md +++ b/docs/MTProto_docs/methods/ping.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Pong = $MadelineProto->ping(['ping_id' => long, ]); diff --git a/docs/MTProto_docs/methods/ping_delay_disconnect.md b/docs/MTProto_docs/methods/ping_delay_disconnect.md index b0951488..5b1c115d 100644 --- a/docs/MTProto_docs/methods/ping_delay_disconnect.md +++ b/docs/MTProto_docs/methods/ping_delay_disconnect.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Pong = $MadelineProto->ping_delay_disconnect(['ping_id' => long, 'disconnect_delay' => int, ]); diff --git a/docs/MTProto_docs/methods/req_DH_params.md b/docs/MTProto_docs/methods/req_DH_params.md index fde356a0..62595b76 100644 --- a/docs/MTProto_docs/methods/req_DH_params.md +++ b/docs/MTProto_docs/methods/req_DH_params.md @@ -34,12 +34,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Server_DH_Params = $MadelineProto->req_DH_params(['nonce' => int128, 'server_nonce' => int128, 'p' => 'bytes', 'q' => 'bytes', 'public_key_fingerprint' => long, 'encrypted_data' => 'bytes', ]); diff --git a/docs/MTProto_docs/methods/req_pq.md b/docs/MTProto_docs/methods/req_pq.md index 72a31c0b..0873d9a2 100644 --- a/docs/MTProto_docs/methods/req_pq.md +++ b/docs/MTProto_docs/methods/req_pq.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ResPQ = $MadelineProto->req_pq(['nonce' => int128, ]); diff --git a/docs/MTProto_docs/methods/req_pq_multi.md b/docs/MTProto_docs/methods/req_pq_multi.md index bcd915bb..39ccf270 100644 --- a/docs/MTProto_docs/methods/req_pq_multi.md +++ b/docs/MTProto_docs/methods/req_pq_multi.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ResPQ = $MadelineProto->req_pq_multi(['nonce' => int128, ]); diff --git a/docs/MTProto_docs/methods/rpc_drop_answer.md b/docs/MTProto_docs/methods/rpc_drop_answer.md index 381d7ee4..27f98bca 100644 --- a/docs/MTProto_docs/methods/rpc_drop_answer.md +++ b/docs/MTProto_docs/methods/rpc_drop_answer.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $RpcDropAnswer = $MadelineProto->rpc_drop_answer(['req_msg_id' => long, ]); diff --git a/docs/MTProto_docs/methods/set_client_DH_params.md b/docs/MTProto_docs/methods/set_client_DH_params.md index 45d536ab..25d89872 100644 --- a/docs/MTProto_docs/methods/set_client_DH_params.md +++ b/docs/MTProto_docs/methods/set_client_DH_params.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Set_client_DH_params_answer = $MadelineProto->set_client_DH_params(['nonce' => int128, 'server_nonce' => int128, 'encrypted_data' => 'bytes', ]); diff --git a/docs/TD_docs/index.md b/docs/TD_docs/index.md index 5667d2dc..25812605 100644 --- a/docs/TD_docs/index.md +++ b/docs/TD_docs/index.md @@ -4,11 +4,11 @@ description: MadelineProto API documentation (td-lib) --- # MadelineProto API documentation (td-lib) +[Back to main documentation](..) + + [Methods](methods/) [Constructors](constructors/) -[Types](types/) - - -[Back to main documentation](..) +[Types](types/) \ No newline at end of file diff --git a/docs/TD_docs/methods/api_index.md b/docs/TD_docs/methods/api_index.md new file mode 100644 index 00000000..614b2091 --- /dev/null +++ b/docs/TD_docs/methods/api_index.md @@ -0,0 +1,725 @@ +--- +title: Methods +description: List of methods +--- +# Methods +[Back to API documentation index](..) + +[Go to the new description-version method index](index.html) + +$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); + +$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); + +$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); + +$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); + +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); + + +$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); + +$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); + +$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); + +$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); + +$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); + + +$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); + +$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); + +*** +

$MadelineProto->[acceptCall](acceptCall.md)(\['call_id' => [int](../types/int.md), 'protocol' => [callProtocol](../constructors/callProtocol.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[addChatMember](addChatMember.md)(\['chat_id' => [int53](../types/int53.md), 'user_id' => [int](../types/int.md), 'forward_limit' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[addChatMembers](addChatMembers.md)(\['chat_id' => [int53](../types/int53.md), 'user_ids' => \[[int](../types/int.md)\], \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[addFavoriteSticker](addFavoriteSticker.md)(\['sticker' => [InputFile](../types/InputFile.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[addNetworkStatistics](addNetworkStatistics.md)(\['entry' => [NetworkStatisticsEntry](../types/NetworkStatisticsEntry.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[addRecentSticker](addRecentSticker.md)(\['is_attached' => [Bool](../types/Bool.md), 'sticker' => [InputFile](../types/InputFile.md), \]) === [$Stickers](../types/Stickers.md) + +*** +

$MadelineProto->[addRecentlyFoundChat](addRecentlyFoundChat.md)(\['chat_id' => [int53](../types/int53.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[addSavedAnimation](addSavedAnimation.md)(\['animation' => [InputFile](../types/InputFile.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[addStickerToSet](addStickerToSet.md)(\['user_id' => [int](../types/int.md), 'name' => [string](../types/string.md), 'sticker' => [inputSticker](../constructors/inputSticker.md), \]) === [$StickerSet](../types/StickerSet.md) + +*** +

$MadelineProto->[answerCallbackQuery](answerCallbackQuery.md)(\['callback_query_id' => [int64](../constructors/int64.md), 'text' => [string](../types/string.md), 'show_alert' => [Bool](../types/Bool.md), 'url' => [string](../types/string.md), 'cache_time' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[answerCustomQuery](answerCustomQuery.md)(\['custom_query_id' => [int64](../constructors/int64.md), 'data' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[answerInlineQuery](answerInlineQuery.md)(\['inline_query_id' => [int64](../constructors/int64.md), 'is_personal' => [Bool](../types/Bool.md), 'results' => \[[InputInlineQueryResult](../types/InputInlineQueryResult.md)\], 'cache_time' => [int](../types/int.md), 'next_offset' => [string](../types/string.md), 'switch_pm_text' => [string](../types/string.md), 'switch_pm_parameter' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[answerPreCheckoutQuery](answerPreCheckoutQuery.md)(\['pre_checkout_query_id' => [int64](../constructors/int64.md), 'error_message' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[answerShippingQuery](answerShippingQuery.md)(\['shipping_query_id' => [int64](../constructors/int64.md), 'shipping_options' => \[[shippingOption](../constructors/shippingOption.md)\], 'error_message' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[blockUser](blockUser.md)(\['user_id' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[cancelDownloadFile](cancelDownloadFile.md)(\['file_id' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[cancelUploadFile](cancelUploadFile.md)(\['file_id' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[changeAbout](changeAbout.md)(\['about' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[changeAccountTtl](changeAccountTtl.md)(\['ttl' => [accountTtl](../constructors/accountTtl.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[changeChannelDescription](changeChannelDescription.md)(\['channel_id' => [int](../types/int.md), 'description' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[changeChannelUsername](changeChannelUsername.md)(\['channel_id' => [int](../types/int.md), 'username' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[changeChatDraftMessage](changeChatDraftMessage.md)(\['chat_id' => [int53](../types/int53.md), 'draft_message' => [draftMessage](../constructors/draftMessage.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[changeChatMemberStatus](changeChatMemberStatus.md)(\['chat_id' => [int53](../types/int53.md), 'user_id' => [int](../types/int.md), 'status' => [ChatMemberStatus](../types/ChatMemberStatus.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[changeChatPhoto](changeChatPhoto.md)(\['chat_id' => [int53](../types/int53.md), 'photo' => [InputFile](../types/InputFile.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[changeChatReportSpamState](changeChatReportSpamState.md)(\['chat_id' => [int53](../types/int53.md), 'is_spam_chat' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[changeChatTitle](changeChatTitle.md)(\['chat_id' => [int53](../types/int53.md), 'title' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[changeName](changeName.md)(\['first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[changePhoneNumber](changePhoneNumber.md)(\['phone_number' => [string](../types/string.md), 'allow_flash_call' => [Bool](../types/Bool.md), 'is_current_phone_number' => [Bool](../types/Bool.md), \]) === [$AuthState](../types/AuthState.md) + +*** +

$MadelineProto->[changeStickerSet](changeStickerSet.md)(\['set_id' => [int64](../constructors/int64.md), 'is_installed' => [Bool](../types/Bool.md), 'is_archived' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[changeUsername](changeUsername.md)(\['username' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[checkAuthBotToken](checkAuthBotToken.md)(\['token' => [string](../types/string.md), \]) === [$AuthState](../types/AuthState.md) + +*** +

$MadelineProto->[checkAuthCode](checkAuthCode.md)(\['code' => [string](../types/string.md), 'first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), \]) === [$AuthState](../types/AuthState.md) + +*** +

$MadelineProto->[checkAuthPassword](checkAuthPassword.md)(\['password' => [string](../types/string.md), \]) === [$AuthState](../types/AuthState.md) + +*** +

$MadelineProto->[checkChangePhoneNumberCode](checkChangePhoneNumberCode.md)(\['code' => [string](../types/string.md), \]) === [$AuthState](../types/AuthState.md) + +*** +

$MadelineProto->[checkChatInviteLink](checkChatInviteLink.md)(\['invite_link' => [string](../types/string.md), \]) === [$ChatInviteLinkInfo](../types/ChatInviteLinkInfo.md) + +*** +

$MadelineProto->[clearRecentStickers](clearRecentStickers.md)(\['is_attached' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[closeChat](closeChat.md)(\['chat_id' => [int53](../types/int53.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[closeSecretChat](closeSecretChat.md)(\['secret_chat_id' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[createCall](createCall.md)(\['user_id' => [int](../types/int.md), 'protocol' => [callProtocol](../constructors/callProtocol.md), \]) === [$CallId](../types/CallId.md) + +*** +

$MadelineProto->[createChannelChat](createChannelChat.md)(\['channel_id' => [int](../types/int.md), \]) === [$Chat](../types/Chat.md) + +*** +

$MadelineProto->[createGroupChat](createGroupChat.md)(\['group_id' => [int](../types/int.md), \]) === [$Chat](../types/Chat.md) + +*** +

$MadelineProto->[createNewChannelChat](createNewChannelChat.md)(\['title' => [string](../types/string.md), 'is_supergroup' => [Bool](../types/Bool.md), 'description' => [string](../types/string.md), \]) === [$Chat](../types/Chat.md) + +*** +

$MadelineProto->[createNewGroupChat](createNewGroupChat.md)(\['user_ids' => \[[int](../types/int.md)\], 'title' => [string](../types/string.md), \]) === [$Chat](../types/Chat.md) + +*** +

$MadelineProto->[createNewSecretChat](createNewSecretChat.md)(\['user_id' => [int](../types/int.md), \]) === [$Chat](../types/Chat.md) + +*** +

$MadelineProto->[createNewStickerSet](createNewStickerSet.md)(\['user_id' => [int](../types/int.md), 'title' => [string](../types/string.md), 'name' => [string](../types/string.md), 'is_masks' => [Bool](../types/Bool.md), 'stickers' => \[[inputSticker](../constructors/inputSticker.md)\], \]) === [$StickerSet](../types/StickerSet.md) + +*** +

$MadelineProto->[createPrivateChat](createPrivateChat.md)(\['user_id' => [int](../types/int.md), \]) === [$Chat](../types/Chat.md) + +*** +

$MadelineProto->[createSecretChat](createSecretChat.md)(\['secret_chat_id' => [int](../types/int.md), \]) === [$Chat](../types/Chat.md) + +*** +

$MadelineProto->[createTemporaryPassword](createTemporaryPassword.md)(\['password' => [string](../types/string.md), 'valid_for' => [int](../types/int.md), \]) === [$TemporaryPasswordState](../types/TemporaryPasswordState.md) + +*** +

$MadelineProto->[debugCall](debugCall.md)(\['call_id' => [int](../types/int.md), 'debug' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[deleteAccount](deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[deleteChannel](deleteChannel.md)(\['channel_id' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[deleteChatHistory](deleteChatHistory.md)(\['chat_id' => [int53](../types/int53.md), 'remove_from_chat_list' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[deleteChatReplyMarkup](deleteChatReplyMarkup.md)(\['chat_id' => [int53](../types/int53.md), 'message_id' => [int53](../types/int53.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[deleteContacts](deleteContacts.md)(\['user_ids' => \[[int](../types/int.md)\], \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[deleteFavoriteSticker](deleteFavoriteSticker.md)(\['sticker' => [InputFile](../types/InputFile.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[deleteFile](deleteFile.md)(\['file_id' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[deleteImportedContacts](deleteImportedContacts.md)(\[\]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[deleteMessages](deleteMessages.md)(\['chat_id' => [int53](../types/int53.md), 'message_ids' => \[[int53](../types/int53.md)\], 'revoke' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[deleteMessagesFromUser](deleteMessagesFromUser.md)(\['chat_id' => [int53](../types/int53.md), 'user_id' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[deleteProfilePhoto](deleteProfilePhoto.md)(\['profile_photo_id' => [int64](../constructors/int64.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[deleteRecentHashtag](deleteRecentHashtag.md)(\['hashtag' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[deleteRecentSticker](deleteRecentSticker.md)(\['is_attached' => [Bool](../types/Bool.md), 'sticker' => [InputFile](../types/InputFile.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[deleteRecentlyFoundChat](deleteRecentlyFoundChat.md)(\['chat_id' => [int53](../types/int53.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[deleteRecentlyFoundChats](deleteRecentlyFoundChats.md)(\[\]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[deleteSavedAnimation](deleteSavedAnimation.md)(\['animation' => [InputFile](../types/InputFile.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[deleteSavedCredentials](deleteSavedCredentials.md)(\[\]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[deleteSavedOrderInfo](deleteSavedOrderInfo.md)(\[\]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[deleteStickerFromSet](deleteStickerFromSet.md)(\['sticker' => [InputFile](../types/InputFile.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[deleteTopChat](deleteTopChat.md)(\['category' => [TopChatCategory](../types/TopChatCategory.md), 'chat_id' => [int53](../types/int53.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[discardCall](discardCall.md)(\['call_id' => [int](../types/int.md), 'is_disconnected' => [Bool](../types/Bool.md), 'duration' => [int](../types/int.md), 'connection_id' => [int64](../constructors/int64.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[downloadFile](downloadFile.md)(\['file_id' => [int](../types/int.md), 'priority' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[editInlineMessageCaption](editInlineMessageCaption.md)(\['inline_message_id' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'caption' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[editInlineMessageReplyMarkup](editInlineMessageReplyMarkup.md)(\['inline_message_id' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[editInlineMessageText](editInlineMessageText.md)(\['inline_message_id' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'input_message_content' => [InputMessageContent](../types/InputMessageContent.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[editMessageCaption](editMessageCaption.md)(\['chat_id' => [int53](../types/int53.md), 'message_id' => [int53](../types/int53.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'caption' => [string](../types/string.md), \]) === [$Message](../types/Message.md) + +*** +

$MadelineProto->[editMessageReplyMarkup](editMessageReplyMarkup.md)(\['chat_id' => [int53](../types/int53.md), 'message_id' => [int53](../types/int53.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \]) === [$Message](../types/Message.md) + +*** +

$MadelineProto->[editMessageText](editMessageText.md)(\['chat_id' => [int53](../types/int53.md), 'message_id' => [int53](../types/int53.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'input_message_content' => [InputMessageContent](../types/InputMessageContent.md), \]) === [$Message](../types/Message.md) + +*** +

$MadelineProto->[exportChatInviteLink](exportChatInviteLink.md)(\['chat_id' => [int53](../types/int53.md), \]) === [$ChatInviteLink](../types/ChatInviteLink.md) + +*** +

$MadelineProto->[finishFileGeneration](finishFileGeneration.md)(\['generation_id' => [int64](../constructors/int64.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[forwardMessages](forwardMessages.md)(\['chat_id' => [int53](../types/int53.md), 'from_chat_id' => [int53](../types/int53.md), 'message_ids' => \[[int53](../types/int53.md)\], 'disable_notification' => [Bool](../types/Bool.md), 'from_background' => [Bool](../types/Bool.md), \]) === [$Messages](../types/Messages.md) + +*** +

$MadelineProto->[getAccountTtl](getAccountTtl.md)(\[\]) === [$AccountTtl](../types/AccountTtl.md) + +*** +

$MadelineProto->[getActiveSessions](getActiveSessions.md)(\[\]) === [$Sessions](../types/Sessions.md) + +*** +

$MadelineProto->[getArchivedStickerSets](getArchivedStickerSets.md)(\['is_masks' => [Bool](../types/Bool.md), 'offset_sticker_set_id' => [int64](../constructors/int64.md), 'limit' => [int](../types/int.md), \]) === [$StickerSets](../types/StickerSets.md) + +*** +

$MadelineProto->[getAttachedStickerSets](getAttachedStickerSets.md)(\['file_id' => [int](../types/int.md), \]) === [$StickerSets](../types/StickerSets.md) + +*** +

$MadelineProto->[getAuthState](getAuthState.md)(\[\]) === [$AuthState](../types/AuthState.md) + +*** +

$MadelineProto->[getBlockedUsers](getBlockedUsers.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$Users](../types/Users.md) + +*** +

$MadelineProto->[getCallbackQueryAnswer](getCallbackQueryAnswer.md)(\['chat_id' => [int53](../types/int53.md), 'message_id' => [int53](../types/int53.md), 'payload' => [CallbackQueryPayload](../types/CallbackQueryPayload.md), \]) === [$CallbackQueryAnswer](../types/CallbackQueryAnswer.md) + +*** +

$MadelineProto->[getChannel](getChannel.md)(\['channel_id' => [int](../types/int.md), \]) === [$Channel](../types/Channel.md) + +*** +

$MadelineProto->[getChannelFull](getChannelFull.md)(\['channel_id' => [int](../types/int.md), \]) === [$ChannelFull](../types/ChannelFull.md) + +*** +

$MadelineProto->[getChannelMembers](getChannelMembers.md)(\['channel_id' => [int](../types/int.md), 'filter' => [ChannelMembersFilter](../types/ChannelMembersFilter.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$ChatMembers](../types/ChatMembers.md) + +*** +

$MadelineProto->[getChat](getChat.md)(\['chat_id' => [int53](../types/int53.md), \]) === [$Chat](../types/Chat.md) + +*** +

$MadelineProto->[getChatEventLog](getChatEventLog.md)(\['chat_id' => [int53](../types/int53.md), 'query' => [string](../types/string.md), 'from_event_id' => [int64](../constructors/int64.md), 'limit' => [int](../types/int.md), 'filters' => [chatEventLogFilters](../constructors/chatEventLogFilters.md), 'user_ids' => \[[int](../types/int.md)\], \]) === [$ChatEvents](../types/ChatEvents.md) + +*** +

$MadelineProto->[getChatHistory](getChatHistory.md)(\['chat_id' => [int53](../types/int53.md), 'from_message_id' => [int53](../types/int53.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'only_local' => [Bool](../types/Bool.md), \]) === [$Messages](../types/Messages.md) + +*** +

$MadelineProto->[getChatMember](getChatMember.md)(\['chat_id' => [int53](../types/int53.md), 'user_id' => [int](../types/int.md), \]) === [$ChatMember](../types/ChatMember.md) + +*** +

$MadelineProto->[getChatReportSpamState](getChatReportSpamState.md)(\['chat_id' => [int53](../types/int53.md), \]) === [$ChatReportSpamState](../types/ChatReportSpamState.md) + +*** +

$MadelineProto->[getChats](getChats.md)(\['offset_order' => [int64](../constructors/int64.md), 'offset_chat_id' => [int53](../types/int53.md), 'limit' => [int](../types/int.md), \]) === [$Chats](../types/Chats.md) + +*** +

$MadelineProto->[getCommonChats](getCommonChats.md)(\['user_id' => [int](../types/int.md), 'offset_chat_id' => [int53](../types/int53.md), 'limit' => [int](../types/int.md), \]) === [$Chats](../types/Chats.md) + +*** +

$MadelineProto->[getCreatedPublicChats](getCreatedPublicChats.md)(\[\]) === [$Chats](../types/Chats.md) + +*** +

$MadelineProto->[getFavoriteStickers](getFavoriteStickers.md)(\[\]) === [$Stickers](../types/Stickers.md) + +*** +

$MadelineProto->[getFile](getFile.md)(\['file_id' => [int](../types/int.md), \]) === [$File](../types/File.md) + +*** +

$MadelineProto->[getFileExtension](getFileExtension.md)(\['mime_type' => [string](../types/string.md), \]) === [$Text](../types/Text.md) + +*** +

$MadelineProto->[getFileMimeType](getFileMimeType.md)(\['file_name' => [string](../types/string.md), \]) === [$Text](../types/Text.md) + +*** +

$MadelineProto->[getFilePersistent](getFilePersistent.md)(\['persistent_file_id' => [string](../types/string.md), 'file_type' => [FileType](../types/FileType.md), \]) === [$File](../types/File.md) + +*** +

$MadelineProto->[getGameHighScores](getGameHighScores.md)(\['chat_id' => [int53](../types/int53.md), 'message_id' => [int53](../types/int53.md), 'user_id' => [int](../types/int.md), \]) === [$GameHighScores](../types/GameHighScores.md) + +*** +

$MadelineProto->[getGroup](getGroup.md)(\['group_id' => [int](../types/int.md), \]) === [$Group](../types/Group.md) + +*** +

$MadelineProto->[getGroupFull](getGroupFull.md)(\['group_id' => [int](../types/int.md), \]) === [$GroupFull](../types/GroupFull.md) + +*** +

$MadelineProto->[getImportedContactCount](getImportedContactCount.md)(\[\]) === [$Count](../types/Count.md) + +*** +

$MadelineProto->[getInlineGameHighScores](getInlineGameHighScores.md)(\['inline_message_id' => [string](../types/string.md), 'user_id' => [int](../types/int.md), \]) === [$GameHighScores](../types/GameHighScores.md) + +*** +

$MadelineProto->[getInlineQueryResults](getInlineQueryResults.md)(\['bot_user_id' => [int](../types/int.md), 'chat_id' => [int53](../types/int53.md), 'user_location' => [location](../constructors/location.md), 'query' => [string](../types/string.md), 'offset' => [string](../types/string.md), \]) === [$InlineQueryResults](../types/InlineQueryResults.md) + +*** +

$MadelineProto->[getInstalledStickerSets](getInstalledStickerSets.md)(\['is_masks' => [Bool](../types/Bool.md), \]) === [$StickerSets](../types/StickerSets.md) + +*** +

$MadelineProto->[getInviteText](getInviteText.md)(\[\]) === [$Text](../types/Text.md) + +*** +

$MadelineProto->[getMe](getMe.md)(\[\]) === [$User](../types/User.md) + +*** +

$MadelineProto->[getMessage](getMessage.md)(\['chat_id' => [int53](../types/int53.md), 'message_id' => [int53](../types/int53.md), \]) === [$Message](../types/Message.md) + +*** +

$MadelineProto->[getMessages](getMessages.md)(\['chat_id' => [int53](../types/int53.md), 'message_ids' => \[[int53](../types/int53.md)\], \]) === [$Messages](../types/Messages.md) + +*** +

$MadelineProto->[getNetworkStatistics](getNetworkStatistics.md)(\['only_current' => [Bool](../types/Bool.md), \]) === [$NetworkStatistics](../types/NetworkStatistics.md) + +*** +

$MadelineProto->[getNotificationSettings](getNotificationSettings.md)(\['scope' => [NotificationSettingsScope](../types/NotificationSettingsScope.md), \]) === [$NotificationSettings](../types/NotificationSettings.md) + +*** +

$MadelineProto->[getOption](getOption.md)(\['name' => [string](../types/string.md), \]) === [$OptionValue](../types/OptionValue.md) + +*** +

$MadelineProto->[getPasswordState](getPasswordState.md)(\[\]) === [$PasswordState](../types/PasswordState.md) + +*** +

$MadelineProto->[getPaymentForm](getPaymentForm.md)(\['chat_id' => [int53](../types/int53.md), 'message_id' => [int53](../types/int53.md), \]) === [$PaymentForm](../types/PaymentForm.md) + +*** +

$MadelineProto->[getPaymentReceipt](getPaymentReceipt.md)(\['chat_id' => [int53](../types/int53.md), 'message_id' => [int53](../types/int53.md), \]) === [$PaymentReceipt](../types/PaymentReceipt.md) + +*** +

$MadelineProto->[getPrivacy](getPrivacy.md)(\['key' => [PrivacyKey](../types/PrivacyKey.md), \]) === [$PrivacyRules](../types/PrivacyRules.md) + +*** +

$MadelineProto->[getProxy](getProxy.md)(\[\]) === [$Proxy](../types/Proxy.md) + +*** +

$MadelineProto->[getPublicMessageLink](getPublicMessageLink.md)(\['chat_id' => [int53](../types/int53.md), 'message_id' => [int53](../types/int53.md), \]) === [$PublicMessageLink](../types/PublicMessageLink.md) + +*** +

$MadelineProto->[getRecentInlineBots](getRecentInlineBots.md)(\[\]) === [$Users](../types/Users.md) + +*** +

$MadelineProto->[getRecentStickers](getRecentStickers.md)(\['is_attached' => [Bool](../types/Bool.md), \]) === [$Stickers](../types/Stickers.md) + +*** +

$MadelineProto->[getRecoveryEmail](getRecoveryEmail.md)(\['password' => [string](../types/string.md), \]) === [$RecoveryEmail](../types/RecoveryEmail.md) + +*** +

$MadelineProto->[getSavedAnimations](getSavedAnimations.md)(\[\]) === [$Animations](../types/Animations.md) + +*** +

$MadelineProto->[getSavedOrderInfo](getSavedOrderInfo.md)(\[\]) === [$OrderInfo](../types/OrderInfo.md) + +*** +

$MadelineProto->[getSecretChat](getSecretChat.md)(\['secret_chat_id' => [int](../types/int.md), \]) === [$SecretChat](../types/SecretChat.md) + +*** +

$MadelineProto->[getStickerEmojis](getStickerEmojis.md)(\['sticker' => [InputFile](../types/InputFile.md), \]) === [$StickerEmojis](../types/StickerEmojis.md) + +*** +

$MadelineProto->[getStickerSet](getStickerSet.md)(\['set_id' => [int64](../constructors/int64.md), \]) === [$StickerSet](../types/StickerSet.md) + +*** +

$MadelineProto->[getStickers](getStickers.md)(\['emoji' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$Stickers](../types/Stickers.md) + +*** +

$MadelineProto->[getStorageStatistics](getStorageStatistics.md)(\['chat_limit' => [int](../types/int.md), \]) === [$StorageStatistics](../types/StorageStatistics.md) + +*** +

$MadelineProto->[getStorageStatisticsFast](getStorageStatisticsFast.md)(\[\]) === [$StorageStatisticsFast](../types/StorageStatisticsFast.md) + +*** +

$MadelineProto->[getSupportUser](getSupportUser.md)(\[\]) === [$User](../types/User.md) + +*** +

$MadelineProto->[getTemporaryPasswordState](getTemporaryPasswordState.md)(\[\]) === [$TemporaryPasswordState](../types/TemporaryPasswordState.md) + +*** +

$MadelineProto->[getTermsOfService](getTermsOfService.md)(\[\]) === [$Text](../types/Text.md) + +*** +

$MadelineProto->[getTextEntities](getTextEntities.md)(\['text' => [string](../types/string.md), \]) === [$TextEntities](../types/TextEntities.md) + +*** +

$MadelineProto->[getTopChats](getTopChats.md)(\['category' => [TopChatCategory](../types/TopChatCategory.md), 'limit' => [int](../types/int.md), \]) === [$Chats](../types/Chats.md) + +*** +

$MadelineProto->[getTrendingStickerSets](getTrendingStickerSets.md)(\[\]) === [$StickerSets](../types/StickerSets.md) + +*** +

$MadelineProto->[getUser](getUser.md)(\['user_id' => [int](../types/int.md), \]) === [$User](../types/User.md) + +*** +

$MadelineProto->[getUserFull](getUserFull.md)(\['user_id' => [int](../types/int.md), \]) === [$UserFull](../types/UserFull.md) + +*** +

$MadelineProto->[getUserProfilePhotos](getUserProfilePhotos.md)(\['user_id' => [int](../types/int.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$UserProfilePhotos](../types/UserProfilePhotos.md) + +*** +

$MadelineProto->[getWallpapers](getWallpapers.md)(\[\]) === [$Wallpapers](../types/Wallpapers.md) + +*** +

$MadelineProto->[getWebPageInstantView](getWebPageInstantView.md)(\['url' => [string](../types/string.md), 'force_full' => [Bool](../types/Bool.md), \]) === [$WebPageInstantView](../types/WebPageInstantView.md) + +*** +

$MadelineProto->[getWebPagePreview](getWebPagePreview.md)(\['message_text' => [string](../types/string.md), \]) === [$WebPage](../types/WebPage.md) + +*** +

$MadelineProto->[importChatInviteLink](importChatInviteLink.md)(\['invite_link' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[importContacts](importContacts.md)(\['contacts' => \[[contact](../constructors/contact.md)\], \]) === [$ImportedContacts](../types/ImportedContacts.md) + +*** +

$MadelineProto->[migrateGroupChatToChannelChat](migrateGroupChatToChannelChat.md)(\['chat_id' => [int53](../types/int53.md), \]) === [$Chat](../types/Chat.md) + +*** +

$MadelineProto->[openChat](openChat.md)(\['chat_id' => [int53](../types/int53.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[openMessageContent](openMessageContent.md)(\['chat_id' => [int53](../types/int53.md), 'message_id' => [int53](../types/int53.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[optimizeStorage](optimizeStorage.md)(\['size' => [int53](../types/int53.md), 'ttl' => [int](../types/int.md), 'count' => [int](../types/int.md), 'immunity_delay' => [int](../types/int.md), 'file_types' => \[[FileType](../types/FileType.md)\], 'chat_ids' => \[[int53](../types/int53.md)\], 'exclude_chat_ids' => \[[int53](../types/int53.md)\], 'chat_limit' => [int](../types/int.md), \]) === [$StorageStatistics](../types/StorageStatistics.md) + +*** +

$MadelineProto->[pinChannelMessage](pinChannelMessage.md)(\['channel_id' => [int](../types/int.md), 'message_id' => [int53](../types/int53.md), 'disable_notification' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[processDcUpdate](processDcUpdate.md)(\['dc' => [string](../types/string.md), 'addr' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[rateCall](rateCall.md)(\['call_id' => [int](../types/int.md), 'rating' => [int](../types/int.md), 'comment' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[recoverAuthPassword](recoverAuthPassword.md)(\['recovery_code' => [string](../types/string.md), \]) === [$AuthState](../types/AuthState.md) + +*** +

$MadelineProto->[recoverPassword](recoverPassword.md)(\['recovery_code' => [string](../types/string.md), \]) === [$PasswordState](../types/PasswordState.md) + +*** +

$MadelineProto->[registerDevice](registerDevice.md)(\['device_token' => [DeviceToken](../types/DeviceToken.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[reorderInstalledStickerSets](reorderInstalledStickerSets.md)(\['is_masks' => [Bool](../types/Bool.md), 'sticker_set_ids' => \[[int64](../constructors/int64.md)\], \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[reportChannelSpam](reportChannelSpam.md)(\['channel_id' => [int](../types/int.md), 'user_id' => [int](../types/int.md), 'message_ids' => \[[int53](../types/int53.md)\], \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[reportChat](reportChat.md)(\['chat_id' => [int53](../types/int53.md), 'reason' => [ChatReportReason](../types/ChatReportReason.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[requestAuthPasswordRecovery](requestAuthPasswordRecovery.md)(\[\]) === [$AuthState](../types/AuthState.md) + +*** +

$MadelineProto->[requestPasswordRecovery](requestPasswordRecovery.md)(\[\]) === [$PasswordRecoveryInfo](../types/PasswordRecoveryInfo.md) + +*** +

$MadelineProto->[resendAuthCode](resendAuthCode.md)(\[\]) === [$AuthState](../types/AuthState.md) + +*** +

$MadelineProto->[resendChangePhoneNumberCode](resendChangePhoneNumberCode.md)(\[\]) === [$AuthState](../types/AuthState.md) + +*** +

$MadelineProto->[resetAllNotificationSettings](resetAllNotificationSettings.md)(\[\]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[resetAuth](resetAuth.md)(\['force' => [Bool](../types/Bool.md), \]) === [$AuthState](../types/AuthState.md) + +*** +

$MadelineProto->[resetNetworkStatistics](resetNetworkStatistics.md)(\[\]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[searchCallMessages](searchCallMessages.md)(\['from_message_id' => [int53](../types/int53.md), 'limit' => [int](../types/int.md), 'only_missed' => [Bool](../types/Bool.md), \]) === [$Messages](../types/Messages.md) + +*** +

$MadelineProto->[searchChatMembers](searchChatMembers.md)(\['chat_id' => [int53](../types/int53.md), 'query' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$ChatMembers](../types/ChatMembers.md) + +*** +

$MadelineProto->[searchChatMessages](searchChatMessages.md)(\['chat_id' => [int53](../types/int53.md), 'query' => [string](../types/string.md), 'sender_user_id' => [int](../types/int.md), 'from_message_id' => [int53](../types/int53.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'filter' => [SearchMessagesFilter](../types/SearchMessagesFilter.md), \]) === [$Messages](../types/Messages.md) + +*** +

$MadelineProto->[searchChats](searchChats.md)(\['query' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$Chats](../types/Chats.md) + +*** +

$MadelineProto->[searchContacts](searchContacts.md)(\['query' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$Users](../types/Users.md) + +*** +

$MadelineProto->[searchHashtags](searchHashtags.md)(\['prefix' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$Hashtags](../types/Hashtags.md) + +*** +

$MadelineProto->[searchMessages](searchMessages.md)(\['query' => [string](../types/string.md), 'offset_date' => [int](../types/int.md), 'offset_chat_id' => [int53](../types/int53.md), 'offset_message_id' => [int53](../types/int53.md), 'limit' => [int](../types/int.md), \]) === [$Messages](../types/Messages.md) + +*** +

$MadelineProto->[searchPublicChat](searchPublicChat.md)(\['username' => [string](../types/string.md), \]) === [$Chat](../types/Chat.md) + +*** +

$MadelineProto->[searchPublicChats](searchPublicChats.md)(\['username_prefix' => [string](../types/string.md), \]) === [$Chats](../types/Chats.md) + +*** +

$MadelineProto->[searchSecretMessages](searchSecretMessages.md)(\['chat_id' => [int53](../types/int53.md), 'query' => [string](../types/string.md), 'from_search_id' => [int64](../constructors/int64.md), 'limit' => [int](../types/int.md), 'filter' => [SearchMessagesFilter](../types/SearchMessagesFilter.md), \]) === [$FoundMessages](../types/FoundMessages.md) + +*** +

$MadelineProto->[searchStickerSet](searchStickerSet.md)(\['name' => [string](../types/string.md), \]) === [$StickerSet](../types/StickerSet.md) + +*** +

$MadelineProto->[sendBotStartMessage](sendBotStartMessage.md)(\['bot_user_id' => [int](../types/int.md), 'chat_id' => [int53](../types/int53.md), 'parameter' => [string](../types/string.md), \]) === [$Message](../types/Message.md) + +*** +

$MadelineProto->[sendChatAction](sendChatAction.md)(\['chat_id' => [int53](../types/int53.md), 'action' => [ChatAction](../types/ChatAction.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[sendChatScreenshotTakenNotification](sendChatScreenshotTakenNotification.md)(\['chat_id' => [int53](../types/int53.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[sendChatSetTtlMessage](sendChatSetTtlMessage.md)(\['chat_id' => [int53](../types/int53.md), 'ttl' => [int](../types/int.md), \]) === [$Message](../types/Message.md) + +*** +

$MadelineProto->[sendCustomRequest](sendCustomRequest.md)(\['method' => [string](../types/string.md), 'parameters' => [string](../types/string.md), \]) === [$CustomRequestResult](../types/CustomRequestResult.md) + +*** +

$MadelineProto->[sendInlineQueryResultMessage](sendInlineQueryResultMessage.md)(\['chat_id' => [int53](../types/int53.md), 'reply_to_message_id' => [int53](../types/int53.md), 'disable_notification' => [Bool](../types/Bool.md), 'from_background' => [Bool](../types/Bool.md), 'query_id' => [int64](../constructors/int64.md), 'result_id' => [string](../types/string.md), \]) === [$Message](../types/Message.md) + +*** +

$MadelineProto->[sendMessage](sendMessage.md)(\['chat_id' => [int53](../types/int53.md), 'reply_to_message_id' => [int53](../types/int53.md), 'disable_notification' => [Bool](../types/Bool.md), 'from_background' => [Bool](../types/Bool.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'input_message_content' => [InputMessageContent](../types/InputMessageContent.md), \]) === [$Message](../types/Message.md) + +*** +

$MadelineProto->[sendPaymentForm](sendPaymentForm.md)(\['chat_id' => [int53](../types/int53.md), 'message_id' => [int53](../types/int53.md), 'order_info_id' => [string](../types/string.md), 'shipping_option_id' => [string](../types/string.md), 'credentials' => [InputCredentials](../types/InputCredentials.md), \]) === [$PaymentResult](../types/PaymentResult.md) + +*** +

$MadelineProto->[setAlarm](setAlarm.md)(\['seconds' => [double](../types/double.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[setAuthPhoneNumber](setAuthPhoneNumber.md)(\['phone_number' => [string](../types/string.md), 'allow_flash_call' => [Bool](../types/Bool.md), 'is_current_phone_number' => [Bool](../types/Bool.md), \]) === [$AuthState](../types/AuthState.md) + +*** +

$MadelineProto->[setBotUpdatesStatus](setBotUpdatesStatus.md)(\['pending_update_count' => [int](../types/int.md), 'error_message' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[setChannelStickerSet](setChannelStickerSet.md)(\['channel_id' => [int](../types/int.md), 'sticker_set_id' => [int64](../constructors/int64.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[setChatClientData](setChatClientData.md)(\['chat_id' => [int53](../types/int53.md), 'client_data' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[setFileGenerationProgress](setFileGenerationProgress.md)(\['generation_id' => [int64](../constructors/int64.md), 'size' => [int](../types/int.md), 'local_size' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[setGameScore](setGameScore.md)(\['chat_id' => [int53](../types/int53.md), 'message_id' => [int53](../types/int53.md), 'edit_message' => [Bool](../types/Bool.md), 'user_id' => [int](../types/int.md), 'score' => [int](../types/int.md), 'force' => [Bool](../types/Bool.md), \]) === [$Message](../types/Message.md) + +*** +

$MadelineProto->[setInlineGameScore](setInlineGameScore.md)(\['inline_message_id' => [string](../types/string.md), 'edit_message' => [Bool](../types/Bool.md), 'user_id' => [int](../types/int.md), 'score' => [int](../types/int.md), 'force' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[setNetworkType](setNetworkType.md)(\['type' => [NetworkType](../types/NetworkType.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[setNotificationSettings](setNotificationSettings.md)(\['scope' => [NotificationSettingsScope](../types/NotificationSettingsScope.md), 'notification_settings' => [notificationSettings](../constructors/notificationSettings.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[setOption](setOption.md)(\['name' => [string](../types/string.md), 'value' => [OptionValue](../types/OptionValue.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[setPassword](setPassword.md)(\['old_password' => [string](../types/string.md), 'new_password' => [string](../types/string.md), 'new_hint' => [string](../types/string.md), 'set_recovery_email' => [Bool](../types/Bool.md), 'new_recovery_email' => [string](../types/string.md), \]) === [$PasswordState](../types/PasswordState.md) + +*** +

$MadelineProto->[setPinnedChats](setPinnedChats.md)(\['chat_ids' => \[[int53](../types/int53.md)\], \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[setPrivacy](setPrivacy.md)(\['key' => [PrivacyKey](../types/PrivacyKey.md), 'rules' => [privacyRules](../constructors/privacyRules.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[setProfilePhoto](setProfilePhoto.md)(\['photo' => [InputFile](../types/InputFile.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[setProxy](setProxy.md)(\['proxy' => [Proxy](../types/Proxy.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[setRecoveryEmail](setRecoveryEmail.md)(\['password' => [string](../types/string.md), 'new_recovery_email' => [string](../types/string.md), \]) === [$PasswordState](../types/PasswordState.md) + +*** +

$MadelineProto->[setStickerPositionInSet](setStickerPositionInSet.md)(\['sticker' => [InputFile](../types/InputFile.md), 'position' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[terminateAllOtherSessions](terminateAllOtherSessions.md)(\[\]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[terminateSession](terminateSession.md)(\['session_id' => [int64](../constructors/int64.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[testCallBytes](testCallBytes.md)(\['x' => [bytes](../types/bytes.md), \]) === [$TestBytes](../types/TestBytes.md) + +*** +

$MadelineProto->[testCallEmpty](testCallEmpty.md)(\[\]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[testCallString](testCallString.md)(\['x' => [string](../types/string.md), \]) === [$TestString](../types/TestString.md) + +*** +

$MadelineProto->[testCallVectorInt](testCallVectorInt.md)(\['x' => \[[int](../types/int.md)\], \]) === [$TestVectorInt](../types/TestVectorInt.md) + +*** +

$MadelineProto->[testCallVectorIntObject](testCallVectorIntObject.md)(\['x' => \[[testInt](../constructors/testInt.md)\], \]) === [$TestVectorIntObject](../types/TestVectorIntObject.md) + +*** +

$MadelineProto->[testCallVectorString](testCallVectorString.md)(\['x' => \[[string](../types/string.md)\], \]) === [$TestVectorString](../types/TestVectorString.md) + +*** +

$MadelineProto->[testCallVectorStringObject](testCallVectorStringObject.md)(\['x' => \[[testString](../constructors/testString.md)\], \]) === [$TestVectorStringObject](../types/TestVectorStringObject.md) + +*** +

$MadelineProto->[testGetDifference](testGetDifference.md)(\[\]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[testNetwork](testNetwork.md)(\[\]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[testSquareInt](testSquareInt.md)(\['x' => [int](../types/int.md), \]) === [$TestInt](../types/TestInt.md) + +*** +

$MadelineProto->[testUseError](testUseError.md)(\[\]) === [$Error](../types/Error.md) + +*** +

$MadelineProto->[testUseUpdate](testUseUpdate.md)(\[\]) === [$Update](../types/Update.md) + +*** +

$MadelineProto->[toggleChannelInvites](toggleChannelInvites.md)(\['channel_id' => [int](../types/int.md), 'anyone_can_invite' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[toggleChannelSignMessages](toggleChannelSignMessages.md)(\['channel_id' => [int](../types/int.md), 'sign_messages' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[toggleChatIsPinned](toggleChatIsPinned.md)(\['chat_id' => [int53](../types/int53.md), 'is_pinned' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[toggleGroupAdministrators](toggleGroupAdministrators.md)(\['group_id' => [int](../types/int.md), 'everyone_is_administrator' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[unblockUser](unblockUser.md)(\['user_id' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[unpinChannelMessage](unpinChannelMessage.md)(\['channel_id' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[uploadFile](uploadFile.md)(\['file' => [InputFile](../types/InputFile.md), 'file_type' => [FileType](../types/FileType.md), 'priority' => [int](../types/int.md), \]) === [$File](../types/File.md) + +*** +

$MadelineProto->[uploadStickerFile](uploadStickerFile.md)(\['user_id' => [int](../types/int.md), 'png_sticker' => [InputFile](../types/InputFile.md), \]) === [$File](../types/File.md) + +*** +

$MadelineProto->[validateOrderInfo](validateOrderInfo.md)(\['chat_id' => [int53](../types/int53.md), 'message_id' => [int53](../types/int53.md), 'order_info' => [orderInfo](../constructors/orderInfo.md), 'allow_save' => [Bool](../types/Bool.md), \]) === [$ValidatedOrderInfo](../types/ValidatedOrderInfo.md) + +*** +

$MadelineProto->[viewMessages](viewMessages.md)(\['chat_id' => [int53](../types/int53.md), 'message_ids' => \[[int53](../types/int53.md)\], \]) === [$Ok](../types/Ok.md) + +*** +

$MadelineProto->[viewTrendingStickerSets](viewTrendingStickerSets.md)(\['sticker_set_ids' => \[[int64](../constructors/int64.md)\], \]) === [$Ok](../types/Ok.md) + diff --git a/docs/TD_docs/methods/index.md b/docs/TD_docs/methods/index.md index 86d97638..87d80d1f 100644 --- a/docs/TD_docs/methods/index.md +++ b/docs/TD_docs/methods/index.md @@ -1,724 +1,719 @@ --- title: Methods -description: List of methods +description: What do you want to do? --- -# Methods -[Back to API documentation index](..) +# What do you want to do? +[Go back to API documentation index](..) +[Go to the old code-version method index](api_index.html) -$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); +* [Logout](https://docs.madelineproto.xyz/logout.html) -$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); +* [Login](https://docs.madelineproto.xyz/docs/LOGIN.html) -$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); +* [Get all chats, broadcast a message to all chats](https://docs.madelineproto.xyz/docs/DIALOGS.html) -$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); +* [Get the full participant list of a channel/group/supergroup](https://docs.madelineproto.xyz/get_pwr_chat.html) -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); +* [Get full info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_full_info.html) +* [Get info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_info.html) -$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); +* [Get info about the currently logged-in user](https://docs.madelineproto.xyz/get_self.html) -$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); +* [Upload or download files up to 1.5 GB](https://docs.madelineproto.xyz/docs/FILES.html) -$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); +* [Make a phone call and play a song](https://docs.madelineproto.xyz/docs/CALLS.html) -$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); - -$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); - - -$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); - -$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); +* [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) *** -

$MadelineProto->[acceptCall](acceptCall.md)(\['call_id' => [int](../types/int.md), 'protocol' => [callProtocol](../constructors/callProtocol.md), \]) === [$Ok](../types/Ok.md) +

* Accepts incoming call *** -

$MadelineProto->[addChatMember](addChatMember.md)(\['chat_id' => [int53](../types/int53.md), 'user_id' => [int](../types/int.md), 'forward_limit' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md) +

* Adds new member to chat. Members can't be added to private or secret chats. Member will not be added until chat state will be synchronized with the server *** -

$MadelineProto->[addChatMembers](addChatMembers.md)(\['chat_id' => [int53](../types/int53.md), 'user_ids' => \[[int](../types/int.md)\], \]) === [$Ok](../types/Ok.md) +

* Adds many new members to the chat. Currently, available only for channels. Can't be used to join the channel. Members can't be added to broadcast channel if it has more than 200 members. Members will not be added until chat state will be synchronized with the server *** -

$MadelineProto->[addFavoriteSticker](addFavoriteSticker.md)(\['sticker' => [InputFile](../types/InputFile.md), \]) === [$Ok](../types/Ok.md) +

* Adds new sticker to the list of favorite stickers. New sticker is added to the beginning of the list. If the sticker is already in the list, at first it is removed from the list. Only stickers belonging to a sticker set can be added to the list *** -

$MadelineProto->[addNetworkStatistics](addNetworkStatistics.md)(\['entry' => [NetworkStatisticsEntry](../types/NetworkStatisticsEntry.md), \]) === [$Ok](../types/Ok.md) +

* Adds specified data to data usage statistics. Can be called before authorization *** -

$MadelineProto->[addRecentSticker](addRecentSticker.md)(\['is_attached' => [Bool](../types/Bool.md), 'sticker' => [InputFile](../types/InputFile.md), \]) === [$Stickers](../types/Stickers.md) +

* Manually adds new sticker to the list of recently used stickers. New sticker is added to the beginning of the list. If the sticker is already in the list, at first it is removed from the list. Only stickers belonging to a sticker set can be added to the list *** -

$MadelineProto->[addRecentlyFoundChat](addRecentlyFoundChat.md)(\['chat_id' => [int53](../types/int53.md), \]) === [$Ok](../types/Ok.md) +

* Adds chat to the list of recently found chats. The chat is added to the beginning of the list. If the chat is already in the list, at first it is removed from the list *** -

$MadelineProto->[addSavedAnimation](addSavedAnimation.md)(\['animation' => [InputFile](../types/InputFile.md), \]) === [$Ok](../types/Ok.md) +

* Manually adds new animation to the list of saved animations. New animation is added to the beginning of the list. If the animation is already in the list, at first it is removed from the list. Only non-secret video animations with MIME type "video/mp4" can be added to the list *** -

$MadelineProto->[addStickerToSet](addStickerToSet.md)(\['user_id' => [int](../types/int.md), 'name' => [string](../types/string.md), 'sticker' => [inputSticker](../constructors/inputSticker.md), \]) === [$StickerSet](../types/StickerSet.md) +

* Bots only. Adds new sticker to a set. Returns the sticker set *** -

$MadelineProto->[answerCallbackQuery](answerCallbackQuery.md)(\['callback_query_id' => [int64](../constructors/int64.md), 'text' => [string](../types/string.md), 'show_alert' => [Bool](../types/Bool.md), 'url' => [string](../types/string.md), 'cache_time' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md) +

* Bots only. Sets result of a callback query *** -

$MadelineProto->[answerCustomQuery](answerCustomQuery.md)(\['custom_query_id' => [int64](../constructors/int64.md), 'data' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) +

* Bots only. Answers a custom query *** -

$MadelineProto->[answerInlineQuery](answerInlineQuery.md)(\['inline_query_id' => [int64](../constructors/int64.md), 'is_personal' => [Bool](../types/Bool.md), 'results' => \[[InputInlineQueryResult](../types/InputInlineQueryResult.md)\], 'cache_time' => [int](../types/int.md), 'next_offset' => [string](../types/string.md), 'switch_pm_text' => [string](../types/string.md), 'switch_pm_parameter' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) +

* Bots only. Sets result of an inline query *** -

$MadelineProto->[answerPreCheckoutQuery](answerPreCheckoutQuery.md)(\['pre_checkout_query_id' => [int64](../constructors/int64.md), 'error_message' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) +

* Bots only. Sets result of a pre checkout query *** -

$MadelineProto->[answerShippingQuery](answerShippingQuery.md)(\['shipping_query_id' => [int64](../constructors/int64.md), 'shipping_options' => \[[shippingOption](../constructors/shippingOption.md)\], 'error_message' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) +

* Bots only. Sets result of a shipping query *** -

$MadelineProto->[blockUser](blockUser.md)(\['user_id' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md) +

* Adds user to black list *** -

$MadelineProto->[cancelDownloadFile](cancelDownloadFile.md)(\['file_id' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md) +

* Stops file downloading. If file is already downloaded, does nothing *** -

$MadelineProto->[cancelUploadFile](cancelUploadFile.md)(\['file_id' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md) +

* Stops file uploading. Works only for files uploaded using uploadFile. For other files the behavior is undefined *** -

$MadelineProto->[changeAbout](changeAbout.md)(\['about' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) +

* Changes about information of logged in user *** -

$MadelineProto->[changeAccountTtl](changeAccountTtl.md)(\['ttl' => [accountTtl](../constructors/accountTtl.md), \]) === [$Ok](../types/Ok.md) +

* Changes period of inactivity, after which the account of currently logged in user will be automatically deleted *** -

$MadelineProto->[changeChannelDescription](changeChannelDescription.md)(\['channel_id' => [int](../types/int.md), 'description' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) +

* Changes information about the channel. Needs appropriate rights in the channel *** -

$MadelineProto->[changeChannelUsername](changeChannelUsername.md)(\['channel_id' => [int](../types/int.md), 'username' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) +

* Changes username of the channel. Needs creator privileges in the channel *** -

$MadelineProto->[changeChatDraftMessage](changeChatDraftMessage.md)(\['chat_id' => [int53](../types/int53.md), 'draft_message' => [draftMessage](../constructors/draftMessage.md), \]) === [$Ok](../types/Ok.md) +

* Changes chat draft message *** -

$MadelineProto->[changeChatMemberStatus](changeChatMemberStatus.md)(\['chat_id' => [int53](../types/int53.md), 'user_id' => [int](../types/int.md), 'status' => [ChatMemberStatus](../types/ChatMemberStatus.md), \]) === [$Ok](../types/Ok.md) +

* Changes status of the chat member, need appropriate privileges. This function is currently not suitable for adding new members to the chat, use addChatMember instead. Status will not be changed until chat state will be synchronized with the server *** -

$MadelineProto->[changeChatPhoto](changeChatPhoto.md)(\['chat_id' => [int53](../types/int53.md), 'photo' => [InputFile](../types/InputFile.md), \]) === [$Ok](../types/Ok.md) +

* Changes chat photo. Works only for group and channel chats. Requires administrator rights in groups and appropriate administrator right in channels. Photo will not change before request to the server completes *** -

$MadelineProto->[changeChatReportSpamState](changeChatReportSpamState.md)(\['chat_id' => [int53](../types/int53.md), 'is_spam_chat' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md) +

* Reports chat as a spam chat or as not a spam chat. Can be used only if ChatReportSpamState.can_report_spam is true. After this request ChatReportSpamState.can_report_spam became false forever *** -

$MadelineProto->[changeChatTitle](changeChatTitle.md)(\['chat_id' => [int53](../types/int53.md), 'title' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) +

* Changes chat title. Works only for group and channel chats. Requires administrator rights in groups and appropriate administrator right in channels. Title will not change before request to the server completes *** -

$MadelineProto->[changeName](changeName.md)(\['first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) +

* Changes first and last names of logged in user. If something changes, updateUser will be sent *** -

$MadelineProto->[changePhoneNumber](changePhoneNumber.md)(\['phone_number' => [string](../types/string.md), 'allow_flash_call' => [Bool](../types/Bool.md), 'is_current_phone_number' => [Bool](../types/Bool.md), \]) === [$AuthState](../types/AuthState.md) +

* Changes user's phone number and sends authentication code to the new user's phone number. Returns authStateWaitCode with information about sent code on success *** -

$MadelineProto->[changeStickerSet](changeStickerSet.md)(\['set_id' => [int64](../constructors/int64.md), 'is_installed' => [Bool](../types/Bool.md), 'is_archived' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md) +

* Installs/uninstalls or enables/archives sticker set *** -

$MadelineProto->[changeUsername](changeUsername.md)(\['username' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) +

* Changes username of logged in user. If something changes, updateUser will be sent *** -

$MadelineProto->[checkAuthBotToken](checkAuthBotToken.md)(\['token' => [string](../types/string.md), \]) === [$AuthState](../types/AuthState.md) +

* Check bot's authentication token to log in as a bot. Works only when getAuthState returns authStateWaitPhoneNumber. Can be used instead of setAuthPhoneNumber and checkAuthCode to log in. Returns authStateOk on success *** -

$MadelineProto->[checkAuthCode](checkAuthCode.md)(\['code' => [string](../types/string.md), 'first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), \]) === [$AuthState](../types/AuthState.md) +

* Checks authentication code. Works only when getAuthState returns authStateWaitCode. Returns authStateWaitPassword or authStateOk on success *** -

$MadelineProto->[checkAuthPassword](checkAuthPassword.md)(\['password' => [string](../types/string.md), \]) === [$AuthState](../types/AuthState.md) +

* Checks password for correctness. Works only when getAuthState returns authStateWaitPassword. Returns authStateOk on success *** -

$MadelineProto->[checkChangePhoneNumberCode](checkChangePhoneNumberCode.md)(\['code' => [string](../types/string.md), \]) === [$AuthState](../types/AuthState.md) +

* Checks authentication code sent to change user's phone number. Returns authStateOk on success *** -

$MadelineProto->[checkChatInviteLink](checkChatInviteLink.md)(\['invite_link' => [string](../types/string.md), \]) === [$ChatInviteLinkInfo](../types/ChatInviteLinkInfo.md) +

* Checks chat invite link for validness and returns information about the corresponding chat *** -

$MadelineProto->[clearRecentStickers](clearRecentStickers.md)(\['is_attached' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md) +

* Clears list of recently used stickers *** -

$MadelineProto->[closeChat](closeChat.md)(\['chat_id' => [int53](../types/int53.md), \]) === [$Ok](../types/Ok.md) +

* Chat is closed by the user. Many useful activities depends on chat being opened or closed. *** -

$MadelineProto->[closeSecretChat](closeSecretChat.md)(\['secret_chat_id' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md) +

* Closes secret chat, effectively transfering its state to "Closed" *** -

$MadelineProto->[createCall](createCall.md)(\['user_id' => [int](../types/int.md), 'protocol' => [callProtocol](../constructors/callProtocol.md), \]) === [$CallId](../types/CallId.md) +

* Creates new call *** -

$MadelineProto->[createChannelChat](createChannelChat.md)(\['channel_id' => [int](../types/int.md), \]) === [$Chat](../types/Chat.md) +

* Returns existing chat corresponding to the known channel *** -

$MadelineProto->[createGroupChat](createGroupChat.md)(\['group_id' => [int](../types/int.md), \]) === [$Chat](../types/Chat.md) +

* Returns existing chat corresponding to the known group *** -

$MadelineProto->[createNewChannelChat](createNewChannelChat.md)(\['title' => [string](../types/string.md), 'is_supergroup' => [Bool](../types/Bool.md), 'description' => [string](../types/string.md), \]) === [$Chat](../types/Chat.md) +

* Creates new channel chat and send corresponding messageChannelChatCreate, returns created chat *** -

$MadelineProto->[createNewGroupChat](createNewGroupChat.md)(\['user_ids' => \[[int](../types/int.md)\], 'title' => [string](../types/string.md), \]) === [$Chat](../types/Chat.md) +

* Creates new group chat and send corresponding messageGroupChatCreate, returns created chat *** -

$MadelineProto->[createNewSecretChat](createNewSecretChat.md)(\['user_id' => [int](../types/int.md), \]) === [$Chat](../types/Chat.md) +

* Creates new secret chat, returns created chat *** -

$MadelineProto->[createNewStickerSet](createNewStickerSet.md)(\['user_id' => [int](../types/int.md), 'title' => [string](../types/string.md), 'name' => [string](../types/string.md), 'is_masks' => [Bool](../types/Bool.md), 'stickers' => \[[inputSticker](../constructors/inputSticker.md)\], \]) === [$StickerSet](../types/StickerSet.md) +

* Bots only. Creates new sticker set. Returns created sticker set *** -

$MadelineProto->[createPrivateChat](createPrivateChat.md)(\['user_id' => [int](../types/int.md), \]) === [$Chat](../types/Chat.md) +

* Returns existing chat corresponding to the given user *** -

$MadelineProto->[createSecretChat](createSecretChat.md)(\['secret_chat_id' => [int](../types/int.md), \]) === [$Chat](../types/Chat.md) +

* Returns existing chat corresponding to the known secret chat *** -

$MadelineProto->[createTemporaryPassword](createTemporaryPassword.md)(\['password' => [string](../types/string.md), 'valid_for' => [int](../types/int.md), \]) === [$TemporaryPasswordState](../types/TemporaryPasswordState.md) +

* Creates new temporary password for payments processing *** -

$MadelineProto->[debugCall](debugCall.md)(\['call_id' => [int](../types/int.md), 'debug' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) +

* Sends call debug information *** -

$MadelineProto->[deleteAccount](deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) +

* Deletes the account of currently logged in user, deleting from the server all information associated with it. Account's phone number can be used to create new account, but only once in two weeks *** -

$MadelineProto->[deleteChannel](deleteChannel.md)(\['channel_id' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md) +

* Deletes channel along with all messages in corresponding chat. Releases channel username and removes all members. Needs creator privileges in the channel. Channels with more than 1000 members can't be deleted *** -

$MadelineProto->[deleteChatHistory](deleteChatHistory.md)(\['chat_id' => [int53](../types/int53.md), 'remove_from_chat_list' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md) +

* Deletes all messages in the chat. Can't be used for channel chats *** -

$MadelineProto->[deleteChatReplyMarkup](deleteChatReplyMarkup.md)(\['chat_id' => [int53](../types/int53.md), 'message_id' => [int53](../types/int53.md), \]) === [$Ok](../types/Ok.md) +

* Deletes default reply markup from chat. This method needs to be called after one-time keyboard or ForceReply reply markup has been used. UpdateChatReplyMarkup will be send if reply markup will be changed *** -

$MadelineProto->[deleteContacts](deleteContacts.md)(\['user_ids' => \[[int](../types/int.md)\], \]) === [$Ok](../types/Ok.md) +

* Deletes users from contacts list *** -

$MadelineProto->[deleteFavoriteSticker](deleteFavoriteSticker.md)(\['sticker' => [InputFile](../types/InputFile.md), \]) === [$Ok](../types/Ok.md) +

* Removes a sticker from the list of favorite stickers *** -

$MadelineProto->[deleteFile](deleteFile.md)(\['file_id' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md) +

* Deletes a file from TDLib file cache *** -

$MadelineProto->[deleteImportedContacts](deleteImportedContacts.md)(\[\]) === [$Ok](../types/Ok.md) +

* Deletes all imported contacts *** -

$MadelineProto->[deleteMessages](deleteMessages.md)(\['chat_id' => [int53](../types/int53.md), 'message_ids' => \[[int53](../types/int53.md)\], 'revoke' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md) +

* Deletes messages *** -

$MadelineProto->[deleteMessagesFromUser](deleteMessagesFromUser.md)(\['chat_id' => [int53](../types/int53.md), 'user_id' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md) +

* Deletes all messages in the chat sent by the specified user. Works only in supergroup channel chats, needs can_delete_messages administrator privileges *** -

$MadelineProto->[deleteProfilePhoto](deleteProfilePhoto.md)(\['profile_photo_id' => [int64](../constructors/int64.md), \]) === [$Ok](../types/Ok.md) +

* Deletes profile photo. If something changes, updateUser will be sent *** -

$MadelineProto->[deleteRecentHashtag](deleteRecentHashtag.md)(\['hashtag' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) +

* Deletes a hashtag from the list of recently used hashtags *** -

$MadelineProto->[deleteRecentSticker](deleteRecentSticker.md)(\['is_attached' => [Bool](../types/Bool.md), 'sticker' => [InputFile](../types/InputFile.md), \]) === [$Ok](../types/Ok.md) +

* Removes a sticker from the list of recently used stickers *** -

$MadelineProto->[deleteRecentlyFoundChat](deleteRecentlyFoundChat.md)(\['chat_id' => [int53](../types/int53.md), \]) === [$Ok](../types/Ok.md) +

* Deletes chat from the list of recently found chats *** -

$MadelineProto->[deleteRecentlyFoundChats](deleteRecentlyFoundChats.md)(\[\]) === [$Ok](../types/Ok.md) +

* Clears list of recently found chats *** -

$MadelineProto->[deleteSavedAnimation](deleteSavedAnimation.md)(\['animation' => [InputFile](../types/InputFile.md), \]) === [$Ok](../types/Ok.md) +

* Removes an animation from the list of saved animations *** -

$MadelineProto->[deleteSavedCredentials](deleteSavedCredentials.md)(\[\]) === [$Ok](../types/Ok.md) +

* Deletes saved credentials for all payments provider bots *** -

$MadelineProto->[deleteSavedOrderInfo](deleteSavedOrderInfo.md)(\[\]) === [$Ok](../types/Ok.md) +

* Deletes saved order info *** -

$MadelineProto->[deleteStickerFromSet](deleteStickerFromSet.md)(\['sticker' => [InputFile](../types/InputFile.md), \]) === [$Ok](../types/Ok.md) +

* Bots only. Deletes a sticker from the set it belongs to. Sticker set should be created by the bot *** -

$MadelineProto->[deleteTopChat](deleteTopChat.md)(\['category' => [TopChatCategory](../types/TopChatCategory.md), 'chat_id' => [int53](../types/int53.md), \]) === [$Ok](../types/Ok.md) +

* Delete a chat from a list of frequently used chats. Supported only if chat info database is enabled *** -

$MadelineProto->[discardCall](discardCall.md)(\['call_id' => [int](../types/int.md), 'is_disconnected' => [Bool](../types/Bool.md), 'duration' => [int](../types/int.md), 'connection_id' => [int64](../constructors/int64.md), \]) === [$Ok](../types/Ok.md) +

* Discards a call *** -

$MadelineProto->[downloadFile](downloadFile.md)(\['file_id' => [int](../types/int.md), 'priority' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md) +

* Asynchronously downloads file from cloud. Updates updateFile will notify about download progress and successful download *** -

$MadelineProto->[editInlineMessageCaption](editInlineMessageCaption.md)(\['inline_message_id' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'caption' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) +

* Bots only. Edits caption of an inline message content sent via bot *** -

$MadelineProto->[editInlineMessageReplyMarkup](editInlineMessageReplyMarkup.md)(\['inline_message_id' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \]) === [$Ok](../types/Ok.md) +

* Bots only. Edits reply markup of an inline message sent via bot *** -

$MadelineProto->[editInlineMessageText](editInlineMessageText.md)(\['inline_message_id' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'input_message_content' => [InputMessageContent](../types/InputMessageContent.md), \]) === [$Ok](../types/Ok.md) +

* Bots only. Edits text of an inline text or game message sent via bot *** -

$MadelineProto->[editMessageCaption](editMessageCaption.md)(\['chat_id' => [int53](../types/int53.md), 'message_id' => [int53](../types/int53.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'caption' => [string](../types/string.md), \]) === [$Message](../types/Message.md) +

* Edits message content caption. Non-bots can edit message in a limited period of time. Returns edited message after edit is complete server side *** -

$MadelineProto->[editMessageReplyMarkup](editMessageReplyMarkup.md)(\['chat_id' => [int53](../types/int53.md), 'message_id' => [int53](../types/int53.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \]) === [$Message](../types/Message.md) +

* Bots only. Edits message reply markup. Returns edited message after edit is complete server side *** -

$MadelineProto->[editMessageText](editMessageText.md)(\['chat_id' => [int53](../types/int53.md), 'message_id' => [int53](../types/int53.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'input_message_content' => [InputMessageContent](../types/InputMessageContent.md), \]) === [$Message](../types/Message.md) +

* Edits text of text or game message. Non-bots can edit message in a limited period of time. Returns edited message after edit is complete server side *** -

$MadelineProto->[exportChatInviteLink](exportChatInviteLink.md)(\['chat_id' => [int53](../types/int53.md), \]) === [$ChatInviteLink](../types/ChatInviteLink.md) +

* Generates new chat invite link, previously generated link is revoked. Available for group and channel chats. In groups can be called only by creator, in channels requires appropriate rights *** -

$MadelineProto->[finishFileGeneration](finishFileGeneration.md)(\['generation_id' => [int64](../constructors/int64.md), \]) === [$Ok](../types/Ok.md) +

* Finishes file generation *** -

$MadelineProto->[forwardMessages](forwardMessages.md)(\['chat_id' => [int53](../types/int53.md), 'from_chat_id' => [int53](../types/int53.md), 'message_ids' => \[[int53](../types/int53.md)\], 'disable_notification' => [Bool](../types/Bool.md), 'from_background' => [Bool](../types/Bool.md), \]) === [$Messages](../types/Messages.md) +

* Forwards previously sent messages. Returns forwarded messages in the same order as message identifiers passed in message_ids. If message can't be forwarded, null will be returned instead of the message *** -

$MadelineProto->[getAccountTtl](getAccountTtl.md)(\[\]) === [$AccountTtl](../types/AccountTtl.md) +

* Returns period of inactivity, after which the account of currently logged in user will be automatically deleted *** -

$MadelineProto->[getActiveSessions](getActiveSessions.md)(\[\]) === [$Sessions](../types/Sessions.md) +

* Returns all active sessions of logged in user *** -

$MadelineProto->[getArchivedStickerSets](getArchivedStickerSets.md)(\['is_masks' => [Bool](../types/Bool.md), 'offset_sticker_set_id' => [int64](../constructors/int64.md), 'limit' => [int](../types/int.md), \]) === [$StickerSets](../types/StickerSets.md) +

* Returns list of archived sticker sets *** -

$MadelineProto->[getAttachedStickerSets](getAttachedStickerSets.md)(\['file_id' => [int](../types/int.md), \]) === [$StickerSets](../types/StickerSets.md) +

* Returns list of sticker sets attached to a file, currently only photos and videos can have attached sticker sets *** -

$MadelineProto->[getAuthState](getAuthState.md)(\[\]) === [$AuthState](../types/AuthState.md) +

* Returns current authorization state, offline request *** -

$MadelineProto->[getBlockedUsers](getBlockedUsers.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$Users](../types/Users.md) +

* Returns users blocked by the current user *** -

$MadelineProto->[getCallbackQueryAnswer](getCallbackQueryAnswer.md)(\['chat_id' => [int53](../types/int53.md), 'message_id' => [int53](../types/int53.md), 'payload' => [CallbackQueryPayload](../types/CallbackQueryPayload.md), \]) === [$CallbackQueryAnswer](../types/CallbackQueryAnswer.md) +

* Sends callback query to a bot and returns answer to it. Returns error with code 502 if bot fails to answer the query before query timeout expires. Unavailable for bots *** -

$MadelineProto->[getChannel](getChannel.md)(\['channel_id' => [int](../types/int.md), \]) === [$Channel](../types/Channel.md) +

* Returns information about a channel by its identifier, offline request if current user is not a bot *** -

$MadelineProto->[getChannelFull](getChannelFull.md)(\['channel_id' => [int](../types/int.md), \]) === [$ChannelFull](../types/ChannelFull.md) +

* Returns full information about a channel by its identifier, cached for at most 1 minute *** -

$MadelineProto->[getChannelMembers](getChannelMembers.md)(\['channel_id' => [int](../types/int.md), 'filter' => [ChannelMembersFilter](../types/ChannelMembersFilter.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$ChatMembers](../types/ChatMembers.md) +

* Returns information about channel members or banned users. Can be used only if channel_full->can_get_members == true. Administrator privileges may be additionally needed for some filters *** -

$MadelineProto->[getChat](getChat.md)(\['chat_id' => [int53](../types/int53.md), \]) === [$Chat](../types/Chat.md) +

* Returns information about a chat by its identifier, offline request if current user is not a bot *** -

$MadelineProto->[getChatEventLog](getChatEventLog.md)(\['chat_id' => [int53](../types/int53.md), 'query' => [string](../types/string.md), 'from_event_id' => [int64](../constructors/int64.md), 'limit' => [int](../types/int.md), 'filters' => [chatEventLogFilters](../constructors/chatEventLogFilters.md), 'user_ids' => \[[int](../types/int.md)\], \]) === [$ChatEvents](../types/ChatEvents.md) +

* Returns list of service actions taken by chat members and administrators in the last 48 hours, available only in channels. Requires administrator rights. Returns result in reverse chronological order, i. e. in order of decreasing event_id *** -

$MadelineProto->[getChatHistory](getChatHistory.md)(\['chat_id' => [int53](../types/int53.md), 'from_message_id' => [int53](../types/int53.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'only_local' => [Bool](../types/Bool.md), \]) === [$Messages](../types/Messages.md) +

* Returns messages in a chat. Returns result in reverse chronological order, i.e. in order of decreasing message.message_id. Offline request if only_local is true *** -

$MadelineProto->[getChatMember](getChatMember.md)(\['chat_id' => [int53](../types/int53.md), 'user_id' => [int](../types/int.md), \]) === [$ChatMember](../types/ChatMember.md) +

* Returns information about one participant of the chat *** -

$MadelineProto->[getChatReportSpamState](getChatReportSpamState.md)(\['chat_id' => [int53](../types/int53.md), \]) === [$ChatReportSpamState](../types/ChatReportSpamState.md) +

* Returns current chat report spam state *** -

$MadelineProto->[getChats](getChats.md)(\['offset_order' => [int64](../constructors/int64.md), 'offset_chat_id' => [int53](../types/int53.md), 'limit' => [int](../types/int.md), \]) === [$Chats](../types/Chats.md) +

* Returns list of chats in the right order, chats are sorted by (order, chat_id) in decreasing order. For example, to get list of chats from the beginning, the offset_order should be equal 2^63 - 1 *** -

$MadelineProto->[getCommonChats](getCommonChats.md)(\['user_id' => [int](../types/int.md), 'offset_chat_id' => [int53](../types/int53.md), 'limit' => [int](../types/int.md), \]) === [$Chats](../types/Chats.md) +

* Returns list of common chats with an other given user. Chats are sorted by their type and creation date *** -

$MadelineProto->[getCreatedPublicChats](getCreatedPublicChats.md)(\[\]) === [$Chats](../types/Chats.md) +

* Returns list of created public chats *** -

$MadelineProto->[getFavoriteStickers](getFavoriteStickers.md)(\[\]) === [$Stickers](../types/Stickers.md) +

* Returns favorite stickers *** -

$MadelineProto->[getFile](getFile.md)(\['file_id' => [int](../types/int.md), \]) === [$File](../types/File.md) +

* Returns information about a file, offline request *** -

$MadelineProto->[getFileExtension](getFileExtension.md)(\['mime_type' => [string](../types/string.md), \]) === [$Text](../types/Text.md) +

* Returns file's extension guessing only by its mime type. Returns empty string on failure. Offline method. Can be called before authorization. Can be called synchronously *** -

$MadelineProto->[getFileMimeType](getFileMimeType.md)(\['file_name' => [string](../types/string.md), \]) === [$Text](../types/Text.md) +

* Returns file's mime type guessing only by its extension. Returns empty string on failure. Offline method. Can be called before authorization. Can be called synchronously *** -

$MadelineProto->[getFilePersistent](getFilePersistent.md)(\['persistent_file_id' => [string](../types/string.md), 'file_type' => [FileType](../types/FileType.md), \]) === [$File](../types/File.md) +

* Returns information about a file by its persistent id, offline request. May be used to register a URL as a file for further uploading or sending as message *** -

$MadelineProto->[getGameHighScores](getGameHighScores.md)(\['chat_id' => [int53](../types/int53.md), 'message_id' => [int53](../types/int53.md), 'user_id' => [int](../types/int.md), \]) === [$GameHighScores](../types/GameHighScores.md) +

* Bots only. Returns game high scores and some part of the score table around of the specified user in the game *** -

$MadelineProto->[getGroup](getGroup.md)(\['group_id' => [int](../types/int.md), \]) === [$Group](../types/Group.md) +

* Returns information about a group by its identifier, offline request if current user is not a bot *** -

$MadelineProto->[getGroupFull](getGroupFull.md)(\['group_id' => [int](../types/int.md), \]) === [$GroupFull](../types/GroupFull.md) +

* Returns full information about a group by its identifier *** -

$MadelineProto->[getImportedContactCount](getImportedContactCount.md)(\[\]) === [$Count](../types/Count.md) +

* Returns total number of imported contacts *** -

$MadelineProto->[getInlineGameHighScores](getInlineGameHighScores.md)(\['inline_message_id' => [string](../types/string.md), 'user_id' => [int](../types/int.md), \]) === [$GameHighScores](../types/GameHighScores.md) +

* Bots only. Returns game high scores and some part of the score table around of the specified user in the game *** -

$MadelineProto->[getInlineQueryResults](getInlineQueryResults.md)(\['bot_user_id' => [int](../types/int.md), 'chat_id' => [int53](../types/int53.md), 'user_location' => [location](../constructors/location.md), 'query' => [string](../types/string.md), 'offset' => [string](../types/string.md), \]) === [$InlineQueryResults](../types/InlineQueryResults.md) +

* Sends inline query to a bot and returns its results. Returns error with code 502 if bot fails to answer the query before query timeout expires. Unavailable for bots *** -

$MadelineProto->[getInstalledStickerSets](getInstalledStickerSets.md)(\['is_masks' => [Bool](../types/Bool.md), \]) === [$StickerSets](../types/StickerSets.md) +

* Returns list of installed sticker sets *** -

$MadelineProto->[getInviteText](getInviteText.md)(\[\]) === [$Text](../types/Text.md) +

* Returns invite text for invitation of new users *** -

$MadelineProto->[getMe](getMe.md)(\[\]) === [$User](../types/User.md) +

* Returns current logged in user *** -

$MadelineProto->[getMessage](getMessage.md)(\['chat_id' => [int53](../types/int53.md), 'message_id' => [int53](../types/int53.md), \]) === [$Message](../types/Message.md) +

* Returns information about a message *** -

$MadelineProto->[getMessages](getMessages.md)(\['chat_id' => [int53](../types/int53.md), 'message_ids' => \[[int53](../types/int53.md)\], \]) === [$Messages](../types/Messages.md) +

* Returns information about messages. If message is not found, returns null on the corresponding position of the result *** -

$MadelineProto->[getNetworkStatistics](getNetworkStatistics.md)(\['only_current' => [Bool](../types/Bool.md), \]) === [$NetworkStatistics](../types/NetworkStatistics.md) +

* Returns network data usage statistics. Can be called before authorization *** -

$MadelineProto->[getNotificationSettings](getNotificationSettings.md)(\['scope' => [NotificationSettingsScope](../types/NotificationSettingsScope.md), \]) === [$NotificationSettings](../types/NotificationSettings.md) +

* Returns notification settings for a given scope *** -

$MadelineProto->[getOption](getOption.md)(\['name' => [string](../types/string.md), \]) === [$OptionValue](../types/OptionValue.md) +

* Returns value of an option by its name. See list of available options on https: core.telegram.org/tdlib/options. Can be called before authorization *** -

$MadelineProto->[getPasswordState](getPasswordState.md)(\[\]) === [$PasswordState](../types/PasswordState.md) +

* Returns current state of two-step verification *** -

$MadelineProto->[getPaymentForm](getPaymentForm.md)(\['chat_id' => [int53](../types/int53.md), 'message_id' => [int53](../types/int53.md), \]) === [$PaymentForm](../types/PaymentForm.md) +

* Returns invoice payment form. The method should be called when user presses inlineKeyboardButtonBuy *** -

$MadelineProto->[getPaymentReceipt](getPaymentReceipt.md)(\['chat_id' => [int53](../types/int53.md), 'message_id' => [int53](../types/int53.md), \]) === [$PaymentReceipt](../types/PaymentReceipt.md) +

* Returns information about successful payment *** -

$MadelineProto->[getPrivacy](getPrivacy.md)(\['key' => [PrivacyKey](../types/PrivacyKey.md), \]) === [$PrivacyRules](../types/PrivacyRules.md) +

* Returns current privacy settings *** -

$MadelineProto->[getProxy](getProxy.md)(\[\]) === [$Proxy](../types/Proxy.md) +

* Returns current set up proxy. Can be called before authorization *** -

$MadelineProto->[getPublicMessageLink](getPublicMessageLink.md)(\['chat_id' => [int53](../types/int53.md), 'message_id' => [int53](../types/int53.md), \]) === [$PublicMessageLink](../types/PublicMessageLink.md) +

* Returns public HTTPS link to a message. Available only for messages in public channels *** -

$MadelineProto->[getRecentInlineBots](getRecentInlineBots.md)(\[\]) === [$Users](../types/Users.md) +

* Returns up to 20 recently used inline bots in the order of the last usage *** -

$MadelineProto->[getRecentStickers](getRecentStickers.md)(\['is_attached' => [Bool](../types/Bool.md), \]) === [$Stickers](../types/Stickers.md) +

* Returns list of recently used stickers *** -

$MadelineProto->[getRecoveryEmail](getRecoveryEmail.md)(\['password' => [string](../types/string.md), \]) === [$RecoveryEmail](../types/RecoveryEmail.md) +

* Returns set up recovery email. This method can be used to verify a password provided by the user *** -

$MadelineProto->[getSavedAnimations](getSavedAnimations.md)(\[\]) === [$Animations](../types/Animations.md) +

* Returns saved animations *** -

$MadelineProto->[getSavedOrderInfo](getSavedOrderInfo.md)(\[\]) === [$OrderInfo](../types/OrderInfo.md) +

* Returns saved order info if any *** -

$MadelineProto->[getSecretChat](getSecretChat.md)(\['secret_chat_id' => [int](../types/int.md), \]) === [$SecretChat](../types/SecretChat.md) +

* Returns information about a secret chat by its identifier, offline request *** -

$MadelineProto->[getStickerEmojis](getStickerEmojis.md)(\['sticker' => [InputFile](../types/InputFile.md), \]) === [$StickerEmojis](../types/StickerEmojis.md) +

* Returns emojis corresponding to a sticker *** -

$MadelineProto->[getStickerSet](getStickerSet.md)(\['set_id' => [int64](../constructors/int64.md), \]) === [$StickerSet](../types/StickerSet.md) +

* Returns information about sticker set by its identifier *** -

$MadelineProto->[getStickers](getStickers.md)(\['emoji' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$Stickers](../types/Stickers.md) +

* Returns stickers from installed ordinary sticker sets corresponding to the given emoji. If emoji is not empty, elso favorite and recently used stickers may be returned *** -

$MadelineProto->[getStorageStatistics](getStorageStatistics.md)(\['chat_limit' => [int](../types/int.md), \]) === [$StorageStatistics](../types/StorageStatistics.md) +

* Returns storage usage statistics *** -

$MadelineProto->[getStorageStatisticsFast](getStorageStatisticsFast.md)(\[\]) === [$StorageStatisticsFast](../types/StorageStatisticsFast.md) +

* Quickly returns approximate storage usage statistics *** -

$MadelineProto->[getSupportUser](getSupportUser.md)(\[\]) === [$User](../types/User.md) +

* Returns user that can be contacted to get support *** -

$MadelineProto->[getTemporaryPasswordState](getTemporaryPasswordState.md)(\[\]) === [$TemporaryPasswordState](../types/TemporaryPasswordState.md) +

* Returns information about current temporary password *** -

$MadelineProto->[getTermsOfService](getTermsOfService.md)(\[\]) === [$Text](../types/Text.md) +

* Returns terms of service. Can be called before authorization *** -

$MadelineProto->[getTextEntities](getTextEntities.md)(\['text' => [string](../types/string.md), \]) === [$TextEntities](../types/TextEntities.md) +

* Returns all mentions, hashtags, bot commands, URLs and emails contained in the text. Offline method. Can be called before authorization. Can be called synchronously *** -

$MadelineProto->[getTopChats](getTopChats.md)(\['category' => [TopChatCategory](../types/TopChatCategory.md), 'limit' => [int](../types/int.md), \]) === [$Chats](../types/Chats.md) +

* Returns a list of frequently used chats. Supported only if chat info database is enabled *** -

$MadelineProto->[getTrendingStickerSets](getTrendingStickerSets.md)(\[\]) === [$StickerSets](../types/StickerSets.md) +

* Returns list of trending sticker sets *** -

$MadelineProto->[getUser](getUser.md)(\['user_id' => [int](../types/int.md), \]) === [$User](../types/User.md) +

* Returns information about a user by its identifier, offline request if current user is not a bot *** -

$MadelineProto->[getUserFull](getUserFull.md)(\['user_id' => [int](../types/int.md), \]) === [$UserFull](../types/UserFull.md) +

* Returns full information about a user by its identifier *** -

$MadelineProto->[getUserProfilePhotos](getUserProfilePhotos.md)(\['user_id' => [int](../types/int.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$UserProfilePhotos](../types/UserProfilePhotos.md) +

* Returns profile photos of the user. Result of this query may be outdated: some photos may be already deleted *** -

$MadelineProto->[getWallpapers](getWallpapers.md)(\[\]) === [$Wallpapers](../types/Wallpapers.md) +

* Returns background wallpapers *** -

$MadelineProto->[getWebPageInstantView](getWebPageInstantView.md)(\['url' => [string](../types/string.md), 'force_full' => [Bool](../types/Bool.md), \]) === [$WebPageInstantView](../types/WebPageInstantView.md) +

* Returns web page instant view if available. Returns error 404 if web page has no instant view *** -

$MadelineProto->[getWebPagePreview](getWebPagePreview.md)(\['message_text' => [string](../types/string.md), \]) === [$WebPage](../types/WebPage.md) +

* Returns web page preview by text of the message. Do not call this function to often. Returns error 404 if web page has no preview *** -

$MadelineProto->[importChatInviteLink](importChatInviteLink.md)(\['invite_link' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) +

* Imports chat invite link, adds current user to a chat if possible. Member will not be added until chat state will be synchronized with the server *** -

$MadelineProto->[importContacts](importContacts.md)(\['contacts' => \[[contact](../constructors/contact.md)\], \]) === [$ImportedContacts](../types/ImportedContacts.md) +

* Adds new contacts/edits existing contacts, contacts user identifiers are ignored *** -

$MadelineProto->[migrateGroupChatToChannelChat](migrateGroupChatToChannelChat.md)(\['chat_id' => [int53](../types/int53.md), \]) === [$Chat](../types/Chat.md) +

* Creates new channel supergroup chat from existing group chat and send corresponding messageChatMigrateTo and messageChatMigrateFrom. Deactivates group *** -

$MadelineProto->[openChat](openChat.md)(\['chat_id' => [int53](../types/int53.md), \]) === [$Ok](../types/Ok.md) +

* Chat is opened by the user. Many useful activities depends on chat being opened or closed. For example, in channels all updates are received only for opened chats *** -

$MadelineProto->[openMessageContent](openMessageContent.md)(\['chat_id' => [int53](../types/int53.md), 'message_id' => [int53](../types/int53.md), \]) === [$Ok](../types/Ok.md) +

* Message content is opened, for example the user has opened a photo, a video, a document, a location or a venue or have listened to an audio or a voice message. You will receive updateOpenMessageContent if something has changed *** -

$MadelineProto->[optimizeStorage](optimizeStorage.md)(\['size' => [int53](../types/int53.md), 'ttl' => [int](../types/int.md), 'count' => [int](../types/int.md), 'immunity_delay' => [int](../types/int.md), 'file_types' => \[[FileType](../types/FileType.md)\], 'chat_ids' => \[[int53](../types/int53.md)\], 'exclude_chat_ids' => \[[int53](../types/int53.md)\], 'chat_limit' => [int](../types/int.md), \]) === [$StorageStatistics](../types/StorageStatistics.md) +

* Optimizes storage usage, i.e. deletes some files and return new storage usage statistics. Secret thumbnails can't be deleted *** -

$MadelineProto->[pinChannelMessage](pinChannelMessage.md)(\['channel_id' => [int](../types/int.md), 'message_id' => [int53](../types/int53.md), 'disable_notification' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md) +

* Pins a message in a supergroup channel chat. Needs appropriate rights in the channel *** -

$MadelineProto->[processDcUpdate](processDcUpdate.md)(\['dc' => [string](../types/string.md), 'addr' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) +

* Handles DC_UPDATE push service notification. Can be called before authorization *** -

$MadelineProto->[rateCall](rateCall.md)(\['call_id' => [int](../types/int.md), 'rating' => [int](../types/int.md), 'comment' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) +

* Sends call rating *** -

$MadelineProto->[recoverAuthPassword](recoverAuthPassword.md)(\['recovery_code' => [string](../types/string.md), \]) === [$AuthState](../types/AuthState.md) +

* Recovers password with recovery code sent to email. Works only when getAuthState returns authStateWaitPassword. Returns authStateOk on success *** -

$MadelineProto->[recoverPassword](recoverPassword.md)(\['recovery_code' => [string](../types/string.md), \]) === [$PasswordState](../types/PasswordState.md) +

* Recovers password with recovery code sent to email *** -

$MadelineProto->[registerDevice](registerDevice.md)(\['device_token' => [DeviceToken](../types/DeviceToken.md), \]) === [$Ok](../types/Ok.md) +

* Registers current used device for receiving push notifications *** -

$MadelineProto->[reorderInstalledStickerSets](reorderInstalledStickerSets.md)(\['is_masks' => [Bool](../types/Bool.md), 'sticker_set_ids' => \[[int64](../constructors/int64.md)\], \]) === [$Ok](../types/Ok.md) +

* Changes the order of installed sticker sets *** -

$MadelineProto->[reportChannelSpam](reportChannelSpam.md)(\['channel_id' => [int](../types/int.md), 'user_id' => [int](../types/int.md), 'message_ids' => \[[int53](../types/int53.md)\], \]) === [$Ok](../types/Ok.md) +

* Reports some supergroup channel messages from a user as spam messages *** -

$MadelineProto->[reportChat](reportChat.md)(\['chat_id' => [int53](../types/int53.md), 'reason' => [ChatReportReason](../types/ChatReportReason.md), \]) === [$Ok](../types/Ok.md) +

* Reports chat to Telegram moderators. Can be used only for a channel chat or a private chat with a bot, because all other chats can't be checked by moderators *** -

$MadelineProto->[requestAuthPasswordRecovery](requestAuthPasswordRecovery.md)(\[\]) === [$AuthState](../types/AuthState.md) +

* Requests to send password recovery code to email. Works only when getAuthState returns authStateWaitPassword. Returns authStateWaitPassword on success *** -

$MadelineProto->[requestPasswordRecovery](requestPasswordRecovery.md)(\[\]) === [$PasswordRecoveryInfo](../types/PasswordRecoveryInfo.md) +

* Requests to send password recovery code to email *** -

$MadelineProto->[resendAuthCode](resendAuthCode.md)(\[\]) === [$AuthState](../types/AuthState.md) +

* Resends authentication code to the user. Works only when getAuthState returns authStateWaitCode and next_code_type of result is not null. Returns authStateWaitCode on success *** -

$MadelineProto->[resendChangePhoneNumberCode](resendChangePhoneNumberCode.md)(\[\]) === [$AuthState](../types/AuthState.md) +

* Resends authentication code sent to change user's phone number. Wotks only if in previously received authStateWaitCode next_code_type was not null. Returns authStateWaitCode on success *** -

$MadelineProto->[resetAllNotificationSettings](resetAllNotificationSettings.md)(\[\]) === [$Ok](../types/Ok.md) +

* Resets all notification settings to the default value. By default the only muted chats are supergroups, sound is set to 'default' and message previews are showed *** -

$MadelineProto->[resetAuth](resetAuth.md)(\['force' => [Bool](../types/Bool.md), \]) === [$AuthState](../types/AuthState.md) +

* Logs out user. If force == false, begins to perform soft log out, returns authStateLoggingOut after completion. If force == true then succeeds almost immediately without cleaning anything at the server, but returns error with code 401 and description "Unauthorized" *** -

$MadelineProto->[resetNetworkStatistics](resetNetworkStatistics.md)(\[\]) === [$Ok](../types/Ok.md) +

* Resets all network data usage statistics to zero. Can be called before authorization *** -

$MadelineProto->[searchCallMessages](searchCallMessages.md)(\['from_message_id' => [int53](../types/int53.md), 'limit' => [int](../types/int.md), 'only_missed' => [Bool](../types/Bool.md), \]) === [$Messages](../types/Messages.md) +

* Searches for call messages. Returns result in reverse chronological order, i. e. in order of decreasing message_id *** -

$MadelineProto->[searchChatMembers](searchChatMembers.md)(\['chat_id' => [int53](../types/int53.md), 'query' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$ChatMembers](../types/ChatMembers.md) +

* Searches for the specified query in the first name, last name and username among members of the specified chat. Requires administrator rights in broadcast channels *** -

$MadelineProto->[searchChatMessages](searchChatMessages.md)(\['chat_id' => [int53](../types/int53.md), 'query' => [string](../types/string.md), 'sender_user_id' => [int](../types/int.md), 'from_message_id' => [int53](../types/int53.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'filter' => [SearchMessagesFilter](../types/SearchMessagesFilter.md), \]) === [$Messages](../types/Messages.md) +

* Searches for messages with given words in the chat. Returns result in reverse chronological order, i. e. in order of decreasing message_id. Doesn't work in secret chats with non-empty query (searchSecretMessages should be used instead) or without enabled message database *** -

$MadelineProto->[searchChats](searchChats.md)(\['query' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$Chats](../types/Chats.md) +

* Searches for specified query in the title and username of known chats, offline request. Returns chats in the order of them in the chat list *** -

$MadelineProto->[searchContacts](searchContacts.md)(\['query' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$Users](../types/Users.md) +

* Searches for specified query in the first name, last name and username of the known user contacts *** -

$MadelineProto->[searchHashtags](searchHashtags.md)(\['prefix' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$Hashtags](../types/Hashtags.md) +

* Searches for recently used hashtags by their prefix *** -

$MadelineProto->[searchMessages](searchMessages.md)(\['query' => [string](../types/string.md), 'offset_date' => [int](../types/int.md), 'offset_chat_id' => [int53](../types/int53.md), 'offset_message_id' => [int53](../types/int53.md), 'limit' => [int](../types/int.md), \]) === [$Messages](../types/Messages.md) +

* Searches for messages in all chats except secret chats. Returns result in reverse chronological order, i. e. in order of decreasing (date, chat_id, message_id) *** -

$MadelineProto->[searchPublicChat](searchPublicChat.md)(\['username' => [string](../types/string.md), \]) === [$Chat](../types/Chat.md) +

* Searches public chat by its username. Currently only private and channel chats can be public. Returns chat if found, otherwise some error is returned *** -

$MadelineProto->[searchPublicChats](searchPublicChats.md)(\['username_prefix' => [string](../types/string.md), \]) === [$Chats](../types/Chats.md) +

* Searches public chats by prefix of their username. Currently only private and channel (including supergroup) chats can be public. Returns meaningful number of results. Returns nothing if length of the searched username prefix is less than 5. Excludes private chats with contacts from the results *** -

$MadelineProto->[searchSecretMessages](searchSecretMessages.md)(\['chat_id' => [int53](../types/int53.md), 'query' => [string](../types/string.md), 'from_search_id' => [int64](../constructors/int64.md), 'limit' => [int](../types/int.md), 'filter' => [SearchMessagesFilter](../types/SearchMessagesFilter.md), \]) === [$FoundMessages](../types/FoundMessages.md) +

* Searches for messages in secret chats. Returns result in reverse chronological order *** -

$MadelineProto->[searchStickerSet](searchStickerSet.md)(\['name' => [string](../types/string.md), \]) === [$StickerSet](../types/StickerSet.md) +

* Searches sticker set by its short name *** -

$MadelineProto->[sendBotStartMessage](sendBotStartMessage.md)(\['bot_user_id' => [int](../types/int.md), 'chat_id' => [int53](../types/int53.md), 'parameter' => [string](../types/string.md), \]) === [$Message](../types/Message.md) +

* Invites bot to a chat (if it is not in the chat) and send /start to it. Bot can't be invited to a private chat other than chat with the bot. Bots can't be invited to broadcast channel chats and secret chats. Returns sent message *** -

$MadelineProto->[sendChatAction](sendChatAction.md)(\['chat_id' => [int53](../types/int53.md), 'action' => [ChatAction](../types/ChatAction.md), \]) === [$Ok](../types/Ok.md) +

* Sends notification about user activity in a chat *** -

$MadelineProto->[sendChatScreenshotTakenNotification](sendChatScreenshotTakenNotification.md)(\['chat_id' => [int53](../types/int53.md), \]) === [$Ok](../types/Ok.md) +

* Sends notification about screenshot taken in a chat. Works only in private and secret chats *** -

$MadelineProto->[sendChatSetTtlMessage](sendChatSetTtlMessage.md)(\['chat_id' => [int53](../types/int53.md), 'ttl' => [int](../types/int.md), \]) === [$Message](../types/Message.md) +

* Changes current ttl setting in a secret chat and sends corresponding message *** -

$MadelineProto->[sendCustomRequest](sendCustomRequest.md)(\['method' => [string](../types/string.md), 'parameters' => [string](../types/string.md), \]) === [$CustomRequestResult](../types/CustomRequestResult.md) +

* Bots only. Sends custom request *** -

$MadelineProto->[sendInlineQueryResultMessage](sendInlineQueryResultMessage.md)(\['chat_id' => [int53](../types/int53.md), 'reply_to_message_id' => [int53](../types/int53.md), 'disable_notification' => [Bool](../types/Bool.md), 'from_background' => [Bool](../types/Bool.md), 'query_id' => [int64](../constructors/int64.md), 'result_id' => [string](../types/string.md), \]) === [$Message](../types/Message.md) +

* Sends result of the inline query as a message. Returns sent message. Always clears chat draft message *** -

$MadelineProto->[sendMessage](sendMessage.md)(\['chat_id' => [int53](../types/int53.md), 'reply_to_message_id' => [int53](../types/int53.md), 'disable_notification' => [Bool](../types/Bool.md), 'from_background' => [Bool](../types/Bool.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'input_message_content' => [InputMessageContent](../types/InputMessageContent.md), \]) === [$Message](../types/Message.md) +

* Sends a message. Returns sent message *** -

$MadelineProto->[sendPaymentForm](sendPaymentForm.md)(\['chat_id' => [int53](../types/int53.md), 'message_id' => [int53](../types/int53.md), 'order_info_id' => [string](../types/string.md), 'shipping_option_id' => [string](../types/string.md), 'credentials' => [InputCredentials](../types/InputCredentials.md), \]) === [$PaymentResult](../types/PaymentResult.md) +

* Sends filled payment form to the bot for the final verification *** -

$MadelineProto->[setAlarm](setAlarm.md)(\['seconds' => [double](../types/double.md), \]) === [$Ok](../types/Ok.md) +

* Returns Ok after specified amount of the time passed. Can be called before authorization *** -

$MadelineProto->[setAuthPhoneNumber](setAuthPhoneNumber.md)(\['phone_number' => [string](../types/string.md), 'allow_flash_call' => [Bool](../types/Bool.md), 'is_current_phone_number' => [Bool](../types/Bool.md), \]) === [$AuthState](../types/AuthState.md) +

* Sets user's phone number and sends authentication code to the user. Works only when getAuthState returns authStateWaitPhoneNumber. If phone number is not recognized or another error has happened, returns an error. Otherwise returns authStateWaitCode *** -

$MadelineProto->[setBotUpdatesStatus](setBotUpdatesStatus.md)(\['pending_update_count' => [int](../types/int.md), 'error_message' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) +

* Bots only. Informs server about number of pending bot updates if they aren't processed for a long time *** -

$MadelineProto->[setChannelStickerSet](setChannelStickerSet.md)(\['channel_id' => [int](../types/int.md), 'sticker_set_id' => [int64](../constructors/int64.md), \]) === [$Ok](../types/Ok.md) +

* Changes sticker set of the channel. Needs appropriate rights in the channel *** -

$MadelineProto->[setChatClientData](setChatClientData.md)(\['chat_id' => [int53](../types/int53.md), 'client_data' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md) +

* Changes client data associated with a chat *** -

$MadelineProto->[setFileGenerationProgress](setFileGenerationProgress.md)(\['generation_id' => [int64](../constructors/int64.md), 'size' => [int](../types/int.md), 'local_size' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md) +

* Next part of a file was generated *** -

$MadelineProto->[setGameScore](setGameScore.md)(\['chat_id' => [int53](../types/int53.md), 'message_id' => [int53](../types/int53.md), 'edit_message' => [Bool](../types/Bool.md), 'user_id' => [int](../types/int.md), 'score' => [int](../types/int.md), 'force' => [Bool](../types/Bool.md), \]) === [$Message](../types/Message.md) +

* Bots only. Updates game score of the specified user in the game *** -

$MadelineProto->[setInlineGameScore](setInlineGameScore.md)(\['inline_message_id' => [string](../types/string.md), 'edit_message' => [Bool](../types/Bool.md), 'user_id' => [int](../types/int.md), 'score' => [int](../types/int.md), 'force' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md) +

* Bots only. Updates game score of the specified user in the game *** -

$MadelineProto->[setNetworkType](setNetworkType.md)(\['type' => [NetworkType](../types/NetworkType.md), \]) === [$Ok](../types/Ok.md) +

* Sets current network type. Can be called before authorization. Call to this method forces reopening of all network connections mitigating delay in switching between different networks, so it should be called whenever network is changed even network type remains the same. -Network type is used to check if library can use network at all and for collecting detailed network data usage statistics *** -

$MadelineProto->[setNotificationSettings](setNotificationSettings.md)(\['scope' => [NotificationSettingsScope](../types/NotificationSettingsScope.md), 'notification_settings' => [notificationSettings](../constructors/notificationSettings.md), \]) === [$Ok](../types/Ok.md) +

* Changes notification settings for a given scope *** -

$MadelineProto->[setOption](setOption.md)(\['name' => [string](../types/string.md), 'value' => [OptionValue](../types/OptionValue.md), \]) === [$Ok](../types/Ok.md) +

* Sets value of an option. See list of available options on https: core.telegram.org/tdlib/options. Only writable options can be set. Can be called before authorization *** -

$MadelineProto->[setPassword](setPassword.md)(\['old_password' => [string](../types/string.md), 'new_password' => [string](../types/string.md), 'new_hint' => [string](../types/string.md), 'set_recovery_email' => [Bool](../types/Bool.md), 'new_recovery_email' => [string](../types/string.md), \]) === [$PasswordState](../types/PasswordState.md) +

* Changes user password. If new recovery email is specified, then error EMAIL_UNCONFIRMED is returned and password change will not be applied until email confirmation. Application should call getPasswordState from time to time to check if email is already confirmed *** -

$MadelineProto->[setPinnedChats](setPinnedChats.md)(\['chat_ids' => \[[int53](../types/int53.md)\], \]) === [$Ok](../types/Ok.md) +

* Changes list or order of pinned chats *** -

$MadelineProto->[setPrivacy](setPrivacy.md)(\['key' => [PrivacyKey](../types/PrivacyKey.md), 'rules' => [privacyRules](../constructors/privacyRules.md), \]) === [$Ok](../types/Ok.md) +

* Changes privacy settings *** -

$MadelineProto->[setProfilePhoto](setProfilePhoto.md)(\['photo' => [InputFile](../types/InputFile.md), \]) === [$Ok](../types/Ok.md) +

* Uploads new profile photo for logged in user. If something changes, updateUser will be sent *** -

$MadelineProto->[setProxy](setProxy.md)(\['proxy' => [Proxy](../types/Proxy.md), \]) === [$Ok](../types/Ok.md) +

* Sets proxy server for network requests. Can be called before authorization *** -

$MadelineProto->[setRecoveryEmail](setRecoveryEmail.md)(\['password' => [string](../types/string.md), 'new_recovery_email' => [string](../types/string.md), \]) === [$PasswordState](../types/PasswordState.md) +

* Changes user recovery email. If new recovery email is specified, then error EMAIL_UNCONFIRMED is returned and email will not be changed until email confirmation. Application should call getPasswordState from time to time to check if email is already confirmed. -If new_recovery_email coincides with the current set up email succeeds immediately and aborts all other requests waiting for email confirmation *** -

$MadelineProto->[setStickerPositionInSet](setStickerPositionInSet.md)(\['sticker' => [InputFile](../types/InputFile.md), 'position' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md) +

* Bots only. Changes position of a sticker in the set it belongs to. Sticker set should be created by the bot *** -

$MadelineProto->[terminateAllOtherSessions](terminateAllOtherSessions.md)(\[\]) === [$Ok](../types/Ok.md) +

* Terminates all other sessions of logged in user *** -

$MadelineProto->[terminateSession](terminateSession.md)(\['session_id' => [int64](../constructors/int64.md), \]) === [$Ok](../types/Ok.md) +

* Terminates another session of logged in user *** -

$MadelineProto->[testCallBytes](testCallBytes.md)(\['x' => [bytes](../types/bytes.md), \]) === [$TestBytes](../types/TestBytes.md) +

* Test request. Returns back received bytes *** -

$MadelineProto->[testCallEmpty](testCallEmpty.md)(\[\]) === [$Ok](../types/Ok.md) +

* Test request. Does nothing *** -

$MadelineProto->[testCallString](testCallString.md)(\['x' => [string](../types/string.md), \]) === [$TestString](../types/TestString.md) +

* Test request. Returns back received string *** -

$MadelineProto->[testCallVectorInt](testCallVectorInt.md)(\['x' => \[[int](../types/int.md)\], \]) === [$TestVectorInt](../types/TestVectorInt.md) +

* Test request. Returns back received vector of numbers *** -

$MadelineProto->[testCallVectorIntObject](testCallVectorIntObject.md)(\['x' => \[[testInt](../constructors/testInt.md)\], \]) === [$TestVectorIntObject](../types/TestVectorIntObject.md) +

* Test request. Returns back received vector of objects containing a number *** -

$MadelineProto->[testCallVectorString](testCallVectorString.md)(\['x' => \[[string](../types/string.md)\], \]) === [$TestVectorString](../types/TestVectorString.md) +

* Test request. Returns back received vector of strings *** -

$MadelineProto->[testCallVectorStringObject](testCallVectorStringObject.md)(\['x' => \[[testString](../constructors/testString.md)\], \]) === [$TestVectorStringObject](../types/TestVectorStringObject.md) +

* Test request. Returns back received vector of objects containing a string *** -

$MadelineProto->[testGetDifference](testGetDifference.md)(\[\]) === [$Ok](../types/Ok.md) +

* Test request. Forces updates.getDifference call to telegram servers *** -

$MadelineProto->[testNetwork](testNetwork.md)(\[\]) === [$Ok](../types/Ok.md) +

* Test request. Sends simple network request to telegram servers *** -

$MadelineProto->[testSquareInt](testSquareInt.md)(\['x' => [int](../types/int.md), \]) === [$TestInt](../types/TestInt.md) +

* Test request. Returns squared received number *** -

$MadelineProto->[testUseError](testUseError.md)(\[\]) === [$Error](../types/Error.md) +

* Test request. Does nothing, ensures that the Error object is used *** -

$MadelineProto->[testUseUpdate](testUseUpdate.md)(\[\]) === [$Update](../types/Update.md) +

* Test request. Does nothing, ensures that the Update object is used *** -

$MadelineProto->[toggleChannelInvites](toggleChannelInvites.md)(\['channel_id' => [int](../types/int.md), 'anyone_can_invite' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md) +

* Gives or revokes right to invite new members to all current members of the channel. Needs appropriate rights in the channel. Available only for supergroups *** -

$MadelineProto->[toggleChannelSignMessages](toggleChannelSignMessages.md)(\['channel_id' => [int](../types/int.md), 'sign_messages' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md) +

* Enables or disables sender signature on sent messages in the channel. Needs appropriate rights in the channel. Not available for supergroups *** -

$MadelineProto->[toggleChatIsPinned](toggleChatIsPinned.md)(\['chat_id' => [int53](../types/int53.md), 'is_pinned' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md) +

* Changes chat pinned state. You can pin up to getOption("pinned_chat_count_max") non-secret chats and the same number of secret chats *** -

$MadelineProto->[toggleGroupAdministrators](toggleGroupAdministrators.md)(\['group_id' => [int](../types/int.md), 'everyone_is_administrator' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md) +

* Gives or revokes all members of the group administrator rights. Needs creator privileges in the group *** -

$MadelineProto->[unblockUser](unblockUser.md)(\['user_id' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md) +

* Removes user from black list *** -

$MadelineProto->[unpinChannelMessage](unpinChannelMessage.md)(\['channel_id' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md) +

* Removes pinned message in the supergroup channel. Needs appropriate rights in the channel *** -

$MadelineProto->[uploadFile](uploadFile.md)(\['file' => [InputFile](../types/InputFile.md), 'file_type' => [FileType](../types/FileType.md), 'priority' => [int](../types/int.md), \]) === [$File](../types/File.md) +

* Asynchronously uploads file to the cloud without sending it in a message. Updates updateFile will notify about upload progress and successful upload. The file will not have persistent identifier until it will be sent in a message *** -

$MadelineProto->[uploadStickerFile](uploadStickerFile.md)(\['user_id' => [int](../types/int.md), 'png_sticker' => [InputFile](../types/InputFile.md), \]) === [$File](../types/File.md) +

* Bots only. Uploads a png image with a sticker. Returns uploaded file *** -

$MadelineProto->[validateOrderInfo](validateOrderInfo.md)(\['chat_id' => [int53](../types/int53.md), 'message_id' => [int53](../types/int53.md), 'order_info' => [orderInfo](../constructors/orderInfo.md), 'allow_save' => [Bool](../types/Bool.md), \]) === [$ValidatedOrderInfo](../types/ValidatedOrderInfo.md) +

* Validates order information provided by the user and returns available shipping options for flexible invoice *** -

$MadelineProto->[viewMessages](viewMessages.md)(\['chat_id' => [int53](../types/int53.md), 'message_ids' => \[[int53](../types/int53.md)\], \]) === [$Ok](../types/Ok.md) +

* Messages are viewed by the user. Many useful activities depends on message being viewed. For example, marking messages as read, incrementing of view counter, updating of view counter, removing of deleted messages in channels *** -

$MadelineProto->[viewTrendingStickerSets](viewTrendingStickerSets.md)(\['sticker_set_ids' => \[[int64](../constructors/int64.md)\], \]) === [$Ok](../types/Ok.md) +

* Informs that some trending sticker sets are viewed by the user diff --git a/old_docs/API_docs_v18/README.md b/old_docs/API_docs_v18/README.md index dc8114d9..7c74ebb5 100644 --- a/old_docs/API_docs_v18/README.md +++ b/old_docs/API_docs_v18/README.md @@ -4,11 +4,11 @@ description: MadelineProto API documentation (layer v18) --- # MadelineProto API documentation (layer v18) +[Back to main documentation](..) + + [Methods](methods/) [Constructors](constructors/) -[Types](types/) - - -[Back to main documentation](..) +[Types](types/) \ No newline at end of file diff --git a/old_docs/API_docs_v18/methods/README.md b/old_docs/API_docs_v18/methods/README.md index 3e18b33f..c8beb472 100644 --- a/old_docs/API_docs_v18/methods/README.md +++ b/old_docs/API_docs_v18/methods/README.md @@ -1,223 +1,218 @@ --- title: Methods -description: List of methods +description: What do you want to do? --- -# Methods -[Back to API documentation index](..) +# What do you want to do? +[Go back to API documentation index](..) +[Go to the old code-version method index](api_index.html) -$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); +* [Logout](https://docs.madelineproto.xyz/logout.html) -$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); +* [Login](https://docs.madelineproto.xyz/docs/LOGIN.html) -$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); +* [Get all chats, broadcast a message to all chats](https://docs.madelineproto.xyz/docs/DIALOGS.html) -$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); +* [Get the full participant list of a channel/group/supergroup](https://docs.madelineproto.xyz/get_pwr_chat.html) -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); +* [Get full info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_full_info.html) +* [Get info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_info.html) -$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); +* [Get info about the currently logged-in user](https://docs.madelineproto.xyz/get_self.html) -$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); +* [Upload or download files up to 1.5 GB](https://docs.madelineproto.xyz/docs/FILES.html) -$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); +* [Make a phone call and play a song](https://docs.madelineproto.xyz/docs/CALLS.html) -$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); - -$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); - - -$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); - -$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); +* [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) *** -

$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +

* Check if this username is available -$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) +* Get notification settings -$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) +* Returns a list of available wallpapers. -$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) +* Register device for push notifications -$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) +* Reset all notification settings -$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Stop sending PUSH notifications to app -$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) +* Change notification settings -$MadelineProto->[account->updateProfile](account_updateProfile.md)(\['first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), \]) === [$User](../types/User.md) +* Update profile info -$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Update online status -$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) +* Update this user's username *** -

$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) +

* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info -$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) +* Check if this phone number is registered on telegram -$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) +* You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) +* Delete all logged-in sessions. -$MadelineProto->[auth->sendCall](auth_sendCall.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Send verification phone call -$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) +* Use phone_login instead -$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Invite friends to telegram! -$MadelineProto->[auth->sendSms](auth_sendSms.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Send SMS verification code -$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) +* You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) -$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) +* You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) *** -

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +

* Block a user -$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) +* Delete a contact -$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) +* Delete multiple contacts -$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) +* Export contact as card -$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) +* Get blocked users -$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [string](../types/string.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) +* Get info about a certain contact -$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) +* Get online status of all users -$MadelineProto->[contacts->getSuggested](contacts_getSuggested.md)(\['limit' => [int](../types/int.md), \]) === [$contacts\_Suggested](../types/contacts_Suggested.md) +* Get suggested contacts -$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) +* Import card as contact -$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], 'replace' => [Bool](../types/Bool.md), \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) +* Add phone number as contact -$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) +* Search contacts -$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +* Unblock a user *** -

$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) +

* Get info about app updates -$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) +* Get server configuration -$MadelineProto->[help->getInviteText](help_getInviteText.md)(\['lang_code' => [string](../types/string.md), \]) === [$help\_InviteText](../types/help_InviteText.md) +* Get invitation text -$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) +* Get nearest datacenter -$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) +* Get info of support user -$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) +* Log data for developer of this app *** -

$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) +

* Initializes connection and save information on the user's device and application. *** -

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invokes a query after successfull completion of one of the previous queries. *** -

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Result type returned by a current query. *** -

$MadelineProto->[invokeWithLayer18](invokeWithLayer18.md)(\['query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invoke this method with layer 18 *** -

$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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$MadelineProto->[messages->addChatUser](messages_addChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), 'fwd_limit' => [int](../types/int.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md) +* Add a user to a normal chat (use channels->inviteToChannel for supergroups) -$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md) +* Create a chat (not supergroup) -$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md) +* Delete a user from a chat (not supergroup) -$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Delete chat history -$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$Vector\_of\_int](../types/int.md) +* Delete messages -$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md) +* Edit the photo of a normal chat (not supergroup) -$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md) +* Edit the title of a normal chat (not supergroup) -$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md) +* Forward message -$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_StatedMessages](../types/messages_StatedMessages.md) +* Forward messages -$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get info about chats -$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) +* You cannot use this method directly, instead use $MadelineProto->get_dh_config(); -$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) +* Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html -$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) +* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$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) +* Get previous messages of a group -$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get messages -$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Mark messages as read in secret chats -$MadelineProto->[messages->readHistory](messages_readHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), 'offset' => [int](../types/int.md), 'read_contents' => [Bool](../types/Bool.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Mark messages as read -$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$Vector\_of\_int](../types/int.md) +* Mark message as read -$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_int](../types/int.md) +* Mark messages as read -$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) +* You cannot use this method directly -$MadelineProto->[messages->reportSpam](messages_reportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Report a peer for spam -$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Search peers or messages -$MadelineProto->[messages->sendBroadcast](messages_sendBroadcast.md)(\['contacts' => \[[InputUser](../types/InputUser.md)\], 'message' => [string](../types/string.md), 'media' => [InputMedia](../types/InputMedia.md), \]) === [$messages\_StatedMessages](../types/messages_StatedMessages.md) +* Send a message to all users in the chat list -$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send message to secret chat -$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) +* Send a file to a secret chat -$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send a service message to a secret chat -$MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'media' => [InputMedia](../types/InputMedia.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md) +* Send a media -$MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'message' => [string](../types/string.md), \]) === [$messages\_SentMessage](../types/messages_SentMessage.md) +* Send a message -$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Send typing notification to secret chat -$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) +* Change typing status *** -

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) +

* Delete profile photos -$MadelineProto->[photos->getUserPhotos](photos_getUserPhotos.md)(\['user_id' => [InputUser](../types/InputUser.md), 'offset' => [int](../types/int.md), 'max_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$photos\_Photos](../types/photos_Photos.md) +* Get the profile photos of a user -$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), 'crop' => [InputPhotoCrop](../types/InputPhotoCrop.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) +* Update the profile photo (use photos->uploadProfilePhoto to upload the photo) -$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) +* Upload profile photo *** -

$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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates -$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates *** -

$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) +

* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info *** -

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) +

* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) +* Get info about users diff --git a/old_docs/API_docs_v18/methods/account_checkUsername.md b/old_docs/API_docs_v18/methods/account_checkUsername.md index 0124bb38..08107762 100644 --- a/old_docs/API_docs_v18/methods/account_checkUsername.md +++ b/old_docs/API_docs_v18/methods/account_checkUsername.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v18/methods/account_getNotifySettings.md b/old_docs/API_docs_v18/methods/account_getNotifySettings.md index f00be12c..ad492f49 100644 --- a/old_docs/API_docs_v18/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v18/methods/account_getNotifySettings.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); diff --git a/old_docs/API_docs_v18/methods/account_getWallPapers.md b/old_docs/API_docs_v18/methods/account_getWallPapers.md index 89b281be..7c8bff39 100644 --- a/old_docs/API_docs_v18/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v18/methods/account_getWallPapers.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); diff --git a/old_docs/API_docs_v18/methods/account_registerDevice.md b/old_docs/API_docs_v18/methods/account_registerDevice.md index 651e753f..8dae7506 100644 --- a/old_docs/API_docs_v18/methods/account_registerDevice.md +++ b/old_docs/API_docs_v18/methods/account_registerDevice.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'app_sandbox' => Bool, 'lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v18/methods/account_resetNotifySettings.md b/old_docs/API_docs_v18/methods/account_resetNotifySettings.md index ccc836a9..557373b0 100644 --- a/old_docs/API_docs_v18/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v18/methods/account_resetNotifySettings.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); diff --git a/old_docs/API_docs_v18/methods/account_unregisterDevice.md b/old_docs/API_docs_v18/methods/account_unregisterDevice.md index 1d2b7670..b666d91a 100644 --- a/old_docs/API_docs_v18/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v18/methods/account_unregisterDevice.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); diff --git a/old_docs/API_docs_v18/methods/account_updateNotifySettings.md b/old_docs/API_docs_v18/methods/account_updateNotifySettings.md index 18cbdb75..db020309 100644 --- a/old_docs/API_docs_v18/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v18/methods/account_updateNotifySettings.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); diff --git a/old_docs/API_docs_v18/methods/account_updateProfile.md b/old_docs/API_docs_v18/methods/account_updateProfile.md index f16398ed..caea3391 100644 --- a/old_docs/API_docs_v18/methods/account_updateProfile.md +++ b/old_docs/API_docs_v18/methods/account_updateProfile.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', ]); diff --git a/old_docs/API_docs_v18/methods/account_updateStatus.md b/old_docs/API_docs_v18/methods/account_updateStatus.md index 4b049e65..50b99b1e 100644 --- a/old_docs/API_docs_v18/methods/account_updateStatus.md +++ b/old_docs/API_docs_v18/methods/account_updateStatus.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); diff --git a/old_docs/API_docs_v18/methods/account_updateUsername.md b/old_docs/API_docs_v18/methods/account_updateUsername.md index 08d2abe0..7276e2aa 100644 --- a/old_docs/API_docs_v18/methods/account_updateUsername.md +++ b/old_docs/API_docs_v18/methods/account_updateUsername.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v18/methods/api_README.md b/old_docs/API_docs_v18/methods/api_README.md new file mode 100644 index 00000000..1a7bb658 --- /dev/null +++ b/old_docs/API_docs_v18/methods/api_README.md @@ -0,0 +1,224 @@ +--- +title: Methods +description: List of methods +--- +# Methods +[Back to API documentation index](..) + +[Go to the new description-version method index](index.html) + +$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); + +$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); + +$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); + +$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); + +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); + + +$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); + +$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); + +$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); + +$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); + +$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); + + +$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); + +$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); + +*** +

$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) + +$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) + +$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) + +$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateProfile](account_updateProfile.md)(\['first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), \]) === [$User](../types/User.md) + +$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) + +*** +

$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) + +$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) + +$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) + +$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->sendCall](auth_sendCall.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->sendSms](auth_sendSms.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$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) + +*** +

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) + +$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) + +$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) + +$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [string](../types/string.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) + +$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) + +$MadelineProto->[contacts->getSuggested](contacts_getSuggested.md)(\['limit' => [int](../types/int.md), \]) === [$contacts\_Suggested](../types/contacts_Suggested.md) + +$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) + +$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], 'replace' => [Bool](../types/Bool.md), \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) + +$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) + +$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +*** +

$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) + +$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) + +$MadelineProto->[help->getInviteText](help_getInviteText.md)(\['lang_code' => [string](../types/string.md), \]) === [$help\_InviteText](../types/help_InviteText.md) + +$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) + +$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) + +$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) + +*** +

$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) + +*** +

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeWithLayer18](invokeWithLayer18.md)(\['query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$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) + +$MadelineProto->[messages->addChatUser](messages_addChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), 'fwd_limit' => [int](../types/int.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md) + +$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md) + +$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md) + +$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$Vector\_of\_int](../types/int.md) + +$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md) + +$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md) + +$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md) + +$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_StatedMessages](../types/messages_StatedMessages.md) + +$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) + +$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) + +$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$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) + +$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) + +$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->readHistory](messages_readHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), 'offset' => [int](../types/int.md), 'read_contents' => [Bool](../types/Bool.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$Vector\_of\_int](../types/int.md) + +$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_int](../types/int.md) + +$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) + +$MadelineProto->[messages->reportSpam](messages_reportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) + +$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) + +$MadelineProto->[messages->sendBroadcast](messages_sendBroadcast.md)(\['contacts' => \[[InputUser](../types/InputUser.md)\], 'message' => [string](../types/string.md), 'media' => [InputMedia](../types/InputMedia.md), \]) === [$messages\_StatedMessages](../types/messages_StatedMessages.md) + +$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$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) + +$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'media' => [InputMedia](../types/InputMedia.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md) + +$MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'message' => [string](../types/string.md), \]) === [$messages\_SentMessage](../types/messages_SentMessage.md) + +$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) + +$MadelineProto->[photos->getUserPhotos](photos_getUserPhotos.md)(\['user_id' => [InputUser](../types/InputUser.md), 'offset' => [int](../types/int.md), 'max_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$photos\_Photos](../types/photos_Photos.md) + +$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), 'crop' => [InputPhotoCrop](../types/InputPhotoCrop.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) + +$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) + +*** +

$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) + +$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) + +*** +

$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) + +$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) + +$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) + +*** +

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) + +$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) + diff --git a/old_docs/API_docs_v18/methods/auth_checkPhone.md b/old_docs/API_docs_v18/methods/auth_checkPhone.md index 291221de..1826ce63 100644 --- a/old_docs/API_docs_v18/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v18/methods/auth_checkPhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); diff --git a/old_docs/API_docs_v18/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v18/methods/auth_resetAuthorizations.md index 47feea16..a46c880d 100644 --- a/old_docs/API_docs_v18/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v18/methods/auth_resetAuthorizations.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); diff --git a/old_docs/API_docs_v18/methods/auth_sendCall.md b/old_docs/API_docs_v18/methods/auth_sendCall.md index e2bd2855..5947cda7 100644 --- a/old_docs/API_docs_v18/methods/auth_sendCall.md +++ b/old_docs/API_docs_v18/methods/auth_sendCall.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendCall(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v18/methods/auth_sendInvites.md b/old_docs/API_docs_v18/methods/auth_sendInvites.md index be32fe6b..9b88b4a3 100644 --- a/old_docs/API_docs_v18/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v18/methods/auth_sendInvites.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); diff --git a/old_docs/API_docs_v18/methods/auth_sendSms.md b/old_docs/API_docs_v18/methods/auth_sendSms.md index a17fdd3a..41340660 100644 --- a/old_docs/API_docs_v18/methods/auth_sendSms.md +++ b/old_docs/API_docs_v18/methods/auth_sendSms.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendSms(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v18/methods/contacts_block.md b/old_docs/API_docs_v18/methods/contacts_block.md index d0729d30..e592cace 100644 --- a/old_docs/API_docs_v18/methods/contacts_block.md +++ b/old_docs/API_docs_v18/methods/contacts_block.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v18/methods/contacts_deleteContact.md b/old_docs/API_docs_v18/methods/contacts_deleteContact.md index b8c17544..1a3f2a27 100644 --- a/old_docs/API_docs_v18/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v18/methods/contacts_deleteContact.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v18/methods/contacts_deleteContacts.md b/old_docs/API_docs_v18/methods/contacts_deleteContacts.md index 64c69460..f6627599 100644 --- a/old_docs/API_docs_v18/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v18/methods/contacts_deleteContacts.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v18/methods/contacts_exportCard.md b/old_docs/API_docs_v18/methods/contacts_exportCard.md index b05f57ce..1d2129f3 100644 --- a/old_docs/API_docs_v18/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v18/methods/contacts_exportCard.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); diff --git a/old_docs/API_docs_v18/methods/contacts_getBlocked.md b/old_docs/API_docs_v18/methods/contacts_getBlocked.md index d7d8c5cc..44d24aba 100644 --- a/old_docs/API_docs_v18/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v18/methods/contacts_getBlocked.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v18/methods/contacts_getContacts.md b/old_docs/API_docs_v18/methods/contacts_getContacts.md index 1ab8af27..83c4846f 100644 --- a/old_docs/API_docs_v18/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v18/methods/contacts_getContacts.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v18/methods/contacts_getStatuses.md b/old_docs/API_docs_v18/methods/contacts_getStatuses.md index b927a140..5cef3084 100644 --- a/old_docs/API_docs_v18/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v18/methods/contacts_getStatuses.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); diff --git a/old_docs/API_docs_v18/methods/contacts_getSuggested.md b/old_docs/API_docs_v18/methods/contacts_getSuggested.md index 302e60e5..1ce04bef 100644 --- a/old_docs/API_docs_v18/methods/contacts_getSuggested.md +++ b/old_docs/API_docs_v18/methods/contacts_getSuggested.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Suggested = $MadelineProto->contacts->getSuggested(['limit' => int, ]); diff --git a/old_docs/API_docs_v18/methods/contacts_importCard.md b/old_docs/API_docs_v18/methods/contacts_importCard.md index 81a1e138..89c96657 100644 --- a/old_docs/API_docs_v18/methods/contacts_importCard.md +++ b/old_docs/API_docs_v18/methods/contacts_importCard.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); diff --git a/old_docs/API_docs_v18/methods/contacts_importContacts.md b/old_docs/API_docs_v18/methods/contacts_importContacts.md index 578e5dfd..cd3d6615 100644 --- a/old_docs/API_docs_v18/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v18/methods/contacts_importContacts.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], 'replace' => Bool, ]); diff --git a/old_docs/API_docs_v18/methods/contacts_search.md b/old_docs/API_docs_v18/methods/contacts_search.md index 68daecd6..64ff748e 100644 --- a/old_docs/API_docs_v18/methods/contacts_search.md +++ b/old_docs/API_docs_v18/methods/contacts_search.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); diff --git a/old_docs/API_docs_v18/methods/contacts_unblock.md b/old_docs/API_docs_v18/methods/contacts_unblock.md index f7d151b9..ec72ae2d 100644 --- a/old_docs/API_docs_v18/methods/contacts_unblock.md +++ b/old_docs/API_docs_v18/methods/contacts_unblock.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v18/methods/help_getAppUpdate.md b/old_docs/API_docs_v18/methods/help_getAppUpdate.md index f97da105..ad5b8228 100644 --- a/old_docs/API_docs_v18/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v18/methods/help_getAppUpdate.md @@ -32,12 +32,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(['device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v18/methods/help_getConfig.md b/old_docs/API_docs_v18/methods/help_getConfig.md index 16e25c68..ca4bfc25 100644 --- a/old_docs/API_docs_v18/methods/help_getConfig.md +++ b/old_docs/API_docs_v18/methods/help_getConfig.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); diff --git a/old_docs/API_docs_v18/methods/help_getInviteText.md b/old_docs/API_docs_v18/methods/help_getInviteText.md index 0831ba5f..ad6ac262 100644 --- a/old_docs/API_docs_v18/methods/help_getInviteText.md +++ b/old_docs/API_docs_v18/methods/help_getInviteText.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(['lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v18/methods/help_getNearestDc.md b/old_docs/API_docs_v18/methods/help_getNearestDc.md index 35a8bf91..458f60ab 100644 --- a/old_docs/API_docs_v18/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v18/methods/help_getNearestDc.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); diff --git a/old_docs/API_docs_v18/methods/help_getSupport.md b/old_docs/API_docs_v18/methods/help_getSupport.md index a5bab0f2..9ee25b00 100644 --- a/old_docs/API_docs_v18/methods/help_getSupport.md +++ b/old_docs/API_docs_v18/methods/help_getSupport.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); diff --git a/old_docs/API_docs_v18/methods/help_saveAppLog.md b/old_docs/API_docs_v18/methods/help_saveAppLog.md index 0165b6e3..a7884c47 100644 --- a/old_docs/API_docs_v18/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v18/methods/help_saveAppLog.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); diff --git a/old_docs/API_docs_v18/methods/initConnection.md b/old_docs/API_docs_v18/methods/initConnection.md index 2d3d86ad..73620276 100644 --- a/old_docs/API_docs_v18/methods/initConnection.md +++ b/old_docs/API_docs_v18/methods/initConnection.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->initConnection(['api_id' => int, 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', 'query' => !X, ]); diff --git a/old_docs/API_docs_v18/methods/invokeAfterMsg.md b/old_docs/API_docs_v18/methods/invokeAfterMsg.md index e33a2c93..8e953e78 100644 --- a/old_docs/API_docs_v18/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v18/methods/invokeAfterMsg.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); diff --git a/old_docs/API_docs_v18/methods/invokeAfterMsgs.md b/old_docs/API_docs_v18/methods/invokeAfterMsgs.md index 3150a613..bc8a83b7 100644 --- a/old_docs/API_docs_v18/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v18/methods/invokeAfterMsgs.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); diff --git a/old_docs/API_docs_v18/methods/invokeWithLayer18.md b/old_docs/API_docs_v18/methods/invokeWithLayer18.md index f5e30352..b67eca68 100644 --- a/old_docs/API_docs_v18/methods/invokeWithLayer18.md +++ b/old_docs/API_docs_v18/methods/invokeWithLayer18.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeWithLayer18(['query' => !X, ]); diff --git a/old_docs/API_docs_v18/methods/messages_addChatUser.md b/old_docs/API_docs_v18/methods/messages_addChatUser.md index 29a87261..08b745d1 100644 --- a/old_docs/API_docs_v18/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v18/methods/messages_addChatUser.md @@ -46,12 +46,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StatedMessage = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); diff --git a/old_docs/API_docs_v18/methods/messages_createChat.md b/old_docs/API_docs_v18/methods/messages_createChat.md index d37a9768..8a34e1fe 100644 --- a/old_docs/API_docs_v18/methods/messages_createChat.md +++ b/old_docs/API_docs_v18/methods/messages_createChat.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StatedMessage = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); diff --git a/old_docs/API_docs_v18/methods/messages_deleteChatUser.md b/old_docs/API_docs_v18/methods/messages_deleteChatUser.md index 163a9250..8e8cf06b 100644 --- a/old_docs/API_docs_v18/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v18/methods/messages_deleteChatUser.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StatedMessage = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v18/methods/messages_deleteHistory.md b/old_docs/API_docs_v18/methods/messages_deleteHistory.md index a2120105..77b8987e 100644 --- a/old_docs/API_docs_v18/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v18/methods/messages_deleteHistory.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['peer' => InputPeer, 'offset' => int, ]); diff --git a/old_docs/API_docs_v18/methods/messages_deleteMessages.md b/old_docs/API_docs_v18/methods/messages_deleteMessages.md index 94614f99..fc9f6af3 100644 --- a/old_docs/API_docs_v18/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v18/methods/messages_deleteMessages.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->messages->deleteMessages(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v18/methods/messages_editChatPhoto.md b/old_docs/API_docs_v18/methods/messages_editChatPhoto.md index 4decf9cd..c2958508 100644 --- a/old_docs/API_docs_v18/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v18/methods/messages_editChatPhoto.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StatedMessage = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); diff --git a/old_docs/API_docs_v18/methods/messages_editChatTitle.md b/old_docs/API_docs_v18/methods/messages_editChatTitle.md index cff2e5e6..d2acc30b 100644 --- a/old_docs/API_docs_v18/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v18/methods/messages_editChatTitle.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StatedMessage = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); diff --git a/old_docs/API_docs_v18/methods/messages_forwardMessage.md b/old_docs/API_docs_v18/methods/messages_forwardMessage.md index 43d7d957..295eda7a 100644 --- a/old_docs/API_docs_v18/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v18/methods/messages_forwardMessage.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StatedMessage = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); diff --git a/old_docs/API_docs_v18/methods/messages_forwardMessages.md b/old_docs/API_docs_v18/methods/messages_forwardMessages.md index 21798bfe..f1eb9dc5 100644 --- a/old_docs/API_docs_v18/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v18/methods/messages_forwardMessages.md @@ -58,12 +58,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StatedMessages = $MadelineProto->messages->forwardMessages(['peer' => InputPeer, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v18/methods/messages_getChats.md b/old_docs/API_docs_v18/methods/messages_getChats.md index 290438a1..e84c7193 100644 --- a/old_docs/API_docs_v18/methods/messages_getChats.md +++ b/old_docs/API_docs_v18/methods/messages_getChats.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v18/methods/messages_getDialogs.md b/old_docs/API_docs_v18/methods/messages_getDialogs.md index 9245157b..c388f163 100644 --- a/old_docs/API_docs_v18/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v18/methods/messages_getDialogs.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['offset' => int, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v18/methods/messages_getHistory.md b/old_docs/API_docs_v18/methods/messages_getHistory.md index fe575dd4..ba497c74 100644 --- a/old_docs/API_docs_v18/methods/messages_getHistory.md +++ b/old_docs/API_docs_v18/methods/messages_getHistory.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getHistory(['peer' => InputPeer, 'offset' => int, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v18/methods/messages_getMessages.md b/old_docs/API_docs_v18/methods/messages_getMessages.md index 86d1da8a..d538cb5f 100644 --- a/old_docs/API_docs_v18/methods/messages_getMessages.md +++ b/old_docs/API_docs_v18/methods/messages_getMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v18/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v18/methods/messages_readEncryptedHistory.md index 39b110e3..2ba4cca4 100644 --- a/old_docs/API_docs_v18/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v18/methods/messages_readEncryptedHistory.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); diff --git a/old_docs/API_docs_v18/methods/messages_readHistory.md b/old_docs/API_docs_v18/methods/messages_readHistory.md index 5a54a07e..9dc802ab 100644 --- a/old_docs/API_docs_v18/methods/messages_readHistory.md +++ b/old_docs/API_docs_v18/methods/messages_readHistory.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, 'offset' => int, 'read_contents' => Bool, ]); diff --git a/old_docs/API_docs_v18/methods/messages_readMessageContents.md b/old_docs/API_docs_v18/methods/messages_readMessageContents.md index 286ec24a..07e43643 100644 --- a/old_docs/API_docs_v18/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v18/methods/messages_readMessageContents.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v18/methods/messages_receivedMessages.md b/old_docs/API_docs_v18/methods/messages_receivedMessages.md index 47bbb78e..aca67286 100644 --- a/old_docs/API_docs_v18/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v18/methods/messages_receivedMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); diff --git a/old_docs/API_docs_v18/methods/messages_reportSpam.md b/old_docs/API_docs_v18/methods/messages_reportSpam.md index 2e2b1177..09c1e63b 100644 --- a/old_docs/API_docs_v18/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v18/methods/messages_reportSpam.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reportSpam(['peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v18/methods/messages_search.md b/old_docs/API_docs_v18/methods/messages_search.md index 7821d2b7..735ddf47 100644 --- a/old_docs/API_docs_v18/methods/messages_search.md +++ b/old_docs/API_docs_v18/methods/messages_search.md @@ -49,12 +49,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->search(['peer' => InputPeer, 'q' => 'string', 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v18/methods/messages_sendBroadcast.md b/old_docs/API_docs_v18/methods/messages_sendBroadcast.md index 6ddd149a..341c3d8c 100644 --- a/old_docs/API_docs_v18/methods/messages_sendBroadcast.md +++ b/old_docs/API_docs_v18/methods/messages_sendBroadcast.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StatedMessages = $MadelineProto->messages->sendBroadcast(['contacts' => [InputUser, InputUser], 'message' => 'string', 'media' => InputMedia, ]); diff --git a/old_docs/API_docs_v18/methods/messages_sendEncrypted.md b/old_docs/API_docs_v18/methods/messages_sendEncrypted.md index d48f88d7..76305f32 100644 --- a/old_docs/API_docs_v18/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v18/methods/messages_sendEncrypted.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v18/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v18/methods/messages_sendEncryptedFile.md index 4fd0648e..8db2ead9 100644 --- a/old_docs/API_docs_v18/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v18/methods/messages_sendEncryptedFile.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); diff --git a/old_docs/API_docs_v18/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v18/methods/messages_sendEncryptedService.md index d66894bf..c7836c94 100644 --- a/old_docs/API_docs_v18/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v18/methods/messages_sendEncryptedService.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v18/methods/messages_sendMedia.md b/old_docs/API_docs_v18/methods/messages_sendMedia.md index dfa58f63..9a67a6f9 100644 --- a/old_docs/API_docs_v18/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v18/methods/messages_sendMedia.md @@ -58,12 +58,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StatedMessage = $MadelineProto->messages->sendMedia(['peer' => InputPeer, 'media' => InputMedia, ]); diff --git a/old_docs/API_docs_v18/methods/messages_sendMessage.md b/old_docs/API_docs_v18/methods/messages_sendMessage.md index 0d915ae3..ad1ec5cd 100644 --- a/old_docs/API_docs_v18/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v18/methods/messages_sendMessage.md @@ -57,12 +57,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentMessage = $MadelineProto->messages->sendMessage(['peer' => InputPeer, 'message' => 'string', ]); diff --git a/old_docs/API_docs_v18/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v18/methods/messages_setEncryptedTyping.md index e9afe99c..4e7450eb 100644 --- a/old_docs/API_docs_v18/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v18/methods/messages_setEncryptedTyping.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); diff --git a/old_docs/API_docs_v18/methods/messages_setTyping.md b/old_docs/API_docs_v18/methods/messages_setTyping.md index bea4982b..a2b94823 100644 --- a/old_docs/API_docs_v18/methods/messages_setTyping.md +++ b/old_docs/API_docs_v18/methods/messages_setTyping.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); diff --git a/old_docs/API_docs_v18/methods/photos_deletePhotos.md b/old_docs/API_docs_v18/methods/photos_deletePhotos.md index b9daca10..937aadd5 100644 --- a/old_docs/API_docs_v18/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v18/methods/photos_deletePhotos.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); diff --git a/old_docs/API_docs_v18/methods/photos_getUserPhotos.md b/old_docs/API_docs_v18/methods/photos_getUserPhotos.md index c9a219e0..071a8f98 100644 --- a/old_docs/API_docs_v18/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v18/methods/photos_getUserPhotos.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v18/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v18/methods/photos_updateProfilePhoto.md index 2d1e1e76..4c5c517f 100644 --- a/old_docs/API_docs_v18/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v18/methods/photos_updateProfilePhoto.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, 'crop' => InputPhotoCrop, ]); diff --git a/old_docs/API_docs_v18/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v18/methods/photos_uploadProfilePhoto.md index 6ff4ddf5..3d7d301b 100644 --- a/old_docs/API_docs_v18/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v18/methods/photos_uploadProfilePhoto.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, 'caption' => 'string', 'geo_point' => InputGeoPoint, 'crop' => InputPhotoCrop, ]); diff --git a/old_docs/API_docs_v18/methods/users_getUsers.md b/old_docs/API_docs_v18/methods/users_getUsers.md index ef1c7fd8..bce13ee6 100644 --- a/old_docs/API_docs_v18/methods/users_getUsers.md +++ b/old_docs/API_docs_v18/methods/users_getUsers.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v23/README.md b/old_docs/API_docs_v23/README.md index 7697b46f..04f040fa 100644 --- a/old_docs/API_docs_v23/README.md +++ b/old_docs/API_docs_v23/README.md @@ -4,11 +4,11 @@ description: MadelineProto API documentation (layer v23) --- # MadelineProto API documentation (layer v23) +[Back to main documentation](..) + + [Methods](methods/) [Constructors](constructors/) -[Types](types/) - - -[Back to main documentation](..) +[Types](types/) \ No newline at end of file diff --git a/old_docs/API_docs_v23/methods/README.md b/old_docs/API_docs_v23/methods/README.md index 49aacfdc..e252f258 100644 --- a/old_docs/API_docs_v23/methods/README.md +++ b/old_docs/API_docs_v23/methods/README.md @@ -1,247 +1,242 @@ --- title: Methods -description: List of methods +description: What do you want to do? --- -# Methods -[Back to API documentation index](..) +# What do you want to do? +[Go back to API documentation index](..) +[Go to the old code-version method index](api_index.html) -$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); +* [Logout](https://docs.madelineproto.xyz/logout.html) -$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); +* [Login](https://docs.madelineproto.xyz/docs/LOGIN.html) -$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); +* [Get all chats, broadcast a message to all chats](https://docs.madelineproto.xyz/docs/DIALOGS.html) -$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); +* [Get the full participant list of a channel/group/supergroup](https://docs.madelineproto.xyz/get_pwr_chat.html) -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); +* [Get full info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_full_info.html) +* [Get info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_info.html) -$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); +* [Get info about the currently logged-in user](https://docs.madelineproto.xyz/get_self.html) -$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); +* [Upload or download files up to 1.5 GB](https://docs.madelineproto.xyz/docs/FILES.html) -$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); +* [Make a phone call and play a song](https://docs.madelineproto.xyz/docs/CALLS.html) -$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); - -$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); - - -$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); - -$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); +* [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) *** -

$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) +

* Change the phone number associated to this account -$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Check if this username is available -$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Delete this account -$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) +* Get account TTL -$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) +* Get notification settings -$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Get privacy settings -$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) +* Returns a list of available wallpapers. -$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) +* Register device for push notifications -$MadelineProto->[account->reportPeer](account_reportPeer.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reason' => [ReportReason](../types/ReportReason.md), \]) === [$Bool](../types/Bool.md) +* Report for spam -$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) +* Reset all notification settings -$MadelineProto->[account->sendChangePhoneCode](account_sendChangePhoneCode.md)(\['phone_number' => [string](../types/string.md), \]) === [$account\_SentChangePhoneCode](../types/account_SentChangePhoneCode.md) +* Change the phone number -$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) +* Set account TTL -$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Set privacy settings -$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Stop sending PUSH notifications to app -$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Disable all notifications for a certain period -$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) +* Change notification settings -$MadelineProto->[account->updateProfile](account_updateProfile.md)(\['first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), \]) === [$User](../types/User.md) +* Update profile info -$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Update online status -$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) +* Update this user's username *** -

$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) +

* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info -$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) +* Check if this phone number is registered on telegram -$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) +* You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) +* Delete all logged-in sessions. -$MadelineProto->[auth->sendCall](auth_sendCall.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Send verification phone call -$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) +* Use phone_login instead -$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Invite friends to telegram! -$MadelineProto->[auth->sendSms](auth_sendSms.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Send SMS verification code -$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) +* You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) -$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) +* You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) *** -

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +

* Block a user -$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) +* Delete a contact -$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) +* Delete multiple contacts -$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) +* Export contact as card -$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) +* Get blocked users -$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [string](../types/string.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) +* Get info about a certain contact -$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) +* Get online status of all users -$MadelineProto->[contacts->getSuggested](contacts_getSuggested.md)(\['limit' => [int](../types/int.md), \]) === [$contacts\_Suggested](../types/contacts_Suggested.md) +* Get suggested contacts -$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) +* Import card as contact -$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], 'replace' => [Bool](../types/Bool.md), \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) +* Add phone number as contact -$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) +* You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) +* Search contacts -$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +* Unblock a user *** -

$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) +

* Get info about app updates -$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) +* Get server configuration -$MadelineProto->[help->getInviteText](help_getInviteText.md)(\['lang_code' => [string](../types/string.md), \]) === [$help\_InviteText](../types/help_InviteText.md) +* Get invitation text -$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) +* Get nearest datacenter -$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) +* Get info of support user -$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) +* Log data for developer of this app *** -

$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) +

* Initializes connection and save information on the user's device and application. *** -

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invokes a query after successfull completion of one of the previous queries. *** -

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Result type returned by a current query. *** -

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invoke this method with layer X *** -

$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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$MadelineProto->[messages->addChatUser](messages_addChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), 'fwd_limit' => [int](../types/int.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md) +* Add a user to a normal chat (use channels->inviteToChannel for supergroups) -$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md) +* Create a chat (not supergroup) -$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md) +* Delete a user from a chat (not supergroup) -$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Delete chat history -$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$Vector\_of\_int](../types/int.md) +* Delete messages -$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md) +* Edit the photo of a normal chat (not supergroup) -$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md) +* Edit the title of a normal chat (not supergroup) -$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md) +* Forward message -$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_StatedMessages](../types/messages_StatedMessages.md) +* Forward messages -$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [string](../types/string.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) +* Get all stickerpacks -$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get info about chats -$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) +* You cannot use this method directly, instead use $MadelineProto->get_dh_config(); -$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) +* Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html -$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) +* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$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) +* Get previous messages of a group -$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get messages -$MadelineProto->[messages->getStickers](messages_getStickers.md)(\['emoticon' => [string](../types/string.md), 'hash' => [string](../types/string.md), \]) === [$messages\_Stickers](../types/messages_Stickers.md) +* Get stickers -$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Mark messages as read in secret chats -$MadelineProto->[messages->readHistory](messages_readHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), 'offset' => [int](../types/int.md), 'read_contents' => [Bool](../types/Bool.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Mark messages as read -$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$Vector\_of\_int](../types/int.md) +* Mark message as read -$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_int](../types/int.md) +* Mark messages as read -$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) +* You cannot use this method directly -$MadelineProto->[messages->reportSpam](messages_reportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Report a peer for spam -$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Search peers or messages -$MadelineProto->[messages->sendBroadcast](messages_sendBroadcast.md)(\['contacts' => \[[InputUser](../types/InputUser.md)\], 'message' => [string](../types/string.md), 'media' => [InputMedia](../types/InputMedia.md), \]) === [$messages\_StatedMessages](../types/messages_StatedMessages.md) +* Send a message to all users in the chat list -$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send message to secret chat -$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) +* Send a file to a secret chat -$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send a service message to a secret chat -$MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'media' => [InputMedia](../types/InputMedia.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md) +* Send a media -$MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'message' => [string](../types/string.md), \]) === [$messages\_SentMessage](../types/messages_SentMessage.md) +* Send a message -$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Send typing notification to secret chat -$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) +* Change typing status *** -

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) +

* Delete profile photos -$MadelineProto->[photos->getUserPhotos](photos_getUserPhotos.md)(\['user_id' => [InputUser](../types/InputUser.md), 'offset' => [int](../types/int.md), 'max_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$photos\_Photos](../types/photos_Photos.md) +* Get the profile photos of a user -$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), 'crop' => [InputPhotoCrop](../types/InputPhotoCrop.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) +* Update the profile photo (use photos->uploadProfilePhoto to upload the photo) -$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) +* Upload profile photo *** -

$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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates -$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates *** -

$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) +

* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info *** -

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) +

* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) +* Get info about users diff --git a/old_docs/API_docs_v23/methods/account_changePhone.md b/old_docs/API_docs_v23/methods/account_changePhone.md index aeb5c4bc..65f0b0d0 100644 --- a/old_docs/API_docs_v23/methods/account_changePhone.md +++ b/old_docs/API_docs_v23/methods/account_changePhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); diff --git a/old_docs/API_docs_v23/methods/account_checkUsername.md b/old_docs/API_docs_v23/methods/account_checkUsername.md index 0124bb38..08107762 100644 --- a/old_docs/API_docs_v23/methods/account_checkUsername.md +++ b/old_docs/API_docs_v23/methods/account_checkUsername.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v23/methods/account_deleteAccount.md b/old_docs/API_docs_v23/methods/account_deleteAccount.md index e8b46c24..3a6f4700 100644 --- a/old_docs/API_docs_v23/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v23/methods/account_deleteAccount.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); diff --git a/old_docs/API_docs_v23/methods/account_getAccountTTL.md b/old_docs/API_docs_v23/methods/account_getAccountTTL.md index 0cdd0b98..ab6a6ea1 100644 --- a/old_docs/API_docs_v23/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v23/methods/account_getAccountTTL.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); diff --git a/old_docs/API_docs_v23/methods/account_getNotifySettings.md b/old_docs/API_docs_v23/methods/account_getNotifySettings.md index f00be12c..ad492f49 100644 --- a/old_docs/API_docs_v23/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v23/methods/account_getNotifySettings.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); diff --git a/old_docs/API_docs_v23/methods/account_getPrivacy.md b/old_docs/API_docs_v23/methods/account_getPrivacy.md index 979bfb94..5480ffbb 100644 --- a/old_docs/API_docs_v23/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v23/methods/account_getPrivacy.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); diff --git a/old_docs/API_docs_v23/methods/account_getWallPapers.md b/old_docs/API_docs_v23/methods/account_getWallPapers.md index 89b281be..7c8bff39 100644 --- a/old_docs/API_docs_v23/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v23/methods/account_getWallPapers.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); diff --git a/old_docs/API_docs_v23/methods/account_registerDevice.md b/old_docs/API_docs_v23/methods/account_registerDevice.md index 651e753f..8dae7506 100644 --- a/old_docs/API_docs_v23/methods/account_registerDevice.md +++ b/old_docs/API_docs_v23/methods/account_registerDevice.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'app_sandbox' => Bool, 'lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v23/methods/account_reportPeer.md b/old_docs/API_docs_v23/methods/account_reportPeer.md index a07c87d0..c5fe7073 100644 --- a/old_docs/API_docs_v23/methods/account_reportPeer.md +++ b/old_docs/API_docs_v23/methods/account_reportPeer.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->reportPeer(['peer' => InputPeer, 'reason' => ReportReason, ]); diff --git a/old_docs/API_docs_v23/methods/account_resetNotifySettings.md b/old_docs/API_docs_v23/methods/account_resetNotifySettings.md index ccc836a9..557373b0 100644 --- a/old_docs/API_docs_v23/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v23/methods/account_resetNotifySettings.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); diff --git a/old_docs/API_docs_v23/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v23/methods/account_sendChangePhoneCode.md index 0b384269..930e0f76 100644 --- a/old_docs/API_docs_v23/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v23/methods/account_sendChangePhoneCode.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_SentChangePhoneCode = $MadelineProto->account->sendChangePhoneCode(['phone_number' => 'string', ]); diff --git a/old_docs/API_docs_v23/methods/account_setAccountTTL.md b/old_docs/API_docs_v23/methods/account_setAccountTTL.md index 5100e62e..bacdd77a 100644 --- a/old_docs/API_docs_v23/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v23/methods/account_setAccountTTL.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); diff --git a/old_docs/API_docs_v23/methods/account_setPrivacy.md b/old_docs/API_docs_v23/methods/account_setPrivacy.md index fbcedae7..6e24ded7 100644 --- a/old_docs/API_docs_v23/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v23/methods/account_setPrivacy.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); diff --git a/old_docs/API_docs_v23/methods/account_unregisterDevice.md b/old_docs/API_docs_v23/methods/account_unregisterDevice.md index 1d2b7670..b666d91a 100644 --- a/old_docs/API_docs_v23/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v23/methods/account_unregisterDevice.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); diff --git a/old_docs/API_docs_v23/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v23/methods/account_updateDeviceLocked.md index ef816501..cd52093a 100644 --- a/old_docs/API_docs_v23/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v23/methods/account_updateDeviceLocked.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); diff --git a/old_docs/API_docs_v23/methods/account_updateNotifySettings.md b/old_docs/API_docs_v23/methods/account_updateNotifySettings.md index 18cbdb75..db020309 100644 --- a/old_docs/API_docs_v23/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v23/methods/account_updateNotifySettings.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); diff --git a/old_docs/API_docs_v23/methods/account_updateProfile.md b/old_docs/API_docs_v23/methods/account_updateProfile.md index f16398ed..caea3391 100644 --- a/old_docs/API_docs_v23/methods/account_updateProfile.md +++ b/old_docs/API_docs_v23/methods/account_updateProfile.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', ]); diff --git a/old_docs/API_docs_v23/methods/account_updateStatus.md b/old_docs/API_docs_v23/methods/account_updateStatus.md index 4b049e65..50b99b1e 100644 --- a/old_docs/API_docs_v23/methods/account_updateStatus.md +++ b/old_docs/API_docs_v23/methods/account_updateStatus.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); diff --git a/old_docs/API_docs_v23/methods/account_updateUsername.md b/old_docs/API_docs_v23/methods/account_updateUsername.md index 08d2abe0..7276e2aa 100644 --- a/old_docs/API_docs_v23/methods/account_updateUsername.md +++ b/old_docs/API_docs_v23/methods/account_updateUsername.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v23/methods/api_README.md b/old_docs/API_docs_v23/methods/api_README.md new file mode 100644 index 00000000..29bc72f9 --- /dev/null +++ b/old_docs/API_docs_v23/methods/api_README.md @@ -0,0 +1,248 @@ +--- +title: Methods +description: List of methods +--- +# Methods +[Back to API documentation index](..) + +[Go to the new description-version method index](index.html) + +$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); + +$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); + +$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); + +$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); + +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); + + +$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); + +$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); + +$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); + +$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); + +$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); + + +$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); + +$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); + +*** +

$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) + +$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) + +$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) + +$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) + +$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) + +$MadelineProto->[account->reportPeer](account_reportPeer.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reason' => [ReportReason](../types/ReportReason.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->sendChangePhoneCode](account_sendChangePhoneCode.md)(\['phone_number' => [string](../types/string.md), \]) === [$account\_SentChangePhoneCode](../types/account_SentChangePhoneCode.md) + +$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateProfile](account_updateProfile.md)(\['first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), \]) === [$User](../types/User.md) + +$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) + +*** +

$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) + +$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) + +$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) + +$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->sendCall](auth_sendCall.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->sendSms](auth_sendSms.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$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) + +*** +

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) + +$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) + +$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) + +$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [string](../types/string.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) + +$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) + +$MadelineProto->[contacts->getSuggested](contacts_getSuggested.md)(\['limit' => [int](../types/int.md), \]) === [$contacts\_Suggested](../types/contacts_Suggested.md) + +$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) + +$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], 'replace' => [Bool](../types/Bool.md), \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) + +$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) + +$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) + +$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +*** +

$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) + +$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) + +$MadelineProto->[help->getInviteText](help_getInviteText.md)(\['lang_code' => [string](../types/string.md), \]) === [$help\_InviteText](../types/help_InviteText.md) + +$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) + +$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) + +$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) + +*** +

$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) + +*** +

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$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) + +$MadelineProto->[messages->addChatUser](messages_addChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), 'fwd_limit' => [int](../types/int.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md) + +$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md) + +$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md) + +$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$Vector\_of\_int](../types/int.md) + +$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md) + +$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md) + +$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md) + +$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_StatedMessages](../types/messages_StatedMessages.md) + +$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [string](../types/string.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) + +$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) + +$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) + +$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$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) + +$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) + +$MadelineProto->[messages->getStickers](messages_getStickers.md)(\['emoticon' => [string](../types/string.md), 'hash' => [string](../types/string.md), \]) === [$messages\_Stickers](../types/messages_Stickers.md) + +$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->readHistory](messages_readHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), 'offset' => [int](../types/int.md), 'read_contents' => [Bool](../types/Bool.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$Vector\_of\_int](../types/int.md) + +$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_int](../types/int.md) + +$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) + +$MadelineProto->[messages->reportSpam](messages_reportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) + +$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) + +$MadelineProto->[messages->sendBroadcast](messages_sendBroadcast.md)(\['contacts' => \[[InputUser](../types/InputUser.md)\], 'message' => [string](../types/string.md), 'media' => [InputMedia](../types/InputMedia.md), \]) === [$messages\_StatedMessages](../types/messages_StatedMessages.md) + +$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$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) + +$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'media' => [InputMedia](../types/InputMedia.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md) + +$MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'message' => [string](../types/string.md), \]) === [$messages\_SentMessage](../types/messages_SentMessage.md) + +$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) + +$MadelineProto->[photos->getUserPhotos](photos_getUserPhotos.md)(\['user_id' => [InputUser](../types/InputUser.md), 'offset' => [int](../types/int.md), 'max_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$photos\_Photos](../types/photos_Photos.md) + +$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), 'crop' => [InputPhotoCrop](../types/InputPhotoCrop.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) + +$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) + +*** +

$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) + +$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) + +*** +

$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) + +$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) + +$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) + +*** +

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) + +$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) + diff --git a/old_docs/API_docs_v23/methods/auth_checkPhone.md b/old_docs/API_docs_v23/methods/auth_checkPhone.md index 291221de..1826ce63 100644 --- a/old_docs/API_docs_v23/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v23/methods/auth_checkPhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); diff --git a/old_docs/API_docs_v23/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v23/methods/auth_resetAuthorizations.md index 47feea16..a46c880d 100644 --- a/old_docs/API_docs_v23/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v23/methods/auth_resetAuthorizations.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); diff --git a/old_docs/API_docs_v23/methods/auth_sendCall.md b/old_docs/API_docs_v23/methods/auth_sendCall.md index e2bd2855..5947cda7 100644 --- a/old_docs/API_docs_v23/methods/auth_sendCall.md +++ b/old_docs/API_docs_v23/methods/auth_sendCall.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendCall(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v23/methods/auth_sendInvites.md b/old_docs/API_docs_v23/methods/auth_sendInvites.md index be32fe6b..9b88b4a3 100644 --- a/old_docs/API_docs_v23/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v23/methods/auth_sendInvites.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); diff --git a/old_docs/API_docs_v23/methods/auth_sendSms.md b/old_docs/API_docs_v23/methods/auth_sendSms.md index a17fdd3a..41340660 100644 --- a/old_docs/API_docs_v23/methods/auth_sendSms.md +++ b/old_docs/API_docs_v23/methods/auth_sendSms.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendSms(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v23/methods/contacts_block.md b/old_docs/API_docs_v23/methods/contacts_block.md index d0729d30..e592cace 100644 --- a/old_docs/API_docs_v23/methods/contacts_block.md +++ b/old_docs/API_docs_v23/methods/contacts_block.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v23/methods/contacts_deleteContact.md b/old_docs/API_docs_v23/methods/contacts_deleteContact.md index b8c17544..1a3f2a27 100644 --- a/old_docs/API_docs_v23/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v23/methods/contacts_deleteContact.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v23/methods/contacts_deleteContacts.md b/old_docs/API_docs_v23/methods/contacts_deleteContacts.md index 64c69460..f6627599 100644 --- a/old_docs/API_docs_v23/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v23/methods/contacts_deleteContacts.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v23/methods/contacts_exportCard.md b/old_docs/API_docs_v23/methods/contacts_exportCard.md index b05f57ce..1d2129f3 100644 --- a/old_docs/API_docs_v23/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v23/methods/contacts_exportCard.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); diff --git a/old_docs/API_docs_v23/methods/contacts_getBlocked.md b/old_docs/API_docs_v23/methods/contacts_getBlocked.md index d7d8c5cc..44d24aba 100644 --- a/old_docs/API_docs_v23/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v23/methods/contacts_getBlocked.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v23/methods/contacts_getContacts.md b/old_docs/API_docs_v23/methods/contacts_getContacts.md index 1ab8af27..83c4846f 100644 --- a/old_docs/API_docs_v23/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v23/methods/contacts_getContacts.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v23/methods/contacts_getStatuses.md b/old_docs/API_docs_v23/methods/contacts_getStatuses.md index b927a140..5cef3084 100644 --- a/old_docs/API_docs_v23/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v23/methods/contacts_getStatuses.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); diff --git a/old_docs/API_docs_v23/methods/contacts_getSuggested.md b/old_docs/API_docs_v23/methods/contacts_getSuggested.md index 302e60e5..1ce04bef 100644 --- a/old_docs/API_docs_v23/methods/contacts_getSuggested.md +++ b/old_docs/API_docs_v23/methods/contacts_getSuggested.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Suggested = $MadelineProto->contacts->getSuggested(['limit' => int, ]); diff --git a/old_docs/API_docs_v23/methods/contacts_importCard.md b/old_docs/API_docs_v23/methods/contacts_importCard.md index 81a1e138..89c96657 100644 --- a/old_docs/API_docs_v23/methods/contacts_importCard.md +++ b/old_docs/API_docs_v23/methods/contacts_importCard.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); diff --git a/old_docs/API_docs_v23/methods/contacts_importContacts.md b/old_docs/API_docs_v23/methods/contacts_importContacts.md index 578e5dfd..cd3d6615 100644 --- a/old_docs/API_docs_v23/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v23/methods/contacts_importContacts.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], 'replace' => Bool, ]); diff --git a/old_docs/API_docs_v23/methods/contacts_search.md b/old_docs/API_docs_v23/methods/contacts_search.md index 68daecd6..64ff748e 100644 --- a/old_docs/API_docs_v23/methods/contacts_search.md +++ b/old_docs/API_docs_v23/methods/contacts_search.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); diff --git a/old_docs/API_docs_v23/methods/contacts_unblock.md b/old_docs/API_docs_v23/methods/contacts_unblock.md index f7d151b9..ec72ae2d 100644 --- a/old_docs/API_docs_v23/methods/contacts_unblock.md +++ b/old_docs/API_docs_v23/methods/contacts_unblock.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v23/methods/help_getAppUpdate.md b/old_docs/API_docs_v23/methods/help_getAppUpdate.md index f97da105..ad5b8228 100644 --- a/old_docs/API_docs_v23/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v23/methods/help_getAppUpdate.md @@ -32,12 +32,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(['device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v23/methods/help_getConfig.md b/old_docs/API_docs_v23/methods/help_getConfig.md index 16e25c68..ca4bfc25 100644 --- a/old_docs/API_docs_v23/methods/help_getConfig.md +++ b/old_docs/API_docs_v23/methods/help_getConfig.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); diff --git a/old_docs/API_docs_v23/methods/help_getInviteText.md b/old_docs/API_docs_v23/methods/help_getInviteText.md index 0831ba5f..ad6ac262 100644 --- a/old_docs/API_docs_v23/methods/help_getInviteText.md +++ b/old_docs/API_docs_v23/methods/help_getInviteText.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(['lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v23/methods/help_getNearestDc.md b/old_docs/API_docs_v23/methods/help_getNearestDc.md index 35a8bf91..458f60ab 100644 --- a/old_docs/API_docs_v23/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v23/methods/help_getNearestDc.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); diff --git a/old_docs/API_docs_v23/methods/help_getSupport.md b/old_docs/API_docs_v23/methods/help_getSupport.md index a5bab0f2..9ee25b00 100644 --- a/old_docs/API_docs_v23/methods/help_getSupport.md +++ b/old_docs/API_docs_v23/methods/help_getSupport.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); diff --git a/old_docs/API_docs_v23/methods/help_saveAppLog.md b/old_docs/API_docs_v23/methods/help_saveAppLog.md index 0165b6e3..a7884c47 100644 --- a/old_docs/API_docs_v23/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v23/methods/help_saveAppLog.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); diff --git a/old_docs/API_docs_v23/methods/initConnection.md b/old_docs/API_docs_v23/methods/initConnection.md index 2d3d86ad..73620276 100644 --- a/old_docs/API_docs_v23/methods/initConnection.md +++ b/old_docs/API_docs_v23/methods/initConnection.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->initConnection(['api_id' => int, 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', 'query' => !X, ]); diff --git a/old_docs/API_docs_v23/methods/invokeAfterMsg.md b/old_docs/API_docs_v23/methods/invokeAfterMsg.md index e33a2c93..8e953e78 100644 --- a/old_docs/API_docs_v23/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v23/methods/invokeAfterMsg.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); diff --git a/old_docs/API_docs_v23/methods/invokeAfterMsgs.md b/old_docs/API_docs_v23/methods/invokeAfterMsgs.md index 3150a613..bc8a83b7 100644 --- a/old_docs/API_docs_v23/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v23/methods/invokeAfterMsgs.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); diff --git a/old_docs/API_docs_v23/methods/invokeWithLayer.md b/old_docs/API_docs_v23/methods/invokeWithLayer.md index 71d02abb..8a0c4e79 100644 --- a/old_docs/API_docs_v23/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v23/methods/invokeWithLayer.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); diff --git a/old_docs/API_docs_v23/methods/messages_addChatUser.md b/old_docs/API_docs_v23/methods/messages_addChatUser.md index 29a87261..08b745d1 100644 --- a/old_docs/API_docs_v23/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v23/methods/messages_addChatUser.md @@ -46,12 +46,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StatedMessage = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); diff --git a/old_docs/API_docs_v23/methods/messages_createChat.md b/old_docs/API_docs_v23/methods/messages_createChat.md index d37a9768..8a34e1fe 100644 --- a/old_docs/API_docs_v23/methods/messages_createChat.md +++ b/old_docs/API_docs_v23/methods/messages_createChat.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StatedMessage = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); diff --git a/old_docs/API_docs_v23/methods/messages_deleteChatUser.md b/old_docs/API_docs_v23/methods/messages_deleteChatUser.md index 163a9250..8e8cf06b 100644 --- a/old_docs/API_docs_v23/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v23/methods/messages_deleteChatUser.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StatedMessage = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v23/methods/messages_deleteHistory.md b/old_docs/API_docs_v23/methods/messages_deleteHistory.md index a2120105..77b8987e 100644 --- a/old_docs/API_docs_v23/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v23/methods/messages_deleteHistory.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['peer' => InputPeer, 'offset' => int, ]); diff --git a/old_docs/API_docs_v23/methods/messages_deleteMessages.md b/old_docs/API_docs_v23/methods/messages_deleteMessages.md index 94614f99..fc9f6af3 100644 --- a/old_docs/API_docs_v23/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v23/methods/messages_deleteMessages.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->messages->deleteMessages(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v23/methods/messages_editChatPhoto.md b/old_docs/API_docs_v23/methods/messages_editChatPhoto.md index 4decf9cd..c2958508 100644 --- a/old_docs/API_docs_v23/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v23/methods/messages_editChatPhoto.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StatedMessage = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); diff --git a/old_docs/API_docs_v23/methods/messages_editChatTitle.md b/old_docs/API_docs_v23/methods/messages_editChatTitle.md index cff2e5e6..d2acc30b 100644 --- a/old_docs/API_docs_v23/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v23/methods/messages_editChatTitle.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StatedMessage = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); diff --git a/old_docs/API_docs_v23/methods/messages_forwardMessage.md b/old_docs/API_docs_v23/methods/messages_forwardMessage.md index 43d7d957..295eda7a 100644 --- a/old_docs/API_docs_v23/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v23/methods/messages_forwardMessage.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StatedMessage = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); diff --git a/old_docs/API_docs_v23/methods/messages_forwardMessages.md b/old_docs/API_docs_v23/methods/messages_forwardMessages.md index 21798bfe..f1eb9dc5 100644 --- a/old_docs/API_docs_v23/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v23/methods/messages_forwardMessages.md @@ -58,12 +58,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StatedMessages = $MadelineProto->messages->forwardMessages(['peer' => InputPeer, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v23/methods/messages_getAllStickers.md b/old_docs/API_docs_v23/methods/messages_getAllStickers.md index d4193723..322f9b0b 100644 --- a/old_docs/API_docs_v23/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v23/methods/messages_getAllStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v23/methods/messages_getChats.md b/old_docs/API_docs_v23/methods/messages_getChats.md index 290438a1..e84c7193 100644 --- a/old_docs/API_docs_v23/methods/messages_getChats.md +++ b/old_docs/API_docs_v23/methods/messages_getChats.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v23/methods/messages_getDialogs.md b/old_docs/API_docs_v23/methods/messages_getDialogs.md index 9245157b..c388f163 100644 --- a/old_docs/API_docs_v23/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v23/methods/messages_getDialogs.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['offset' => int, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v23/methods/messages_getHistory.md b/old_docs/API_docs_v23/methods/messages_getHistory.md index fe575dd4..ba497c74 100644 --- a/old_docs/API_docs_v23/methods/messages_getHistory.md +++ b/old_docs/API_docs_v23/methods/messages_getHistory.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getHistory(['peer' => InputPeer, 'offset' => int, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v23/methods/messages_getMessages.md b/old_docs/API_docs_v23/methods/messages_getMessages.md index 86d1da8a..d538cb5f 100644 --- a/old_docs/API_docs_v23/methods/messages_getMessages.md +++ b/old_docs/API_docs_v23/methods/messages_getMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v23/methods/messages_getStickers.md b/old_docs/API_docs_v23/methods/messages_getStickers.md index 4854696d..d2ea57cf 100644 --- a/old_docs/API_docs_v23/methods/messages_getStickers.md +++ b/old_docs/API_docs_v23/methods/messages_getStickers.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Stickers = $MadelineProto->messages->getStickers(['emoticon' => 'string', 'hash' => 'string', ]); diff --git a/old_docs/API_docs_v23/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v23/methods/messages_readEncryptedHistory.md index 39b110e3..2ba4cca4 100644 --- a/old_docs/API_docs_v23/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v23/methods/messages_readEncryptedHistory.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); diff --git a/old_docs/API_docs_v23/methods/messages_readHistory.md b/old_docs/API_docs_v23/methods/messages_readHistory.md index 5a54a07e..9dc802ab 100644 --- a/old_docs/API_docs_v23/methods/messages_readHistory.md +++ b/old_docs/API_docs_v23/methods/messages_readHistory.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, 'offset' => int, 'read_contents' => Bool, ]); diff --git a/old_docs/API_docs_v23/methods/messages_readMessageContents.md b/old_docs/API_docs_v23/methods/messages_readMessageContents.md index 286ec24a..07e43643 100644 --- a/old_docs/API_docs_v23/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v23/methods/messages_readMessageContents.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v23/methods/messages_receivedMessages.md b/old_docs/API_docs_v23/methods/messages_receivedMessages.md index 47bbb78e..aca67286 100644 --- a/old_docs/API_docs_v23/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v23/methods/messages_receivedMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); diff --git a/old_docs/API_docs_v23/methods/messages_reportSpam.md b/old_docs/API_docs_v23/methods/messages_reportSpam.md index 2e2b1177..09c1e63b 100644 --- a/old_docs/API_docs_v23/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v23/methods/messages_reportSpam.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reportSpam(['peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v23/methods/messages_search.md b/old_docs/API_docs_v23/methods/messages_search.md index 7821d2b7..735ddf47 100644 --- a/old_docs/API_docs_v23/methods/messages_search.md +++ b/old_docs/API_docs_v23/methods/messages_search.md @@ -49,12 +49,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->search(['peer' => InputPeer, 'q' => 'string', 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v23/methods/messages_sendBroadcast.md b/old_docs/API_docs_v23/methods/messages_sendBroadcast.md index 6ddd149a..341c3d8c 100644 --- a/old_docs/API_docs_v23/methods/messages_sendBroadcast.md +++ b/old_docs/API_docs_v23/methods/messages_sendBroadcast.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StatedMessages = $MadelineProto->messages->sendBroadcast(['contacts' => [InputUser, InputUser], 'message' => 'string', 'media' => InputMedia, ]); diff --git a/old_docs/API_docs_v23/methods/messages_sendEncrypted.md b/old_docs/API_docs_v23/methods/messages_sendEncrypted.md index d48f88d7..76305f32 100644 --- a/old_docs/API_docs_v23/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v23/methods/messages_sendEncrypted.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v23/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v23/methods/messages_sendEncryptedFile.md index 4fd0648e..8db2ead9 100644 --- a/old_docs/API_docs_v23/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v23/methods/messages_sendEncryptedFile.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); diff --git a/old_docs/API_docs_v23/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v23/methods/messages_sendEncryptedService.md index d66894bf..c7836c94 100644 --- a/old_docs/API_docs_v23/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v23/methods/messages_sendEncryptedService.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v23/methods/messages_sendMedia.md b/old_docs/API_docs_v23/methods/messages_sendMedia.md index dfa58f63..9a67a6f9 100644 --- a/old_docs/API_docs_v23/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v23/methods/messages_sendMedia.md @@ -58,12 +58,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StatedMessage = $MadelineProto->messages->sendMedia(['peer' => InputPeer, 'media' => InputMedia, ]); diff --git a/old_docs/API_docs_v23/methods/messages_sendMessage.md b/old_docs/API_docs_v23/methods/messages_sendMessage.md index 0d915ae3..ad1ec5cd 100644 --- a/old_docs/API_docs_v23/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v23/methods/messages_sendMessage.md @@ -57,12 +57,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentMessage = $MadelineProto->messages->sendMessage(['peer' => InputPeer, 'message' => 'string', ]); diff --git a/old_docs/API_docs_v23/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v23/methods/messages_setEncryptedTyping.md index e9afe99c..4e7450eb 100644 --- a/old_docs/API_docs_v23/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v23/methods/messages_setEncryptedTyping.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); diff --git a/old_docs/API_docs_v23/methods/messages_setTyping.md b/old_docs/API_docs_v23/methods/messages_setTyping.md index bea4982b..a2b94823 100644 --- a/old_docs/API_docs_v23/methods/messages_setTyping.md +++ b/old_docs/API_docs_v23/methods/messages_setTyping.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); diff --git a/old_docs/API_docs_v23/methods/photos_deletePhotos.md b/old_docs/API_docs_v23/methods/photos_deletePhotos.md index b9daca10..937aadd5 100644 --- a/old_docs/API_docs_v23/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v23/methods/photos_deletePhotos.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); diff --git a/old_docs/API_docs_v23/methods/photos_getUserPhotos.md b/old_docs/API_docs_v23/methods/photos_getUserPhotos.md index c9a219e0..071a8f98 100644 --- a/old_docs/API_docs_v23/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v23/methods/photos_getUserPhotos.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v23/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v23/methods/photos_updateProfilePhoto.md index 2d1e1e76..4c5c517f 100644 --- a/old_docs/API_docs_v23/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v23/methods/photos_updateProfilePhoto.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, 'crop' => InputPhotoCrop, ]); diff --git a/old_docs/API_docs_v23/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v23/methods/photos_uploadProfilePhoto.md index 6ff4ddf5..3d7d301b 100644 --- a/old_docs/API_docs_v23/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v23/methods/photos_uploadProfilePhoto.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, 'caption' => 'string', 'geo_point' => InputGeoPoint, 'crop' => InputPhotoCrop, ]); diff --git a/old_docs/API_docs_v23/methods/users_getUsers.md b/old_docs/API_docs_v23/methods/users_getUsers.md index ef1c7fd8..bce13ee6 100644 --- a/old_docs/API_docs_v23/methods/users_getUsers.md +++ b/old_docs/API_docs_v23/methods/users_getUsers.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v25/README.md b/old_docs/API_docs_v25/README.md index 10b31034..76b464a7 100644 --- a/old_docs/API_docs_v25/README.md +++ b/old_docs/API_docs_v25/README.md @@ -4,11 +4,11 @@ description: MadelineProto API documentation (layer v25) --- # MadelineProto API documentation (layer v25) +[Back to main documentation](..) + + [Methods](methods/) [Constructors](constructors/) -[Types](types/) - - -[Back to main documentation](..) +[Types](types/) \ No newline at end of file diff --git a/old_docs/API_docs_v25/methods/README.md b/old_docs/API_docs_v25/methods/README.md index e5c2ccb9..bcd167d0 100644 --- a/old_docs/API_docs_v25/methods/README.md +++ b/old_docs/API_docs_v25/methods/README.md @@ -1,274 +1,269 @@ --- title: Methods -description: List of methods +description: What do you want to do? --- -# Methods -[Back to API documentation index](..) +# What do you want to do? +[Go back to API documentation index](..) +[Go to the old code-version method index](api_index.html) -$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); +* [Logout](https://docs.madelineproto.xyz/logout.html) -$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); +* [Login](https://docs.madelineproto.xyz/docs/LOGIN.html) -$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); +* [Get all chats, broadcast a message to all chats](https://docs.madelineproto.xyz/docs/DIALOGS.html) -$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); +* [Get the full participant list of a channel/group/supergroup](https://docs.madelineproto.xyz/get_pwr_chat.html) -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); +* [Get full info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_full_info.html) +* [Get info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_info.html) -$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); +* [Get info about the currently logged-in user](https://docs.madelineproto.xyz/get_self.html) -$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); +* [Upload or download files up to 1.5 GB](https://docs.madelineproto.xyz/docs/FILES.html) -$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); +* [Make a phone call and play a song](https://docs.madelineproto.xyz/docs/CALLS.html) -$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); - -$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); - - -$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); - -$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); +* [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) *** -

$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) +

* Change the phone number associated to this account -$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Check if this username is available -$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Delete this account -$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) +* Get account TTL -$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) +* Get notification settings -$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md) +* Get the current password -$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Get privacy settings -$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) +* Returns a list of available wallpapers. -$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) +* Register device for push notifications -$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) +* Reset all notification settings -$MadelineProto->[account->sendChangePhoneCode](account_sendChangePhoneCode.md)(\['phone_number' => [string](../types/string.md), \]) === [$account\_SentChangePhoneCode](../types/account_SentChangePhoneCode.md) +* Change the phone number -$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) +* Set account TTL -$MadelineProto->[account->setPassword](account_setPassword.md)(\['current_password_hash' => [bytes](../types/bytes.md), 'new_salt' => [bytes](../types/bytes.md), 'new_password_hash' => [bytes](../types/bytes.md), 'hint' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Set 2FA password -$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Set privacy settings -$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Stop sending PUSH notifications to app -$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Disable all notifications for a certain period -$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) +* Change notification settings -$MadelineProto->[account->updateProfile](account_updateProfile.md)(\['first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), \]) === [$User](../types/User.md) +* Update profile info -$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Update online status -$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) +* Update this user's username *** -

$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) +

* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info -$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) +* Check if this phone number is registered on telegram -$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) +* You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) +* Delete all logged-in sessions. -$MadelineProto->[auth->sendCall](auth_sendCall.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Send verification phone call -$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) +* Use phone_login instead -$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Invite friends to telegram! -$MadelineProto->[auth->sendSms](auth_sendSms.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Send SMS verification code -$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) +* You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) -$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) +* You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) *** -

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +

* Block a user -$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) +* Delete a contact -$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) +* Delete multiple contacts -$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) +* Export contact as card -$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) +* Get blocked users -$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [string](../types/string.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) +* Get info about a certain contact -$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) +* Get online status of all users -$MadelineProto->[contacts->getSuggested](contacts_getSuggested.md)(\['limit' => [int](../types/int.md), \]) === [$contacts\_Suggested](../types/contacts_Suggested.md) +* Get suggested contacts -$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) +* Import card as contact -$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], 'replace' => [Bool](../types/Bool.md), \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) +* Add phone number as contact -$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) +* You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) +* Search contacts -$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +* Unblock a user *** -

$MadelineProto->[geochats->checkin](geochats_checkin.md)(\['peer' => [InputGeoChat](../types/InputGeoChat.md), \]) === [$geochats\_StatedMessage](../types/geochats_StatedMessage.md) +

* Join a geochat -$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) +* Create geochat -$MadelineProto->[geochats->editChatPhoto](geochats_editChatPhoto.md)(\['peer' => [InputGeoChat](../types/InputGeoChat.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$geochats\_StatedMessage](../types/geochats_StatedMessage.md) +* Edit geochat photo -$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) +* Edit geochat title -$MadelineProto->[geochats->getFullChat](geochats_getFullChat.md)(\['peer' => [InputGeoChat](../types/InputGeoChat.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) +* Get full info about a geochat -$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) +* Get geochat history -$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) +* Get nearby geochats -$MadelineProto->[geochats->getRecents](geochats_getRecents.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$geochats\_Messages](../types/geochats_Messages.md) +* Get recent geochats -$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) +* Search messages in geocha -$MadelineProto->[geochats->sendMedia](geochats_sendMedia.md)(\['peer' => [InputGeoChat](../types/InputGeoChat.md), 'media' => [InputMedia](../types/InputMedia.md), \]) === [$geochats\_StatedMessage](../types/geochats_StatedMessage.md) +* Send media to geochat -$MadelineProto->[geochats->sendMessage](geochats_sendMessage.md)(\['peer' => [InputGeoChat](../types/InputGeoChat.md), 'message' => [string](../types/string.md), \]) === [$geochats\_StatedMessage](../types/geochats_StatedMessage.md) +* Send message to geochat -$MadelineProto->[geochats->setTyping](geochats_setTyping.md)(\['peer' => [InputGeoChat](../types/InputGeoChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Send typing notification to geochat *** -

$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) +

* Get info about app updates -$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) +* Get server configuration -$MadelineProto->[help->getInviteText](help_getInviteText.md)(\['lang_code' => [string](../types/string.md), \]) === [$help\_InviteText](../types/help_InviteText.md) +* Get invitation text -$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) +* Get nearest datacenter -$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) +* Get info of support user -$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) +* Log data for developer of this app *** -

$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) +

* Initializes connection and save information on the user's device and application. *** -

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invokes a query after successfull completion of one of the previous queries. *** -

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Result type returned by a current query. *** -

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invoke this method with layer X *** -

$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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$MadelineProto->[messages->addChatUser](messages_addChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), 'fwd_limit' => [int](../types/int.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md) +* Add a user to a normal chat (use channels->inviteToChannel for supergroups) -$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md) +* Create a chat (not supergroup) -$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md) +* Delete a user from a chat (not supergroup) -$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Delete chat history -$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Delete messages -$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md) +* Edit the photo of a normal chat (not supergroup) -$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md) +* Edit the title of a normal chat (not supergroup) -$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md) +* Forward message -$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_StatedMessages](../types/messages_StatedMessages.md) +* Forward messages -$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [string](../types/string.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) +* Get all stickerpacks -$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get info about chats -$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) +* You cannot use this method directly, instead use $MadelineProto->get_dh_config(); -$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) +* Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html -$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) +* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$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) +* Get previous messages of a group -$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get messages -$MadelineProto->[messages->getStickers](messages_getStickers.md)(\['emoticon' => [string](../types/string.md), 'hash' => [string](../types/string.md), \]) === [$messages\_Stickers](../types/messages_Stickers.md) +* Get stickers -$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Mark messages as read in secret chats -$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) +* Mark messages as read -$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Mark message as read -$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_int](../types/int.md) +* Mark messages as read -$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) +* You cannot use this method directly -$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Search peers or messages -$MadelineProto->[messages->sendBroadcast](messages_sendBroadcast.md)(\['contacts' => \[[InputUser](../types/InputUser.md)\], 'message' => [string](../types/string.md), 'media' => [InputMedia](../types/InputMedia.md), \]) === [$messages\_StatedMessages](../types/messages_StatedMessages.md) +* Send a message to all users in the chat list -$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send message to secret chat -$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) +* Send a file to a secret chat -$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send a service message to a secret chat -$MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'media' => [InputMedia](../types/InputMedia.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md) +* Send a media -$MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'message' => [string](../types/string.md), \]) === [$messages\_SentMessage](../types/messages_SentMessage.md) +* Send a message -$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Send typing notification to secret chat -$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) +* Change typing status *** -

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) +

* Delete profile photos -$MadelineProto->[photos->getUserPhotos](photos_getUserPhotos.md)(\['user_id' => [InputUser](../types/InputUser.md), 'offset' => [int](../types/int.md), 'max_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$photos\_Photos](../types/photos_Photos.md) +* Get the profile photos of a user -$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), 'crop' => [InputPhotoCrop](../types/InputPhotoCrop.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) +* Update the profile photo (use photos->uploadProfilePhoto to upload the photo) -$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) +* Upload profile photo *** -

$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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates -$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates *** -

$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) +

* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info *** -

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) +

* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) +* Get info about users diff --git a/old_docs/API_docs_v25/methods/account_changePhone.md b/old_docs/API_docs_v25/methods/account_changePhone.md index aeb5c4bc..65f0b0d0 100644 --- a/old_docs/API_docs_v25/methods/account_changePhone.md +++ b/old_docs/API_docs_v25/methods/account_changePhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); diff --git a/old_docs/API_docs_v25/methods/account_checkUsername.md b/old_docs/API_docs_v25/methods/account_checkUsername.md index 0124bb38..08107762 100644 --- a/old_docs/API_docs_v25/methods/account_checkUsername.md +++ b/old_docs/API_docs_v25/methods/account_checkUsername.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v25/methods/account_deleteAccount.md b/old_docs/API_docs_v25/methods/account_deleteAccount.md index e8b46c24..3a6f4700 100644 --- a/old_docs/API_docs_v25/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v25/methods/account_deleteAccount.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); diff --git a/old_docs/API_docs_v25/methods/account_getAccountTTL.md b/old_docs/API_docs_v25/methods/account_getAccountTTL.md index 0cdd0b98..ab6a6ea1 100644 --- a/old_docs/API_docs_v25/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v25/methods/account_getAccountTTL.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); diff --git a/old_docs/API_docs_v25/methods/account_getNotifySettings.md b/old_docs/API_docs_v25/methods/account_getNotifySettings.md index f00be12c..ad492f49 100644 --- a/old_docs/API_docs_v25/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v25/methods/account_getNotifySettings.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); diff --git a/old_docs/API_docs_v25/methods/account_getPassword.md b/old_docs/API_docs_v25/methods/account_getPassword.md index c189421d..2692dab1 100644 --- a/old_docs/API_docs_v25/methods/account_getPassword.md +++ b/old_docs/API_docs_v25/methods/account_getPassword.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_Password = $MadelineProto->account->getPassword(); diff --git a/old_docs/API_docs_v25/methods/account_getPrivacy.md b/old_docs/API_docs_v25/methods/account_getPrivacy.md index 979bfb94..5480ffbb 100644 --- a/old_docs/API_docs_v25/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v25/methods/account_getPrivacy.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); diff --git a/old_docs/API_docs_v25/methods/account_getWallPapers.md b/old_docs/API_docs_v25/methods/account_getWallPapers.md index 89b281be..7c8bff39 100644 --- a/old_docs/API_docs_v25/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v25/methods/account_getWallPapers.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); diff --git a/old_docs/API_docs_v25/methods/account_registerDevice.md b/old_docs/API_docs_v25/methods/account_registerDevice.md index 651e753f..8dae7506 100644 --- a/old_docs/API_docs_v25/methods/account_registerDevice.md +++ b/old_docs/API_docs_v25/methods/account_registerDevice.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'app_sandbox' => Bool, 'lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v25/methods/account_resetNotifySettings.md b/old_docs/API_docs_v25/methods/account_resetNotifySettings.md index ccc836a9..557373b0 100644 --- a/old_docs/API_docs_v25/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v25/methods/account_resetNotifySettings.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); diff --git a/old_docs/API_docs_v25/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v25/methods/account_sendChangePhoneCode.md index 0b384269..930e0f76 100644 --- a/old_docs/API_docs_v25/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v25/methods/account_sendChangePhoneCode.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_SentChangePhoneCode = $MadelineProto->account->sendChangePhoneCode(['phone_number' => 'string', ]); diff --git a/old_docs/API_docs_v25/methods/account_setAccountTTL.md b/old_docs/API_docs_v25/methods/account_setAccountTTL.md index 5100e62e..bacdd77a 100644 --- a/old_docs/API_docs_v25/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v25/methods/account_setAccountTTL.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); diff --git a/old_docs/API_docs_v25/methods/account_setPassword.md b/old_docs/API_docs_v25/methods/account_setPassword.md index b2d9136a..1848d875 100644 --- a/old_docs/API_docs_v25/methods/account_setPassword.md +++ b/old_docs/API_docs_v25/methods/account_setPassword.md @@ -32,12 +32,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->setPassword(['current_password_hash' => 'bytes', 'new_salt' => 'bytes', 'new_password_hash' => 'bytes', 'hint' => 'string', ]); diff --git a/old_docs/API_docs_v25/methods/account_setPrivacy.md b/old_docs/API_docs_v25/methods/account_setPrivacy.md index fbcedae7..6e24ded7 100644 --- a/old_docs/API_docs_v25/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v25/methods/account_setPrivacy.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); diff --git a/old_docs/API_docs_v25/methods/account_unregisterDevice.md b/old_docs/API_docs_v25/methods/account_unregisterDevice.md index 1d2b7670..b666d91a 100644 --- a/old_docs/API_docs_v25/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v25/methods/account_unregisterDevice.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); diff --git a/old_docs/API_docs_v25/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v25/methods/account_updateDeviceLocked.md index ef816501..cd52093a 100644 --- a/old_docs/API_docs_v25/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v25/methods/account_updateDeviceLocked.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); diff --git a/old_docs/API_docs_v25/methods/account_updateNotifySettings.md b/old_docs/API_docs_v25/methods/account_updateNotifySettings.md index 18cbdb75..db020309 100644 --- a/old_docs/API_docs_v25/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v25/methods/account_updateNotifySettings.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); diff --git a/old_docs/API_docs_v25/methods/account_updateProfile.md b/old_docs/API_docs_v25/methods/account_updateProfile.md index f16398ed..caea3391 100644 --- a/old_docs/API_docs_v25/methods/account_updateProfile.md +++ b/old_docs/API_docs_v25/methods/account_updateProfile.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', ]); diff --git a/old_docs/API_docs_v25/methods/account_updateStatus.md b/old_docs/API_docs_v25/methods/account_updateStatus.md index 4b049e65..50b99b1e 100644 --- a/old_docs/API_docs_v25/methods/account_updateStatus.md +++ b/old_docs/API_docs_v25/methods/account_updateStatus.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); diff --git a/old_docs/API_docs_v25/methods/account_updateUsername.md b/old_docs/API_docs_v25/methods/account_updateUsername.md index 08d2abe0..7276e2aa 100644 --- a/old_docs/API_docs_v25/methods/account_updateUsername.md +++ b/old_docs/API_docs_v25/methods/account_updateUsername.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v25/methods/api_README.md b/old_docs/API_docs_v25/methods/api_README.md new file mode 100644 index 00000000..df512b20 --- /dev/null +++ b/old_docs/API_docs_v25/methods/api_README.md @@ -0,0 +1,275 @@ +--- +title: Methods +description: List of methods +--- +# Methods +[Back to API documentation index](..) + +[Go to the new description-version method index](index.html) + +$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); + +$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); + +$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); + +$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); + +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); + + +$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); + +$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); + +$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); + +$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); + +$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); + + +$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); + +$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); + +*** +

$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) + +$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) + +$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) + +$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md) + +$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) + +$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) + +$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->sendChangePhoneCode](account_sendChangePhoneCode.md)(\['phone_number' => [string](../types/string.md), \]) === [$account\_SentChangePhoneCode](../types/account_SentChangePhoneCode.md) + +$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->setPassword](account_setPassword.md)(\['current_password_hash' => [bytes](../types/bytes.md), 'new_salt' => [bytes](../types/bytes.md), 'new_password_hash' => [bytes](../types/bytes.md), 'hint' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateProfile](account_updateProfile.md)(\['first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), \]) === [$User](../types/User.md) + +$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) + +*** +

$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) + +$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) + +$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) + +$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->sendCall](auth_sendCall.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->sendSms](auth_sendSms.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$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) + +*** +

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) + +$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) + +$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) + +$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [string](../types/string.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) + +$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) + +$MadelineProto->[contacts->getSuggested](contacts_getSuggested.md)(\['limit' => [int](../types/int.md), \]) === [$contacts\_Suggested](../types/contacts_Suggested.md) + +$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) + +$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], 'replace' => [Bool](../types/Bool.md), \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) + +$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) + +$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) + +$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[geochats->checkin](geochats_checkin.md)(\['peer' => [InputGeoChat](../types/InputGeoChat.md), \]) === [$geochats\_StatedMessage](../types/geochats_StatedMessage.md) + +$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) + +$MadelineProto->[geochats->editChatPhoto](geochats_editChatPhoto.md)(\['peer' => [InputGeoChat](../types/InputGeoChat.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$geochats\_StatedMessage](../types/geochats_StatedMessage.md) + +$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) + +$MadelineProto->[geochats->getFullChat](geochats_getFullChat.md)(\['peer' => [InputGeoChat](../types/InputGeoChat.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$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) + +$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) + +$MadelineProto->[geochats->getRecents](geochats_getRecents.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$geochats\_Messages](../types/geochats_Messages.md) + +$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) + +$MadelineProto->[geochats->sendMedia](geochats_sendMedia.md)(\['peer' => [InputGeoChat](../types/InputGeoChat.md), 'media' => [InputMedia](../types/InputMedia.md), \]) === [$geochats\_StatedMessage](../types/geochats_StatedMessage.md) + +$MadelineProto->[geochats->sendMessage](geochats_sendMessage.md)(\['peer' => [InputGeoChat](../types/InputGeoChat.md), 'message' => [string](../types/string.md), \]) === [$geochats\_StatedMessage](../types/geochats_StatedMessage.md) + +$MadelineProto->[geochats->setTyping](geochats_setTyping.md)(\['peer' => [InputGeoChat](../types/InputGeoChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +*** +

$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) + +$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) + +$MadelineProto->[help->getInviteText](help_getInviteText.md)(\['lang_code' => [string](../types/string.md), \]) === [$help\_InviteText](../types/help_InviteText.md) + +$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) + +$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) + +$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) + +*** +

$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) + +*** +

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$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) + +$MadelineProto->[messages->addChatUser](messages_addChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), 'fwd_limit' => [int](../types/int.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md) + +$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md) + +$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md) + +$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md) + +$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md) + +$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md) + +$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_StatedMessages](../types/messages_StatedMessages.md) + +$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [string](../types/string.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) + +$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) + +$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) + +$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$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) + +$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) + +$MadelineProto->[messages->getStickers](messages_getStickers.md)(\['emoticon' => [string](../types/string.md), 'hash' => [string](../types/string.md), \]) === [$messages\_Stickers](../types/messages_Stickers.md) + +$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_int](../types/int.md) + +$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) + +$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) + +$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) + +$MadelineProto->[messages->sendBroadcast](messages_sendBroadcast.md)(\['contacts' => \[[InputUser](../types/InputUser.md)\], 'message' => [string](../types/string.md), 'media' => [InputMedia](../types/InputMedia.md), \]) === [$messages\_StatedMessages](../types/messages_StatedMessages.md) + +$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$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) + +$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'media' => [InputMedia](../types/InputMedia.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md) + +$MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'message' => [string](../types/string.md), \]) === [$messages\_SentMessage](../types/messages_SentMessage.md) + +$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) + +$MadelineProto->[photos->getUserPhotos](photos_getUserPhotos.md)(\['user_id' => [InputUser](../types/InputUser.md), 'offset' => [int](../types/int.md), 'max_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$photos\_Photos](../types/photos_Photos.md) + +$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), 'crop' => [InputPhotoCrop](../types/InputPhotoCrop.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) + +$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) + +*** +

$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) + +$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) + +*** +

$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) + +$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) + +$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) + +*** +

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) + +$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) + diff --git a/old_docs/API_docs_v25/methods/auth_checkPhone.md b/old_docs/API_docs_v25/methods/auth_checkPhone.md index 291221de..1826ce63 100644 --- a/old_docs/API_docs_v25/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v25/methods/auth_checkPhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); diff --git a/old_docs/API_docs_v25/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v25/methods/auth_resetAuthorizations.md index 47feea16..a46c880d 100644 --- a/old_docs/API_docs_v25/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v25/methods/auth_resetAuthorizations.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); diff --git a/old_docs/API_docs_v25/methods/auth_sendCall.md b/old_docs/API_docs_v25/methods/auth_sendCall.md index e2bd2855..5947cda7 100644 --- a/old_docs/API_docs_v25/methods/auth_sendCall.md +++ b/old_docs/API_docs_v25/methods/auth_sendCall.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendCall(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v25/methods/auth_sendInvites.md b/old_docs/API_docs_v25/methods/auth_sendInvites.md index be32fe6b..9b88b4a3 100644 --- a/old_docs/API_docs_v25/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v25/methods/auth_sendInvites.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); diff --git a/old_docs/API_docs_v25/methods/auth_sendSms.md b/old_docs/API_docs_v25/methods/auth_sendSms.md index a17fdd3a..41340660 100644 --- a/old_docs/API_docs_v25/methods/auth_sendSms.md +++ b/old_docs/API_docs_v25/methods/auth_sendSms.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendSms(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v25/methods/contacts_block.md b/old_docs/API_docs_v25/methods/contacts_block.md index d0729d30..e592cace 100644 --- a/old_docs/API_docs_v25/methods/contacts_block.md +++ b/old_docs/API_docs_v25/methods/contacts_block.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v25/methods/contacts_deleteContact.md b/old_docs/API_docs_v25/methods/contacts_deleteContact.md index b8c17544..1a3f2a27 100644 --- a/old_docs/API_docs_v25/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v25/methods/contacts_deleteContact.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v25/methods/contacts_deleteContacts.md b/old_docs/API_docs_v25/methods/contacts_deleteContacts.md index 64c69460..f6627599 100644 --- a/old_docs/API_docs_v25/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v25/methods/contacts_deleteContacts.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v25/methods/contacts_exportCard.md b/old_docs/API_docs_v25/methods/contacts_exportCard.md index b05f57ce..1d2129f3 100644 --- a/old_docs/API_docs_v25/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v25/methods/contacts_exportCard.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); diff --git a/old_docs/API_docs_v25/methods/contacts_getBlocked.md b/old_docs/API_docs_v25/methods/contacts_getBlocked.md index d7d8c5cc..44d24aba 100644 --- a/old_docs/API_docs_v25/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v25/methods/contacts_getBlocked.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v25/methods/contacts_getContacts.md b/old_docs/API_docs_v25/methods/contacts_getContacts.md index 1ab8af27..83c4846f 100644 --- a/old_docs/API_docs_v25/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v25/methods/contacts_getContacts.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v25/methods/contacts_getStatuses.md b/old_docs/API_docs_v25/methods/contacts_getStatuses.md index b927a140..5cef3084 100644 --- a/old_docs/API_docs_v25/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v25/methods/contacts_getStatuses.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); diff --git a/old_docs/API_docs_v25/methods/contacts_getSuggested.md b/old_docs/API_docs_v25/methods/contacts_getSuggested.md index 302e60e5..1ce04bef 100644 --- a/old_docs/API_docs_v25/methods/contacts_getSuggested.md +++ b/old_docs/API_docs_v25/methods/contacts_getSuggested.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Suggested = $MadelineProto->contacts->getSuggested(['limit' => int, ]); diff --git a/old_docs/API_docs_v25/methods/contacts_importCard.md b/old_docs/API_docs_v25/methods/contacts_importCard.md index 81a1e138..89c96657 100644 --- a/old_docs/API_docs_v25/methods/contacts_importCard.md +++ b/old_docs/API_docs_v25/methods/contacts_importCard.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); diff --git a/old_docs/API_docs_v25/methods/contacts_importContacts.md b/old_docs/API_docs_v25/methods/contacts_importContacts.md index 578e5dfd..cd3d6615 100644 --- a/old_docs/API_docs_v25/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v25/methods/contacts_importContacts.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], 'replace' => Bool, ]); diff --git a/old_docs/API_docs_v25/methods/contacts_search.md b/old_docs/API_docs_v25/methods/contacts_search.md index 68daecd6..64ff748e 100644 --- a/old_docs/API_docs_v25/methods/contacts_search.md +++ b/old_docs/API_docs_v25/methods/contacts_search.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); diff --git a/old_docs/API_docs_v25/methods/contacts_unblock.md b/old_docs/API_docs_v25/methods/contacts_unblock.md index f7d151b9..ec72ae2d 100644 --- a/old_docs/API_docs_v25/methods/contacts_unblock.md +++ b/old_docs/API_docs_v25/methods/contacts_unblock.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v25/methods/geochats_checkin.md b/old_docs/API_docs_v25/methods/geochats_checkin.md index 65020487..829f8e85 100644 --- a/old_docs/API_docs_v25/methods/geochats_checkin.md +++ b/old_docs/API_docs_v25/methods/geochats_checkin.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $geochats_StatedMessage = $MadelineProto->geochats->checkin(['peer' => InputGeoChat, ]); diff --git a/old_docs/API_docs_v25/methods/geochats_createGeoChat.md b/old_docs/API_docs_v25/methods/geochats_createGeoChat.md index 8ad1c2da..6881f300 100644 --- a/old_docs/API_docs_v25/methods/geochats_createGeoChat.md +++ b/old_docs/API_docs_v25/methods/geochats_createGeoChat.md @@ -32,12 +32,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $geochats_StatedMessage = $MadelineProto->geochats->createGeoChat(['title' => 'string', 'geo_point' => InputGeoPoint, 'address' => 'string', 'venue' => 'string', ]); diff --git a/old_docs/API_docs_v25/methods/geochats_editChatPhoto.md b/old_docs/API_docs_v25/methods/geochats_editChatPhoto.md index 14d6698f..9d975f3f 100644 --- a/old_docs/API_docs_v25/methods/geochats_editChatPhoto.md +++ b/old_docs/API_docs_v25/methods/geochats_editChatPhoto.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $geochats_StatedMessage = $MadelineProto->geochats->editChatPhoto(['peer' => InputGeoChat, 'photo' => InputChatPhoto, ]); diff --git a/old_docs/API_docs_v25/methods/geochats_editChatTitle.md b/old_docs/API_docs_v25/methods/geochats_editChatTitle.md index 013e071d..fe43e476 100644 --- a/old_docs/API_docs_v25/methods/geochats_editChatTitle.md +++ b/old_docs/API_docs_v25/methods/geochats_editChatTitle.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $geochats_StatedMessage = $MadelineProto->geochats->editChatTitle(['peer' => InputGeoChat, 'title' => 'string', 'address' => 'string', ]); diff --git a/old_docs/API_docs_v25/methods/geochats_getFullChat.md b/old_docs/API_docs_v25/methods/geochats_getFullChat.md index 7ab7d800..0ca442e0 100644 --- a/old_docs/API_docs_v25/methods/geochats_getFullChat.md +++ b/old_docs/API_docs_v25/methods/geochats_getFullChat.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_ChatFull = $MadelineProto->geochats->getFullChat(['peer' => InputGeoChat, ]); diff --git a/old_docs/API_docs_v25/methods/geochats_getHistory.md b/old_docs/API_docs_v25/methods/geochats_getHistory.md index bcb4d6e5..e2727fda 100644 --- a/old_docs/API_docs_v25/methods/geochats_getHistory.md +++ b/old_docs/API_docs_v25/methods/geochats_getHistory.md @@ -32,12 +32,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $geochats_Messages = $MadelineProto->geochats->getHistory(['peer' => InputGeoChat, 'offset' => int, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v25/methods/geochats_getLocated.md b/old_docs/API_docs_v25/methods/geochats_getLocated.md index 93b24b91..9bcb9a66 100644 --- a/old_docs/API_docs_v25/methods/geochats_getLocated.md +++ b/old_docs/API_docs_v25/methods/geochats_getLocated.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $geochats_Located = $MadelineProto->geochats->getLocated(['geo_point' => InputGeoPoint, 'radius' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v25/methods/geochats_getRecents.md b/old_docs/API_docs_v25/methods/geochats_getRecents.md index 17e89b0c..6cd93cb6 100644 --- a/old_docs/API_docs_v25/methods/geochats_getRecents.md +++ b/old_docs/API_docs_v25/methods/geochats_getRecents.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $geochats_Messages = $MadelineProto->geochats->getRecents(['offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v25/methods/geochats_search.md b/old_docs/API_docs_v25/methods/geochats_search.md index 5961ef19..7bb91137 100644 --- a/old_docs/API_docs_v25/methods/geochats_search.md +++ b/old_docs/API_docs_v25/methods/geochats_search.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $geochats_Messages = $MadelineProto->geochats->search(['peer' => InputGeoChat, 'q' => 'string', 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v25/methods/geochats_sendMedia.md b/old_docs/API_docs_v25/methods/geochats_sendMedia.md index 72575cf8..cd50d19d 100644 --- a/old_docs/API_docs_v25/methods/geochats_sendMedia.md +++ b/old_docs/API_docs_v25/methods/geochats_sendMedia.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $geochats_StatedMessage = $MadelineProto->geochats->sendMedia(['peer' => InputGeoChat, 'media' => InputMedia, ]); diff --git a/old_docs/API_docs_v25/methods/geochats_sendMessage.md b/old_docs/API_docs_v25/methods/geochats_sendMessage.md index b871b4f2..23607283 100644 --- a/old_docs/API_docs_v25/methods/geochats_sendMessage.md +++ b/old_docs/API_docs_v25/methods/geochats_sendMessage.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $geochats_StatedMessage = $MadelineProto->geochats->sendMessage(['peer' => InputGeoChat, 'message' => 'string', ]); diff --git a/old_docs/API_docs_v25/methods/geochats_setTyping.md b/old_docs/API_docs_v25/methods/geochats_setTyping.md index 9a369478..1eb07800 100644 --- a/old_docs/API_docs_v25/methods/geochats_setTyping.md +++ b/old_docs/API_docs_v25/methods/geochats_setTyping.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->geochats->setTyping(['peer' => InputGeoChat, 'typing' => Bool, ]); diff --git a/old_docs/API_docs_v25/methods/help_getAppUpdate.md b/old_docs/API_docs_v25/methods/help_getAppUpdate.md index f97da105..ad5b8228 100644 --- a/old_docs/API_docs_v25/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v25/methods/help_getAppUpdate.md @@ -32,12 +32,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(['device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v25/methods/help_getConfig.md b/old_docs/API_docs_v25/methods/help_getConfig.md index 16e25c68..ca4bfc25 100644 --- a/old_docs/API_docs_v25/methods/help_getConfig.md +++ b/old_docs/API_docs_v25/methods/help_getConfig.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); diff --git a/old_docs/API_docs_v25/methods/help_getInviteText.md b/old_docs/API_docs_v25/methods/help_getInviteText.md index 0831ba5f..ad6ac262 100644 --- a/old_docs/API_docs_v25/methods/help_getInviteText.md +++ b/old_docs/API_docs_v25/methods/help_getInviteText.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(['lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v25/methods/help_getNearestDc.md b/old_docs/API_docs_v25/methods/help_getNearestDc.md index 35a8bf91..458f60ab 100644 --- a/old_docs/API_docs_v25/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v25/methods/help_getNearestDc.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); diff --git a/old_docs/API_docs_v25/methods/help_getSupport.md b/old_docs/API_docs_v25/methods/help_getSupport.md index a5bab0f2..9ee25b00 100644 --- a/old_docs/API_docs_v25/methods/help_getSupport.md +++ b/old_docs/API_docs_v25/methods/help_getSupport.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); diff --git a/old_docs/API_docs_v25/methods/help_saveAppLog.md b/old_docs/API_docs_v25/methods/help_saveAppLog.md index 0165b6e3..a7884c47 100644 --- a/old_docs/API_docs_v25/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v25/methods/help_saveAppLog.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); diff --git a/old_docs/API_docs_v25/methods/initConnection.md b/old_docs/API_docs_v25/methods/initConnection.md index 2d3d86ad..73620276 100644 --- a/old_docs/API_docs_v25/methods/initConnection.md +++ b/old_docs/API_docs_v25/methods/initConnection.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->initConnection(['api_id' => int, 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', 'query' => !X, ]); diff --git a/old_docs/API_docs_v25/methods/invokeAfterMsg.md b/old_docs/API_docs_v25/methods/invokeAfterMsg.md index e33a2c93..8e953e78 100644 --- a/old_docs/API_docs_v25/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v25/methods/invokeAfterMsg.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); diff --git a/old_docs/API_docs_v25/methods/invokeAfterMsgs.md b/old_docs/API_docs_v25/methods/invokeAfterMsgs.md index 3150a613..bc8a83b7 100644 --- a/old_docs/API_docs_v25/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v25/methods/invokeAfterMsgs.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); diff --git a/old_docs/API_docs_v25/methods/invokeWithLayer.md b/old_docs/API_docs_v25/methods/invokeWithLayer.md index 71d02abb..8a0c4e79 100644 --- a/old_docs/API_docs_v25/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v25/methods/invokeWithLayer.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); diff --git a/old_docs/API_docs_v25/methods/messages_addChatUser.md b/old_docs/API_docs_v25/methods/messages_addChatUser.md index 29a87261..08b745d1 100644 --- a/old_docs/API_docs_v25/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v25/methods/messages_addChatUser.md @@ -46,12 +46,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StatedMessage = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); diff --git a/old_docs/API_docs_v25/methods/messages_createChat.md b/old_docs/API_docs_v25/methods/messages_createChat.md index d37a9768..8a34e1fe 100644 --- a/old_docs/API_docs_v25/methods/messages_createChat.md +++ b/old_docs/API_docs_v25/methods/messages_createChat.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StatedMessage = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); diff --git a/old_docs/API_docs_v25/methods/messages_deleteChatUser.md b/old_docs/API_docs_v25/methods/messages_deleteChatUser.md index 163a9250..8e8cf06b 100644 --- a/old_docs/API_docs_v25/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v25/methods/messages_deleteChatUser.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StatedMessage = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v25/methods/messages_deleteHistory.md b/old_docs/API_docs_v25/methods/messages_deleteHistory.md index a2120105..77b8987e 100644 --- a/old_docs/API_docs_v25/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v25/methods/messages_deleteHistory.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['peer' => InputPeer, 'offset' => int, ]); diff --git a/old_docs/API_docs_v25/methods/messages_deleteMessages.md b/old_docs/API_docs_v25/methods/messages_deleteMessages.md index 41570996..fa043e1c 100644 --- a/old_docs/API_docs_v25/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v25/methods/messages_deleteMessages.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v25/methods/messages_editChatPhoto.md b/old_docs/API_docs_v25/methods/messages_editChatPhoto.md index 4decf9cd..c2958508 100644 --- a/old_docs/API_docs_v25/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v25/methods/messages_editChatPhoto.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StatedMessage = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); diff --git a/old_docs/API_docs_v25/methods/messages_editChatTitle.md b/old_docs/API_docs_v25/methods/messages_editChatTitle.md index cff2e5e6..d2acc30b 100644 --- a/old_docs/API_docs_v25/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v25/methods/messages_editChatTitle.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StatedMessage = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); diff --git a/old_docs/API_docs_v25/methods/messages_forwardMessage.md b/old_docs/API_docs_v25/methods/messages_forwardMessage.md index 43d7d957..295eda7a 100644 --- a/old_docs/API_docs_v25/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v25/methods/messages_forwardMessage.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StatedMessage = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); diff --git a/old_docs/API_docs_v25/methods/messages_forwardMessages.md b/old_docs/API_docs_v25/methods/messages_forwardMessages.md index 21798bfe..f1eb9dc5 100644 --- a/old_docs/API_docs_v25/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v25/methods/messages_forwardMessages.md @@ -58,12 +58,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StatedMessages = $MadelineProto->messages->forwardMessages(['peer' => InputPeer, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v25/methods/messages_getAllStickers.md b/old_docs/API_docs_v25/methods/messages_getAllStickers.md index d4193723..322f9b0b 100644 --- a/old_docs/API_docs_v25/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v25/methods/messages_getAllStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v25/methods/messages_getChats.md b/old_docs/API_docs_v25/methods/messages_getChats.md index 290438a1..e84c7193 100644 --- a/old_docs/API_docs_v25/methods/messages_getChats.md +++ b/old_docs/API_docs_v25/methods/messages_getChats.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v25/methods/messages_getDialogs.md b/old_docs/API_docs_v25/methods/messages_getDialogs.md index 9245157b..c388f163 100644 --- a/old_docs/API_docs_v25/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v25/methods/messages_getDialogs.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['offset' => int, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v25/methods/messages_getHistory.md b/old_docs/API_docs_v25/methods/messages_getHistory.md index fe575dd4..ba497c74 100644 --- a/old_docs/API_docs_v25/methods/messages_getHistory.md +++ b/old_docs/API_docs_v25/methods/messages_getHistory.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getHistory(['peer' => InputPeer, 'offset' => int, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v25/methods/messages_getMessages.md b/old_docs/API_docs_v25/methods/messages_getMessages.md index 86d1da8a..d538cb5f 100644 --- a/old_docs/API_docs_v25/methods/messages_getMessages.md +++ b/old_docs/API_docs_v25/methods/messages_getMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v25/methods/messages_getStickers.md b/old_docs/API_docs_v25/methods/messages_getStickers.md index 4854696d..d2ea57cf 100644 --- a/old_docs/API_docs_v25/methods/messages_getStickers.md +++ b/old_docs/API_docs_v25/methods/messages_getStickers.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Stickers = $MadelineProto->messages->getStickers(['emoticon' => 'string', 'hash' => 'string', ]); diff --git a/old_docs/API_docs_v25/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v25/methods/messages_readEncryptedHistory.md index 39b110e3..2ba4cca4 100644 --- a/old_docs/API_docs_v25/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v25/methods/messages_readEncryptedHistory.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); diff --git a/old_docs/API_docs_v25/methods/messages_readHistory.md b/old_docs/API_docs_v25/methods/messages_readHistory.md index 8a00bf47..7d5d7e35 100644 --- a/old_docs/API_docs_v25/methods/messages_readHistory.md +++ b/old_docs/API_docs_v25/methods/messages_readHistory.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, 'offset' => int, ]); diff --git a/old_docs/API_docs_v25/methods/messages_readMessageContents.md b/old_docs/API_docs_v25/methods/messages_readMessageContents.md index 9bb1bee8..a09cb63e 100644 --- a/old_docs/API_docs_v25/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v25/methods/messages_readMessageContents.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v25/methods/messages_receivedMessages.md b/old_docs/API_docs_v25/methods/messages_receivedMessages.md index 47bbb78e..aca67286 100644 --- a/old_docs/API_docs_v25/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v25/methods/messages_receivedMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); diff --git a/old_docs/API_docs_v25/methods/messages_search.md b/old_docs/API_docs_v25/methods/messages_search.md index 7821d2b7..735ddf47 100644 --- a/old_docs/API_docs_v25/methods/messages_search.md +++ b/old_docs/API_docs_v25/methods/messages_search.md @@ -49,12 +49,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->search(['peer' => InputPeer, 'q' => 'string', 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v25/methods/messages_sendBroadcast.md b/old_docs/API_docs_v25/methods/messages_sendBroadcast.md index 6ddd149a..341c3d8c 100644 --- a/old_docs/API_docs_v25/methods/messages_sendBroadcast.md +++ b/old_docs/API_docs_v25/methods/messages_sendBroadcast.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StatedMessages = $MadelineProto->messages->sendBroadcast(['contacts' => [InputUser, InputUser], 'message' => 'string', 'media' => InputMedia, ]); diff --git a/old_docs/API_docs_v25/methods/messages_sendEncrypted.md b/old_docs/API_docs_v25/methods/messages_sendEncrypted.md index d48f88d7..76305f32 100644 --- a/old_docs/API_docs_v25/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v25/methods/messages_sendEncrypted.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v25/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v25/methods/messages_sendEncryptedFile.md index 4fd0648e..8db2ead9 100644 --- a/old_docs/API_docs_v25/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v25/methods/messages_sendEncryptedFile.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); diff --git a/old_docs/API_docs_v25/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v25/methods/messages_sendEncryptedService.md index d66894bf..c7836c94 100644 --- a/old_docs/API_docs_v25/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v25/methods/messages_sendEncryptedService.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v25/methods/messages_sendMedia.md b/old_docs/API_docs_v25/methods/messages_sendMedia.md index 3048d3c9..933c00de 100644 --- a/old_docs/API_docs_v25/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v25/methods/messages_sendMedia.md @@ -59,12 +59,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StatedMessage = $MadelineProto->messages->sendMedia(['peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, ]); diff --git a/old_docs/API_docs_v25/methods/messages_sendMessage.md b/old_docs/API_docs_v25/methods/messages_sendMessage.md index 0c13703b..c753aecb 100644 --- a/old_docs/API_docs_v25/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v25/methods/messages_sendMessage.md @@ -58,12 +58,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentMessage = $MadelineProto->messages->sendMessage(['peer' => InputPeer, 'reply_to_msg_id' => int, 'message' => 'string', ]); diff --git a/old_docs/API_docs_v25/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v25/methods/messages_setEncryptedTyping.md index e9afe99c..4e7450eb 100644 --- a/old_docs/API_docs_v25/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v25/methods/messages_setEncryptedTyping.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); diff --git a/old_docs/API_docs_v25/methods/messages_setTyping.md b/old_docs/API_docs_v25/methods/messages_setTyping.md index bea4982b..a2b94823 100644 --- a/old_docs/API_docs_v25/methods/messages_setTyping.md +++ b/old_docs/API_docs_v25/methods/messages_setTyping.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); diff --git a/old_docs/API_docs_v25/methods/photos_deletePhotos.md b/old_docs/API_docs_v25/methods/photos_deletePhotos.md index b9daca10..937aadd5 100644 --- a/old_docs/API_docs_v25/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v25/methods/photos_deletePhotos.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); diff --git a/old_docs/API_docs_v25/methods/photos_getUserPhotos.md b/old_docs/API_docs_v25/methods/photos_getUserPhotos.md index c9a219e0..071a8f98 100644 --- a/old_docs/API_docs_v25/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v25/methods/photos_getUserPhotos.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v25/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v25/methods/photos_updateProfilePhoto.md index 2d1e1e76..4c5c517f 100644 --- a/old_docs/API_docs_v25/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v25/methods/photos_updateProfilePhoto.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, 'crop' => InputPhotoCrop, ]); diff --git a/old_docs/API_docs_v25/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v25/methods/photos_uploadProfilePhoto.md index 6ff4ddf5..3d7d301b 100644 --- a/old_docs/API_docs_v25/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v25/methods/photos_uploadProfilePhoto.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, 'caption' => 'string', 'geo_point' => InputGeoPoint, 'crop' => InputPhotoCrop, ]); diff --git a/old_docs/API_docs_v25/methods/users_getUsers.md b/old_docs/API_docs_v25/methods/users_getUsers.md index ef1c7fd8..bce13ee6 100644 --- a/old_docs/API_docs_v25/methods/users_getUsers.md +++ b/old_docs/API_docs_v25/methods/users_getUsers.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v27/README.md b/old_docs/API_docs_v27/README.md index 49d0a1bd..8edc5bc8 100644 --- a/old_docs/API_docs_v27/README.md +++ b/old_docs/API_docs_v27/README.md @@ -4,11 +4,11 @@ description: MadelineProto API documentation (layer v27) --- # MadelineProto API documentation (layer v27) +[Back to main documentation](..) + + [Methods](methods/) [Constructors](constructors/) -[Types](types/) - - -[Back to main documentation](..) +[Types](types/) \ No newline at end of file diff --git a/old_docs/API_docs_v27/methods/README.md b/old_docs/API_docs_v27/methods/README.md index 4b31db71..d1be5acd 100644 --- a/old_docs/API_docs_v27/methods/README.md +++ b/old_docs/API_docs_v27/methods/README.md @@ -1,286 +1,281 @@ --- title: Methods -description: List of methods +description: What do you want to do? --- -# Methods -[Back to API documentation index](..) +# What do you want to do? +[Go back to API documentation index](..) +[Go to the old code-version method index](api_index.html) -$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); +* [Logout](https://docs.madelineproto.xyz/logout.html) -$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); +* [Login](https://docs.madelineproto.xyz/docs/LOGIN.html) -$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); +* [Get all chats, broadcast a message to all chats](https://docs.madelineproto.xyz/docs/DIALOGS.html) -$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); +* [Get the full participant list of a channel/group/supergroup](https://docs.madelineproto.xyz/get_pwr_chat.html) -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); +* [Get full info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_full_info.html) +* [Get info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_info.html) -$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); +* [Get info about the currently logged-in user](https://docs.madelineproto.xyz/get_self.html) -$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); +* [Upload or download files up to 1.5 GB](https://docs.madelineproto.xyz/docs/FILES.html) -$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); +* [Make a phone call and play a song](https://docs.madelineproto.xyz/docs/CALLS.html) -$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); - -$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); - - -$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); - -$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); +* [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) *** -

$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) +

* Change the phone number associated to this account -$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Check if this username is available -$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Delete this account -$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) +* Get account TTL -$MadelineProto->[account->getAuthorizations](account_getAuthorizations.md)(\[\]) === [$account\_Authorizations](../types/account_Authorizations.md) +* Get all logged-in authorizations -$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) +* Get notification settings -$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md) +* Get the current password -$MadelineProto->[account->getPasswordSettings](account_getPasswordSettings.md)(\['current_password_hash' => [bytes](../types/bytes.md), \]) === [$account\_PasswordSettings](../types/account_PasswordSettings.md) +* Get the current 2FA settings -$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Get privacy settings -$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) +* Returns a list of available wallpapers. -$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) +* Register device for push notifications -$MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) +* Delete a certain session -$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) +* Reset all notification settings -$MadelineProto->[account->sendChangePhoneCode](account_sendChangePhoneCode.md)(\['phone_number' => [string](../types/string.md), \]) === [$account\_SentChangePhoneCode](../types/account_SentChangePhoneCode.md) +* Change the phone number -$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) +* Set account TTL -$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Set privacy settings -$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Stop sending PUSH notifications to app -$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Disable all notifications for a certain period -$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) +* Change notification settings -$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) +* Update the 2FA password settings -$MadelineProto->[account->updateProfile](account_updateProfile.md)(\['first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), \]) === [$User](../types/User.md) +* Update profile info -$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Update online status -$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) +* Update this user's username *** -

$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) +

* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info -$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) +* Check if this phone number is registered on telegram -$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) +* You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->recoverPassword](auth_recoverPassword.md)(\['code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account -$MadelineProto->[auth->requestPasswordRecovery](auth_requestPasswordRecovery.md)(\[\]) === [$auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) +* Send an email to recover the 2FA password -$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) +* Delete all logged-in sessions. -$MadelineProto->[auth->sendCall](auth_sendCall.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Send verification phone call -$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) +* Use phone_login instead -$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Invite friends to telegram! -$MadelineProto->[auth->sendSms](auth_sendSms.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Send SMS verification code -$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) +* You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) -$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) +* You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) *** -

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +

* Block a user -$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) +* Delete a contact -$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) +* Delete multiple contacts -$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) +* Export contact as card -$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) +* Get blocked users -$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [string](../types/string.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) +* Get info about a certain contact -$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) +* Get online status of all users -$MadelineProto->[contacts->getSuggested](contacts_getSuggested.md)(\['limit' => [int](../types/int.md), \]) === [$contacts\_Suggested](../types/contacts_Suggested.md) +* Get suggested contacts -$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) +* Import card as contact -$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], 'replace' => [Bool](../types/Bool.md), \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) +* Add phone number as contact -$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) +* You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) +* Search contacts -$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +* Unblock a user *** -

$MadelineProto->[geochats->checkin](geochats_checkin.md)(\['peer' => [InputGeoChat](../types/InputGeoChat.md), \]) === [$geochats\_StatedMessage](../types/geochats_StatedMessage.md) +

* Join a geochat -$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) +* Create geochat -$MadelineProto->[geochats->editChatPhoto](geochats_editChatPhoto.md)(\['peer' => [InputGeoChat](../types/InputGeoChat.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$geochats\_StatedMessage](../types/geochats_StatedMessage.md) +* Edit geochat photo -$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) +* Edit geochat title -$MadelineProto->[geochats->getFullChat](geochats_getFullChat.md)(\['peer' => [InputGeoChat](../types/InputGeoChat.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) +* Get full info about a geochat -$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) +* Get geochat history -$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) +* Get nearby geochats -$MadelineProto->[geochats->getRecents](geochats_getRecents.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$geochats\_Messages](../types/geochats_Messages.md) +* Get recent geochats -$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) +* Search messages in geocha -$MadelineProto->[geochats->sendMedia](geochats_sendMedia.md)(\['peer' => [InputGeoChat](../types/InputGeoChat.md), 'media' => [InputMedia](../types/InputMedia.md), \]) === [$geochats\_StatedMessage](../types/geochats_StatedMessage.md) +* Send media to geochat -$MadelineProto->[geochats->sendMessage](geochats_sendMessage.md)(\['peer' => [InputGeoChat](../types/InputGeoChat.md), 'message' => [string](../types/string.md), \]) === [$geochats\_StatedMessage](../types/geochats_StatedMessage.md) +* Send message to geochat -$MadelineProto->[geochats->setTyping](geochats_setTyping.md)(\['peer' => [InputGeoChat](../types/InputGeoChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Send typing notification to geochat *** -

$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) +

* Get info about app updates -$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) +* Get server configuration -$MadelineProto->[help->getInviteText](help_getInviteText.md)(\['lang_code' => [string](../types/string.md), \]) === [$help\_InviteText](../types/help_InviteText.md) +* Get invitation text -$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) +* Get nearest datacenter -$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) +* Get info of support user -$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) +* Log data for developer of this app *** -

$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) +

* Initializes connection and save information on the user's device and application. *** -

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invokes a query after successfull completion of one of the previous queries. *** -

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Result type returned by a current query. *** -

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invoke this method with layer X *** -

$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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Add a user to a normal chat (use channels->inviteToChannel for supergroups) -$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Create a chat (not supergroup) -$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md) +* Delete a user from a chat (not supergroup) -$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Delete chat history -$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Delete messages -$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) +* Edit the photo of a normal chat (not supergroup) -$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Edit the title of a normal chat (not supergroup) -$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) +* Forward message -$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], \]) === [$Updates](../types/Updates.md) +* Forward messages -$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [string](../types/string.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) +* Get all stickerpacks -$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get info about chats -$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) +* You cannot use this method directly, instead use $MadelineProto->get_dh_config(); -$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) +* Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html -$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) +* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$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) +* Get previous messages of a group -$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get messages -$MadelineProto->[messages->getStickers](messages_getStickers.md)(\['emoticon' => [string](../types/string.md), 'hash' => [string](../types/string.md), \]) === [$messages\_Stickers](../types/messages_Stickers.md) +* Get stickers -$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) === [$MessageMedia](../types/MessageMedia.md) +* Get webpage preview -$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Mark messages as read in secret chats -$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) +* Mark messages as read -$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Mark message as read -$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_int](../types/int.md) +* Mark messages as read -$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) +* You cannot use this method directly -$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Search peers or messages -$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) +* Send a message to all users in the chat list -$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send message to secret chat -$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) +* Send a file to a secret chat -$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send a service message to a secret chat -$MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'media' => [InputMedia](../types/InputMedia.md), \]) === [$Updates](../types/Updates.md) +* Send a media -$MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'message' => [string](../types/string.md), \]) === [$messages\_SentMessage](../types/messages_SentMessage.md) +* Send a message -$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Send typing notification to secret chat -$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) +* Change typing status *** -

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) +

* Delete profile photos -$MadelineProto->[photos->getUserPhotos](photos_getUserPhotos.md)(\['user_id' => [InputUser](../types/InputUser.md), 'offset' => [int](../types/int.md), 'max_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$photos\_Photos](../types/photos_Photos.md) +* Get the profile photos of a user -$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), 'crop' => [InputPhotoCrop](../types/InputPhotoCrop.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) +* Update the profile photo (use photos->uploadProfilePhoto to upload the photo) -$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) +* Upload profile photo *** -

$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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates -$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates *** -

$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) +

* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info *** -

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) +

* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) +* Get info about users diff --git a/old_docs/API_docs_v27/methods/account_changePhone.md b/old_docs/API_docs_v27/methods/account_changePhone.md index aeb5c4bc..65f0b0d0 100644 --- a/old_docs/API_docs_v27/methods/account_changePhone.md +++ b/old_docs/API_docs_v27/methods/account_changePhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); diff --git a/old_docs/API_docs_v27/methods/account_checkUsername.md b/old_docs/API_docs_v27/methods/account_checkUsername.md index 0124bb38..08107762 100644 --- a/old_docs/API_docs_v27/methods/account_checkUsername.md +++ b/old_docs/API_docs_v27/methods/account_checkUsername.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v27/methods/account_deleteAccount.md b/old_docs/API_docs_v27/methods/account_deleteAccount.md index e8b46c24..3a6f4700 100644 --- a/old_docs/API_docs_v27/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v27/methods/account_deleteAccount.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); diff --git a/old_docs/API_docs_v27/methods/account_getAccountTTL.md b/old_docs/API_docs_v27/methods/account_getAccountTTL.md index 0cdd0b98..ab6a6ea1 100644 --- a/old_docs/API_docs_v27/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v27/methods/account_getAccountTTL.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); diff --git a/old_docs/API_docs_v27/methods/account_getAuthorizations.md b/old_docs/API_docs_v27/methods/account_getAuthorizations.md index f92db8fe..303203e4 100644 --- a/old_docs/API_docs_v27/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v27/methods/account_getAuthorizations.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_Authorizations = $MadelineProto->account->getAuthorizations(); diff --git a/old_docs/API_docs_v27/methods/account_getNotifySettings.md b/old_docs/API_docs_v27/methods/account_getNotifySettings.md index f00be12c..ad492f49 100644 --- a/old_docs/API_docs_v27/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v27/methods/account_getNotifySettings.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); diff --git a/old_docs/API_docs_v27/methods/account_getPassword.md b/old_docs/API_docs_v27/methods/account_getPassword.md index c189421d..2692dab1 100644 --- a/old_docs/API_docs_v27/methods/account_getPassword.md +++ b/old_docs/API_docs_v27/methods/account_getPassword.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_Password = $MadelineProto->account->getPassword(); diff --git a/old_docs/API_docs_v27/methods/account_getPasswordSettings.md b/old_docs/API_docs_v27/methods/account_getPasswordSettings.md index 96cb953e..2039d405 100644 --- a/old_docs/API_docs_v27/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v27/methods/account_getPasswordSettings.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PasswordSettings = $MadelineProto->account->getPasswordSettings(['current_password_hash' => 'bytes', ]); diff --git a/old_docs/API_docs_v27/methods/account_getPrivacy.md b/old_docs/API_docs_v27/methods/account_getPrivacy.md index 979bfb94..5480ffbb 100644 --- a/old_docs/API_docs_v27/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v27/methods/account_getPrivacy.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); diff --git a/old_docs/API_docs_v27/methods/account_getWallPapers.md b/old_docs/API_docs_v27/methods/account_getWallPapers.md index 89b281be..7c8bff39 100644 --- a/old_docs/API_docs_v27/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v27/methods/account_getWallPapers.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); diff --git a/old_docs/API_docs_v27/methods/account_registerDevice.md b/old_docs/API_docs_v27/methods/account_registerDevice.md index 651e753f..8dae7506 100644 --- a/old_docs/API_docs_v27/methods/account_registerDevice.md +++ b/old_docs/API_docs_v27/methods/account_registerDevice.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'app_sandbox' => Bool, 'lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v27/methods/account_resetAuthorization.md b/old_docs/API_docs_v27/methods/account_resetAuthorization.md index 4155d3c8..543aee08 100644 --- a/old_docs/API_docs_v27/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v27/methods/account_resetAuthorization.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetAuthorization(['hash' => long, ]); diff --git a/old_docs/API_docs_v27/methods/account_resetNotifySettings.md b/old_docs/API_docs_v27/methods/account_resetNotifySettings.md index ccc836a9..557373b0 100644 --- a/old_docs/API_docs_v27/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v27/methods/account_resetNotifySettings.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); diff --git a/old_docs/API_docs_v27/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v27/methods/account_sendChangePhoneCode.md index 0b384269..930e0f76 100644 --- a/old_docs/API_docs_v27/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v27/methods/account_sendChangePhoneCode.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_SentChangePhoneCode = $MadelineProto->account->sendChangePhoneCode(['phone_number' => 'string', ]); diff --git a/old_docs/API_docs_v27/methods/account_setAccountTTL.md b/old_docs/API_docs_v27/methods/account_setAccountTTL.md index 5100e62e..bacdd77a 100644 --- a/old_docs/API_docs_v27/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v27/methods/account_setAccountTTL.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); diff --git a/old_docs/API_docs_v27/methods/account_setPrivacy.md b/old_docs/API_docs_v27/methods/account_setPrivacy.md index fbcedae7..6e24ded7 100644 --- a/old_docs/API_docs_v27/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v27/methods/account_setPrivacy.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); diff --git a/old_docs/API_docs_v27/methods/account_unregisterDevice.md b/old_docs/API_docs_v27/methods/account_unregisterDevice.md index 1d2b7670..b666d91a 100644 --- a/old_docs/API_docs_v27/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v27/methods/account_unregisterDevice.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); diff --git a/old_docs/API_docs_v27/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v27/methods/account_updateDeviceLocked.md index ef816501..cd52093a 100644 --- a/old_docs/API_docs_v27/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v27/methods/account_updateDeviceLocked.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); diff --git a/old_docs/API_docs_v27/methods/account_updateNotifySettings.md b/old_docs/API_docs_v27/methods/account_updateNotifySettings.md index 18cbdb75..db020309 100644 --- a/old_docs/API_docs_v27/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v27/methods/account_updateNotifySettings.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); diff --git a/old_docs/API_docs_v27/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v27/methods/account_updatePasswordSettings.md index 0754dd63..8af1e37f 100644 --- a/old_docs/API_docs_v27/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v27/methods/account_updatePasswordSettings.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updatePasswordSettings(['current_password_hash' => 'bytes', 'new_settings' => account_PasswordInputSettings, ]); diff --git a/old_docs/API_docs_v27/methods/account_updateProfile.md b/old_docs/API_docs_v27/methods/account_updateProfile.md index f16398ed..caea3391 100644 --- a/old_docs/API_docs_v27/methods/account_updateProfile.md +++ b/old_docs/API_docs_v27/methods/account_updateProfile.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', ]); diff --git a/old_docs/API_docs_v27/methods/account_updateStatus.md b/old_docs/API_docs_v27/methods/account_updateStatus.md index 4b049e65..50b99b1e 100644 --- a/old_docs/API_docs_v27/methods/account_updateStatus.md +++ b/old_docs/API_docs_v27/methods/account_updateStatus.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); diff --git a/old_docs/API_docs_v27/methods/account_updateUsername.md b/old_docs/API_docs_v27/methods/account_updateUsername.md index 08d2abe0..7276e2aa 100644 --- a/old_docs/API_docs_v27/methods/account_updateUsername.md +++ b/old_docs/API_docs_v27/methods/account_updateUsername.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v27/methods/api_README.md b/old_docs/API_docs_v27/methods/api_README.md new file mode 100644 index 00000000..c6528e35 --- /dev/null +++ b/old_docs/API_docs_v27/methods/api_README.md @@ -0,0 +1,287 @@ +--- +title: Methods +description: List of methods +--- +# Methods +[Back to API documentation index](..) + +[Go to the new description-version method index](index.html) + +$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); + +$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); + +$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); + +$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); + +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); + + +$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); + +$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); + +$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); + +$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); + +$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); + + +$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); + +$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); + +*** +

$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) + +$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) + +$MadelineProto->[account->getAuthorizations](account_getAuthorizations.md)(\[\]) === [$account\_Authorizations](../types/account_Authorizations.md) + +$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) + +$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md) + +$MadelineProto->[account->getPasswordSettings](account_getPasswordSettings.md)(\['current_password_hash' => [bytes](../types/bytes.md), \]) === [$account\_PasswordSettings](../types/account_PasswordSettings.md) + +$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) + +$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) + +$MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->sendChangePhoneCode](account_sendChangePhoneCode.md)(\['phone_number' => [string](../types/string.md), \]) === [$account\_SentChangePhoneCode](../types/account_SentChangePhoneCode.md) + +$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[account->updateProfile](account_updateProfile.md)(\['first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), \]) === [$User](../types/User.md) + +$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) + +*** +

$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) + +$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) + +$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) + +$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->recoverPassword](auth_recoverPassword.md)(\['code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->requestPasswordRecovery](auth_requestPasswordRecovery.md)(\[\]) === [$auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) + +$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->sendCall](auth_sendCall.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->sendSms](auth_sendSms.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$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) + +*** +

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) + +$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) + +$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) + +$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [string](../types/string.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) + +$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) + +$MadelineProto->[contacts->getSuggested](contacts_getSuggested.md)(\['limit' => [int](../types/int.md), \]) === [$contacts\_Suggested](../types/contacts_Suggested.md) + +$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) + +$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], 'replace' => [Bool](../types/Bool.md), \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) + +$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) + +$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) + +$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[geochats->checkin](geochats_checkin.md)(\['peer' => [InputGeoChat](../types/InputGeoChat.md), \]) === [$geochats\_StatedMessage](../types/geochats_StatedMessage.md) + +$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) + +$MadelineProto->[geochats->editChatPhoto](geochats_editChatPhoto.md)(\['peer' => [InputGeoChat](../types/InputGeoChat.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$geochats\_StatedMessage](../types/geochats_StatedMessage.md) + +$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) + +$MadelineProto->[geochats->getFullChat](geochats_getFullChat.md)(\['peer' => [InputGeoChat](../types/InputGeoChat.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$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) + +$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) + +$MadelineProto->[geochats->getRecents](geochats_getRecents.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$geochats\_Messages](../types/geochats_Messages.md) + +$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) + +$MadelineProto->[geochats->sendMedia](geochats_sendMedia.md)(\['peer' => [InputGeoChat](../types/InputGeoChat.md), 'media' => [InputMedia](../types/InputMedia.md), \]) === [$geochats\_StatedMessage](../types/geochats_StatedMessage.md) + +$MadelineProto->[geochats->sendMessage](geochats_sendMessage.md)(\['peer' => [InputGeoChat](../types/InputGeoChat.md), 'message' => [string](../types/string.md), \]) === [$geochats\_StatedMessage](../types/geochats_StatedMessage.md) + +$MadelineProto->[geochats->setTyping](geochats_setTyping.md)(\['peer' => [InputGeoChat](../types/InputGeoChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +*** +

$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) + +$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) + +$MadelineProto->[help->getInviteText](help_getInviteText.md)(\['lang_code' => [string](../types/string.md), \]) === [$help\_InviteText](../types/help_InviteText.md) + +$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) + +$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) + +$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) + +*** +

$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) + +*** +

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$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) + +$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) + +$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [string](../types/string.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) + +$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) + +$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) + +$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$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) + +$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) + +$MadelineProto->[messages->getStickers](messages_getStickers.md)(\['emoticon' => [string](../types/string.md), 'hash' => [string](../types/string.md), \]) === [$messages\_Stickers](../types/messages_Stickers.md) + +$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) === [$MessageMedia](../types/MessageMedia.md) + +$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_int](../types/int.md) + +$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) + +$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) + +$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) + +$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) + +$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$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) + +$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'media' => [InputMedia](../types/InputMedia.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'message' => [string](../types/string.md), \]) === [$messages\_SentMessage](../types/messages_SentMessage.md) + +$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) + +$MadelineProto->[photos->getUserPhotos](photos_getUserPhotos.md)(\['user_id' => [InputUser](../types/InputUser.md), 'offset' => [int](../types/int.md), 'max_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$photos\_Photos](../types/photos_Photos.md) + +$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), 'crop' => [InputPhotoCrop](../types/InputPhotoCrop.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) + +$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) + +*** +

$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) + +$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) + +*** +

$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) + +$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) + +$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) + +*** +

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) + +$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) + diff --git a/old_docs/API_docs_v27/methods/auth_checkPhone.md b/old_docs/API_docs_v27/methods/auth_checkPhone.md index 291221de..1826ce63 100644 --- a/old_docs/API_docs_v27/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v27/methods/auth_checkPhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); diff --git a/old_docs/API_docs_v27/methods/auth_recoverPassword.md b/old_docs/API_docs_v27/methods/auth_recoverPassword.md index cdc9bd7d..5e37b0f3 100644 --- a/old_docs/API_docs_v27/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v27/methods/auth_recoverPassword.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_Authorization = $MadelineProto->auth->recoverPassword(['code' => 'string', ]); diff --git a/old_docs/API_docs_v27/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v27/methods/auth_requestPasswordRecovery.md index e18c6c93..c69d0c49 100644 --- a/old_docs/API_docs_v27/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v27/methods/auth_requestPasswordRecovery.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_PasswordRecovery = $MadelineProto->auth->requestPasswordRecovery(); diff --git a/old_docs/API_docs_v27/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v27/methods/auth_resetAuthorizations.md index 47feea16..a46c880d 100644 --- a/old_docs/API_docs_v27/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v27/methods/auth_resetAuthorizations.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); diff --git a/old_docs/API_docs_v27/methods/auth_sendCall.md b/old_docs/API_docs_v27/methods/auth_sendCall.md index e2bd2855..5947cda7 100644 --- a/old_docs/API_docs_v27/methods/auth_sendCall.md +++ b/old_docs/API_docs_v27/methods/auth_sendCall.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendCall(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v27/methods/auth_sendInvites.md b/old_docs/API_docs_v27/methods/auth_sendInvites.md index be32fe6b..9b88b4a3 100644 --- a/old_docs/API_docs_v27/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v27/methods/auth_sendInvites.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); diff --git a/old_docs/API_docs_v27/methods/auth_sendSms.md b/old_docs/API_docs_v27/methods/auth_sendSms.md index a17fdd3a..41340660 100644 --- a/old_docs/API_docs_v27/methods/auth_sendSms.md +++ b/old_docs/API_docs_v27/methods/auth_sendSms.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendSms(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v27/methods/contacts_block.md b/old_docs/API_docs_v27/methods/contacts_block.md index d0729d30..e592cace 100644 --- a/old_docs/API_docs_v27/methods/contacts_block.md +++ b/old_docs/API_docs_v27/methods/contacts_block.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v27/methods/contacts_deleteContact.md b/old_docs/API_docs_v27/methods/contacts_deleteContact.md index b8c17544..1a3f2a27 100644 --- a/old_docs/API_docs_v27/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v27/methods/contacts_deleteContact.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v27/methods/contacts_deleteContacts.md b/old_docs/API_docs_v27/methods/contacts_deleteContacts.md index 64c69460..f6627599 100644 --- a/old_docs/API_docs_v27/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v27/methods/contacts_deleteContacts.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v27/methods/contacts_exportCard.md b/old_docs/API_docs_v27/methods/contacts_exportCard.md index b05f57ce..1d2129f3 100644 --- a/old_docs/API_docs_v27/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v27/methods/contacts_exportCard.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); diff --git a/old_docs/API_docs_v27/methods/contacts_getBlocked.md b/old_docs/API_docs_v27/methods/contacts_getBlocked.md index d7d8c5cc..44d24aba 100644 --- a/old_docs/API_docs_v27/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v27/methods/contacts_getBlocked.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v27/methods/contacts_getContacts.md b/old_docs/API_docs_v27/methods/contacts_getContacts.md index 1ab8af27..83c4846f 100644 --- a/old_docs/API_docs_v27/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v27/methods/contacts_getContacts.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v27/methods/contacts_getStatuses.md b/old_docs/API_docs_v27/methods/contacts_getStatuses.md index b927a140..5cef3084 100644 --- a/old_docs/API_docs_v27/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v27/methods/contacts_getStatuses.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); diff --git a/old_docs/API_docs_v27/methods/contacts_getSuggested.md b/old_docs/API_docs_v27/methods/contacts_getSuggested.md index 302e60e5..1ce04bef 100644 --- a/old_docs/API_docs_v27/methods/contacts_getSuggested.md +++ b/old_docs/API_docs_v27/methods/contacts_getSuggested.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Suggested = $MadelineProto->contacts->getSuggested(['limit' => int, ]); diff --git a/old_docs/API_docs_v27/methods/contacts_importCard.md b/old_docs/API_docs_v27/methods/contacts_importCard.md index 81a1e138..89c96657 100644 --- a/old_docs/API_docs_v27/methods/contacts_importCard.md +++ b/old_docs/API_docs_v27/methods/contacts_importCard.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); diff --git a/old_docs/API_docs_v27/methods/contacts_importContacts.md b/old_docs/API_docs_v27/methods/contacts_importContacts.md index 578e5dfd..cd3d6615 100644 --- a/old_docs/API_docs_v27/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v27/methods/contacts_importContacts.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], 'replace' => Bool, ]); diff --git a/old_docs/API_docs_v27/methods/contacts_search.md b/old_docs/API_docs_v27/methods/contacts_search.md index 68daecd6..64ff748e 100644 --- a/old_docs/API_docs_v27/methods/contacts_search.md +++ b/old_docs/API_docs_v27/methods/contacts_search.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); diff --git a/old_docs/API_docs_v27/methods/contacts_unblock.md b/old_docs/API_docs_v27/methods/contacts_unblock.md index f7d151b9..ec72ae2d 100644 --- a/old_docs/API_docs_v27/methods/contacts_unblock.md +++ b/old_docs/API_docs_v27/methods/contacts_unblock.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v27/methods/geochats_checkin.md b/old_docs/API_docs_v27/methods/geochats_checkin.md index 65020487..829f8e85 100644 --- a/old_docs/API_docs_v27/methods/geochats_checkin.md +++ b/old_docs/API_docs_v27/methods/geochats_checkin.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $geochats_StatedMessage = $MadelineProto->geochats->checkin(['peer' => InputGeoChat, ]); diff --git a/old_docs/API_docs_v27/methods/geochats_createGeoChat.md b/old_docs/API_docs_v27/methods/geochats_createGeoChat.md index 8ad1c2da..6881f300 100644 --- a/old_docs/API_docs_v27/methods/geochats_createGeoChat.md +++ b/old_docs/API_docs_v27/methods/geochats_createGeoChat.md @@ -32,12 +32,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $geochats_StatedMessage = $MadelineProto->geochats->createGeoChat(['title' => 'string', 'geo_point' => InputGeoPoint, 'address' => 'string', 'venue' => 'string', ]); diff --git a/old_docs/API_docs_v27/methods/geochats_editChatPhoto.md b/old_docs/API_docs_v27/methods/geochats_editChatPhoto.md index 14d6698f..9d975f3f 100644 --- a/old_docs/API_docs_v27/methods/geochats_editChatPhoto.md +++ b/old_docs/API_docs_v27/methods/geochats_editChatPhoto.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $geochats_StatedMessage = $MadelineProto->geochats->editChatPhoto(['peer' => InputGeoChat, 'photo' => InputChatPhoto, ]); diff --git a/old_docs/API_docs_v27/methods/geochats_editChatTitle.md b/old_docs/API_docs_v27/methods/geochats_editChatTitle.md index 013e071d..fe43e476 100644 --- a/old_docs/API_docs_v27/methods/geochats_editChatTitle.md +++ b/old_docs/API_docs_v27/methods/geochats_editChatTitle.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $geochats_StatedMessage = $MadelineProto->geochats->editChatTitle(['peer' => InputGeoChat, 'title' => 'string', 'address' => 'string', ]); diff --git a/old_docs/API_docs_v27/methods/geochats_getFullChat.md b/old_docs/API_docs_v27/methods/geochats_getFullChat.md index 7ab7d800..0ca442e0 100644 --- a/old_docs/API_docs_v27/methods/geochats_getFullChat.md +++ b/old_docs/API_docs_v27/methods/geochats_getFullChat.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_ChatFull = $MadelineProto->geochats->getFullChat(['peer' => InputGeoChat, ]); diff --git a/old_docs/API_docs_v27/methods/geochats_getHistory.md b/old_docs/API_docs_v27/methods/geochats_getHistory.md index bcb4d6e5..e2727fda 100644 --- a/old_docs/API_docs_v27/methods/geochats_getHistory.md +++ b/old_docs/API_docs_v27/methods/geochats_getHistory.md @@ -32,12 +32,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $geochats_Messages = $MadelineProto->geochats->getHistory(['peer' => InputGeoChat, 'offset' => int, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v27/methods/geochats_getLocated.md b/old_docs/API_docs_v27/methods/geochats_getLocated.md index 93b24b91..9bcb9a66 100644 --- a/old_docs/API_docs_v27/methods/geochats_getLocated.md +++ b/old_docs/API_docs_v27/methods/geochats_getLocated.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $geochats_Located = $MadelineProto->geochats->getLocated(['geo_point' => InputGeoPoint, 'radius' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v27/methods/geochats_getRecents.md b/old_docs/API_docs_v27/methods/geochats_getRecents.md index 17e89b0c..6cd93cb6 100644 --- a/old_docs/API_docs_v27/methods/geochats_getRecents.md +++ b/old_docs/API_docs_v27/methods/geochats_getRecents.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $geochats_Messages = $MadelineProto->geochats->getRecents(['offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v27/methods/geochats_search.md b/old_docs/API_docs_v27/methods/geochats_search.md index 5961ef19..7bb91137 100644 --- a/old_docs/API_docs_v27/methods/geochats_search.md +++ b/old_docs/API_docs_v27/methods/geochats_search.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $geochats_Messages = $MadelineProto->geochats->search(['peer' => InputGeoChat, 'q' => 'string', 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v27/methods/geochats_sendMedia.md b/old_docs/API_docs_v27/methods/geochats_sendMedia.md index 72575cf8..cd50d19d 100644 --- a/old_docs/API_docs_v27/methods/geochats_sendMedia.md +++ b/old_docs/API_docs_v27/methods/geochats_sendMedia.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $geochats_StatedMessage = $MadelineProto->geochats->sendMedia(['peer' => InputGeoChat, 'media' => InputMedia, ]); diff --git a/old_docs/API_docs_v27/methods/geochats_sendMessage.md b/old_docs/API_docs_v27/methods/geochats_sendMessage.md index b871b4f2..23607283 100644 --- a/old_docs/API_docs_v27/methods/geochats_sendMessage.md +++ b/old_docs/API_docs_v27/methods/geochats_sendMessage.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $geochats_StatedMessage = $MadelineProto->geochats->sendMessage(['peer' => InputGeoChat, 'message' => 'string', ]); diff --git a/old_docs/API_docs_v27/methods/geochats_setTyping.md b/old_docs/API_docs_v27/methods/geochats_setTyping.md index 9a369478..1eb07800 100644 --- a/old_docs/API_docs_v27/methods/geochats_setTyping.md +++ b/old_docs/API_docs_v27/methods/geochats_setTyping.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->geochats->setTyping(['peer' => InputGeoChat, 'typing' => Bool, ]); diff --git a/old_docs/API_docs_v27/methods/help_getAppUpdate.md b/old_docs/API_docs_v27/methods/help_getAppUpdate.md index f97da105..ad5b8228 100644 --- a/old_docs/API_docs_v27/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v27/methods/help_getAppUpdate.md @@ -32,12 +32,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(['device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v27/methods/help_getConfig.md b/old_docs/API_docs_v27/methods/help_getConfig.md index 16e25c68..ca4bfc25 100644 --- a/old_docs/API_docs_v27/methods/help_getConfig.md +++ b/old_docs/API_docs_v27/methods/help_getConfig.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); diff --git a/old_docs/API_docs_v27/methods/help_getInviteText.md b/old_docs/API_docs_v27/methods/help_getInviteText.md index 0831ba5f..ad6ac262 100644 --- a/old_docs/API_docs_v27/methods/help_getInviteText.md +++ b/old_docs/API_docs_v27/methods/help_getInviteText.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(['lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v27/methods/help_getNearestDc.md b/old_docs/API_docs_v27/methods/help_getNearestDc.md index 35a8bf91..458f60ab 100644 --- a/old_docs/API_docs_v27/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v27/methods/help_getNearestDc.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); diff --git a/old_docs/API_docs_v27/methods/help_getSupport.md b/old_docs/API_docs_v27/methods/help_getSupport.md index a5bab0f2..9ee25b00 100644 --- a/old_docs/API_docs_v27/methods/help_getSupport.md +++ b/old_docs/API_docs_v27/methods/help_getSupport.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); diff --git a/old_docs/API_docs_v27/methods/help_saveAppLog.md b/old_docs/API_docs_v27/methods/help_saveAppLog.md index 0165b6e3..a7884c47 100644 --- a/old_docs/API_docs_v27/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v27/methods/help_saveAppLog.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); diff --git a/old_docs/API_docs_v27/methods/initConnection.md b/old_docs/API_docs_v27/methods/initConnection.md index 2d3d86ad..73620276 100644 --- a/old_docs/API_docs_v27/methods/initConnection.md +++ b/old_docs/API_docs_v27/methods/initConnection.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->initConnection(['api_id' => int, 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', 'query' => !X, ]); diff --git a/old_docs/API_docs_v27/methods/invokeAfterMsg.md b/old_docs/API_docs_v27/methods/invokeAfterMsg.md index e33a2c93..8e953e78 100644 --- a/old_docs/API_docs_v27/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v27/methods/invokeAfterMsg.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); diff --git a/old_docs/API_docs_v27/methods/invokeAfterMsgs.md b/old_docs/API_docs_v27/methods/invokeAfterMsgs.md index 3150a613..bc8a83b7 100644 --- a/old_docs/API_docs_v27/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v27/methods/invokeAfterMsgs.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); diff --git a/old_docs/API_docs_v27/methods/invokeWithLayer.md b/old_docs/API_docs_v27/methods/invokeWithLayer.md index 71d02abb..8a0c4e79 100644 --- a/old_docs/API_docs_v27/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v27/methods/invokeWithLayer.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); diff --git a/old_docs/API_docs_v27/methods/messages_addChatUser.md b/old_docs/API_docs_v27/methods/messages_addChatUser.md index 3e4c5ccc..c6ef275f 100644 --- a/old_docs/API_docs_v27/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v27/methods/messages_addChatUser.md @@ -46,12 +46,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); diff --git a/old_docs/API_docs_v27/methods/messages_createChat.md b/old_docs/API_docs_v27/methods/messages_createChat.md index 68c0263a..966f58dc 100644 --- a/old_docs/API_docs_v27/methods/messages_createChat.md +++ b/old_docs/API_docs_v27/methods/messages_createChat.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); diff --git a/old_docs/API_docs_v27/methods/messages_deleteChatUser.md b/old_docs/API_docs_v27/methods/messages_deleteChatUser.md index 0a6830de..9a9227ba 100644 --- a/old_docs/API_docs_v27/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v27/methods/messages_deleteChatUser.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v27/methods/messages_deleteHistory.md b/old_docs/API_docs_v27/methods/messages_deleteHistory.md index a2120105..77b8987e 100644 --- a/old_docs/API_docs_v27/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v27/methods/messages_deleteHistory.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['peer' => InputPeer, 'offset' => int, ]); diff --git a/old_docs/API_docs_v27/methods/messages_deleteMessages.md b/old_docs/API_docs_v27/methods/messages_deleteMessages.md index 41570996..fa043e1c 100644 --- a/old_docs/API_docs_v27/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v27/methods/messages_deleteMessages.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v27/methods/messages_editChatPhoto.md b/old_docs/API_docs_v27/methods/messages_editChatPhoto.md index 122913c4..5827a5cc 100644 --- a/old_docs/API_docs_v27/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v27/methods/messages_editChatPhoto.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); diff --git a/old_docs/API_docs_v27/methods/messages_editChatTitle.md b/old_docs/API_docs_v27/methods/messages_editChatTitle.md index 3a1e974b..2e69d790 100644 --- a/old_docs/API_docs_v27/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v27/methods/messages_editChatTitle.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); diff --git a/old_docs/API_docs_v27/methods/messages_forwardMessage.md b/old_docs/API_docs_v27/methods/messages_forwardMessage.md index 45b7a07f..d6916437 100644 --- a/old_docs/API_docs_v27/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v27/methods/messages_forwardMessage.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); diff --git a/old_docs/API_docs_v27/methods/messages_forwardMessages.md b/old_docs/API_docs_v27/methods/messages_forwardMessages.md index 14f42867..cecf057b 100644 --- a/old_docs/API_docs_v27/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v27/methods/messages_forwardMessages.md @@ -58,12 +58,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessages(['peer' => InputPeer, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v27/methods/messages_getAllStickers.md b/old_docs/API_docs_v27/methods/messages_getAllStickers.md index d4193723..322f9b0b 100644 --- a/old_docs/API_docs_v27/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v27/methods/messages_getAllStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v27/methods/messages_getChats.md b/old_docs/API_docs_v27/methods/messages_getChats.md index 290438a1..e84c7193 100644 --- a/old_docs/API_docs_v27/methods/messages_getChats.md +++ b/old_docs/API_docs_v27/methods/messages_getChats.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v27/methods/messages_getDialogs.md b/old_docs/API_docs_v27/methods/messages_getDialogs.md index 9245157b..c388f163 100644 --- a/old_docs/API_docs_v27/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v27/methods/messages_getDialogs.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['offset' => int, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v27/methods/messages_getHistory.md b/old_docs/API_docs_v27/methods/messages_getHistory.md index fe575dd4..ba497c74 100644 --- a/old_docs/API_docs_v27/methods/messages_getHistory.md +++ b/old_docs/API_docs_v27/methods/messages_getHistory.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getHistory(['peer' => InputPeer, 'offset' => int, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v27/methods/messages_getMessages.md b/old_docs/API_docs_v27/methods/messages_getMessages.md index 86d1da8a..d538cb5f 100644 --- a/old_docs/API_docs_v27/methods/messages_getMessages.md +++ b/old_docs/API_docs_v27/methods/messages_getMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v27/methods/messages_getStickers.md b/old_docs/API_docs_v27/methods/messages_getStickers.md index 4854696d..d2ea57cf 100644 --- a/old_docs/API_docs_v27/methods/messages_getStickers.md +++ b/old_docs/API_docs_v27/methods/messages_getStickers.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Stickers = $MadelineProto->messages->getStickers(['emoticon' => 'string', 'hash' => 'string', ]); diff --git a/old_docs/API_docs_v27/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v27/methods/messages_getWebPagePreview.md index d01bdd32..e8b20c5d 100644 --- a/old_docs/API_docs_v27/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v27/methods/messages_getWebPagePreview.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $MessageMedia = $MadelineProto->messages->getWebPagePreview(['message' => 'string', ]); diff --git a/old_docs/API_docs_v27/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v27/methods/messages_readEncryptedHistory.md index 39b110e3..2ba4cca4 100644 --- a/old_docs/API_docs_v27/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v27/methods/messages_readEncryptedHistory.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); diff --git a/old_docs/API_docs_v27/methods/messages_readHistory.md b/old_docs/API_docs_v27/methods/messages_readHistory.md index 8a00bf47..7d5d7e35 100644 --- a/old_docs/API_docs_v27/methods/messages_readHistory.md +++ b/old_docs/API_docs_v27/methods/messages_readHistory.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, 'offset' => int, ]); diff --git a/old_docs/API_docs_v27/methods/messages_readMessageContents.md b/old_docs/API_docs_v27/methods/messages_readMessageContents.md index 9bb1bee8..a09cb63e 100644 --- a/old_docs/API_docs_v27/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v27/methods/messages_readMessageContents.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v27/methods/messages_receivedMessages.md b/old_docs/API_docs_v27/methods/messages_receivedMessages.md index 47bbb78e..aca67286 100644 --- a/old_docs/API_docs_v27/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v27/methods/messages_receivedMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); diff --git a/old_docs/API_docs_v27/methods/messages_search.md b/old_docs/API_docs_v27/methods/messages_search.md index 7821d2b7..735ddf47 100644 --- a/old_docs/API_docs_v27/methods/messages_search.md +++ b/old_docs/API_docs_v27/methods/messages_search.md @@ -49,12 +49,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->search(['peer' => InputPeer, 'q' => 'string', 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v27/methods/messages_sendBroadcast.md b/old_docs/API_docs_v27/methods/messages_sendBroadcast.md index 28e248a9..6cff8b29 100644 --- a/old_docs/API_docs_v27/methods/messages_sendBroadcast.md +++ b/old_docs/API_docs_v27/methods/messages_sendBroadcast.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendBroadcast(['contacts' => [InputUser, InputUser], 'message' => 'string', 'media' => InputMedia, ]); diff --git a/old_docs/API_docs_v27/methods/messages_sendEncrypted.md b/old_docs/API_docs_v27/methods/messages_sendEncrypted.md index d48f88d7..76305f32 100644 --- a/old_docs/API_docs_v27/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v27/methods/messages_sendEncrypted.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v27/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v27/methods/messages_sendEncryptedFile.md index 4fd0648e..8db2ead9 100644 --- a/old_docs/API_docs_v27/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v27/methods/messages_sendEncryptedFile.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); diff --git a/old_docs/API_docs_v27/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v27/methods/messages_sendEncryptedService.md index d66894bf..c7836c94 100644 --- a/old_docs/API_docs_v27/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v27/methods/messages_sendEncryptedService.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v27/methods/messages_sendMedia.md b/old_docs/API_docs_v27/methods/messages_sendMedia.md index 30b6b621..e37d9970 100644 --- a/old_docs/API_docs_v27/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v27/methods/messages_sendMedia.md @@ -59,12 +59,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendMedia(['peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, ]); diff --git a/old_docs/API_docs_v27/methods/messages_sendMessage.md b/old_docs/API_docs_v27/methods/messages_sendMessage.md index 7e4afc53..804cf5a2 100644 --- a/old_docs/API_docs_v27/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v27/methods/messages_sendMessage.md @@ -58,12 +58,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentMessage = $MadelineProto->messages->sendMessage(['peer' => InputPeer, 'reply_to_msg_id' => int, 'message' => 'string', ]); diff --git a/old_docs/API_docs_v27/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v27/methods/messages_setEncryptedTyping.md index e9afe99c..4e7450eb 100644 --- a/old_docs/API_docs_v27/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v27/methods/messages_setEncryptedTyping.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); diff --git a/old_docs/API_docs_v27/methods/messages_setTyping.md b/old_docs/API_docs_v27/methods/messages_setTyping.md index bea4982b..a2b94823 100644 --- a/old_docs/API_docs_v27/methods/messages_setTyping.md +++ b/old_docs/API_docs_v27/methods/messages_setTyping.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); diff --git a/old_docs/API_docs_v27/methods/photos_deletePhotos.md b/old_docs/API_docs_v27/methods/photos_deletePhotos.md index b9daca10..937aadd5 100644 --- a/old_docs/API_docs_v27/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v27/methods/photos_deletePhotos.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); diff --git a/old_docs/API_docs_v27/methods/photos_getUserPhotos.md b/old_docs/API_docs_v27/methods/photos_getUserPhotos.md index c9a219e0..071a8f98 100644 --- a/old_docs/API_docs_v27/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v27/methods/photos_getUserPhotos.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v27/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v27/methods/photos_updateProfilePhoto.md index 2d1e1e76..4c5c517f 100644 --- a/old_docs/API_docs_v27/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v27/methods/photos_updateProfilePhoto.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, 'crop' => InputPhotoCrop, ]); diff --git a/old_docs/API_docs_v27/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v27/methods/photos_uploadProfilePhoto.md index 6ff4ddf5..3d7d301b 100644 --- a/old_docs/API_docs_v27/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v27/methods/photos_uploadProfilePhoto.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, 'caption' => 'string', 'geo_point' => InputGeoPoint, 'crop' => InputPhotoCrop, ]); diff --git a/old_docs/API_docs_v27/methods/users_getUsers.md b/old_docs/API_docs_v27/methods/users_getUsers.md index ef1c7fd8..bce13ee6 100644 --- a/old_docs/API_docs_v27/methods/users_getUsers.md +++ b/old_docs/API_docs_v27/methods/users_getUsers.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v33/README.md b/old_docs/API_docs_v33/README.md index 9c98a78a..5753d766 100644 --- a/old_docs/API_docs_v33/README.md +++ b/old_docs/API_docs_v33/README.md @@ -4,11 +4,11 @@ description: MadelineProto API documentation (layer v33) --- # MadelineProto API documentation (layer v33) +[Back to main documentation](..) + + [Methods](methods/) [Constructors](constructors/) -[Types](types/) - - -[Back to main documentation](..) +[Types](types/) \ No newline at end of file diff --git a/old_docs/API_docs_v33/methods/README.md b/old_docs/API_docs_v33/methods/README.md index 9a420020..b852e123 100644 --- a/old_docs/API_docs_v33/methods/README.md +++ b/old_docs/API_docs_v33/methods/README.md @@ -1,307 +1,302 @@ --- title: Methods -description: List of methods +description: What do you want to do? --- -# Methods -[Back to API documentation index](..) +# What do you want to do? +[Go back to API documentation index](..) +[Go to the old code-version method index](api_index.html) -$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); +* [Logout](https://docs.madelineproto.xyz/logout.html) -$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); +* [Login](https://docs.madelineproto.xyz/docs/LOGIN.html) -$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); +* [Get all chats, broadcast a message to all chats](https://docs.madelineproto.xyz/docs/DIALOGS.html) -$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); +* [Get the full participant list of a channel/group/supergroup](https://docs.madelineproto.xyz/get_pwr_chat.html) -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); +* [Get full info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_full_info.html) +* [Get info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_info.html) -$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); +* [Get info about the currently logged-in user](https://docs.madelineproto.xyz/get_self.html) -$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); +* [Upload or download files up to 1.5 GB](https://docs.madelineproto.xyz/docs/FILES.html) -$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); +* [Make a phone call and play a song](https://docs.madelineproto.xyz/docs/CALLS.html) -$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); - -$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); - - -$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); - -$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); +* [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) *** -

$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) +

* Change the phone number associated to this account -$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Check if this username is available -$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Delete this account -$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) +* Get account TTL -$MadelineProto->[account->getAuthorizations](account_getAuthorizations.md)(\[\]) === [$account\_Authorizations](../types/account_Authorizations.md) +* Get all logged-in authorizations -$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) +* Get notification settings -$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md) +* Get the current password -$MadelineProto->[account->getPasswordSettings](account_getPasswordSettings.md)(\['current_password_hash' => [bytes](../types/bytes.md), \]) === [$account\_PasswordSettings](../types/account_PasswordSettings.md) +* Get the current 2FA settings -$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Get privacy settings -$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) +* Returns a list of available wallpapers. -$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) +* Register device for push notifications -$MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) +* Delete a certain session -$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) +* Reset all notification settings -$MadelineProto->[account->sendChangePhoneCode](account_sendChangePhoneCode.md)(\['phone_number' => [string](../types/string.md), \]) === [$account\_SentChangePhoneCode](../types/account_SentChangePhoneCode.md) +* Change the phone number -$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) +* Set account TTL -$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Set privacy settings -$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Stop sending PUSH notifications to app -$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Disable all notifications for a certain period -$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) +* Change notification settings -$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) +* Update the 2FA password settings -$MadelineProto->[account->updateProfile](account_updateProfile.md)(\['first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), \]) === [$User](../types/User.md) +* Update profile info -$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Update online status -$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) +* Update this user's username *** -

$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) +

* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info -$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) +* Check if this phone number is registered on telegram -$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) +* You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$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) +* You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->recoverPassword](auth_recoverPassword.md)(\['code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account -$MadelineProto->[auth->requestPasswordRecovery](auth_requestPasswordRecovery.md)(\[\]) === [$auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) +* Send an email to recover the 2FA password -$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) +* Delete all logged-in sessions. -$MadelineProto->[auth->sendCall](auth_sendCall.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Send verification phone call -$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) +* Use phone_login instead -$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Invite friends to telegram! -$MadelineProto->[auth->sendSms](auth_sendSms.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Send SMS verification code -$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) +* You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) -$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) +* You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) *** -

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +

* Block a user -$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) +* Delete a contact -$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) +* Delete multiple contacts -$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) +* Export contact as card -$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) +* Get blocked users -$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [string](../types/string.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) +* Get info about a certain contact -$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) +* Get online status of all users -$MadelineProto->[contacts->getSuggested](contacts_getSuggested.md)(\['limit' => [int](../types/int.md), \]) === [$contacts\_Suggested](../types/contacts_Suggested.md) +* Get suggested contacts -$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) +* Import card as contact -$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], 'replace' => [Bool](../types/Bool.md), \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) +* Add phone number as contact -$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) +* You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) +* Search contacts -$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +* Unblock a user *** -

$MadelineProto->[geochats->checkin](geochats_checkin.md)(\['peer' => [InputGeoChat](../types/InputGeoChat.md), \]) === [$geochats\_StatedMessage](../types/geochats_StatedMessage.md) +

* Join a geochat -$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) +* Create geochat -$MadelineProto->[geochats->editChatPhoto](geochats_editChatPhoto.md)(\['peer' => [InputGeoChat](../types/InputGeoChat.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$geochats\_StatedMessage](../types/geochats_StatedMessage.md) +* Edit geochat photo -$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) +* Edit geochat title -$MadelineProto->[geochats->getFullChat](geochats_getFullChat.md)(\['peer' => [InputGeoChat](../types/InputGeoChat.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) +* Get full info about a geochat -$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) +* Get geochat history -$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) +* Get nearby geochats -$MadelineProto->[geochats->getRecents](geochats_getRecents.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$geochats\_Messages](../types/geochats_Messages.md) +* Get recent geochats -$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) +* Search messages in geocha -$MadelineProto->[geochats->sendMedia](geochats_sendMedia.md)(\['peer' => [InputGeoChat](../types/InputGeoChat.md), 'media' => [InputMedia](../types/InputMedia.md), \]) === [$geochats\_StatedMessage](../types/geochats_StatedMessage.md) +* Send media to geochat -$MadelineProto->[geochats->sendMessage](geochats_sendMessage.md)(\['peer' => [InputGeoChat](../types/InputGeoChat.md), 'message' => [string](../types/string.md), \]) === [$geochats\_StatedMessage](../types/geochats_StatedMessage.md) +* Send message to geochat -$MadelineProto->[geochats->setTyping](geochats_setTyping.md)(\['peer' => [InputGeoChat](../types/InputGeoChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Send typing notification to geochat *** -

$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) +

* Get the changelog of this app -$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) +* Get info about app updates -$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) +* Get server configuration -$MadelineProto->[help->getInviteText](help_getInviteText.md)(\['lang_code' => [string](../types/string.md), \]) === [$help\_InviteText](../types/help_InviteText.md) +* Get invitation text -$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) +* Get nearest datacenter -$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) +* Get info of support user -$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) +* Log data for developer of this app *** -

$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) +

* Initializes connection and save information on the user's device and application. *** -

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invokes a query after successfull completion of one of the previous queries. *** -

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Result type returned by a current query. *** -

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invoke this method with layer X *** -

$MadelineProto->[invokeWithoutUpdates](invokeWithoutUpdates.md)(\['query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invoke with method without returning updates in the socket *** -

$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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Add a user to a normal chat (use channels->inviteToChannel for supergroups) -$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md) +* Check if an invitation link is valid -$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Create a chat (not supergroup) -$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md) +* Delete a user from a chat (not supergroup) -$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Delete chat history -$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Delete messages -$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) +* Edit the photo of a normal chat (not supergroup) -$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Edit the title of a normal chat (not supergroup) -$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) +* Export chat invite -$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) +* Forward message -$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], \]) === [$Updates](../types/Updates.md) +* Forward messages -$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [string](../types/string.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) +* Get all stickerpacks -$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get info about chats -$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) +* You cannot use this method directly, instead use $MadelineProto->get_dh_config(); -$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) +* Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html -$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) +* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$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) +* Get previous messages of a group -$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get messages -$MadelineProto->[messages->getStickerSet](messages_getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) +* Get a stickerset -$MadelineProto->[messages->getStickers](messages_getStickers.md)(\['emoticon' => [string](../types/string.md), 'hash' => [string](../types/string.md), \]) === [$messages\_Stickers](../types/messages_Stickers.md) +* Get stickers -$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) === [$MessageMedia](../types/MessageMedia.md) +* Get webpage preview -$MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Import chat invite -$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'disabled' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Add a sticker set -$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Mark messages as read in secret chats -$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) +* Mark messages as read -$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Mark message as read -$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_ReceivedNotifyMessage](../types/ReceivedNotifyMessage.md) +* Mark messages as read -$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) +* You cannot use this method directly -$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Search peers or messages -$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) +* Send a message to all users in the chat list -$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send message to secret chat -$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) +* Send a file to a secret chat -$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send a service message to a secret chat -$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) +* Send a media -$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) +* Send a message -$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Send typing notification to secret chat -$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) +* Change typing status -$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) +* Start a bot -$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) +* Remove a sticker set *** -

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) +

* Delete profile photos -$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) +* Get the profile photos of a user -$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), 'crop' => [InputPhotoCrop](../types/InputPhotoCrop.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) +* Update the profile photo (use photos->uploadProfilePhoto to upload the photo) -$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) +* Upload profile photo *** -

$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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates -$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates *** -

$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) +

* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info *** -

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) +

* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) +* Get info about users diff --git a/old_docs/API_docs_v33/methods/account_changePhone.md b/old_docs/API_docs_v33/methods/account_changePhone.md index aeb5c4bc..65f0b0d0 100644 --- a/old_docs/API_docs_v33/methods/account_changePhone.md +++ b/old_docs/API_docs_v33/methods/account_changePhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); diff --git a/old_docs/API_docs_v33/methods/account_checkUsername.md b/old_docs/API_docs_v33/methods/account_checkUsername.md index 0124bb38..08107762 100644 --- a/old_docs/API_docs_v33/methods/account_checkUsername.md +++ b/old_docs/API_docs_v33/methods/account_checkUsername.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v33/methods/account_deleteAccount.md b/old_docs/API_docs_v33/methods/account_deleteAccount.md index e8b46c24..3a6f4700 100644 --- a/old_docs/API_docs_v33/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v33/methods/account_deleteAccount.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); diff --git a/old_docs/API_docs_v33/methods/account_getAccountTTL.md b/old_docs/API_docs_v33/methods/account_getAccountTTL.md index 0cdd0b98..ab6a6ea1 100644 --- a/old_docs/API_docs_v33/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v33/methods/account_getAccountTTL.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); diff --git a/old_docs/API_docs_v33/methods/account_getAuthorizations.md b/old_docs/API_docs_v33/methods/account_getAuthorizations.md index f92db8fe..303203e4 100644 --- a/old_docs/API_docs_v33/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v33/methods/account_getAuthorizations.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_Authorizations = $MadelineProto->account->getAuthorizations(); diff --git a/old_docs/API_docs_v33/methods/account_getNotifySettings.md b/old_docs/API_docs_v33/methods/account_getNotifySettings.md index f00be12c..ad492f49 100644 --- a/old_docs/API_docs_v33/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v33/methods/account_getNotifySettings.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); diff --git a/old_docs/API_docs_v33/methods/account_getPassword.md b/old_docs/API_docs_v33/methods/account_getPassword.md index c189421d..2692dab1 100644 --- a/old_docs/API_docs_v33/methods/account_getPassword.md +++ b/old_docs/API_docs_v33/methods/account_getPassword.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_Password = $MadelineProto->account->getPassword(); diff --git a/old_docs/API_docs_v33/methods/account_getPasswordSettings.md b/old_docs/API_docs_v33/methods/account_getPasswordSettings.md index 96cb953e..2039d405 100644 --- a/old_docs/API_docs_v33/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v33/methods/account_getPasswordSettings.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PasswordSettings = $MadelineProto->account->getPasswordSettings(['current_password_hash' => 'bytes', ]); diff --git a/old_docs/API_docs_v33/methods/account_getPrivacy.md b/old_docs/API_docs_v33/methods/account_getPrivacy.md index 979bfb94..5480ffbb 100644 --- a/old_docs/API_docs_v33/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v33/methods/account_getPrivacy.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); diff --git a/old_docs/API_docs_v33/methods/account_getWallPapers.md b/old_docs/API_docs_v33/methods/account_getWallPapers.md index 89b281be..7c8bff39 100644 --- a/old_docs/API_docs_v33/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v33/methods/account_getWallPapers.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); diff --git a/old_docs/API_docs_v33/methods/account_registerDevice.md b/old_docs/API_docs_v33/methods/account_registerDevice.md index 651e753f..8dae7506 100644 --- a/old_docs/API_docs_v33/methods/account_registerDevice.md +++ b/old_docs/API_docs_v33/methods/account_registerDevice.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'app_sandbox' => Bool, 'lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v33/methods/account_resetAuthorization.md b/old_docs/API_docs_v33/methods/account_resetAuthorization.md index 4155d3c8..543aee08 100644 --- a/old_docs/API_docs_v33/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v33/methods/account_resetAuthorization.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetAuthorization(['hash' => long, ]); diff --git a/old_docs/API_docs_v33/methods/account_resetNotifySettings.md b/old_docs/API_docs_v33/methods/account_resetNotifySettings.md index ccc836a9..557373b0 100644 --- a/old_docs/API_docs_v33/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v33/methods/account_resetNotifySettings.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); diff --git a/old_docs/API_docs_v33/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v33/methods/account_sendChangePhoneCode.md index 0b384269..930e0f76 100644 --- a/old_docs/API_docs_v33/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v33/methods/account_sendChangePhoneCode.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_SentChangePhoneCode = $MadelineProto->account->sendChangePhoneCode(['phone_number' => 'string', ]); diff --git a/old_docs/API_docs_v33/methods/account_setAccountTTL.md b/old_docs/API_docs_v33/methods/account_setAccountTTL.md index 5100e62e..bacdd77a 100644 --- a/old_docs/API_docs_v33/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v33/methods/account_setAccountTTL.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); diff --git a/old_docs/API_docs_v33/methods/account_setPrivacy.md b/old_docs/API_docs_v33/methods/account_setPrivacy.md index fbcedae7..6e24ded7 100644 --- a/old_docs/API_docs_v33/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v33/methods/account_setPrivacy.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); diff --git a/old_docs/API_docs_v33/methods/account_unregisterDevice.md b/old_docs/API_docs_v33/methods/account_unregisterDevice.md index 1d2b7670..b666d91a 100644 --- a/old_docs/API_docs_v33/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v33/methods/account_unregisterDevice.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); diff --git a/old_docs/API_docs_v33/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v33/methods/account_updateDeviceLocked.md index ef816501..cd52093a 100644 --- a/old_docs/API_docs_v33/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v33/methods/account_updateDeviceLocked.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); diff --git a/old_docs/API_docs_v33/methods/account_updateNotifySettings.md b/old_docs/API_docs_v33/methods/account_updateNotifySettings.md index 18cbdb75..db020309 100644 --- a/old_docs/API_docs_v33/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v33/methods/account_updateNotifySettings.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); diff --git a/old_docs/API_docs_v33/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v33/methods/account_updatePasswordSettings.md index 0754dd63..8af1e37f 100644 --- a/old_docs/API_docs_v33/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v33/methods/account_updatePasswordSettings.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updatePasswordSettings(['current_password_hash' => 'bytes', 'new_settings' => account_PasswordInputSettings, ]); diff --git a/old_docs/API_docs_v33/methods/account_updateProfile.md b/old_docs/API_docs_v33/methods/account_updateProfile.md index f16398ed..caea3391 100644 --- a/old_docs/API_docs_v33/methods/account_updateProfile.md +++ b/old_docs/API_docs_v33/methods/account_updateProfile.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', ]); diff --git a/old_docs/API_docs_v33/methods/account_updateStatus.md b/old_docs/API_docs_v33/methods/account_updateStatus.md index 4b049e65..50b99b1e 100644 --- a/old_docs/API_docs_v33/methods/account_updateStatus.md +++ b/old_docs/API_docs_v33/methods/account_updateStatus.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); diff --git a/old_docs/API_docs_v33/methods/account_updateUsername.md b/old_docs/API_docs_v33/methods/account_updateUsername.md index 08d2abe0..7276e2aa 100644 --- a/old_docs/API_docs_v33/methods/account_updateUsername.md +++ b/old_docs/API_docs_v33/methods/account_updateUsername.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v33/methods/api_README.md b/old_docs/API_docs_v33/methods/api_README.md new file mode 100644 index 00000000..25b16c62 --- /dev/null +++ b/old_docs/API_docs_v33/methods/api_README.md @@ -0,0 +1,308 @@ +--- +title: Methods +description: List of methods +--- +# Methods +[Back to API documentation index](..) + +[Go to the new description-version method index](index.html) + +$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); + +$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); + +$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); + +$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); + +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); + + +$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); + +$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); + +$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); + +$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); + +$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); + + +$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); + +$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); + +*** +

$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) + +$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) + +$MadelineProto->[account->getAuthorizations](account_getAuthorizations.md)(\[\]) === [$account\_Authorizations](../types/account_Authorizations.md) + +$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) + +$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md) + +$MadelineProto->[account->getPasswordSettings](account_getPasswordSettings.md)(\['current_password_hash' => [bytes](../types/bytes.md), \]) === [$account\_PasswordSettings](../types/account_PasswordSettings.md) + +$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) + +$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) + +$MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->sendChangePhoneCode](account_sendChangePhoneCode.md)(\['phone_number' => [string](../types/string.md), \]) === [$account\_SentChangePhoneCode](../types/account_SentChangePhoneCode.md) + +$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[account->updateProfile](account_updateProfile.md)(\['first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), \]) === [$User](../types/User.md) + +$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) + +*** +

$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) + +$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) + +$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) + +$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$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) + +$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->recoverPassword](auth_recoverPassword.md)(\['code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->requestPasswordRecovery](auth_requestPasswordRecovery.md)(\[\]) === [$auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) + +$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->sendCall](auth_sendCall.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->sendSms](auth_sendSms.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$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) + +*** +

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) + +$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) + +$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) + +$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [string](../types/string.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) + +$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) + +$MadelineProto->[contacts->getSuggested](contacts_getSuggested.md)(\['limit' => [int](../types/int.md), \]) === [$contacts\_Suggested](../types/contacts_Suggested.md) + +$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) + +$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], 'replace' => [Bool](../types/Bool.md), \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) + +$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) + +$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) + +$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[geochats->checkin](geochats_checkin.md)(\['peer' => [InputGeoChat](../types/InputGeoChat.md), \]) === [$geochats\_StatedMessage](../types/geochats_StatedMessage.md) + +$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) + +$MadelineProto->[geochats->editChatPhoto](geochats_editChatPhoto.md)(\['peer' => [InputGeoChat](../types/InputGeoChat.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$geochats\_StatedMessage](../types/geochats_StatedMessage.md) + +$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) + +$MadelineProto->[geochats->getFullChat](geochats_getFullChat.md)(\['peer' => [InputGeoChat](../types/InputGeoChat.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$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) + +$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) + +$MadelineProto->[geochats->getRecents](geochats_getRecents.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$geochats\_Messages](../types/geochats_Messages.md) + +$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) + +$MadelineProto->[geochats->sendMedia](geochats_sendMedia.md)(\['peer' => [InputGeoChat](../types/InputGeoChat.md), 'media' => [InputMedia](../types/InputMedia.md), \]) === [$geochats\_StatedMessage](../types/geochats_StatedMessage.md) + +$MadelineProto->[geochats->sendMessage](geochats_sendMessage.md)(\['peer' => [InputGeoChat](../types/InputGeoChat.md), 'message' => [string](../types/string.md), \]) === [$geochats\_StatedMessage](../types/geochats_StatedMessage.md) + +$MadelineProto->[geochats->setTyping](geochats_setTyping.md)(\['peer' => [InputGeoChat](../types/InputGeoChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +*** +

$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) + +$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) + +$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) + +$MadelineProto->[help->getInviteText](help_getInviteText.md)(\['lang_code' => [string](../types/string.md), \]) === [$help\_InviteText](../types/help_InviteText.md) + +$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) + +$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) + +$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) + +*** +

$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) + +*** +

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeWithoutUpdates](invokeWithoutUpdates.md)(\['query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$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) + +$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) + +$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md) + +$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) + +$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [string](../types/string.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) + +$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) + +$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) + +$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$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) + +$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) + +$MadelineProto->[messages->getStickerSet](messages_getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +$MadelineProto->[messages->getStickers](messages_getStickers.md)(\['emoticon' => [string](../types/string.md), 'hash' => [string](../types/string.md), \]) === [$messages\_Stickers](../types/messages_Stickers.md) + +$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) === [$MessageMedia](../types/MessageMedia.md) + +$MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'disabled' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_ReceivedNotifyMessage](../types/ReceivedNotifyMessage.md) + +$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) + +$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) + +$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) + +$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) + +$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$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) + +$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$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) + +$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) + +$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) + +$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) + +$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), 'crop' => [InputPhotoCrop](../types/InputPhotoCrop.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) + +$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) + +*** +

$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) + +$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) + +*** +

$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) + +$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) + +$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) + +*** +

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) + +$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) + diff --git a/old_docs/API_docs_v33/methods/auth_checkPhone.md b/old_docs/API_docs_v33/methods/auth_checkPhone.md index 291221de..1826ce63 100644 --- a/old_docs/API_docs_v33/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v33/methods/auth_checkPhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); diff --git a/old_docs/API_docs_v33/methods/auth_recoverPassword.md b/old_docs/API_docs_v33/methods/auth_recoverPassword.md index cdc9bd7d..5e37b0f3 100644 --- a/old_docs/API_docs_v33/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v33/methods/auth_recoverPassword.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_Authorization = $MadelineProto->auth->recoverPassword(['code' => 'string', ]); diff --git a/old_docs/API_docs_v33/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v33/methods/auth_requestPasswordRecovery.md index e18c6c93..c69d0c49 100644 --- a/old_docs/API_docs_v33/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v33/methods/auth_requestPasswordRecovery.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_PasswordRecovery = $MadelineProto->auth->requestPasswordRecovery(); diff --git a/old_docs/API_docs_v33/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v33/methods/auth_resetAuthorizations.md index 47feea16..a46c880d 100644 --- a/old_docs/API_docs_v33/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v33/methods/auth_resetAuthorizations.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); diff --git a/old_docs/API_docs_v33/methods/auth_sendCall.md b/old_docs/API_docs_v33/methods/auth_sendCall.md index e2bd2855..5947cda7 100644 --- a/old_docs/API_docs_v33/methods/auth_sendCall.md +++ b/old_docs/API_docs_v33/methods/auth_sendCall.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendCall(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v33/methods/auth_sendInvites.md b/old_docs/API_docs_v33/methods/auth_sendInvites.md index be32fe6b..9b88b4a3 100644 --- a/old_docs/API_docs_v33/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v33/methods/auth_sendInvites.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); diff --git a/old_docs/API_docs_v33/methods/auth_sendSms.md b/old_docs/API_docs_v33/methods/auth_sendSms.md index a17fdd3a..41340660 100644 --- a/old_docs/API_docs_v33/methods/auth_sendSms.md +++ b/old_docs/API_docs_v33/methods/auth_sendSms.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendSms(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v33/methods/contacts_block.md b/old_docs/API_docs_v33/methods/contacts_block.md index d0729d30..e592cace 100644 --- a/old_docs/API_docs_v33/methods/contacts_block.md +++ b/old_docs/API_docs_v33/methods/contacts_block.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v33/methods/contacts_deleteContact.md b/old_docs/API_docs_v33/methods/contacts_deleteContact.md index b8c17544..1a3f2a27 100644 --- a/old_docs/API_docs_v33/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v33/methods/contacts_deleteContact.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v33/methods/contacts_deleteContacts.md b/old_docs/API_docs_v33/methods/contacts_deleteContacts.md index 64c69460..f6627599 100644 --- a/old_docs/API_docs_v33/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v33/methods/contacts_deleteContacts.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v33/methods/contacts_exportCard.md b/old_docs/API_docs_v33/methods/contacts_exportCard.md index b05f57ce..1d2129f3 100644 --- a/old_docs/API_docs_v33/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v33/methods/contacts_exportCard.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); diff --git a/old_docs/API_docs_v33/methods/contacts_getBlocked.md b/old_docs/API_docs_v33/methods/contacts_getBlocked.md index d7d8c5cc..44d24aba 100644 --- a/old_docs/API_docs_v33/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v33/methods/contacts_getBlocked.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v33/methods/contacts_getContacts.md b/old_docs/API_docs_v33/methods/contacts_getContacts.md index 1ab8af27..83c4846f 100644 --- a/old_docs/API_docs_v33/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v33/methods/contacts_getContacts.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v33/methods/contacts_getStatuses.md b/old_docs/API_docs_v33/methods/contacts_getStatuses.md index b927a140..5cef3084 100644 --- a/old_docs/API_docs_v33/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v33/methods/contacts_getStatuses.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); diff --git a/old_docs/API_docs_v33/methods/contacts_getSuggested.md b/old_docs/API_docs_v33/methods/contacts_getSuggested.md index 302e60e5..1ce04bef 100644 --- a/old_docs/API_docs_v33/methods/contacts_getSuggested.md +++ b/old_docs/API_docs_v33/methods/contacts_getSuggested.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Suggested = $MadelineProto->contacts->getSuggested(['limit' => int, ]); diff --git a/old_docs/API_docs_v33/methods/contacts_importCard.md b/old_docs/API_docs_v33/methods/contacts_importCard.md index 81a1e138..89c96657 100644 --- a/old_docs/API_docs_v33/methods/contacts_importCard.md +++ b/old_docs/API_docs_v33/methods/contacts_importCard.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); diff --git a/old_docs/API_docs_v33/methods/contacts_importContacts.md b/old_docs/API_docs_v33/methods/contacts_importContacts.md index 578e5dfd..cd3d6615 100644 --- a/old_docs/API_docs_v33/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v33/methods/contacts_importContacts.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], 'replace' => Bool, ]); diff --git a/old_docs/API_docs_v33/methods/contacts_search.md b/old_docs/API_docs_v33/methods/contacts_search.md index 68daecd6..64ff748e 100644 --- a/old_docs/API_docs_v33/methods/contacts_search.md +++ b/old_docs/API_docs_v33/methods/contacts_search.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); diff --git a/old_docs/API_docs_v33/methods/contacts_unblock.md b/old_docs/API_docs_v33/methods/contacts_unblock.md index f7d151b9..ec72ae2d 100644 --- a/old_docs/API_docs_v33/methods/contacts_unblock.md +++ b/old_docs/API_docs_v33/methods/contacts_unblock.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v33/methods/geochats_checkin.md b/old_docs/API_docs_v33/methods/geochats_checkin.md index 65020487..829f8e85 100644 --- a/old_docs/API_docs_v33/methods/geochats_checkin.md +++ b/old_docs/API_docs_v33/methods/geochats_checkin.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $geochats_StatedMessage = $MadelineProto->geochats->checkin(['peer' => InputGeoChat, ]); diff --git a/old_docs/API_docs_v33/methods/geochats_createGeoChat.md b/old_docs/API_docs_v33/methods/geochats_createGeoChat.md index 8ad1c2da..6881f300 100644 --- a/old_docs/API_docs_v33/methods/geochats_createGeoChat.md +++ b/old_docs/API_docs_v33/methods/geochats_createGeoChat.md @@ -32,12 +32,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $geochats_StatedMessage = $MadelineProto->geochats->createGeoChat(['title' => 'string', 'geo_point' => InputGeoPoint, 'address' => 'string', 'venue' => 'string', ]); diff --git a/old_docs/API_docs_v33/methods/geochats_editChatPhoto.md b/old_docs/API_docs_v33/methods/geochats_editChatPhoto.md index 14d6698f..9d975f3f 100644 --- a/old_docs/API_docs_v33/methods/geochats_editChatPhoto.md +++ b/old_docs/API_docs_v33/methods/geochats_editChatPhoto.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $geochats_StatedMessage = $MadelineProto->geochats->editChatPhoto(['peer' => InputGeoChat, 'photo' => InputChatPhoto, ]); diff --git a/old_docs/API_docs_v33/methods/geochats_editChatTitle.md b/old_docs/API_docs_v33/methods/geochats_editChatTitle.md index 013e071d..fe43e476 100644 --- a/old_docs/API_docs_v33/methods/geochats_editChatTitle.md +++ b/old_docs/API_docs_v33/methods/geochats_editChatTitle.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $geochats_StatedMessage = $MadelineProto->geochats->editChatTitle(['peer' => InputGeoChat, 'title' => 'string', 'address' => 'string', ]); diff --git a/old_docs/API_docs_v33/methods/geochats_getFullChat.md b/old_docs/API_docs_v33/methods/geochats_getFullChat.md index 7ab7d800..0ca442e0 100644 --- a/old_docs/API_docs_v33/methods/geochats_getFullChat.md +++ b/old_docs/API_docs_v33/methods/geochats_getFullChat.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_ChatFull = $MadelineProto->geochats->getFullChat(['peer' => InputGeoChat, ]); diff --git a/old_docs/API_docs_v33/methods/geochats_getHistory.md b/old_docs/API_docs_v33/methods/geochats_getHistory.md index bcb4d6e5..e2727fda 100644 --- a/old_docs/API_docs_v33/methods/geochats_getHistory.md +++ b/old_docs/API_docs_v33/methods/geochats_getHistory.md @@ -32,12 +32,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $geochats_Messages = $MadelineProto->geochats->getHistory(['peer' => InputGeoChat, 'offset' => int, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v33/methods/geochats_getLocated.md b/old_docs/API_docs_v33/methods/geochats_getLocated.md index 93b24b91..9bcb9a66 100644 --- a/old_docs/API_docs_v33/methods/geochats_getLocated.md +++ b/old_docs/API_docs_v33/methods/geochats_getLocated.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $geochats_Located = $MadelineProto->geochats->getLocated(['geo_point' => InputGeoPoint, 'radius' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v33/methods/geochats_getRecents.md b/old_docs/API_docs_v33/methods/geochats_getRecents.md index 17e89b0c..6cd93cb6 100644 --- a/old_docs/API_docs_v33/methods/geochats_getRecents.md +++ b/old_docs/API_docs_v33/methods/geochats_getRecents.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $geochats_Messages = $MadelineProto->geochats->getRecents(['offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v33/methods/geochats_search.md b/old_docs/API_docs_v33/methods/geochats_search.md index 5961ef19..7bb91137 100644 --- a/old_docs/API_docs_v33/methods/geochats_search.md +++ b/old_docs/API_docs_v33/methods/geochats_search.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $geochats_Messages = $MadelineProto->geochats->search(['peer' => InputGeoChat, 'q' => 'string', 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v33/methods/geochats_sendMedia.md b/old_docs/API_docs_v33/methods/geochats_sendMedia.md index 72575cf8..cd50d19d 100644 --- a/old_docs/API_docs_v33/methods/geochats_sendMedia.md +++ b/old_docs/API_docs_v33/methods/geochats_sendMedia.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $geochats_StatedMessage = $MadelineProto->geochats->sendMedia(['peer' => InputGeoChat, 'media' => InputMedia, ]); diff --git a/old_docs/API_docs_v33/methods/geochats_sendMessage.md b/old_docs/API_docs_v33/methods/geochats_sendMessage.md index b871b4f2..23607283 100644 --- a/old_docs/API_docs_v33/methods/geochats_sendMessage.md +++ b/old_docs/API_docs_v33/methods/geochats_sendMessage.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $geochats_StatedMessage = $MadelineProto->geochats->sendMessage(['peer' => InputGeoChat, 'message' => 'string', ]); diff --git a/old_docs/API_docs_v33/methods/geochats_setTyping.md b/old_docs/API_docs_v33/methods/geochats_setTyping.md index 9a369478..1eb07800 100644 --- a/old_docs/API_docs_v33/methods/geochats_setTyping.md +++ b/old_docs/API_docs_v33/methods/geochats_setTyping.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->geochats->setTyping(['peer' => InputGeoChat, 'typing' => Bool, ]); diff --git a/old_docs/API_docs_v33/methods/help_getAppChangelog.md b/old_docs/API_docs_v33/methods/help_getAppChangelog.md index dbca4fc8..eb48fabb 100644 --- a/old_docs/API_docs_v33/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v33/methods/help_getAppChangelog.md @@ -32,12 +32,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_AppChangelog = $MadelineProto->help->getAppChangelog(['device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v33/methods/help_getAppUpdate.md b/old_docs/API_docs_v33/methods/help_getAppUpdate.md index f97da105..ad5b8228 100644 --- a/old_docs/API_docs_v33/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v33/methods/help_getAppUpdate.md @@ -32,12 +32,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(['device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v33/methods/help_getConfig.md b/old_docs/API_docs_v33/methods/help_getConfig.md index 16e25c68..ca4bfc25 100644 --- a/old_docs/API_docs_v33/methods/help_getConfig.md +++ b/old_docs/API_docs_v33/methods/help_getConfig.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); diff --git a/old_docs/API_docs_v33/methods/help_getInviteText.md b/old_docs/API_docs_v33/methods/help_getInviteText.md index 0831ba5f..ad6ac262 100644 --- a/old_docs/API_docs_v33/methods/help_getInviteText.md +++ b/old_docs/API_docs_v33/methods/help_getInviteText.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(['lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v33/methods/help_getNearestDc.md b/old_docs/API_docs_v33/methods/help_getNearestDc.md index 35a8bf91..458f60ab 100644 --- a/old_docs/API_docs_v33/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v33/methods/help_getNearestDc.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); diff --git a/old_docs/API_docs_v33/methods/help_getSupport.md b/old_docs/API_docs_v33/methods/help_getSupport.md index a5bab0f2..9ee25b00 100644 --- a/old_docs/API_docs_v33/methods/help_getSupport.md +++ b/old_docs/API_docs_v33/methods/help_getSupport.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); diff --git a/old_docs/API_docs_v33/methods/help_saveAppLog.md b/old_docs/API_docs_v33/methods/help_saveAppLog.md index 0165b6e3..a7884c47 100644 --- a/old_docs/API_docs_v33/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v33/methods/help_saveAppLog.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); diff --git a/old_docs/API_docs_v33/methods/initConnection.md b/old_docs/API_docs_v33/methods/initConnection.md index 2d3d86ad..73620276 100644 --- a/old_docs/API_docs_v33/methods/initConnection.md +++ b/old_docs/API_docs_v33/methods/initConnection.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->initConnection(['api_id' => int, 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', 'query' => !X, ]); diff --git a/old_docs/API_docs_v33/methods/invokeAfterMsg.md b/old_docs/API_docs_v33/methods/invokeAfterMsg.md index e33a2c93..8e953e78 100644 --- a/old_docs/API_docs_v33/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v33/methods/invokeAfterMsg.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); diff --git a/old_docs/API_docs_v33/methods/invokeAfterMsgs.md b/old_docs/API_docs_v33/methods/invokeAfterMsgs.md index 3150a613..bc8a83b7 100644 --- a/old_docs/API_docs_v33/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v33/methods/invokeAfterMsgs.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); diff --git a/old_docs/API_docs_v33/methods/invokeWithLayer.md b/old_docs/API_docs_v33/methods/invokeWithLayer.md index 71d02abb..8a0c4e79 100644 --- a/old_docs/API_docs_v33/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v33/methods/invokeWithLayer.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); diff --git a/old_docs/API_docs_v33/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v33/methods/invokeWithoutUpdates.md index 2bab236a..2d90a776 100644 --- a/old_docs/API_docs_v33/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v33/methods/invokeWithoutUpdates.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeWithoutUpdates(['query' => !X, ]); diff --git a/old_docs/API_docs_v33/methods/messages_addChatUser.md b/old_docs/API_docs_v33/methods/messages_addChatUser.md index 3e4c5ccc..c6ef275f 100644 --- a/old_docs/API_docs_v33/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v33/methods/messages_addChatUser.md @@ -46,12 +46,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); diff --git a/old_docs/API_docs_v33/methods/messages_checkChatInvite.md b/old_docs/API_docs_v33/methods/messages_checkChatInvite.md index de1d9ff4..cea63313 100644 --- a/old_docs/API_docs_v33/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v33/methods/messages_checkChatInvite.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ChatInvite = $MadelineProto->messages->checkChatInvite(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v33/methods/messages_createChat.md b/old_docs/API_docs_v33/methods/messages_createChat.md index 68c0263a..966f58dc 100644 --- a/old_docs/API_docs_v33/methods/messages_createChat.md +++ b/old_docs/API_docs_v33/methods/messages_createChat.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); diff --git a/old_docs/API_docs_v33/methods/messages_deleteChatUser.md b/old_docs/API_docs_v33/methods/messages_deleteChatUser.md index 0a6830de..9a9227ba 100644 --- a/old_docs/API_docs_v33/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v33/methods/messages_deleteChatUser.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v33/methods/messages_deleteHistory.md b/old_docs/API_docs_v33/methods/messages_deleteHistory.md index a2120105..77b8987e 100644 --- a/old_docs/API_docs_v33/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v33/methods/messages_deleteHistory.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['peer' => InputPeer, 'offset' => int, ]); diff --git a/old_docs/API_docs_v33/methods/messages_deleteMessages.md b/old_docs/API_docs_v33/methods/messages_deleteMessages.md index 41570996..fa043e1c 100644 --- a/old_docs/API_docs_v33/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v33/methods/messages_deleteMessages.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v33/methods/messages_editChatPhoto.md b/old_docs/API_docs_v33/methods/messages_editChatPhoto.md index 122913c4..5827a5cc 100644 --- a/old_docs/API_docs_v33/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v33/methods/messages_editChatPhoto.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); diff --git a/old_docs/API_docs_v33/methods/messages_editChatTitle.md b/old_docs/API_docs_v33/methods/messages_editChatTitle.md index 3a1e974b..2e69d790 100644 --- a/old_docs/API_docs_v33/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v33/methods/messages_editChatTitle.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); diff --git a/old_docs/API_docs_v33/methods/messages_exportChatInvite.md b/old_docs/API_docs_v33/methods/messages_exportChatInvite.md index 98685d96..ec80e207 100644 --- a/old_docs/API_docs_v33/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v33/methods/messages_exportChatInvite.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]); diff --git a/old_docs/API_docs_v33/methods/messages_forwardMessage.md b/old_docs/API_docs_v33/methods/messages_forwardMessage.md index 45b7a07f..d6916437 100644 --- a/old_docs/API_docs_v33/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v33/methods/messages_forwardMessage.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); diff --git a/old_docs/API_docs_v33/methods/messages_forwardMessages.md b/old_docs/API_docs_v33/methods/messages_forwardMessages.md index 14f42867..cecf057b 100644 --- a/old_docs/API_docs_v33/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v33/methods/messages_forwardMessages.md @@ -58,12 +58,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessages(['peer' => InputPeer, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v33/methods/messages_getAllStickers.md b/old_docs/API_docs_v33/methods/messages_getAllStickers.md index d4193723..322f9b0b 100644 --- a/old_docs/API_docs_v33/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v33/methods/messages_getAllStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v33/methods/messages_getChats.md b/old_docs/API_docs_v33/methods/messages_getChats.md index 290438a1..e84c7193 100644 --- a/old_docs/API_docs_v33/methods/messages_getChats.md +++ b/old_docs/API_docs_v33/methods/messages_getChats.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v33/methods/messages_getDialogs.md b/old_docs/API_docs_v33/methods/messages_getDialogs.md index 9245157b..c388f163 100644 --- a/old_docs/API_docs_v33/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v33/methods/messages_getDialogs.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['offset' => int, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v33/methods/messages_getHistory.md b/old_docs/API_docs_v33/methods/messages_getHistory.md index fe575dd4..ba497c74 100644 --- a/old_docs/API_docs_v33/methods/messages_getHistory.md +++ b/old_docs/API_docs_v33/methods/messages_getHistory.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getHistory(['peer' => InputPeer, 'offset' => int, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v33/methods/messages_getMessages.md b/old_docs/API_docs_v33/methods/messages_getMessages.md index 86d1da8a..d538cb5f 100644 --- a/old_docs/API_docs_v33/methods/messages_getMessages.md +++ b/old_docs/API_docs_v33/methods/messages_getMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v33/methods/messages_getStickerSet.md b/old_docs/API_docs_v33/methods/messages_getStickerSet.md index c86807e4..c9140ab2 100644 --- a/old_docs/API_docs_v33/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v33/methods/messages_getStickerSet.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSet = $MadelineProto->messages->getStickerSet(['stickerset' => InputStickerSet, ]); diff --git a/old_docs/API_docs_v33/methods/messages_getStickers.md b/old_docs/API_docs_v33/methods/messages_getStickers.md index 4854696d..d2ea57cf 100644 --- a/old_docs/API_docs_v33/methods/messages_getStickers.md +++ b/old_docs/API_docs_v33/methods/messages_getStickers.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Stickers = $MadelineProto->messages->getStickers(['emoticon' => 'string', 'hash' => 'string', ]); diff --git a/old_docs/API_docs_v33/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v33/methods/messages_getWebPagePreview.md index d01bdd32..e8b20c5d 100644 --- a/old_docs/API_docs_v33/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v33/methods/messages_getWebPagePreview.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $MessageMedia = $MadelineProto->messages->getWebPagePreview(['message' => 'string', ]); diff --git a/old_docs/API_docs_v33/methods/messages_importChatInvite.md b/old_docs/API_docs_v33/methods/messages_importChatInvite.md index 0d6cd7c8..b1830a9b 100644 --- a/old_docs/API_docs_v33/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v33/methods/messages_importChatInvite.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->importChatInvite(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v33/methods/messages_installStickerSet.md b/old_docs/API_docs_v33/methods/messages_installStickerSet.md index 04b693cd..77c5a2a5 100644 --- a/old_docs/API_docs_v33/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v33/methods/messages_installStickerSet.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->installStickerSet(['stickerset' => InputStickerSet, 'disabled' => Bool, ]); diff --git a/old_docs/API_docs_v33/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v33/methods/messages_readEncryptedHistory.md index 39b110e3..2ba4cca4 100644 --- a/old_docs/API_docs_v33/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v33/methods/messages_readEncryptedHistory.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); diff --git a/old_docs/API_docs_v33/methods/messages_readHistory.md b/old_docs/API_docs_v33/methods/messages_readHistory.md index 8a00bf47..7d5d7e35 100644 --- a/old_docs/API_docs_v33/methods/messages_readHistory.md +++ b/old_docs/API_docs_v33/methods/messages_readHistory.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, 'offset' => int, ]); diff --git a/old_docs/API_docs_v33/methods/messages_readMessageContents.md b/old_docs/API_docs_v33/methods/messages_readMessageContents.md index 9bb1bee8..a09cb63e 100644 --- a/old_docs/API_docs_v33/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v33/methods/messages_readMessageContents.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v33/methods/messages_receivedMessages.md b/old_docs/API_docs_v33/methods/messages_receivedMessages.md index 7aab635f..b5e87992 100644 --- a/old_docs/API_docs_v33/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v33/methods/messages_receivedMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_ReceivedNotifyMessage = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); diff --git a/old_docs/API_docs_v33/methods/messages_search.md b/old_docs/API_docs_v33/methods/messages_search.md index 7821d2b7..735ddf47 100644 --- a/old_docs/API_docs_v33/methods/messages_search.md +++ b/old_docs/API_docs_v33/methods/messages_search.md @@ -49,12 +49,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->search(['peer' => InputPeer, 'q' => 'string', 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v33/methods/messages_sendBroadcast.md b/old_docs/API_docs_v33/methods/messages_sendBroadcast.md index 28e248a9..6cff8b29 100644 --- a/old_docs/API_docs_v33/methods/messages_sendBroadcast.md +++ b/old_docs/API_docs_v33/methods/messages_sendBroadcast.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendBroadcast(['contacts' => [InputUser, InputUser], 'message' => 'string', 'media' => InputMedia, ]); diff --git a/old_docs/API_docs_v33/methods/messages_sendEncrypted.md b/old_docs/API_docs_v33/methods/messages_sendEncrypted.md index d48f88d7..76305f32 100644 --- a/old_docs/API_docs_v33/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v33/methods/messages_sendEncrypted.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v33/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v33/methods/messages_sendEncryptedFile.md index 4fd0648e..8db2ead9 100644 --- a/old_docs/API_docs_v33/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v33/methods/messages_sendEncryptedFile.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); diff --git a/old_docs/API_docs_v33/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v33/methods/messages_sendEncryptedService.md index d66894bf..c7836c94 100644 --- a/old_docs/API_docs_v33/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v33/methods/messages_sendEncryptedService.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v33/methods/messages_sendMedia.md b/old_docs/API_docs_v33/methods/messages_sendMedia.md index 1319a408..552a60d0 100644 --- a/old_docs/API_docs_v33/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v33/methods/messages_sendMedia.md @@ -60,12 +60,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendMedia(['peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, 'reply_markup' => ReplyMarkup, ]); diff --git a/old_docs/API_docs_v33/methods/messages_sendMessage.md b/old_docs/API_docs_v33/methods/messages_sendMessage.md index 1ed5ee98..50b289bb 100644 --- a/old_docs/API_docs_v33/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v33/methods/messages_sendMessage.md @@ -59,12 +59,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentMessage = $MadelineProto->messages->sendMessage(['peer' => InputPeer, 'reply_to_msg_id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, ]); diff --git a/old_docs/API_docs_v33/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v33/methods/messages_setEncryptedTyping.md index e9afe99c..4e7450eb 100644 --- a/old_docs/API_docs_v33/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v33/methods/messages_setEncryptedTyping.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); diff --git a/old_docs/API_docs_v33/methods/messages_setTyping.md b/old_docs/API_docs_v33/methods/messages_setTyping.md index bea4982b..a2b94823 100644 --- a/old_docs/API_docs_v33/methods/messages_setTyping.md +++ b/old_docs/API_docs_v33/methods/messages_setTyping.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); diff --git a/old_docs/API_docs_v33/methods/messages_startBot.md b/old_docs/API_docs_v33/methods/messages_startBot.md index 5d86f690..82054827 100644 --- a/old_docs/API_docs_v33/methods/messages_startBot.md +++ b/old_docs/API_docs_v33/methods/messages_startBot.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'chat_id' => InputPeer, 'start_param' => 'string', ]); diff --git a/old_docs/API_docs_v33/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v33/methods/messages_uninstallStickerSet.md index 6d04e847..26b2fbb3 100644 --- a/old_docs/API_docs_v33/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v33/methods/messages_uninstallStickerSet.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->uninstallStickerSet(['stickerset' => InputStickerSet, ]); diff --git a/old_docs/API_docs_v33/methods/photos_deletePhotos.md b/old_docs/API_docs_v33/methods/photos_deletePhotos.md index b9daca10..937aadd5 100644 --- a/old_docs/API_docs_v33/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v33/methods/photos_deletePhotos.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); diff --git a/old_docs/API_docs_v33/methods/photos_getUserPhotos.md b/old_docs/API_docs_v33/methods/photos_getUserPhotos.md index ea27a44f..d1c15e90 100644 --- a/old_docs/API_docs_v33/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v33/methods/photos_getUserPhotos.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => long, 'limit' => int, ]); diff --git a/old_docs/API_docs_v33/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v33/methods/photos_updateProfilePhoto.md index 2d1e1e76..4c5c517f 100644 --- a/old_docs/API_docs_v33/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v33/methods/photos_updateProfilePhoto.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, 'crop' => InputPhotoCrop, ]); diff --git a/old_docs/API_docs_v33/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v33/methods/photos_uploadProfilePhoto.md index 6ff4ddf5..3d7d301b 100644 --- a/old_docs/API_docs_v33/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v33/methods/photos_uploadProfilePhoto.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, 'caption' => 'string', 'geo_point' => InputGeoPoint, 'crop' => InputPhotoCrop, ]); diff --git a/old_docs/API_docs_v33/methods/users_getUsers.md b/old_docs/API_docs_v33/methods/users_getUsers.md index ef1c7fd8..bce13ee6 100644 --- a/old_docs/API_docs_v33/methods/users_getUsers.md +++ b/old_docs/API_docs_v33/methods/users_getUsers.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v38/README.md b/old_docs/API_docs_v38/README.md index 8527d5d9..d199d6eb 100644 --- a/old_docs/API_docs_v38/README.md +++ b/old_docs/API_docs_v38/README.md @@ -4,11 +4,11 @@ description: MadelineProto API documentation (layer v38) --- # MadelineProto API documentation (layer v38) +[Back to main documentation](..) + + [Methods](methods/) [Constructors](constructors/) -[Types](types/) - - -[Back to main documentation](..) +[Types](types/) \ No newline at end of file diff --git a/old_docs/API_docs_v38/methods/README.md b/old_docs/API_docs_v38/methods/README.md index 1d5465d4..decc35d7 100644 --- a/old_docs/API_docs_v38/methods/README.md +++ b/old_docs/API_docs_v38/methods/README.md @@ -1,339 +1,334 @@ --- title: Methods -description: List of methods +description: What do you want to do? --- -# Methods -[Back to API documentation index](..) +# What do you want to do? +[Go back to API documentation index](..) +[Go to the old code-version method index](api_index.html) -$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); +* [Logout](https://docs.madelineproto.xyz/logout.html) -$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); +* [Login](https://docs.madelineproto.xyz/docs/LOGIN.html) -$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); +* [Get all chats, broadcast a message to all chats](https://docs.madelineproto.xyz/docs/DIALOGS.html) -$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); +* [Get the full participant list of a channel/group/supergroup](https://docs.madelineproto.xyz/get_pwr_chat.html) -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); +* [Get full info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_full_info.html) +* [Get info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_info.html) -$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); +* [Get info about the currently logged-in user](https://docs.madelineproto.xyz/get_self.html) -$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); +* [Upload or download files up to 1.5 GB](https://docs.madelineproto.xyz/docs/FILES.html) -$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); +* [Make a phone call and play a song](https://docs.madelineproto.xyz/docs/CALLS.html) -$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); - -$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); - - -$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); - -$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); +* [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) *** -

$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) +

* Change the phone number associated to this account -$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Check if this username is available -$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Delete this account -$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) +* Get account TTL -$MadelineProto->[account->getAuthorizations](account_getAuthorizations.md)(\[\]) === [$account\_Authorizations](../types/account_Authorizations.md) +* Get all logged-in authorizations -$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) +* Get notification settings -$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md) +* Get the current password -$MadelineProto->[account->getPasswordSettings](account_getPasswordSettings.md)(\['current_password_hash' => [bytes](../types/bytes.md), \]) === [$account\_PasswordSettings](../types/account_PasswordSettings.md) +* Get the current 2FA settings -$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Get privacy settings -$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) +* Returns a list of available wallpapers. -$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) +* Register device for push notifications -$MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) +* Delete a certain session -$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) +* Reset all notification settings -$MadelineProto->[account->sendChangePhoneCode](account_sendChangePhoneCode.md)(\['phone_number' => [string](../types/string.md), \]) === [$account\_SentChangePhoneCode](../types/account_SentChangePhoneCode.md) +* Change the phone number -$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) +* Set account TTL -$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Set privacy settings -$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Stop sending PUSH notifications to app -$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Disable all notifications for a certain period -$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) +* Change notification settings -$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) +* Update the 2FA password settings -$MadelineProto->[account->updateProfile](account_updateProfile.md)(\['first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), \]) === [$User](../types/User.md) +* Update profile info -$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Update online status -$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) +* Update this user's username *** -

$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) +

* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info -$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) +* Check if this phone number is registered on telegram -$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) +* You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$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) +* You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->recoverPassword](auth_recoverPassword.md)(\['code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account -$MadelineProto->[auth->requestPasswordRecovery](auth_requestPasswordRecovery.md)(\[\]) === [$auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) +* Send an email to recover the 2FA password -$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) +* Delete all logged-in sessions. -$MadelineProto->[auth->sendCall](auth_sendCall.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Send verification phone call -$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) +* Use phone_login instead -$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Invite friends to telegram! -$MadelineProto->[auth->sendSms](auth_sendSms.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Send SMS verification code -$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) +* You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) -$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) +* You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) *** -

$MadelineProto->[channels->checkUsername](channels_checkUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +

* Check if this username is free and can be assigned to a channel/supergroup -$MadelineProto->[channels->createChannel](channels_createChannel.md)(\['title' => [string](../types/string.md), 'about' => [string](../types/string.md), 'users' => \[[InputUser](../types/InputUser.md)\], \]) === [$Updates](../types/Updates.md) +* Create channel/supergroup -$MadelineProto->[channels->deleteChannel](channels_deleteChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Delete a channel/supergroup -$MadelineProto->[channels->deleteMessages](channels_deleteMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Delete channel/supergroup messages -$MadelineProto->[channels->deleteUserHistory](channels_deleteUserHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Delete all messages of a user in a channel/supergroup -$MadelineProto->[channels->editAbout](channels_editAbout.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'about' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Edit the about text of a channel/supergroup -$MadelineProto->[channels->editAdmin](channels_editAdmin.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), 'role' => [ChannelParticipantRole](../types/ChannelParticipantRole.md), \]) === [$Bool](../types/Bool.md) +* Edit admin permissions of a user in a channel/supergroup -$MadelineProto->[channels->editPhoto](channels_editPhoto.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) +* Edit the photo of a supergroup/channel -$MadelineProto->[channels->editTitle](channels_editTitle.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Edit the title of a supergroup/channel -$MadelineProto->[channels->exportInvite](channels_exportInvite.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) +* Export the invite link of a channel -$MadelineProto->[channels->getChannels](channels_getChannels.md)(\['id' => \[[InputChannel](../types/InputChannel.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get info about multiple channels/supergroups -$MadelineProto->[channels->getDialogs](channels_getDialogs.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Dialogs](../types/messages_Dialogs.md) +* Get channel dialogs -$MadelineProto->[channels->getFullChannel](channels_getFullChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) +* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[channels->getImportantHistory](channels_getImportantHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'offset_id' => [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) +* Get important channel/supergroup history -$MadelineProto->[channels->getMessages](channels_getMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get channel/supergroup messages -$MadelineProto->[channels->getParticipant](channels_getParticipant.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) +* Get info about a certain channel/supergroup participant -$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) +* Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead) -$MadelineProto->[channels->inviteToChannel](channels_inviteToChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'users' => \[[InputUser](../types/InputUser.md)\], \]) === [$Updates](../types/Updates.md) +* Add users to channel/supergroup -$MadelineProto->[channels->joinChannel](channels_joinChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Join a channel/supergroup -$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) +* Kick user from channel -$MadelineProto->[channels->leaveChannel](channels_leaveChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Leave a channel/supergroup -$MadelineProto->[channels->readHistory](channels_readHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Mark channel/supergroup history as read -$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) +* Report a supergroup/channel for spam -$MadelineProto->[channels->toggleComments](channels_toggleComments.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Enable channel comments -$MadelineProto->[channels->updateUsername](channels_updateUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Update the username of a supergroup/channel *** -

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +

* Block a user -$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) +* Delete a contact -$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) +* Delete multiple contacts -$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) +* Export contact as card -$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) +* Get blocked users -$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [string](../types/string.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) +* Get info about a certain contact -$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) +* Get online status of all users -$MadelineProto->[contacts->getSuggested](contacts_getSuggested.md)(\['limit' => [int](../types/int.md), \]) === [$contacts\_Suggested](../types/contacts_Suggested.md) +* Get suggested contacts -$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) +* Import card as contact -$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], 'replace' => [Bool](../types/Bool.md), \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) +* Add phone number as contact -$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) +* You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) +* Search contacts -$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +* Unblock a user *** -

$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) +

* Get the changelog of this app -$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) +* Get info about app updates -$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) +* Get server configuration -$MadelineProto->[help->getInviteText](help_getInviteText.md)(\['lang_code' => [string](../types/string.md), \]) === [$help\_InviteText](../types/help_InviteText.md) +* Get invitation text -$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) +* Get nearest datacenter -$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) +* Get info of support user -$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) +* Log data for developer of this app *** -

$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) +

* Initializes connection and save information on the user's device and application. *** -

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invokes a query after successfull completion of one of the previous queries. *** -

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Result type returned by a current query. *** -

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invoke this method with layer X *** -

$MadelineProto->[invokeWithoutUpdates](invokeWithoutUpdates.md)(\['query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invoke with method without returning updates in the socket *** -

$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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Add a user to a normal chat (use channels->inviteToChannel for supergroups) -$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md) +* Check if an invitation link is valid -$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Create a chat (not supergroup) -$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md) +* Delete a user from a chat (not supergroup) -$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Delete chat history -$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Delete messages -$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) +* Edit the photo of a normal chat (not supergroup) -$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Edit the title of a normal chat (not supergroup) -$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) +* Export chat invite -$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) +* Forward message -$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['from_peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], 'to_peer' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) +* Forward messages -$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [string](../types/string.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) +* Get all stickerpacks -$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get info about chats -$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) +* You cannot use this method directly, instead use $MadelineProto->get_dh_config(); -$MadelineProto->[messages->getDialogs](messages_getDialogs.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Dialogs](../types/messages_Dialogs.md) +* Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html -$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) +* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[messages->getHistory](messages_getHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset_id' => [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) +* Get previous messages of a group -$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get messages -$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) +* Get and increase message views -$MadelineProto->[messages->getStickerSet](messages_getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) +* Get a stickerset -$MadelineProto->[messages->getStickers](messages_getStickers.md)(\['emoticon' => [string](../types/string.md), 'hash' => [string](../types/string.md), \]) === [$messages\_Stickers](../types/messages_Stickers.md) +* Get stickers -$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) === [$MessageMedia](../types/MessageMedia.md) +* Get webpage preview -$MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Import chat invite -$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'disabled' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Add a sticker set -$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Mark messages as read in secret chats -$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) +* Mark messages as read -$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Mark message as read -$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_ReceivedNotifyMessage](../types/ReceivedNotifyMessage.md) +* Mark messages as read -$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) +* You cannot use this method directly -$MadelineProto->[messages->reportSpam](messages_reportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Report a peer for spam -$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Search peers or messages -$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) +* Send a message to all users in the chat list -$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send message to secret chat -$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) +* Send a file to a secret chat -$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send a service message to a secret chat -$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) +* Send a media -$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), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Updates](../types/Updates.md) +* Send a message -$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Send typing notification to secret chat -$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) +* Change typing status -$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) +* Start a bot -$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) +* Remove a sticker set *** -

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) +

* Delete profile photos -$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) +* Get the profile photos of a user -$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), 'crop' => [InputPhotoCrop](../types/InputPhotoCrop.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) +* Update the profile photo (use photos->uploadProfilePhoto to upload the photo) -$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) +* Upload profile photo *** -

$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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates -$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) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates -$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates *** -

$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) +

* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info *** -

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) +

* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) +* Get info about users diff --git a/old_docs/API_docs_v38/methods/account_changePhone.md b/old_docs/API_docs_v38/methods/account_changePhone.md index aeb5c4bc..65f0b0d0 100644 --- a/old_docs/API_docs_v38/methods/account_changePhone.md +++ b/old_docs/API_docs_v38/methods/account_changePhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); diff --git a/old_docs/API_docs_v38/methods/account_checkUsername.md b/old_docs/API_docs_v38/methods/account_checkUsername.md index 0124bb38..08107762 100644 --- a/old_docs/API_docs_v38/methods/account_checkUsername.md +++ b/old_docs/API_docs_v38/methods/account_checkUsername.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v38/methods/account_deleteAccount.md b/old_docs/API_docs_v38/methods/account_deleteAccount.md index e8b46c24..3a6f4700 100644 --- a/old_docs/API_docs_v38/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v38/methods/account_deleteAccount.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); diff --git a/old_docs/API_docs_v38/methods/account_getAccountTTL.md b/old_docs/API_docs_v38/methods/account_getAccountTTL.md index 0cdd0b98..ab6a6ea1 100644 --- a/old_docs/API_docs_v38/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v38/methods/account_getAccountTTL.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); diff --git a/old_docs/API_docs_v38/methods/account_getAuthorizations.md b/old_docs/API_docs_v38/methods/account_getAuthorizations.md index f92db8fe..303203e4 100644 --- a/old_docs/API_docs_v38/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v38/methods/account_getAuthorizations.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_Authorizations = $MadelineProto->account->getAuthorizations(); diff --git a/old_docs/API_docs_v38/methods/account_getNotifySettings.md b/old_docs/API_docs_v38/methods/account_getNotifySettings.md index f00be12c..ad492f49 100644 --- a/old_docs/API_docs_v38/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v38/methods/account_getNotifySettings.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); diff --git a/old_docs/API_docs_v38/methods/account_getPassword.md b/old_docs/API_docs_v38/methods/account_getPassword.md index c189421d..2692dab1 100644 --- a/old_docs/API_docs_v38/methods/account_getPassword.md +++ b/old_docs/API_docs_v38/methods/account_getPassword.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_Password = $MadelineProto->account->getPassword(); diff --git a/old_docs/API_docs_v38/methods/account_getPasswordSettings.md b/old_docs/API_docs_v38/methods/account_getPasswordSettings.md index 96cb953e..2039d405 100644 --- a/old_docs/API_docs_v38/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v38/methods/account_getPasswordSettings.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PasswordSettings = $MadelineProto->account->getPasswordSettings(['current_password_hash' => 'bytes', ]); diff --git a/old_docs/API_docs_v38/methods/account_getPrivacy.md b/old_docs/API_docs_v38/methods/account_getPrivacy.md index 979bfb94..5480ffbb 100644 --- a/old_docs/API_docs_v38/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v38/methods/account_getPrivacy.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); diff --git a/old_docs/API_docs_v38/methods/account_getWallPapers.md b/old_docs/API_docs_v38/methods/account_getWallPapers.md index 89b281be..7c8bff39 100644 --- a/old_docs/API_docs_v38/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v38/methods/account_getWallPapers.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); diff --git a/old_docs/API_docs_v38/methods/account_registerDevice.md b/old_docs/API_docs_v38/methods/account_registerDevice.md index 651e753f..8dae7506 100644 --- a/old_docs/API_docs_v38/methods/account_registerDevice.md +++ b/old_docs/API_docs_v38/methods/account_registerDevice.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'app_sandbox' => Bool, 'lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v38/methods/account_resetAuthorization.md b/old_docs/API_docs_v38/methods/account_resetAuthorization.md index 4155d3c8..543aee08 100644 --- a/old_docs/API_docs_v38/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v38/methods/account_resetAuthorization.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetAuthorization(['hash' => long, ]); diff --git a/old_docs/API_docs_v38/methods/account_resetNotifySettings.md b/old_docs/API_docs_v38/methods/account_resetNotifySettings.md index ccc836a9..557373b0 100644 --- a/old_docs/API_docs_v38/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v38/methods/account_resetNotifySettings.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); diff --git a/old_docs/API_docs_v38/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v38/methods/account_sendChangePhoneCode.md index 0b384269..930e0f76 100644 --- a/old_docs/API_docs_v38/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v38/methods/account_sendChangePhoneCode.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_SentChangePhoneCode = $MadelineProto->account->sendChangePhoneCode(['phone_number' => 'string', ]); diff --git a/old_docs/API_docs_v38/methods/account_setAccountTTL.md b/old_docs/API_docs_v38/methods/account_setAccountTTL.md index 5100e62e..bacdd77a 100644 --- a/old_docs/API_docs_v38/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v38/methods/account_setAccountTTL.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); diff --git a/old_docs/API_docs_v38/methods/account_setPrivacy.md b/old_docs/API_docs_v38/methods/account_setPrivacy.md index fbcedae7..6e24ded7 100644 --- a/old_docs/API_docs_v38/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v38/methods/account_setPrivacy.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); diff --git a/old_docs/API_docs_v38/methods/account_unregisterDevice.md b/old_docs/API_docs_v38/methods/account_unregisterDevice.md index 1d2b7670..b666d91a 100644 --- a/old_docs/API_docs_v38/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v38/methods/account_unregisterDevice.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); diff --git a/old_docs/API_docs_v38/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v38/methods/account_updateDeviceLocked.md index ef816501..cd52093a 100644 --- a/old_docs/API_docs_v38/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v38/methods/account_updateDeviceLocked.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); diff --git a/old_docs/API_docs_v38/methods/account_updateNotifySettings.md b/old_docs/API_docs_v38/methods/account_updateNotifySettings.md index 18cbdb75..db020309 100644 --- a/old_docs/API_docs_v38/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v38/methods/account_updateNotifySettings.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); diff --git a/old_docs/API_docs_v38/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v38/methods/account_updatePasswordSettings.md index 0754dd63..8af1e37f 100644 --- a/old_docs/API_docs_v38/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v38/methods/account_updatePasswordSettings.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updatePasswordSettings(['current_password_hash' => 'bytes', 'new_settings' => account_PasswordInputSettings, ]); diff --git a/old_docs/API_docs_v38/methods/account_updateProfile.md b/old_docs/API_docs_v38/methods/account_updateProfile.md index f16398ed..caea3391 100644 --- a/old_docs/API_docs_v38/methods/account_updateProfile.md +++ b/old_docs/API_docs_v38/methods/account_updateProfile.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', ]); diff --git a/old_docs/API_docs_v38/methods/account_updateStatus.md b/old_docs/API_docs_v38/methods/account_updateStatus.md index 4b049e65..50b99b1e 100644 --- a/old_docs/API_docs_v38/methods/account_updateStatus.md +++ b/old_docs/API_docs_v38/methods/account_updateStatus.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); diff --git a/old_docs/API_docs_v38/methods/account_updateUsername.md b/old_docs/API_docs_v38/methods/account_updateUsername.md index 08d2abe0..7276e2aa 100644 --- a/old_docs/API_docs_v38/methods/account_updateUsername.md +++ b/old_docs/API_docs_v38/methods/account_updateUsername.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v38/methods/api_README.md b/old_docs/API_docs_v38/methods/api_README.md new file mode 100644 index 00000000..1ed2edd7 --- /dev/null +++ b/old_docs/API_docs_v38/methods/api_README.md @@ -0,0 +1,340 @@ +--- +title: Methods +description: List of methods +--- +# Methods +[Back to API documentation index](..) + +[Go to the new description-version method index](index.html) + +$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); + +$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); + +$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); + +$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); + +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); + + +$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); + +$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); + +$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); + +$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); + +$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); + + +$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); + +$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); + +*** +

$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) + +$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) + +$MadelineProto->[account->getAuthorizations](account_getAuthorizations.md)(\[\]) === [$account\_Authorizations](../types/account_Authorizations.md) + +$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) + +$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md) + +$MadelineProto->[account->getPasswordSettings](account_getPasswordSettings.md)(\['current_password_hash' => [bytes](../types/bytes.md), \]) === [$account\_PasswordSettings](../types/account_PasswordSettings.md) + +$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) + +$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) + +$MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->sendChangePhoneCode](account_sendChangePhoneCode.md)(\['phone_number' => [string](../types/string.md), \]) === [$account\_SentChangePhoneCode](../types/account_SentChangePhoneCode.md) + +$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[account->updateProfile](account_updateProfile.md)(\['first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), \]) === [$User](../types/User.md) + +$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) + +*** +

$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) + +$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) + +$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) + +$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$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) + +$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->recoverPassword](auth_recoverPassword.md)(\['code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->requestPasswordRecovery](auth_requestPasswordRecovery.md)(\[\]) === [$auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) + +$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->sendCall](auth_sendCall.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->sendSms](auth_sendSms.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$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) + +*** +

$MadelineProto->[channels->checkUsername](channels_checkUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[channels->createChannel](channels_createChannel.md)(\['title' => [string](../types/string.md), 'about' => [string](../types/string.md), 'users' => \[[InputUser](../types/InputUser.md)\], \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->deleteChannel](channels_deleteChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->deleteMessages](channels_deleteMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[channels->deleteUserHistory](channels_deleteUserHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[channels->editAbout](channels_editAbout.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'about' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[channels->editAdmin](channels_editAdmin.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), 'role' => [ChannelParticipantRole](../types/ChannelParticipantRole.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[channels->editPhoto](channels_editPhoto.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->editTitle](channels_editTitle.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->exportInvite](channels_exportInvite.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) + +$MadelineProto->[channels->getChannels](channels_getChannels.md)(\['id' => \[[InputChannel](../types/InputChannel.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[channels->getDialogs](channels_getDialogs.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Dialogs](../types/messages_Dialogs.md) + +$MadelineProto->[channels->getFullChannel](channels_getFullChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$MadelineProto->[channels->getImportantHistory](channels_getImportantHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'offset_id' => [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) + +$MadelineProto->[channels->getMessages](channels_getMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) + +$MadelineProto->[channels->getParticipant](channels_getParticipant.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) + +$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) + +$MadelineProto->[channels->inviteToChannel](channels_inviteToChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'users' => \[[InputUser](../types/InputUser.md)\], \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->joinChannel](channels_joinChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$MadelineProto->[channels->leaveChannel](channels_leaveChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->readHistory](channels_readHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->toggleComments](channels_toggleComments.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->updateUsername](channels_updateUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) + +$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) + +$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) + +$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [string](../types/string.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) + +$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) + +$MadelineProto->[contacts->getSuggested](contacts_getSuggested.md)(\['limit' => [int](../types/int.md), \]) === [$contacts\_Suggested](../types/contacts_Suggested.md) + +$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) + +$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], 'replace' => [Bool](../types/Bool.md), \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) + +$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) + +$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) + +$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +*** +

$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) + +$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) + +$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) + +$MadelineProto->[help->getInviteText](help_getInviteText.md)(\['lang_code' => [string](../types/string.md), \]) === [$help\_InviteText](../types/help_InviteText.md) + +$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) + +$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) + +$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) + +*** +

$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) + +*** +

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeWithoutUpdates](invokeWithoutUpdates.md)(\['query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$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) + +$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) + +$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md) + +$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) + +$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['from_peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], 'to_peer' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [string](../types/string.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) + +$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) + +$MadelineProto->[messages->getDialogs](messages_getDialogs.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Dialogs](../types/messages_Dialogs.md) + +$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$MadelineProto->[messages->getHistory](messages_getHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset_id' => [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) + +$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) + +$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) + +$MadelineProto->[messages->getStickerSet](messages_getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +$MadelineProto->[messages->getStickers](messages_getStickers.md)(\['emoticon' => [string](../types/string.md), 'hash' => [string](../types/string.md), \]) === [$messages\_Stickers](../types/messages_Stickers.md) + +$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) === [$MessageMedia](../types/MessageMedia.md) + +$MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'disabled' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_ReceivedNotifyMessage](../types/ReceivedNotifyMessage.md) + +$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) + +$MadelineProto->[messages->reportSpam](messages_reportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) + +$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) + +$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) + +$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$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) + +$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$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) + +$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), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) + +$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) + +$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), 'crop' => [InputPhotoCrop](../types/InputPhotoCrop.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) + +$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) + +*** +

$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) + +$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) + +$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) + +*** +

$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) + +$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) + +$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) + +*** +

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) + +$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) + diff --git a/old_docs/API_docs_v38/methods/auth_checkPhone.md b/old_docs/API_docs_v38/methods/auth_checkPhone.md index 291221de..1826ce63 100644 --- a/old_docs/API_docs_v38/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v38/methods/auth_checkPhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); diff --git a/old_docs/API_docs_v38/methods/auth_recoverPassword.md b/old_docs/API_docs_v38/methods/auth_recoverPassword.md index cdc9bd7d..5e37b0f3 100644 --- a/old_docs/API_docs_v38/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v38/methods/auth_recoverPassword.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_Authorization = $MadelineProto->auth->recoverPassword(['code' => 'string', ]); diff --git a/old_docs/API_docs_v38/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v38/methods/auth_requestPasswordRecovery.md index e18c6c93..c69d0c49 100644 --- a/old_docs/API_docs_v38/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v38/methods/auth_requestPasswordRecovery.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_PasswordRecovery = $MadelineProto->auth->requestPasswordRecovery(); diff --git a/old_docs/API_docs_v38/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v38/methods/auth_resetAuthorizations.md index 47feea16..a46c880d 100644 --- a/old_docs/API_docs_v38/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v38/methods/auth_resetAuthorizations.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); diff --git a/old_docs/API_docs_v38/methods/auth_sendCall.md b/old_docs/API_docs_v38/methods/auth_sendCall.md index e2bd2855..5947cda7 100644 --- a/old_docs/API_docs_v38/methods/auth_sendCall.md +++ b/old_docs/API_docs_v38/methods/auth_sendCall.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendCall(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v38/methods/auth_sendInvites.md b/old_docs/API_docs_v38/methods/auth_sendInvites.md index be32fe6b..9b88b4a3 100644 --- a/old_docs/API_docs_v38/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v38/methods/auth_sendInvites.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); diff --git a/old_docs/API_docs_v38/methods/auth_sendSms.md b/old_docs/API_docs_v38/methods/auth_sendSms.md index a17fdd3a..41340660 100644 --- a/old_docs/API_docs_v38/methods/auth_sendSms.md +++ b/old_docs/API_docs_v38/methods/auth_sendSms.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendSms(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v38/methods/channels_checkUsername.md b/old_docs/API_docs_v38/methods/channels_checkUsername.md index 7bc7c245..7e3d5a89 100644 --- a/old_docs/API_docs_v38/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v38/methods/channels_checkUsername.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->checkUsername(['channel' => InputChannel, 'username' => 'string', ]); diff --git a/old_docs/API_docs_v38/methods/channels_createChannel.md b/old_docs/API_docs_v38/methods/channels_createChannel.md index 2d4550b1..9ebdab9d 100644 --- a/old_docs/API_docs_v38/methods/channels_createChannel.md +++ b/old_docs/API_docs_v38/methods/channels_createChannel.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->createChannel(['title' => 'string', 'about' => 'string', 'users' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v38/methods/channels_deleteChannel.md b/old_docs/API_docs_v38/methods/channels_deleteChannel.md index e660d25c..69dad9a3 100644 --- a/old_docs/API_docs_v38/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v38/methods/channels_deleteChannel.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->deleteChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v38/methods/channels_deleteMessages.md b/old_docs/API_docs_v38/methods/channels_deleteMessages.md index fb9d3cc2..b12270b3 100644 --- a/old_docs/API_docs_v38/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v38/methods/channels_deleteMessages.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v38/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v38/methods/channels_deleteUserHistory.md index fbe34341..75f531bb 100644 --- a/old_docs/API_docs_v38/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v38/methods/channels_deleteUserHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->channels->deleteUserHistory(['channel' => InputChannel, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v38/methods/channels_editAbout.md b/old_docs/API_docs_v38/methods/channels_editAbout.md index 8908f29e..67521065 100644 --- a/old_docs/API_docs_v38/methods/channels_editAbout.md +++ b/old_docs/API_docs_v38/methods/channels_editAbout.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->editAbout(['channel' => InputChannel, 'about' => 'string', ]); diff --git a/old_docs/API_docs_v38/methods/channels_editAdmin.md b/old_docs/API_docs_v38/methods/channels_editAdmin.md index 9e540072..9f69c065 100644 --- a/old_docs/API_docs_v38/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v38/methods/channels_editAdmin.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->editAdmin(['channel' => InputChannel, 'user_id' => InputUser, 'role' => ChannelParticipantRole, ]); diff --git a/old_docs/API_docs_v38/methods/channels_editPhoto.md b/old_docs/API_docs_v38/methods/channels_editPhoto.md index 9ccd864f..c854c64a 100644 --- a/old_docs/API_docs_v38/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v38/methods/channels_editPhoto.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editPhoto(['channel' => InputChannel, 'photo' => InputChatPhoto, ]); diff --git a/old_docs/API_docs_v38/methods/channels_editTitle.md b/old_docs/API_docs_v38/methods/channels_editTitle.md index b1024faf..9bc6773e 100644 --- a/old_docs/API_docs_v38/methods/channels_editTitle.md +++ b/old_docs/API_docs_v38/methods/channels_editTitle.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editTitle(['channel' => InputChannel, 'title' => 'string', ]); diff --git a/old_docs/API_docs_v38/methods/channels_exportInvite.md b/old_docs/API_docs_v38/methods/channels_exportInvite.md index f0c737d5..ca65dcc8 100644 --- a/old_docs/API_docs_v38/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v38/methods/channels_exportInvite.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedChatInvite = $MadelineProto->channels->exportInvite(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v38/methods/channels_getChannels.md b/old_docs/API_docs_v38/methods/channels_getChannels.md index 9cd9e798..af22556f 100644 --- a/old_docs/API_docs_v38/methods/channels_getChannels.md +++ b/old_docs/API_docs_v38/methods/channels_getChannels.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel, InputChannel], ]); diff --git a/old_docs/API_docs_v38/methods/channels_getDialogs.md b/old_docs/API_docs_v38/methods/channels_getDialogs.md index 9ad21720..1b5837b7 100644 --- a/old_docs/API_docs_v38/methods/channels_getDialogs.md +++ b/old_docs/API_docs_v38/methods/channels_getDialogs.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Dialogs = $MadelineProto->channels->getDialogs(['offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v38/methods/channels_getImportantHistory.md b/old_docs/API_docs_v38/methods/channels_getImportantHistory.md index 66be0b21..861e4a32 100644 --- a/old_docs/API_docs_v38/methods/channels_getImportantHistory.md +++ b/old_docs/API_docs_v38/methods/channels_getImportantHistory.md @@ -34,12 +34,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->channels->getImportantHistory(['channel' => InputChannel, 'offset_id' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); diff --git a/old_docs/API_docs_v38/methods/channels_getMessages.md b/old_docs/API_docs_v38/methods/channels_getMessages.md index cc944fe5..eda13d0b 100644 --- a/old_docs/API_docs_v38/methods/channels_getMessages.md +++ b/old_docs/API_docs_v38/methods/channels_getMessages.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v38/methods/channels_getParticipant.md b/old_docs/API_docs_v38/methods/channels_getParticipant.md index db9b1fc6..be5fe96a 100644 --- a/old_docs/API_docs_v38/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v38/methods/channels_getParticipant.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $channels_ChannelParticipant = $MadelineProto->channels->getParticipant(['channel' => InputChannel, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v38/methods/channels_getParticipants.md b/old_docs/API_docs_v38/methods/channels_getParticipants.md index 96662466..6a27016b 100644 --- a/old_docs/API_docs_v38/methods/channels_getParticipants.md +++ b/old_docs/API_docs_v38/methods/channels_getParticipants.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $channels_ChannelParticipants = $MadelineProto->channels->getParticipants(['channel' => InputChannel, 'filter' => ChannelParticipantsFilter, 'offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v38/methods/channels_inviteToChannel.md b/old_docs/API_docs_v38/methods/channels_inviteToChannel.md index 676f800c..e7d12db7 100644 --- a/old_docs/API_docs_v38/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v38/methods/channels_inviteToChannel.md @@ -52,12 +52,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v38/methods/channels_joinChannel.md b/old_docs/API_docs_v38/methods/channels_joinChannel.md index 721f707c..3ac2b326 100644 --- a/old_docs/API_docs_v38/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v38/methods/channels_joinChannel.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->joinChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v38/methods/channels_kickFromChannel.md b/old_docs/API_docs_v38/methods/channels_kickFromChannel.md index bf8bb5b8..8f6c92be 100644 --- a/old_docs/API_docs_v38/methods/channels_kickFromChannel.md +++ b/old_docs/API_docs_v38/methods/channels_kickFromChannel.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->kickFromChannel(['channel' => InputChannel, 'user_id' => InputUser, 'kicked' => Bool, ]); diff --git a/old_docs/API_docs_v38/methods/channels_leaveChannel.md b/old_docs/API_docs_v38/methods/channels_leaveChannel.md index 7f02e08c..95b60a90 100644 --- a/old_docs/API_docs_v38/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v38/methods/channels_leaveChannel.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->leaveChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v38/methods/channels_readHistory.md b/old_docs/API_docs_v38/methods/channels_readHistory.md index cca891f0..c6b14541 100644 --- a/old_docs/API_docs_v38/methods/channels_readHistory.md +++ b/old_docs/API_docs_v38/methods/channels_readHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->readHistory(['channel' => InputChannel, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v38/methods/channels_reportSpam.md b/old_docs/API_docs_v38/methods/channels_reportSpam.md index 09af14e0..ca5c28f5 100644 --- a/old_docs/API_docs_v38/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v38/methods/channels_reportSpam.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v38/methods/channels_toggleComments.md b/old_docs/API_docs_v38/methods/channels_toggleComments.md index 73ef8d23..cc9f478d 100644 --- a/old_docs/API_docs_v38/methods/channels_toggleComments.md +++ b/old_docs/API_docs_v38/methods/channels_toggleComments.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->toggleComments(['channel' => InputChannel, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v38/methods/channels_updateUsername.md b/old_docs/API_docs_v38/methods/channels_updateUsername.md index ad34490a..2093b6ce 100644 --- a/old_docs/API_docs_v38/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v38/methods/channels_updateUsername.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->updateUsername(['channel' => InputChannel, 'username' => 'string', ]); diff --git a/old_docs/API_docs_v38/methods/contacts_block.md b/old_docs/API_docs_v38/methods/contacts_block.md index d0729d30..e592cace 100644 --- a/old_docs/API_docs_v38/methods/contacts_block.md +++ b/old_docs/API_docs_v38/methods/contacts_block.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v38/methods/contacts_deleteContact.md b/old_docs/API_docs_v38/methods/contacts_deleteContact.md index b8c17544..1a3f2a27 100644 --- a/old_docs/API_docs_v38/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v38/methods/contacts_deleteContact.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v38/methods/contacts_deleteContacts.md b/old_docs/API_docs_v38/methods/contacts_deleteContacts.md index 64c69460..f6627599 100644 --- a/old_docs/API_docs_v38/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v38/methods/contacts_deleteContacts.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v38/methods/contacts_exportCard.md b/old_docs/API_docs_v38/methods/contacts_exportCard.md index b05f57ce..1d2129f3 100644 --- a/old_docs/API_docs_v38/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v38/methods/contacts_exportCard.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); diff --git a/old_docs/API_docs_v38/methods/contacts_getBlocked.md b/old_docs/API_docs_v38/methods/contacts_getBlocked.md index d7d8c5cc..44d24aba 100644 --- a/old_docs/API_docs_v38/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v38/methods/contacts_getBlocked.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v38/methods/contacts_getContacts.md b/old_docs/API_docs_v38/methods/contacts_getContacts.md index 1ab8af27..83c4846f 100644 --- a/old_docs/API_docs_v38/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v38/methods/contacts_getContacts.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v38/methods/contacts_getStatuses.md b/old_docs/API_docs_v38/methods/contacts_getStatuses.md index b927a140..5cef3084 100644 --- a/old_docs/API_docs_v38/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v38/methods/contacts_getStatuses.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); diff --git a/old_docs/API_docs_v38/methods/contacts_getSuggested.md b/old_docs/API_docs_v38/methods/contacts_getSuggested.md index 302e60e5..1ce04bef 100644 --- a/old_docs/API_docs_v38/methods/contacts_getSuggested.md +++ b/old_docs/API_docs_v38/methods/contacts_getSuggested.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Suggested = $MadelineProto->contacts->getSuggested(['limit' => int, ]); diff --git a/old_docs/API_docs_v38/methods/contacts_importCard.md b/old_docs/API_docs_v38/methods/contacts_importCard.md index 81a1e138..89c96657 100644 --- a/old_docs/API_docs_v38/methods/contacts_importCard.md +++ b/old_docs/API_docs_v38/methods/contacts_importCard.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); diff --git a/old_docs/API_docs_v38/methods/contacts_importContacts.md b/old_docs/API_docs_v38/methods/contacts_importContacts.md index 578e5dfd..cd3d6615 100644 --- a/old_docs/API_docs_v38/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v38/methods/contacts_importContacts.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], 'replace' => Bool, ]); diff --git a/old_docs/API_docs_v38/methods/contacts_search.md b/old_docs/API_docs_v38/methods/contacts_search.md index 68daecd6..64ff748e 100644 --- a/old_docs/API_docs_v38/methods/contacts_search.md +++ b/old_docs/API_docs_v38/methods/contacts_search.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); diff --git a/old_docs/API_docs_v38/methods/contacts_unblock.md b/old_docs/API_docs_v38/methods/contacts_unblock.md index f7d151b9..ec72ae2d 100644 --- a/old_docs/API_docs_v38/methods/contacts_unblock.md +++ b/old_docs/API_docs_v38/methods/contacts_unblock.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v38/methods/help_getAppChangelog.md b/old_docs/API_docs_v38/methods/help_getAppChangelog.md index dbca4fc8..eb48fabb 100644 --- a/old_docs/API_docs_v38/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v38/methods/help_getAppChangelog.md @@ -32,12 +32,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_AppChangelog = $MadelineProto->help->getAppChangelog(['device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v38/methods/help_getAppUpdate.md b/old_docs/API_docs_v38/methods/help_getAppUpdate.md index f97da105..ad5b8228 100644 --- a/old_docs/API_docs_v38/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v38/methods/help_getAppUpdate.md @@ -32,12 +32,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(['device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v38/methods/help_getConfig.md b/old_docs/API_docs_v38/methods/help_getConfig.md index 16e25c68..ca4bfc25 100644 --- a/old_docs/API_docs_v38/methods/help_getConfig.md +++ b/old_docs/API_docs_v38/methods/help_getConfig.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); diff --git a/old_docs/API_docs_v38/methods/help_getInviteText.md b/old_docs/API_docs_v38/methods/help_getInviteText.md index 0831ba5f..ad6ac262 100644 --- a/old_docs/API_docs_v38/methods/help_getInviteText.md +++ b/old_docs/API_docs_v38/methods/help_getInviteText.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(['lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v38/methods/help_getNearestDc.md b/old_docs/API_docs_v38/methods/help_getNearestDc.md index 35a8bf91..458f60ab 100644 --- a/old_docs/API_docs_v38/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v38/methods/help_getNearestDc.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); diff --git a/old_docs/API_docs_v38/methods/help_getSupport.md b/old_docs/API_docs_v38/methods/help_getSupport.md index a5bab0f2..9ee25b00 100644 --- a/old_docs/API_docs_v38/methods/help_getSupport.md +++ b/old_docs/API_docs_v38/methods/help_getSupport.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); diff --git a/old_docs/API_docs_v38/methods/help_saveAppLog.md b/old_docs/API_docs_v38/methods/help_saveAppLog.md index 0165b6e3..a7884c47 100644 --- a/old_docs/API_docs_v38/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v38/methods/help_saveAppLog.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); diff --git a/old_docs/API_docs_v38/methods/initConnection.md b/old_docs/API_docs_v38/methods/initConnection.md index 2d3d86ad..73620276 100644 --- a/old_docs/API_docs_v38/methods/initConnection.md +++ b/old_docs/API_docs_v38/methods/initConnection.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->initConnection(['api_id' => int, 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', 'query' => !X, ]); diff --git a/old_docs/API_docs_v38/methods/invokeAfterMsg.md b/old_docs/API_docs_v38/methods/invokeAfterMsg.md index e33a2c93..8e953e78 100644 --- a/old_docs/API_docs_v38/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v38/methods/invokeAfterMsg.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); diff --git a/old_docs/API_docs_v38/methods/invokeAfterMsgs.md b/old_docs/API_docs_v38/methods/invokeAfterMsgs.md index 3150a613..bc8a83b7 100644 --- a/old_docs/API_docs_v38/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v38/methods/invokeAfterMsgs.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); diff --git a/old_docs/API_docs_v38/methods/invokeWithLayer.md b/old_docs/API_docs_v38/methods/invokeWithLayer.md index 71d02abb..8a0c4e79 100644 --- a/old_docs/API_docs_v38/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v38/methods/invokeWithLayer.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); diff --git a/old_docs/API_docs_v38/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v38/methods/invokeWithoutUpdates.md index 2bab236a..2d90a776 100644 --- a/old_docs/API_docs_v38/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v38/methods/invokeWithoutUpdates.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeWithoutUpdates(['query' => !X, ]); diff --git a/old_docs/API_docs_v38/methods/messages_addChatUser.md b/old_docs/API_docs_v38/methods/messages_addChatUser.md index 3e4c5ccc..c6ef275f 100644 --- a/old_docs/API_docs_v38/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v38/methods/messages_addChatUser.md @@ -46,12 +46,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); diff --git a/old_docs/API_docs_v38/methods/messages_checkChatInvite.md b/old_docs/API_docs_v38/methods/messages_checkChatInvite.md index de1d9ff4..cea63313 100644 --- a/old_docs/API_docs_v38/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v38/methods/messages_checkChatInvite.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ChatInvite = $MadelineProto->messages->checkChatInvite(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v38/methods/messages_createChat.md b/old_docs/API_docs_v38/methods/messages_createChat.md index 68c0263a..966f58dc 100644 --- a/old_docs/API_docs_v38/methods/messages_createChat.md +++ b/old_docs/API_docs_v38/methods/messages_createChat.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); diff --git a/old_docs/API_docs_v38/methods/messages_deleteChatUser.md b/old_docs/API_docs_v38/methods/messages_deleteChatUser.md index 0a6830de..9a9227ba 100644 --- a/old_docs/API_docs_v38/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v38/methods/messages_deleteChatUser.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v38/methods/messages_deleteHistory.md b/old_docs/API_docs_v38/methods/messages_deleteHistory.md index a2120105..77b8987e 100644 --- a/old_docs/API_docs_v38/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v38/methods/messages_deleteHistory.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['peer' => InputPeer, 'offset' => int, ]); diff --git a/old_docs/API_docs_v38/methods/messages_deleteMessages.md b/old_docs/API_docs_v38/methods/messages_deleteMessages.md index 41570996..fa043e1c 100644 --- a/old_docs/API_docs_v38/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v38/methods/messages_deleteMessages.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v38/methods/messages_editChatPhoto.md b/old_docs/API_docs_v38/methods/messages_editChatPhoto.md index 122913c4..5827a5cc 100644 --- a/old_docs/API_docs_v38/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v38/methods/messages_editChatPhoto.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); diff --git a/old_docs/API_docs_v38/methods/messages_editChatTitle.md b/old_docs/API_docs_v38/methods/messages_editChatTitle.md index 3a1e974b..2e69d790 100644 --- a/old_docs/API_docs_v38/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v38/methods/messages_editChatTitle.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); diff --git a/old_docs/API_docs_v38/methods/messages_exportChatInvite.md b/old_docs/API_docs_v38/methods/messages_exportChatInvite.md index 98685d96..ec80e207 100644 --- a/old_docs/API_docs_v38/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v38/methods/messages_exportChatInvite.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]); diff --git a/old_docs/API_docs_v38/methods/messages_forwardMessage.md b/old_docs/API_docs_v38/methods/messages_forwardMessage.md index 45b7a07f..d6916437 100644 --- a/old_docs/API_docs_v38/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v38/methods/messages_forwardMessage.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); diff --git a/old_docs/API_docs_v38/methods/messages_forwardMessages.md b/old_docs/API_docs_v38/methods/messages_forwardMessages.md index cea56141..5267c383 100644 --- a/old_docs/API_docs_v38/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v38/methods/messages_forwardMessages.md @@ -59,12 +59,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessages(['from_peer' => InputPeer, 'id' => [int, int], 'to_peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v38/methods/messages_getAllStickers.md b/old_docs/API_docs_v38/methods/messages_getAllStickers.md index d4193723..322f9b0b 100644 --- a/old_docs/API_docs_v38/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v38/methods/messages_getAllStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v38/methods/messages_getChats.md b/old_docs/API_docs_v38/methods/messages_getChats.md index 290438a1..e84c7193 100644 --- a/old_docs/API_docs_v38/methods/messages_getChats.md +++ b/old_docs/API_docs_v38/methods/messages_getChats.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v38/methods/messages_getDialogs.md b/old_docs/API_docs_v38/methods/messages_getDialogs.md index 72311136..269c6897 100644 --- a/old_docs/API_docs_v38/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v38/methods/messages_getDialogs.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v38/methods/messages_getHistory.md b/old_docs/API_docs_v38/methods/messages_getHistory.md index dd61853d..dfefb639 100644 --- a/old_docs/API_docs_v38/methods/messages_getHistory.md +++ b/old_docs/API_docs_v38/methods/messages_getHistory.md @@ -46,12 +46,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getHistory(['peer' => InputPeer, 'offset_id' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); diff --git a/old_docs/API_docs_v38/methods/messages_getMessages.md b/old_docs/API_docs_v38/methods/messages_getMessages.md index 86d1da8a..d538cb5f 100644 --- a/old_docs/API_docs_v38/methods/messages_getMessages.md +++ b/old_docs/API_docs_v38/methods/messages_getMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v38/methods/messages_getMessagesViews.md b/old_docs/API_docs_v38/methods/messages_getMessagesViews.md index b8d78c85..934adc16 100644 --- a/old_docs/API_docs_v38/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v38/methods/messages_getMessagesViews.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int, int], 'increment' => Bool, ]); diff --git a/old_docs/API_docs_v38/methods/messages_getStickerSet.md b/old_docs/API_docs_v38/methods/messages_getStickerSet.md index c86807e4..c9140ab2 100644 --- a/old_docs/API_docs_v38/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v38/methods/messages_getStickerSet.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSet = $MadelineProto->messages->getStickerSet(['stickerset' => InputStickerSet, ]); diff --git a/old_docs/API_docs_v38/methods/messages_getStickers.md b/old_docs/API_docs_v38/methods/messages_getStickers.md index 4854696d..d2ea57cf 100644 --- a/old_docs/API_docs_v38/methods/messages_getStickers.md +++ b/old_docs/API_docs_v38/methods/messages_getStickers.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Stickers = $MadelineProto->messages->getStickers(['emoticon' => 'string', 'hash' => 'string', ]); diff --git a/old_docs/API_docs_v38/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v38/methods/messages_getWebPagePreview.md index d01bdd32..e8b20c5d 100644 --- a/old_docs/API_docs_v38/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v38/methods/messages_getWebPagePreview.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $MessageMedia = $MadelineProto->messages->getWebPagePreview(['message' => 'string', ]); diff --git a/old_docs/API_docs_v38/methods/messages_importChatInvite.md b/old_docs/API_docs_v38/methods/messages_importChatInvite.md index 0d6cd7c8..b1830a9b 100644 --- a/old_docs/API_docs_v38/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v38/methods/messages_importChatInvite.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->importChatInvite(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v38/methods/messages_installStickerSet.md b/old_docs/API_docs_v38/methods/messages_installStickerSet.md index 04b693cd..77c5a2a5 100644 --- a/old_docs/API_docs_v38/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v38/methods/messages_installStickerSet.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->installStickerSet(['stickerset' => InputStickerSet, 'disabled' => Bool, ]); diff --git a/old_docs/API_docs_v38/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v38/methods/messages_readEncryptedHistory.md index 39b110e3..2ba4cca4 100644 --- a/old_docs/API_docs_v38/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v38/methods/messages_readEncryptedHistory.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); diff --git a/old_docs/API_docs_v38/methods/messages_readHistory.md b/old_docs/API_docs_v38/methods/messages_readHistory.md index 8a00bf47..7d5d7e35 100644 --- a/old_docs/API_docs_v38/methods/messages_readHistory.md +++ b/old_docs/API_docs_v38/methods/messages_readHistory.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, 'offset' => int, ]); diff --git a/old_docs/API_docs_v38/methods/messages_readMessageContents.md b/old_docs/API_docs_v38/methods/messages_readMessageContents.md index 9bb1bee8..a09cb63e 100644 --- a/old_docs/API_docs_v38/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v38/methods/messages_readMessageContents.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v38/methods/messages_receivedMessages.md b/old_docs/API_docs_v38/methods/messages_receivedMessages.md index 7aab635f..b5e87992 100644 --- a/old_docs/API_docs_v38/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v38/methods/messages_receivedMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_ReceivedNotifyMessage = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); diff --git a/old_docs/API_docs_v38/methods/messages_reportSpam.md b/old_docs/API_docs_v38/methods/messages_reportSpam.md index 2e2b1177..09c1e63b 100644 --- a/old_docs/API_docs_v38/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v38/methods/messages_reportSpam.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reportSpam(['peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v38/methods/messages_search.md b/old_docs/API_docs_v38/methods/messages_search.md index 7821d2b7..735ddf47 100644 --- a/old_docs/API_docs_v38/methods/messages_search.md +++ b/old_docs/API_docs_v38/methods/messages_search.md @@ -49,12 +49,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->search(['peer' => InputPeer, 'q' => 'string', 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v38/methods/messages_sendBroadcast.md b/old_docs/API_docs_v38/methods/messages_sendBroadcast.md index 28e248a9..6cff8b29 100644 --- a/old_docs/API_docs_v38/methods/messages_sendBroadcast.md +++ b/old_docs/API_docs_v38/methods/messages_sendBroadcast.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendBroadcast(['contacts' => [InputUser, InputUser], 'message' => 'string', 'media' => InputMedia, ]); diff --git a/old_docs/API_docs_v38/methods/messages_sendEncrypted.md b/old_docs/API_docs_v38/methods/messages_sendEncrypted.md index d48f88d7..76305f32 100644 --- a/old_docs/API_docs_v38/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v38/methods/messages_sendEncrypted.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v38/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v38/methods/messages_sendEncryptedFile.md index 4fd0648e..8db2ead9 100644 --- a/old_docs/API_docs_v38/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v38/methods/messages_sendEncryptedFile.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); diff --git a/old_docs/API_docs_v38/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v38/methods/messages_sendEncryptedService.md index d66894bf..c7836c94 100644 --- a/old_docs/API_docs_v38/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v38/methods/messages_sendEncryptedService.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v38/methods/messages_sendMedia.md b/old_docs/API_docs_v38/methods/messages_sendMedia.md index 1319a408..552a60d0 100644 --- a/old_docs/API_docs_v38/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v38/methods/messages_sendMedia.md @@ -60,12 +60,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendMedia(['peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, 'reply_markup' => ReplyMarkup, ]); diff --git a/old_docs/API_docs_v38/methods/messages_sendMessage.md b/old_docs/API_docs_v38/methods/messages_sendMessage.md index d654647d..494f9871 100644 --- a/old_docs/API_docs_v38/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v38/methods/messages_sendMessage.md @@ -61,12 +61,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendMessage(['peer' => InputPeer, 'reply_to_msg_id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v38/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v38/methods/messages_setEncryptedTyping.md index e9afe99c..4e7450eb 100644 --- a/old_docs/API_docs_v38/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v38/methods/messages_setEncryptedTyping.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); diff --git a/old_docs/API_docs_v38/methods/messages_setTyping.md b/old_docs/API_docs_v38/methods/messages_setTyping.md index bea4982b..a2b94823 100644 --- a/old_docs/API_docs_v38/methods/messages_setTyping.md +++ b/old_docs/API_docs_v38/methods/messages_setTyping.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); diff --git a/old_docs/API_docs_v38/methods/messages_startBot.md b/old_docs/API_docs_v38/methods/messages_startBot.md index 5d86f690..82054827 100644 --- a/old_docs/API_docs_v38/methods/messages_startBot.md +++ b/old_docs/API_docs_v38/methods/messages_startBot.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'chat_id' => InputPeer, 'start_param' => 'string', ]); diff --git a/old_docs/API_docs_v38/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v38/methods/messages_uninstallStickerSet.md index 6d04e847..26b2fbb3 100644 --- a/old_docs/API_docs_v38/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v38/methods/messages_uninstallStickerSet.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->uninstallStickerSet(['stickerset' => InputStickerSet, ]); diff --git a/old_docs/API_docs_v38/methods/photos_deletePhotos.md b/old_docs/API_docs_v38/methods/photos_deletePhotos.md index b9daca10..937aadd5 100644 --- a/old_docs/API_docs_v38/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v38/methods/photos_deletePhotos.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); diff --git a/old_docs/API_docs_v38/methods/photos_getUserPhotos.md b/old_docs/API_docs_v38/methods/photos_getUserPhotos.md index ea27a44f..d1c15e90 100644 --- a/old_docs/API_docs_v38/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v38/methods/photos_getUserPhotos.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => long, 'limit' => int, ]); diff --git a/old_docs/API_docs_v38/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v38/methods/photos_updateProfilePhoto.md index 2d1e1e76..4c5c517f 100644 --- a/old_docs/API_docs_v38/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v38/methods/photos_updateProfilePhoto.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, 'crop' => InputPhotoCrop, ]); diff --git a/old_docs/API_docs_v38/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v38/methods/photos_uploadProfilePhoto.md index 6ff4ddf5..3d7d301b 100644 --- a/old_docs/API_docs_v38/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v38/methods/photos_uploadProfilePhoto.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, 'caption' => 'string', 'geo_point' => InputGeoPoint, 'crop' => InputPhotoCrop, ]); diff --git a/old_docs/API_docs_v38/methods/users_getUsers.md b/old_docs/API_docs_v38/methods/users_getUsers.md index ef1c7fd8..bce13ee6 100644 --- a/old_docs/API_docs_v38/methods/users_getUsers.md +++ b/old_docs/API_docs_v38/methods/users_getUsers.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v40/README.md b/old_docs/API_docs_v40/README.md index 7e38fc47..d0c600ac 100644 --- a/old_docs/API_docs_v40/README.md +++ b/old_docs/API_docs_v40/README.md @@ -4,11 +4,11 @@ description: MadelineProto API documentation (layer v40) --- # MadelineProto API documentation (layer v40) +[Back to main documentation](..) + + [Methods](methods/) [Constructors](constructors/) -[Types](types/) - - -[Back to main documentation](..) +[Types](types/) \ No newline at end of file diff --git a/old_docs/API_docs_v40/methods/README.md b/old_docs/API_docs_v40/methods/README.md index be827938..bb439059 100644 --- a/old_docs/API_docs_v40/methods/README.md +++ b/old_docs/API_docs_v40/methods/README.md @@ -1,294 +1,289 @@ --- title: Methods -description: List of methods +description: What do you want to do? --- -# Methods -[Back to API documentation index](..) +# What do you want to do? +[Go back to API documentation index](..) +[Go to the old code-version method index](api_index.html) -$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); +* [Logout](https://docs.madelineproto.xyz/logout.html) -$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); +* [Login](https://docs.madelineproto.xyz/docs/LOGIN.html) -$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); +* [Get all chats, broadcast a message to all chats](https://docs.madelineproto.xyz/docs/DIALOGS.html) -$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); +* [Get the full participant list of a channel/group/supergroup](https://docs.madelineproto.xyz/get_pwr_chat.html) -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); +* [Get full info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_full_info.html) +* [Get info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_info.html) -$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); +* [Get info about the currently logged-in user](https://docs.madelineproto.xyz/get_self.html) -$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); +* [Upload or download files up to 1.5 GB](https://docs.madelineproto.xyz/docs/FILES.html) -$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); +* [Make a phone call and play a song](https://docs.madelineproto.xyz/docs/CALLS.html) -$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); - -$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); - - -$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); - -$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); +* [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) *** -

$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) +

* Change the phone number associated to this account -$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Check if this username is available -$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Delete this account -$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) +* Get account TTL -$MadelineProto->[account->getAuthorizations](account_getAuthorizations.md)(\[\]) === [$account\_Authorizations](../types/account_Authorizations.md) +* Get all logged-in authorizations -$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) +* Get notification settings -$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md) +* Get the current password -$MadelineProto->[account->getPasswordSettings](account_getPasswordSettings.md)(\['current_password_hash' => [bytes](../types/bytes.md), \]) === [$account\_PasswordSettings](../types/account_PasswordSettings.md) +* Get the current 2FA settings -$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Get privacy settings -$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) +* Returns a list of available wallpapers. -$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) +* Register device for push notifications -$MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) +* Delete a certain session -$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) +* Reset all notification settings -$MadelineProto->[account->sendChangePhoneCode](account_sendChangePhoneCode.md)(\['phone_number' => [string](../types/string.md), \]) === [$account\_SentChangePhoneCode](../types/account_SentChangePhoneCode.md) +* Change the phone number -$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) +* Set account TTL -$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Set privacy settings -$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Stop sending PUSH notifications to app -$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Disable all notifications for a certain period -$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) +* Change notification settings -$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) +* Update the 2FA password settings -$MadelineProto->[account->updateProfile](account_updateProfile.md)(\['first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), \]) === [$User](../types/User.md) +* Update profile info -$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Update online status -$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) +* Update this user's username *** -

$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) +

* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info -$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) +* Check if this phone number is registered on telegram -$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) +* You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$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) +* You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->recoverPassword](auth_recoverPassword.md)(\['code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account -$MadelineProto->[auth->requestPasswordRecovery](auth_requestPasswordRecovery.md)(\[\]) === [$auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) +* Send an email to recover the 2FA password -$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) +* Delete all logged-in sessions. -$MadelineProto->[auth->sendCall](auth_sendCall.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Send verification phone call -$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) +* Use phone_login instead -$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Invite friends to telegram! -$MadelineProto->[auth->sendSms](auth_sendSms.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Send SMS verification code -$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) +* You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) -$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) +* You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) *** -

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +

* Block a user -$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) +* Delete a contact -$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) +* Delete multiple contacts -$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) +* Export contact as card -$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) +* Get blocked users -$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [string](../types/string.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) +* Get info about a certain contact -$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) +* Get online status of all users -$MadelineProto->[contacts->getSuggested](contacts_getSuggested.md)(\['limit' => [int](../types/int.md), \]) === [$contacts\_Suggested](../types/contacts_Suggested.md) +* Get suggested contacts -$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) +* Import card as contact -$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], 'replace' => [Bool](../types/Bool.md), \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) +* Add phone number as contact -$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) +* You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) +* Search contacts -$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +* Unblock a user *** -

$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) +

* Get the changelog of this app -$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) +* Get info about app updates -$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) +* Get server configuration -$MadelineProto->[help->getInviteText](help_getInviteText.md)(\['lang_code' => [string](../types/string.md), \]) === [$help\_InviteText](../types/help_InviteText.md) +* Get invitation text -$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) +* Get nearest datacenter -$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) +* Get info of support user -$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) +* Log data for developer of this app *** -

$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) +

* Initializes connection and save information on the user's device and application. *** -

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invokes a query after successfull completion of one of the previous queries. *** -

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Result type returned by a current query. *** -

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invoke this method with layer X *** -

$MadelineProto->[invokeWithoutUpdates](invokeWithoutUpdates.md)(\['query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invoke with method without returning updates in the socket *** -

$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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Add a user to a normal chat (use channels->inviteToChannel for supergroups) -$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md) +* Check if an invitation link is valid -$MadelineProto->[messages->createChannel](messages_createChannel.md)(\['title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Create channel -$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Create a chat (not supergroup) -$MadelineProto->[messages->deleteChannelMessages](messages_deleteChannelMessages.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Delete channel messages -$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md) +* Delete a user from a chat (not supergroup) -$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Delete chat history -$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Delete messages -$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) +* Edit the photo of a normal chat (not supergroup) -$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Edit the title of a normal chat (not supergroup) -$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) +* Export chat invite -$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) +* Forward message -$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], \]) === [$Updates](../types/Updates.md) +* Forward messages -$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [string](../types/string.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) +* Get all stickerpacks -$MadelineProto->[messages->getChannelDialogs](messages_getChannelDialogs.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Dialogs](../types/messages_Dialogs.md) +* Get channel/supergruop dialogs -$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[InputChat](../types/InputChat.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get info about chats -$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) +* You cannot use this method directly, instead use $MadelineProto->get_dh_config(); -$MadelineProto->[messages->getDialogs](messages_getDialogs.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Dialogs](../types/messages_Dialogs.md) +* Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html -$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) +* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[messages->getHistory](messages_getHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset' => [int](../types/int.md), 'max_id' => [int](../types/int.md), 'min_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get previous messages of a group -$MadelineProto->[messages->getImportantHistory](messages_getImportantHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), 'min_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get important message history -$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get messages -$MadelineProto->[messages->getStickerSet](messages_getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) +* Get a stickerset -$MadelineProto->[messages->getStickers](messages_getStickers.md)(\['emoticon' => [string](../types/string.md), 'hash' => [string](../types/string.md), \]) === [$messages\_Stickers](../types/messages_Stickers.md) +* Get stickers -$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) === [$MessageMedia](../types/MessageMedia.md) +* Get webpage preview -$MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Import chat invite -$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'disabled' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Add a sticker set -$MadelineProto->[messages->readChannelHistory](messages_readChannelHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Mark channel/supergroup history as read -$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Mark messages as read in secret chats -$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) +* Mark messages as read -$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Mark message as read -$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_ReceivedNotifyMessage](../types/ReceivedNotifyMessage.md) +* Mark messages as read -$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) +* You cannot use this method directly -$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Search peers or messages -$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) +* Send a message to all users in the chat list -$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send message to secret chat -$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) +* Send a file to a secret chat -$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send a service message to a secret chat -$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) +* Send a media -$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), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Updates](../types/Updates.md) +* Send a message -$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Send typing notification to secret chat -$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) +* Change typing status -$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) +* Start a bot -$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) +* Remove a sticker set *** -

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) +

* Delete profile photos -$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) +* Get the profile photos of a user -$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), 'crop' => [InputPhotoCrop](../types/InputPhotoCrop.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) +* Update the profile photo (use photos->uploadProfilePhoto to upload the photo) -$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) +* Upload profile photo *** -

$MadelineProto->[updates->getChannelDifference](updates_getChannelDifference.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'filter' => [ChannelMessagesFilter](../types/ChannelMessagesFilter.md), 'pts' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$updates\_ChannelDifference](../types/updates_ChannelDifference.md) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates -$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) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates -$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates *** -

$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) +

* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info *** -

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) +

* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) +* Get info about users diff --git a/old_docs/API_docs_v40/methods/account_changePhone.md b/old_docs/API_docs_v40/methods/account_changePhone.md index aeb5c4bc..65f0b0d0 100644 --- a/old_docs/API_docs_v40/methods/account_changePhone.md +++ b/old_docs/API_docs_v40/methods/account_changePhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); diff --git a/old_docs/API_docs_v40/methods/account_checkUsername.md b/old_docs/API_docs_v40/methods/account_checkUsername.md index 0124bb38..08107762 100644 --- a/old_docs/API_docs_v40/methods/account_checkUsername.md +++ b/old_docs/API_docs_v40/methods/account_checkUsername.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v40/methods/account_deleteAccount.md b/old_docs/API_docs_v40/methods/account_deleteAccount.md index e8b46c24..3a6f4700 100644 --- a/old_docs/API_docs_v40/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v40/methods/account_deleteAccount.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); diff --git a/old_docs/API_docs_v40/methods/account_getAccountTTL.md b/old_docs/API_docs_v40/methods/account_getAccountTTL.md index 0cdd0b98..ab6a6ea1 100644 --- a/old_docs/API_docs_v40/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v40/methods/account_getAccountTTL.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); diff --git a/old_docs/API_docs_v40/methods/account_getAuthorizations.md b/old_docs/API_docs_v40/methods/account_getAuthorizations.md index f92db8fe..303203e4 100644 --- a/old_docs/API_docs_v40/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v40/methods/account_getAuthorizations.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_Authorizations = $MadelineProto->account->getAuthorizations(); diff --git a/old_docs/API_docs_v40/methods/account_getNotifySettings.md b/old_docs/API_docs_v40/methods/account_getNotifySettings.md index f00be12c..ad492f49 100644 --- a/old_docs/API_docs_v40/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v40/methods/account_getNotifySettings.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); diff --git a/old_docs/API_docs_v40/methods/account_getPassword.md b/old_docs/API_docs_v40/methods/account_getPassword.md index c189421d..2692dab1 100644 --- a/old_docs/API_docs_v40/methods/account_getPassword.md +++ b/old_docs/API_docs_v40/methods/account_getPassword.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_Password = $MadelineProto->account->getPassword(); diff --git a/old_docs/API_docs_v40/methods/account_getPasswordSettings.md b/old_docs/API_docs_v40/methods/account_getPasswordSettings.md index 96cb953e..2039d405 100644 --- a/old_docs/API_docs_v40/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v40/methods/account_getPasswordSettings.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PasswordSettings = $MadelineProto->account->getPasswordSettings(['current_password_hash' => 'bytes', ]); diff --git a/old_docs/API_docs_v40/methods/account_getPrivacy.md b/old_docs/API_docs_v40/methods/account_getPrivacy.md index 979bfb94..5480ffbb 100644 --- a/old_docs/API_docs_v40/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v40/methods/account_getPrivacy.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); diff --git a/old_docs/API_docs_v40/methods/account_getWallPapers.md b/old_docs/API_docs_v40/methods/account_getWallPapers.md index 89b281be..7c8bff39 100644 --- a/old_docs/API_docs_v40/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v40/methods/account_getWallPapers.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); diff --git a/old_docs/API_docs_v40/methods/account_registerDevice.md b/old_docs/API_docs_v40/methods/account_registerDevice.md index 651e753f..8dae7506 100644 --- a/old_docs/API_docs_v40/methods/account_registerDevice.md +++ b/old_docs/API_docs_v40/methods/account_registerDevice.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'app_sandbox' => Bool, 'lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v40/methods/account_resetAuthorization.md b/old_docs/API_docs_v40/methods/account_resetAuthorization.md index 4155d3c8..543aee08 100644 --- a/old_docs/API_docs_v40/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v40/methods/account_resetAuthorization.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetAuthorization(['hash' => long, ]); diff --git a/old_docs/API_docs_v40/methods/account_resetNotifySettings.md b/old_docs/API_docs_v40/methods/account_resetNotifySettings.md index ccc836a9..557373b0 100644 --- a/old_docs/API_docs_v40/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v40/methods/account_resetNotifySettings.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); diff --git a/old_docs/API_docs_v40/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v40/methods/account_sendChangePhoneCode.md index 0b384269..930e0f76 100644 --- a/old_docs/API_docs_v40/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v40/methods/account_sendChangePhoneCode.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_SentChangePhoneCode = $MadelineProto->account->sendChangePhoneCode(['phone_number' => 'string', ]); diff --git a/old_docs/API_docs_v40/methods/account_setAccountTTL.md b/old_docs/API_docs_v40/methods/account_setAccountTTL.md index 5100e62e..bacdd77a 100644 --- a/old_docs/API_docs_v40/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v40/methods/account_setAccountTTL.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); diff --git a/old_docs/API_docs_v40/methods/account_setPrivacy.md b/old_docs/API_docs_v40/methods/account_setPrivacy.md index fbcedae7..6e24ded7 100644 --- a/old_docs/API_docs_v40/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v40/methods/account_setPrivacy.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); diff --git a/old_docs/API_docs_v40/methods/account_unregisterDevice.md b/old_docs/API_docs_v40/methods/account_unregisterDevice.md index 1d2b7670..b666d91a 100644 --- a/old_docs/API_docs_v40/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v40/methods/account_unregisterDevice.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); diff --git a/old_docs/API_docs_v40/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v40/methods/account_updateDeviceLocked.md index ef816501..cd52093a 100644 --- a/old_docs/API_docs_v40/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v40/methods/account_updateDeviceLocked.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); diff --git a/old_docs/API_docs_v40/methods/account_updateNotifySettings.md b/old_docs/API_docs_v40/methods/account_updateNotifySettings.md index 18cbdb75..db020309 100644 --- a/old_docs/API_docs_v40/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v40/methods/account_updateNotifySettings.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); diff --git a/old_docs/API_docs_v40/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v40/methods/account_updatePasswordSettings.md index 0754dd63..8af1e37f 100644 --- a/old_docs/API_docs_v40/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v40/methods/account_updatePasswordSettings.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updatePasswordSettings(['current_password_hash' => 'bytes', 'new_settings' => account_PasswordInputSettings, ]); diff --git a/old_docs/API_docs_v40/methods/account_updateProfile.md b/old_docs/API_docs_v40/methods/account_updateProfile.md index f16398ed..caea3391 100644 --- a/old_docs/API_docs_v40/methods/account_updateProfile.md +++ b/old_docs/API_docs_v40/methods/account_updateProfile.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', ]); diff --git a/old_docs/API_docs_v40/methods/account_updateStatus.md b/old_docs/API_docs_v40/methods/account_updateStatus.md index 4b049e65..50b99b1e 100644 --- a/old_docs/API_docs_v40/methods/account_updateStatus.md +++ b/old_docs/API_docs_v40/methods/account_updateStatus.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); diff --git a/old_docs/API_docs_v40/methods/account_updateUsername.md b/old_docs/API_docs_v40/methods/account_updateUsername.md index 08d2abe0..7276e2aa 100644 --- a/old_docs/API_docs_v40/methods/account_updateUsername.md +++ b/old_docs/API_docs_v40/methods/account_updateUsername.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v40/methods/api_README.md b/old_docs/API_docs_v40/methods/api_README.md new file mode 100644 index 00000000..a71e2ae1 --- /dev/null +++ b/old_docs/API_docs_v40/methods/api_README.md @@ -0,0 +1,295 @@ +--- +title: Methods +description: List of methods +--- +# Methods +[Back to API documentation index](..) + +[Go to the new description-version method index](index.html) + +$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); + +$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); + +$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); + +$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); + +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); + + +$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); + +$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); + +$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); + +$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); + +$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); + + +$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); + +$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); + +*** +

$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) + +$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) + +$MadelineProto->[account->getAuthorizations](account_getAuthorizations.md)(\[\]) === [$account\_Authorizations](../types/account_Authorizations.md) + +$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) + +$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md) + +$MadelineProto->[account->getPasswordSettings](account_getPasswordSettings.md)(\['current_password_hash' => [bytes](../types/bytes.md), \]) === [$account\_PasswordSettings](../types/account_PasswordSettings.md) + +$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) + +$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) + +$MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->sendChangePhoneCode](account_sendChangePhoneCode.md)(\['phone_number' => [string](../types/string.md), \]) === [$account\_SentChangePhoneCode](../types/account_SentChangePhoneCode.md) + +$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[account->updateProfile](account_updateProfile.md)(\['first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), \]) === [$User](../types/User.md) + +$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) + +*** +

$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) + +$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) + +$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) + +$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$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) + +$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->recoverPassword](auth_recoverPassword.md)(\['code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->requestPasswordRecovery](auth_requestPasswordRecovery.md)(\[\]) === [$auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) + +$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->sendCall](auth_sendCall.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->sendSms](auth_sendSms.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$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) + +*** +

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) + +$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) + +$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) + +$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [string](../types/string.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) + +$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) + +$MadelineProto->[contacts->getSuggested](contacts_getSuggested.md)(\['limit' => [int](../types/int.md), \]) === [$contacts\_Suggested](../types/contacts_Suggested.md) + +$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) + +$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], 'replace' => [Bool](../types/Bool.md), \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) + +$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) + +$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) + +$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +*** +

$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) + +$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) + +$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) + +$MadelineProto->[help->getInviteText](help_getInviteText.md)(\['lang_code' => [string](../types/string.md), \]) === [$help\_InviteText](../types/help_InviteText.md) + +$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) + +$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) + +$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) + +*** +

$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) + +*** +

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeWithoutUpdates](invokeWithoutUpdates.md)(\['query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$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) + +$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) + +$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md) + +$MadelineProto->[messages->createChannel](messages_createChannel.md)(\['title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->deleteChannelMessages](messages_deleteChannelMessages.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) + +$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [string](../types/string.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) + +$MadelineProto->[messages->getChannelDialogs](messages_getChannelDialogs.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Dialogs](../types/messages_Dialogs.md) + +$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[InputChat](../types/InputChat.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) + +$MadelineProto->[messages->getDialogs](messages_getDialogs.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Dialogs](../types/messages_Dialogs.md) + +$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$MadelineProto->[messages->getHistory](messages_getHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset' => [int](../types/int.md), 'max_id' => [int](../types/int.md), 'min_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Messages](../types/messages_Messages.md) + +$MadelineProto->[messages->getImportantHistory](messages_getImportantHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), 'min_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Messages](../types/messages_Messages.md) + +$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) + +$MadelineProto->[messages->getStickerSet](messages_getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +$MadelineProto->[messages->getStickers](messages_getStickers.md)(\['emoticon' => [string](../types/string.md), 'hash' => [string](../types/string.md), \]) === [$messages\_Stickers](../types/messages_Stickers.md) + +$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) === [$MessageMedia](../types/MessageMedia.md) + +$MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'disabled' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->readChannelHistory](messages_readChannelHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_ReceivedNotifyMessage](../types/ReceivedNotifyMessage.md) + +$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) + +$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) + +$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) + +$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) + +$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$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) + +$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$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) + +$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), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) + +$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) + +$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), 'crop' => [InputPhotoCrop](../types/InputPhotoCrop.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) + +$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) + +*** +

$MadelineProto->[updates->getChannelDifference](updates_getChannelDifference.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'filter' => [ChannelMessagesFilter](../types/ChannelMessagesFilter.md), 'pts' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$updates\_ChannelDifference](../types/updates_ChannelDifference.md) + +$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) + +$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) + +*** +

$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) + +$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) + +$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) + +*** +

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) + +$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) + diff --git a/old_docs/API_docs_v40/methods/auth_checkPhone.md b/old_docs/API_docs_v40/methods/auth_checkPhone.md index 291221de..1826ce63 100644 --- a/old_docs/API_docs_v40/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v40/methods/auth_checkPhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); diff --git a/old_docs/API_docs_v40/methods/auth_recoverPassword.md b/old_docs/API_docs_v40/methods/auth_recoverPassword.md index cdc9bd7d..5e37b0f3 100644 --- a/old_docs/API_docs_v40/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v40/methods/auth_recoverPassword.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_Authorization = $MadelineProto->auth->recoverPassword(['code' => 'string', ]); diff --git a/old_docs/API_docs_v40/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v40/methods/auth_requestPasswordRecovery.md index e18c6c93..c69d0c49 100644 --- a/old_docs/API_docs_v40/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v40/methods/auth_requestPasswordRecovery.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_PasswordRecovery = $MadelineProto->auth->requestPasswordRecovery(); diff --git a/old_docs/API_docs_v40/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v40/methods/auth_resetAuthorizations.md index 47feea16..a46c880d 100644 --- a/old_docs/API_docs_v40/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v40/methods/auth_resetAuthorizations.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); diff --git a/old_docs/API_docs_v40/methods/auth_sendCall.md b/old_docs/API_docs_v40/methods/auth_sendCall.md index e2bd2855..5947cda7 100644 --- a/old_docs/API_docs_v40/methods/auth_sendCall.md +++ b/old_docs/API_docs_v40/methods/auth_sendCall.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendCall(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v40/methods/auth_sendInvites.md b/old_docs/API_docs_v40/methods/auth_sendInvites.md index be32fe6b..9b88b4a3 100644 --- a/old_docs/API_docs_v40/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v40/methods/auth_sendInvites.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); diff --git a/old_docs/API_docs_v40/methods/auth_sendSms.md b/old_docs/API_docs_v40/methods/auth_sendSms.md index a17fdd3a..41340660 100644 --- a/old_docs/API_docs_v40/methods/auth_sendSms.md +++ b/old_docs/API_docs_v40/methods/auth_sendSms.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendSms(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v40/methods/contacts_block.md b/old_docs/API_docs_v40/methods/contacts_block.md index d0729d30..e592cace 100644 --- a/old_docs/API_docs_v40/methods/contacts_block.md +++ b/old_docs/API_docs_v40/methods/contacts_block.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v40/methods/contacts_deleteContact.md b/old_docs/API_docs_v40/methods/contacts_deleteContact.md index b8c17544..1a3f2a27 100644 --- a/old_docs/API_docs_v40/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v40/methods/contacts_deleteContact.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v40/methods/contacts_deleteContacts.md b/old_docs/API_docs_v40/methods/contacts_deleteContacts.md index 64c69460..f6627599 100644 --- a/old_docs/API_docs_v40/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v40/methods/contacts_deleteContacts.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v40/methods/contacts_exportCard.md b/old_docs/API_docs_v40/methods/contacts_exportCard.md index b05f57ce..1d2129f3 100644 --- a/old_docs/API_docs_v40/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v40/methods/contacts_exportCard.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); diff --git a/old_docs/API_docs_v40/methods/contacts_getBlocked.md b/old_docs/API_docs_v40/methods/contacts_getBlocked.md index d7d8c5cc..44d24aba 100644 --- a/old_docs/API_docs_v40/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v40/methods/contacts_getBlocked.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v40/methods/contacts_getContacts.md b/old_docs/API_docs_v40/methods/contacts_getContacts.md index 1ab8af27..83c4846f 100644 --- a/old_docs/API_docs_v40/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v40/methods/contacts_getContacts.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v40/methods/contacts_getStatuses.md b/old_docs/API_docs_v40/methods/contacts_getStatuses.md index b927a140..5cef3084 100644 --- a/old_docs/API_docs_v40/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v40/methods/contacts_getStatuses.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); diff --git a/old_docs/API_docs_v40/methods/contacts_getSuggested.md b/old_docs/API_docs_v40/methods/contacts_getSuggested.md index 302e60e5..1ce04bef 100644 --- a/old_docs/API_docs_v40/methods/contacts_getSuggested.md +++ b/old_docs/API_docs_v40/methods/contacts_getSuggested.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Suggested = $MadelineProto->contacts->getSuggested(['limit' => int, ]); diff --git a/old_docs/API_docs_v40/methods/contacts_importCard.md b/old_docs/API_docs_v40/methods/contacts_importCard.md index 81a1e138..89c96657 100644 --- a/old_docs/API_docs_v40/methods/contacts_importCard.md +++ b/old_docs/API_docs_v40/methods/contacts_importCard.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); diff --git a/old_docs/API_docs_v40/methods/contacts_importContacts.md b/old_docs/API_docs_v40/methods/contacts_importContacts.md index 578e5dfd..cd3d6615 100644 --- a/old_docs/API_docs_v40/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v40/methods/contacts_importContacts.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], 'replace' => Bool, ]); diff --git a/old_docs/API_docs_v40/methods/contacts_search.md b/old_docs/API_docs_v40/methods/contacts_search.md index 68daecd6..64ff748e 100644 --- a/old_docs/API_docs_v40/methods/contacts_search.md +++ b/old_docs/API_docs_v40/methods/contacts_search.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); diff --git a/old_docs/API_docs_v40/methods/contacts_unblock.md b/old_docs/API_docs_v40/methods/contacts_unblock.md index f7d151b9..ec72ae2d 100644 --- a/old_docs/API_docs_v40/methods/contacts_unblock.md +++ b/old_docs/API_docs_v40/methods/contacts_unblock.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v40/methods/help_getAppChangelog.md b/old_docs/API_docs_v40/methods/help_getAppChangelog.md index dbca4fc8..eb48fabb 100644 --- a/old_docs/API_docs_v40/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v40/methods/help_getAppChangelog.md @@ -32,12 +32,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_AppChangelog = $MadelineProto->help->getAppChangelog(['device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v40/methods/help_getAppUpdate.md b/old_docs/API_docs_v40/methods/help_getAppUpdate.md index f97da105..ad5b8228 100644 --- a/old_docs/API_docs_v40/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v40/methods/help_getAppUpdate.md @@ -32,12 +32,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(['device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v40/methods/help_getConfig.md b/old_docs/API_docs_v40/methods/help_getConfig.md index 16e25c68..ca4bfc25 100644 --- a/old_docs/API_docs_v40/methods/help_getConfig.md +++ b/old_docs/API_docs_v40/methods/help_getConfig.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); diff --git a/old_docs/API_docs_v40/methods/help_getInviteText.md b/old_docs/API_docs_v40/methods/help_getInviteText.md index 0831ba5f..ad6ac262 100644 --- a/old_docs/API_docs_v40/methods/help_getInviteText.md +++ b/old_docs/API_docs_v40/methods/help_getInviteText.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(['lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v40/methods/help_getNearestDc.md b/old_docs/API_docs_v40/methods/help_getNearestDc.md index 35a8bf91..458f60ab 100644 --- a/old_docs/API_docs_v40/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v40/methods/help_getNearestDc.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); diff --git a/old_docs/API_docs_v40/methods/help_getSupport.md b/old_docs/API_docs_v40/methods/help_getSupport.md index a5bab0f2..9ee25b00 100644 --- a/old_docs/API_docs_v40/methods/help_getSupport.md +++ b/old_docs/API_docs_v40/methods/help_getSupport.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); diff --git a/old_docs/API_docs_v40/methods/help_saveAppLog.md b/old_docs/API_docs_v40/methods/help_saveAppLog.md index 0165b6e3..a7884c47 100644 --- a/old_docs/API_docs_v40/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v40/methods/help_saveAppLog.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); diff --git a/old_docs/API_docs_v40/methods/initConnection.md b/old_docs/API_docs_v40/methods/initConnection.md index 2d3d86ad..73620276 100644 --- a/old_docs/API_docs_v40/methods/initConnection.md +++ b/old_docs/API_docs_v40/methods/initConnection.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->initConnection(['api_id' => int, 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', 'query' => !X, ]); diff --git a/old_docs/API_docs_v40/methods/invokeAfterMsg.md b/old_docs/API_docs_v40/methods/invokeAfterMsg.md index e33a2c93..8e953e78 100644 --- a/old_docs/API_docs_v40/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v40/methods/invokeAfterMsg.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); diff --git a/old_docs/API_docs_v40/methods/invokeAfterMsgs.md b/old_docs/API_docs_v40/methods/invokeAfterMsgs.md index 3150a613..bc8a83b7 100644 --- a/old_docs/API_docs_v40/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v40/methods/invokeAfterMsgs.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); diff --git a/old_docs/API_docs_v40/methods/invokeWithLayer.md b/old_docs/API_docs_v40/methods/invokeWithLayer.md index 71d02abb..8a0c4e79 100644 --- a/old_docs/API_docs_v40/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v40/methods/invokeWithLayer.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); diff --git a/old_docs/API_docs_v40/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v40/methods/invokeWithoutUpdates.md index 2bab236a..2d90a776 100644 --- a/old_docs/API_docs_v40/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v40/methods/invokeWithoutUpdates.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeWithoutUpdates(['query' => !X, ]); diff --git a/old_docs/API_docs_v40/methods/messages_addChatUser.md b/old_docs/API_docs_v40/methods/messages_addChatUser.md index 3e4c5ccc..c6ef275f 100644 --- a/old_docs/API_docs_v40/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v40/methods/messages_addChatUser.md @@ -46,12 +46,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); diff --git a/old_docs/API_docs_v40/methods/messages_checkChatInvite.md b/old_docs/API_docs_v40/methods/messages_checkChatInvite.md index de1d9ff4..cea63313 100644 --- a/old_docs/API_docs_v40/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v40/methods/messages_checkChatInvite.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ChatInvite = $MadelineProto->messages->checkChatInvite(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v40/methods/messages_createChannel.md b/old_docs/API_docs_v40/methods/messages_createChannel.md index 2f7548e0..621f9125 100644 --- a/old_docs/API_docs_v40/methods/messages_createChannel.md +++ b/old_docs/API_docs_v40/methods/messages_createChannel.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->createChannel(['title' => 'string', ]); diff --git a/old_docs/API_docs_v40/methods/messages_createChat.md b/old_docs/API_docs_v40/methods/messages_createChat.md index 68c0263a..966f58dc 100644 --- a/old_docs/API_docs_v40/methods/messages_createChat.md +++ b/old_docs/API_docs_v40/methods/messages_createChat.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); diff --git a/old_docs/API_docs_v40/methods/messages_deleteChannelMessages.md b/old_docs/API_docs_v40/methods/messages_deleteChannelMessages.md index 58ec2f22..fd6d49cc 100644 --- a/old_docs/API_docs_v40/methods/messages_deleteChannelMessages.md +++ b/old_docs/API_docs_v40/methods/messages_deleteChannelMessages.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->deleteChannelMessages(['peer' => InputPeer, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v40/methods/messages_deleteChatUser.md b/old_docs/API_docs_v40/methods/messages_deleteChatUser.md index 0a6830de..9a9227ba 100644 --- a/old_docs/API_docs_v40/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v40/methods/messages_deleteChatUser.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v40/methods/messages_deleteHistory.md b/old_docs/API_docs_v40/methods/messages_deleteHistory.md index a2120105..77b8987e 100644 --- a/old_docs/API_docs_v40/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v40/methods/messages_deleteHistory.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['peer' => InputPeer, 'offset' => int, ]); diff --git a/old_docs/API_docs_v40/methods/messages_deleteMessages.md b/old_docs/API_docs_v40/methods/messages_deleteMessages.md index 41570996..fa043e1c 100644 --- a/old_docs/API_docs_v40/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v40/methods/messages_deleteMessages.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v40/methods/messages_editChatPhoto.md b/old_docs/API_docs_v40/methods/messages_editChatPhoto.md index 122913c4..5827a5cc 100644 --- a/old_docs/API_docs_v40/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v40/methods/messages_editChatPhoto.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); diff --git a/old_docs/API_docs_v40/methods/messages_editChatTitle.md b/old_docs/API_docs_v40/methods/messages_editChatTitle.md index 3a1e974b..2e69d790 100644 --- a/old_docs/API_docs_v40/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v40/methods/messages_editChatTitle.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); diff --git a/old_docs/API_docs_v40/methods/messages_exportChatInvite.md b/old_docs/API_docs_v40/methods/messages_exportChatInvite.md index 98685d96..ec80e207 100644 --- a/old_docs/API_docs_v40/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v40/methods/messages_exportChatInvite.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]); diff --git a/old_docs/API_docs_v40/methods/messages_forwardMessage.md b/old_docs/API_docs_v40/methods/messages_forwardMessage.md index 45b7a07f..d6916437 100644 --- a/old_docs/API_docs_v40/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v40/methods/messages_forwardMessage.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); diff --git a/old_docs/API_docs_v40/methods/messages_forwardMessages.md b/old_docs/API_docs_v40/methods/messages_forwardMessages.md index 14f42867..cecf057b 100644 --- a/old_docs/API_docs_v40/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v40/methods/messages_forwardMessages.md @@ -58,12 +58,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessages(['peer' => InputPeer, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v40/methods/messages_getAllStickers.md b/old_docs/API_docs_v40/methods/messages_getAllStickers.md index d4193723..322f9b0b 100644 --- a/old_docs/API_docs_v40/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v40/methods/messages_getAllStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v40/methods/messages_getChannelDialogs.md b/old_docs/API_docs_v40/methods/messages_getChannelDialogs.md index ac189c7c..a0214662 100644 --- a/old_docs/API_docs_v40/methods/messages_getChannelDialogs.md +++ b/old_docs/API_docs_v40/methods/messages_getChannelDialogs.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getChannelDialogs(['offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v40/methods/messages_getChats.md b/old_docs/API_docs_v40/methods/messages_getChats.md index 68132894..2fe86556 100644 --- a/old_docs/API_docs_v40/methods/messages_getChats.md +++ b/old_docs/API_docs_v40/methods/messages_getChats.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getChats(['id' => [InputChat, InputChat], ]); diff --git a/old_docs/API_docs_v40/methods/messages_getDialogs.md b/old_docs/API_docs_v40/methods/messages_getDialogs.md index 72311136..269c6897 100644 --- a/old_docs/API_docs_v40/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v40/methods/messages_getDialogs.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v40/methods/messages_getHistory.md b/old_docs/API_docs_v40/methods/messages_getHistory.md index a5bcafc3..429092a0 100644 --- a/old_docs/API_docs_v40/methods/messages_getHistory.md +++ b/old_docs/API_docs_v40/methods/messages_getHistory.md @@ -45,12 +45,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getHistory(['peer' => InputPeer, 'offset' => int, 'max_id' => int, 'min_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v40/methods/messages_getImportantHistory.md b/old_docs/API_docs_v40/methods/messages_getImportantHistory.md index 905c7400..d8659cdb 100644 --- a/old_docs/API_docs_v40/methods/messages_getImportantHistory.md +++ b/old_docs/API_docs_v40/methods/messages_getImportantHistory.md @@ -32,12 +32,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getImportantHistory(['peer' => InputPeer, 'max_id' => int, 'min_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v40/methods/messages_getMessages.md b/old_docs/API_docs_v40/methods/messages_getMessages.md index 86d1da8a..d538cb5f 100644 --- a/old_docs/API_docs_v40/methods/messages_getMessages.md +++ b/old_docs/API_docs_v40/methods/messages_getMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v40/methods/messages_getStickerSet.md b/old_docs/API_docs_v40/methods/messages_getStickerSet.md index c86807e4..c9140ab2 100644 --- a/old_docs/API_docs_v40/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v40/methods/messages_getStickerSet.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSet = $MadelineProto->messages->getStickerSet(['stickerset' => InputStickerSet, ]); diff --git a/old_docs/API_docs_v40/methods/messages_getStickers.md b/old_docs/API_docs_v40/methods/messages_getStickers.md index 4854696d..d2ea57cf 100644 --- a/old_docs/API_docs_v40/methods/messages_getStickers.md +++ b/old_docs/API_docs_v40/methods/messages_getStickers.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Stickers = $MadelineProto->messages->getStickers(['emoticon' => 'string', 'hash' => 'string', ]); diff --git a/old_docs/API_docs_v40/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v40/methods/messages_getWebPagePreview.md index d01bdd32..e8b20c5d 100644 --- a/old_docs/API_docs_v40/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v40/methods/messages_getWebPagePreview.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $MessageMedia = $MadelineProto->messages->getWebPagePreview(['message' => 'string', ]); diff --git a/old_docs/API_docs_v40/methods/messages_importChatInvite.md b/old_docs/API_docs_v40/methods/messages_importChatInvite.md index 0d6cd7c8..b1830a9b 100644 --- a/old_docs/API_docs_v40/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v40/methods/messages_importChatInvite.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->importChatInvite(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v40/methods/messages_installStickerSet.md b/old_docs/API_docs_v40/methods/messages_installStickerSet.md index 04b693cd..77c5a2a5 100644 --- a/old_docs/API_docs_v40/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v40/methods/messages_installStickerSet.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->installStickerSet(['stickerset' => InputStickerSet, 'disabled' => Bool, ]); diff --git a/old_docs/API_docs_v40/methods/messages_readChannelHistory.md b/old_docs/API_docs_v40/methods/messages_readChannelHistory.md index fa29ad76..50661907 100644 --- a/old_docs/API_docs_v40/methods/messages_readChannelHistory.md +++ b/old_docs/API_docs_v40/methods/messages_readChannelHistory.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->readChannelHistory(['peer' => InputPeer, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v40/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v40/methods/messages_readEncryptedHistory.md index 39b110e3..2ba4cca4 100644 --- a/old_docs/API_docs_v40/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v40/methods/messages_readEncryptedHistory.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); diff --git a/old_docs/API_docs_v40/methods/messages_readHistory.md b/old_docs/API_docs_v40/methods/messages_readHistory.md index 8a00bf47..7d5d7e35 100644 --- a/old_docs/API_docs_v40/methods/messages_readHistory.md +++ b/old_docs/API_docs_v40/methods/messages_readHistory.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, 'offset' => int, ]); diff --git a/old_docs/API_docs_v40/methods/messages_readMessageContents.md b/old_docs/API_docs_v40/methods/messages_readMessageContents.md index 9bb1bee8..a09cb63e 100644 --- a/old_docs/API_docs_v40/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v40/methods/messages_readMessageContents.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v40/methods/messages_receivedMessages.md b/old_docs/API_docs_v40/methods/messages_receivedMessages.md index 7aab635f..b5e87992 100644 --- a/old_docs/API_docs_v40/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v40/methods/messages_receivedMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_ReceivedNotifyMessage = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); diff --git a/old_docs/API_docs_v40/methods/messages_search.md b/old_docs/API_docs_v40/methods/messages_search.md index 7821d2b7..735ddf47 100644 --- a/old_docs/API_docs_v40/methods/messages_search.md +++ b/old_docs/API_docs_v40/methods/messages_search.md @@ -49,12 +49,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->search(['peer' => InputPeer, 'q' => 'string', 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v40/methods/messages_sendBroadcast.md b/old_docs/API_docs_v40/methods/messages_sendBroadcast.md index 28e248a9..6cff8b29 100644 --- a/old_docs/API_docs_v40/methods/messages_sendBroadcast.md +++ b/old_docs/API_docs_v40/methods/messages_sendBroadcast.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendBroadcast(['contacts' => [InputUser, InputUser], 'message' => 'string', 'media' => InputMedia, ]); diff --git a/old_docs/API_docs_v40/methods/messages_sendEncrypted.md b/old_docs/API_docs_v40/methods/messages_sendEncrypted.md index d48f88d7..76305f32 100644 --- a/old_docs/API_docs_v40/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v40/methods/messages_sendEncrypted.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v40/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v40/methods/messages_sendEncryptedFile.md index 4fd0648e..8db2ead9 100644 --- a/old_docs/API_docs_v40/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v40/methods/messages_sendEncryptedFile.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); diff --git a/old_docs/API_docs_v40/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v40/methods/messages_sendEncryptedService.md index d66894bf..c7836c94 100644 --- a/old_docs/API_docs_v40/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v40/methods/messages_sendEncryptedService.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v40/methods/messages_sendMedia.md b/old_docs/API_docs_v40/methods/messages_sendMedia.md index 1319a408..552a60d0 100644 --- a/old_docs/API_docs_v40/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v40/methods/messages_sendMedia.md @@ -60,12 +60,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendMedia(['peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, 'reply_markup' => ReplyMarkup, ]); diff --git a/old_docs/API_docs_v40/methods/messages_sendMessage.md b/old_docs/API_docs_v40/methods/messages_sendMessage.md index d654647d..494f9871 100644 --- a/old_docs/API_docs_v40/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v40/methods/messages_sendMessage.md @@ -61,12 +61,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendMessage(['peer' => InputPeer, 'reply_to_msg_id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v40/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v40/methods/messages_setEncryptedTyping.md index e9afe99c..4e7450eb 100644 --- a/old_docs/API_docs_v40/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v40/methods/messages_setEncryptedTyping.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); diff --git a/old_docs/API_docs_v40/methods/messages_setTyping.md b/old_docs/API_docs_v40/methods/messages_setTyping.md index bea4982b..a2b94823 100644 --- a/old_docs/API_docs_v40/methods/messages_setTyping.md +++ b/old_docs/API_docs_v40/methods/messages_setTyping.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); diff --git a/old_docs/API_docs_v40/methods/messages_startBot.md b/old_docs/API_docs_v40/methods/messages_startBot.md index 5d86f690..82054827 100644 --- a/old_docs/API_docs_v40/methods/messages_startBot.md +++ b/old_docs/API_docs_v40/methods/messages_startBot.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'chat_id' => InputPeer, 'start_param' => 'string', ]); diff --git a/old_docs/API_docs_v40/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v40/methods/messages_uninstallStickerSet.md index 6d04e847..26b2fbb3 100644 --- a/old_docs/API_docs_v40/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v40/methods/messages_uninstallStickerSet.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->uninstallStickerSet(['stickerset' => InputStickerSet, ]); diff --git a/old_docs/API_docs_v40/methods/photos_deletePhotos.md b/old_docs/API_docs_v40/methods/photos_deletePhotos.md index b9daca10..937aadd5 100644 --- a/old_docs/API_docs_v40/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v40/methods/photos_deletePhotos.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); diff --git a/old_docs/API_docs_v40/methods/photos_getUserPhotos.md b/old_docs/API_docs_v40/methods/photos_getUserPhotos.md index ea27a44f..d1c15e90 100644 --- a/old_docs/API_docs_v40/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v40/methods/photos_getUserPhotos.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => long, 'limit' => int, ]); diff --git a/old_docs/API_docs_v40/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v40/methods/photos_updateProfilePhoto.md index 2d1e1e76..4c5c517f 100644 --- a/old_docs/API_docs_v40/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v40/methods/photos_updateProfilePhoto.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, 'crop' => InputPhotoCrop, ]); diff --git a/old_docs/API_docs_v40/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v40/methods/photos_uploadProfilePhoto.md index 6ff4ddf5..3d7d301b 100644 --- a/old_docs/API_docs_v40/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v40/methods/photos_uploadProfilePhoto.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, 'caption' => 'string', 'geo_point' => InputGeoPoint, 'crop' => InputPhotoCrop, ]); diff --git a/old_docs/API_docs_v40/methods/users_getUsers.md b/old_docs/API_docs_v40/methods/users_getUsers.md index ef1c7fd8..bce13ee6 100644 --- a/old_docs/API_docs_v40/methods/users_getUsers.md +++ b/old_docs/API_docs_v40/methods/users_getUsers.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v41/README.md b/old_docs/API_docs_v41/README.md index 7f40961e..9ae5a061 100644 --- a/old_docs/API_docs_v41/README.md +++ b/old_docs/API_docs_v41/README.md @@ -4,11 +4,11 @@ description: MadelineProto API documentation (layer v41) --- # MadelineProto API documentation (layer v41) +[Back to main documentation](..) + + [Methods](methods/) [Constructors](constructors/) -[Types](types/) - - -[Back to main documentation](..) +[Types](types/) \ No newline at end of file diff --git a/old_docs/API_docs_v41/methods/README.md b/old_docs/API_docs_v41/methods/README.md index 922d3971..ce60b423 100644 --- a/old_docs/API_docs_v41/methods/README.md +++ b/old_docs/API_docs_v41/methods/README.md @@ -1,349 +1,344 @@ --- title: Methods -description: List of methods +description: What do you want to do? --- -# Methods -[Back to API documentation index](..) +# What do you want to do? +[Go back to API documentation index](..) +[Go to the old code-version method index](api_index.html) -$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); +* [Logout](https://docs.madelineproto.xyz/logout.html) -$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); +* [Login](https://docs.madelineproto.xyz/docs/LOGIN.html) -$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); +* [Get all chats, broadcast a message to all chats](https://docs.madelineproto.xyz/docs/DIALOGS.html) -$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); +* [Get the full participant list of a channel/group/supergroup](https://docs.madelineproto.xyz/get_pwr_chat.html) -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); +* [Get full info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_full_info.html) +* [Get info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_info.html) -$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); +* [Get info about the currently logged-in user](https://docs.madelineproto.xyz/get_self.html) -$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); +* [Upload or download files up to 1.5 GB](https://docs.madelineproto.xyz/docs/FILES.html) -$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); +* [Make a phone call and play a song](https://docs.madelineproto.xyz/docs/CALLS.html) -$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); - -$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); - - -$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); - -$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); +* [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) *** -

$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) +

* Change the phone number associated to this account -$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Check if this username is available -$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Delete this account -$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) +* Get account TTL -$MadelineProto->[account->getAuthorizations](account_getAuthorizations.md)(\[\]) === [$account\_Authorizations](../types/account_Authorizations.md) +* Get all logged-in authorizations -$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) +* Get notification settings -$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md) +* Get the current password -$MadelineProto->[account->getPasswordSettings](account_getPasswordSettings.md)(\['current_password_hash' => [bytes](../types/bytes.md), \]) === [$account\_PasswordSettings](../types/account_PasswordSettings.md) +* Get the current 2FA settings -$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Get privacy settings -$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) +* Returns a list of available wallpapers. -$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) +* Register device for push notifications -$MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) +* Delete a certain session -$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) +* Reset all notification settings -$MadelineProto->[account->sendChangePhoneCode](account_sendChangePhoneCode.md)(\['phone_number' => [string](../types/string.md), \]) === [$account\_SentChangePhoneCode](../types/account_SentChangePhoneCode.md) +* Change the phone number -$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) +* Set account TTL -$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Set privacy settings -$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Stop sending PUSH notifications to app -$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Disable all notifications for a certain period -$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) +* Change notification settings -$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) +* Update the 2FA password settings -$MadelineProto->[account->updateProfile](account_updateProfile.md)(\['first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), \]) === [$User](../types/User.md) +* Update profile info -$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Update online status -$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) +* Update this user's username *** -

$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) +

* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info -$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) +* Check if this phone number is registered on telegram -$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) +* You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$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) +* You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->recoverPassword](auth_recoverPassword.md)(\['code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account -$MadelineProto->[auth->requestPasswordRecovery](auth_requestPasswordRecovery.md)(\[\]) === [$auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) +* Send an email to recover the 2FA password -$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) +* Delete all logged-in sessions. -$MadelineProto->[auth->sendCall](auth_sendCall.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Send verification phone call -$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) +* Use phone_login instead -$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Invite friends to telegram! -$MadelineProto->[auth->sendSms](auth_sendSms.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Send SMS verification code -$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) +* You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) -$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) +* You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) *** -

$MadelineProto->[channels->checkUsername](channels_checkUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +

* Check if this username is free and can be assigned to a channel/supergroup -$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) +* Create channel/supergroup -$MadelineProto->[channels->deleteChannel](channels_deleteChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Delete a channel/supergroup -$MadelineProto->[channels->deleteMessages](channels_deleteMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Delete channel/supergroup messages -$MadelineProto->[channels->deleteUserHistory](channels_deleteUserHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Delete all messages of a user in a channel/supergroup -$MadelineProto->[channels->editAbout](channels_editAbout.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'about' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Edit the about text of a channel/supergroup -$MadelineProto->[channels->editAdmin](channels_editAdmin.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), 'role' => [ChannelParticipantRole](../types/ChannelParticipantRole.md), \]) === [$Bool](../types/Bool.md) +* Edit admin permissions of a user in a channel/supergroup -$MadelineProto->[channels->editPhoto](channels_editPhoto.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) +* Edit the photo of a supergroup/channel -$MadelineProto->[channels->editTitle](channels_editTitle.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Edit the title of a supergroup/channel -$MadelineProto->[channels->exportInvite](channels_exportInvite.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) +* Export the invite link of a channel -$MadelineProto->[channels->getChannels](channels_getChannels.md)(\['id' => \[[InputChannel](../types/InputChannel.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get info about multiple channels/supergroups -$MadelineProto->[channels->getDialogs](channels_getDialogs.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Dialogs](../types/messages_Dialogs.md) +* Get channel dialogs -$MadelineProto->[channels->getFullChannel](channels_getFullChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) +* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[channels->getImportantHistory](channels_getImportantHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'offset_id' => [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) +* Get important channel/supergroup history -$MadelineProto->[channels->getMessages](channels_getMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get channel/supergroup messages -$MadelineProto->[channels->getParticipant](channels_getParticipant.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) +* Get info about a certain channel/supergroup participant -$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) +* Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead) -$MadelineProto->[channels->inviteToChannel](channels_inviteToChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'users' => \[[InputUser](../types/InputUser.md)\], \]) === [$Updates](../types/Updates.md) +* Add users to channel/supergroup -$MadelineProto->[channels->joinChannel](channels_joinChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Join a channel/supergroup -$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) +* Kick user from channel -$MadelineProto->[channels->leaveChannel](channels_leaveChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Leave a channel/supergroup -$MadelineProto->[channels->readHistory](channels_readHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Mark channel/supergroup history as read -$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) +* Report a supergroup/channel for spam -$MadelineProto->[channels->toggleComments](channels_toggleComments.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Enable channel comments -$MadelineProto->[channels->updateUsername](channels_updateUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Update the username of a supergroup/channel *** -

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +

* Block a user -$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) +* Delete a contact -$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) +* Delete multiple contacts -$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) +* Export contact as card -$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) +* Get blocked users -$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [string](../types/string.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) +* Get info about a certain contact -$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) +* Get online status of all users -$MadelineProto->[contacts->getSuggested](contacts_getSuggested.md)(\['limit' => [int](../types/int.md), \]) === [$contacts\_Suggested](../types/contacts_Suggested.md) +* Get suggested contacts -$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) +* Import card as contact -$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], 'replace' => [Bool](../types/Bool.md), \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) +* Add phone number as contact -$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) +* You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) +* Search contacts -$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +* Unblock a user *** -

$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) +

* Get the changelog of this app -$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) +* Get info about app updates -$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) +* Get server configuration -$MadelineProto->[help->getInviteText](help_getInviteText.md)(\['lang_code' => [string](../types/string.md), \]) === [$help\_InviteText](../types/help_InviteText.md) +* Get invitation text -$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) +* Get nearest datacenter -$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) +* Get info of support user -$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) +* Log data for developer of this app *** -

$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) +

* Initializes connection and save information on the user's device and application. *** -

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invokes a query after successfull completion of one of the previous queries. *** -

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Result type returned by a current query. *** -

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invoke this method with layer X *** -

$MadelineProto->[invokeWithoutUpdates](invokeWithoutUpdates.md)(\['query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invoke with method without returning updates in the socket *** -

$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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Add a user to a normal chat (use channels->inviteToChannel for supergroups) -$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md) +* Check if an invitation link is valid -$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Create a chat (not supergroup) -$MadelineProto->[messages->deactivateChat](messages_deactivateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Deactivate chat -$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md) +* Delete a user from a chat (not supergroup) -$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Delete chat history -$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Delete messages -$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Edit admin permissions -$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) +* Edit the photo of a normal chat (not supergroup) -$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Edit the title of a normal chat (not supergroup) -$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) +* Export chat invite -$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) +* Forward message -$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['broadcast' => [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) +* Forward messages -$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [string](../types/string.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) +* Get all stickerpacks -$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get info about chats -$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) +* You cannot use this method directly, instead use $MadelineProto->get_dh_config(); -$MadelineProto->[messages->getDialogs](messages_getDialogs.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Dialogs](../types/messages_Dialogs.md) +* Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html -$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) +* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[messages->getHistory](messages_getHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset_id' => [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) +* Get previous messages of a group -$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get messages -$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) +* Get and increase message views -$MadelineProto->[messages->getStickerSet](messages_getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) +* Get a stickerset -$MadelineProto->[messages->getStickers](messages_getStickers.md)(\['emoticon' => [string](../types/string.md), 'hash' => [string](../types/string.md), \]) === [$messages\_Stickers](../types/messages_Stickers.md) +* Get stickers -$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) === [$MessageMedia](../types/MessageMedia.md) +* Get webpage preview -$MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Import chat invite -$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'disabled' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Add a sticker set -$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) +* Convert chat to supergroup -$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Mark messages as read in secret chats -$MadelineProto->[messages->readHistory](messages_readHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Mark messages as read -$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Mark message as read -$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_ReceivedNotifyMessage](../types/ReceivedNotifyMessage.md) +* Mark messages as read -$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) +* You cannot use this method directly -$MadelineProto->[messages->reportSpam](messages_reportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Report a peer for spam -$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Search peers or messages -$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) +* Global message search -$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) +* Send a message to all users in the chat list -$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send message to secret chat -$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) +* Send a file to a secret chat -$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send a service message to a secret chat -$MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['broadcast' => [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) +* Send a media -$MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'broadcast' => [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) +* Send a message -$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Send typing notification to secret chat -$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) +* Change typing status -$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) +* Start a bot -$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Enable all users are admins in normal groups (not supergroups) -$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) +* Remove a sticker set *** -

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) +

* Delete profile photos -$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) +* Get the profile photos of a user -$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), 'crop' => [InputPhotoCrop](../types/InputPhotoCrop.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) +* Update the profile photo (use photos->uploadProfilePhoto to upload the photo) -$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) +* Upload profile photo *** -

$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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates -$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) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates -$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates *** -

$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) +

* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info *** -

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) +

* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) +* Get info about users diff --git a/old_docs/API_docs_v41/methods/account_changePhone.md b/old_docs/API_docs_v41/methods/account_changePhone.md index aeb5c4bc..65f0b0d0 100644 --- a/old_docs/API_docs_v41/methods/account_changePhone.md +++ b/old_docs/API_docs_v41/methods/account_changePhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); diff --git a/old_docs/API_docs_v41/methods/account_checkUsername.md b/old_docs/API_docs_v41/methods/account_checkUsername.md index 0124bb38..08107762 100644 --- a/old_docs/API_docs_v41/methods/account_checkUsername.md +++ b/old_docs/API_docs_v41/methods/account_checkUsername.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v41/methods/account_deleteAccount.md b/old_docs/API_docs_v41/methods/account_deleteAccount.md index e8b46c24..3a6f4700 100644 --- a/old_docs/API_docs_v41/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v41/methods/account_deleteAccount.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); diff --git a/old_docs/API_docs_v41/methods/account_getAccountTTL.md b/old_docs/API_docs_v41/methods/account_getAccountTTL.md index 0cdd0b98..ab6a6ea1 100644 --- a/old_docs/API_docs_v41/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v41/methods/account_getAccountTTL.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); diff --git a/old_docs/API_docs_v41/methods/account_getAuthorizations.md b/old_docs/API_docs_v41/methods/account_getAuthorizations.md index f92db8fe..303203e4 100644 --- a/old_docs/API_docs_v41/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v41/methods/account_getAuthorizations.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_Authorizations = $MadelineProto->account->getAuthorizations(); diff --git a/old_docs/API_docs_v41/methods/account_getNotifySettings.md b/old_docs/API_docs_v41/methods/account_getNotifySettings.md index f00be12c..ad492f49 100644 --- a/old_docs/API_docs_v41/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v41/methods/account_getNotifySettings.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); diff --git a/old_docs/API_docs_v41/methods/account_getPassword.md b/old_docs/API_docs_v41/methods/account_getPassword.md index c189421d..2692dab1 100644 --- a/old_docs/API_docs_v41/methods/account_getPassword.md +++ b/old_docs/API_docs_v41/methods/account_getPassword.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_Password = $MadelineProto->account->getPassword(); diff --git a/old_docs/API_docs_v41/methods/account_getPasswordSettings.md b/old_docs/API_docs_v41/methods/account_getPasswordSettings.md index 96cb953e..2039d405 100644 --- a/old_docs/API_docs_v41/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v41/methods/account_getPasswordSettings.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PasswordSettings = $MadelineProto->account->getPasswordSettings(['current_password_hash' => 'bytes', ]); diff --git a/old_docs/API_docs_v41/methods/account_getPrivacy.md b/old_docs/API_docs_v41/methods/account_getPrivacy.md index 979bfb94..5480ffbb 100644 --- a/old_docs/API_docs_v41/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v41/methods/account_getPrivacy.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); diff --git a/old_docs/API_docs_v41/methods/account_getWallPapers.md b/old_docs/API_docs_v41/methods/account_getWallPapers.md index 89b281be..7c8bff39 100644 --- a/old_docs/API_docs_v41/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v41/methods/account_getWallPapers.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); diff --git a/old_docs/API_docs_v41/methods/account_registerDevice.md b/old_docs/API_docs_v41/methods/account_registerDevice.md index 651e753f..8dae7506 100644 --- a/old_docs/API_docs_v41/methods/account_registerDevice.md +++ b/old_docs/API_docs_v41/methods/account_registerDevice.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'app_sandbox' => Bool, 'lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v41/methods/account_resetAuthorization.md b/old_docs/API_docs_v41/methods/account_resetAuthorization.md index 4155d3c8..543aee08 100644 --- a/old_docs/API_docs_v41/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v41/methods/account_resetAuthorization.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetAuthorization(['hash' => long, ]); diff --git a/old_docs/API_docs_v41/methods/account_resetNotifySettings.md b/old_docs/API_docs_v41/methods/account_resetNotifySettings.md index ccc836a9..557373b0 100644 --- a/old_docs/API_docs_v41/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v41/methods/account_resetNotifySettings.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); diff --git a/old_docs/API_docs_v41/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v41/methods/account_sendChangePhoneCode.md index 0b384269..930e0f76 100644 --- a/old_docs/API_docs_v41/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v41/methods/account_sendChangePhoneCode.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_SentChangePhoneCode = $MadelineProto->account->sendChangePhoneCode(['phone_number' => 'string', ]); diff --git a/old_docs/API_docs_v41/methods/account_setAccountTTL.md b/old_docs/API_docs_v41/methods/account_setAccountTTL.md index 5100e62e..bacdd77a 100644 --- a/old_docs/API_docs_v41/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v41/methods/account_setAccountTTL.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); diff --git a/old_docs/API_docs_v41/methods/account_setPrivacy.md b/old_docs/API_docs_v41/methods/account_setPrivacy.md index fbcedae7..6e24ded7 100644 --- a/old_docs/API_docs_v41/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v41/methods/account_setPrivacy.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); diff --git a/old_docs/API_docs_v41/methods/account_unregisterDevice.md b/old_docs/API_docs_v41/methods/account_unregisterDevice.md index 1d2b7670..b666d91a 100644 --- a/old_docs/API_docs_v41/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v41/methods/account_unregisterDevice.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); diff --git a/old_docs/API_docs_v41/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v41/methods/account_updateDeviceLocked.md index ef816501..cd52093a 100644 --- a/old_docs/API_docs_v41/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v41/methods/account_updateDeviceLocked.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); diff --git a/old_docs/API_docs_v41/methods/account_updateNotifySettings.md b/old_docs/API_docs_v41/methods/account_updateNotifySettings.md index 18cbdb75..db020309 100644 --- a/old_docs/API_docs_v41/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v41/methods/account_updateNotifySettings.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); diff --git a/old_docs/API_docs_v41/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v41/methods/account_updatePasswordSettings.md index 0754dd63..8af1e37f 100644 --- a/old_docs/API_docs_v41/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v41/methods/account_updatePasswordSettings.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updatePasswordSettings(['current_password_hash' => 'bytes', 'new_settings' => account_PasswordInputSettings, ]); diff --git a/old_docs/API_docs_v41/methods/account_updateProfile.md b/old_docs/API_docs_v41/methods/account_updateProfile.md index f16398ed..caea3391 100644 --- a/old_docs/API_docs_v41/methods/account_updateProfile.md +++ b/old_docs/API_docs_v41/methods/account_updateProfile.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', ]); diff --git a/old_docs/API_docs_v41/methods/account_updateStatus.md b/old_docs/API_docs_v41/methods/account_updateStatus.md index 4b049e65..50b99b1e 100644 --- a/old_docs/API_docs_v41/methods/account_updateStatus.md +++ b/old_docs/API_docs_v41/methods/account_updateStatus.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); diff --git a/old_docs/API_docs_v41/methods/account_updateUsername.md b/old_docs/API_docs_v41/methods/account_updateUsername.md index 08d2abe0..7276e2aa 100644 --- a/old_docs/API_docs_v41/methods/account_updateUsername.md +++ b/old_docs/API_docs_v41/methods/account_updateUsername.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v41/methods/api_README.md b/old_docs/API_docs_v41/methods/api_README.md new file mode 100644 index 00000000..47bc1ff5 --- /dev/null +++ b/old_docs/API_docs_v41/methods/api_README.md @@ -0,0 +1,350 @@ +--- +title: Methods +description: List of methods +--- +# Methods +[Back to API documentation index](..) + +[Go to the new description-version method index](index.html) + +$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); + +$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); + +$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); + +$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); + +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); + + +$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); + +$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); + +$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); + +$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); + +$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); + + +$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); + +$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); + +*** +

$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) + +$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) + +$MadelineProto->[account->getAuthorizations](account_getAuthorizations.md)(\[\]) === [$account\_Authorizations](../types/account_Authorizations.md) + +$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) + +$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md) + +$MadelineProto->[account->getPasswordSettings](account_getPasswordSettings.md)(\['current_password_hash' => [bytes](../types/bytes.md), \]) === [$account\_PasswordSettings](../types/account_PasswordSettings.md) + +$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) + +$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) + +$MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->sendChangePhoneCode](account_sendChangePhoneCode.md)(\['phone_number' => [string](../types/string.md), \]) === [$account\_SentChangePhoneCode](../types/account_SentChangePhoneCode.md) + +$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[account->updateProfile](account_updateProfile.md)(\['first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), \]) === [$User](../types/User.md) + +$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) + +*** +

$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) + +$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) + +$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) + +$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$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) + +$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->recoverPassword](auth_recoverPassword.md)(\['code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->requestPasswordRecovery](auth_requestPasswordRecovery.md)(\[\]) === [$auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) + +$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->sendCall](auth_sendCall.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->sendSms](auth_sendSms.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$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) + +*** +

$MadelineProto->[channels->checkUsername](channels_checkUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->deleteChannel](channels_deleteChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->deleteMessages](channels_deleteMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[channels->deleteUserHistory](channels_deleteUserHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[channels->editAbout](channels_editAbout.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'about' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[channels->editAdmin](channels_editAdmin.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), 'role' => [ChannelParticipantRole](../types/ChannelParticipantRole.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[channels->editPhoto](channels_editPhoto.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->editTitle](channels_editTitle.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->exportInvite](channels_exportInvite.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) + +$MadelineProto->[channels->getChannels](channels_getChannels.md)(\['id' => \[[InputChannel](../types/InputChannel.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[channels->getDialogs](channels_getDialogs.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Dialogs](../types/messages_Dialogs.md) + +$MadelineProto->[channels->getFullChannel](channels_getFullChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$MadelineProto->[channels->getImportantHistory](channels_getImportantHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'offset_id' => [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) + +$MadelineProto->[channels->getMessages](channels_getMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) + +$MadelineProto->[channels->getParticipant](channels_getParticipant.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) + +$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) + +$MadelineProto->[channels->inviteToChannel](channels_inviteToChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'users' => \[[InputUser](../types/InputUser.md)\], \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->joinChannel](channels_joinChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$MadelineProto->[channels->leaveChannel](channels_leaveChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->readHistory](channels_readHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->toggleComments](channels_toggleComments.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->updateUsername](channels_updateUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) + +$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) + +$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) + +$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [string](../types/string.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) + +$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) + +$MadelineProto->[contacts->getSuggested](contacts_getSuggested.md)(\['limit' => [int](../types/int.md), \]) === [$contacts\_Suggested](../types/contacts_Suggested.md) + +$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) + +$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], 'replace' => [Bool](../types/Bool.md), \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) + +$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) + +$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) + +$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +*** +

$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) + +$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) + +$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) + +$MadelineProto->[help->getInviteText](help_getInviteText.md)(\['lang_code' => [string](../types/string.md), \]) === [$help\_InviteText](../types/help_InviteText.md) + +$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) + +$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) + +$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) + +*** +

$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) + +*** +

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeWithoutUpdates](invokeWithoutUpdates.md)(\['query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$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) + +$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) + +$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md) + +$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->deactivateChat](messages_deactivateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) + +$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['broadcast' => [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) + +$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [string](../types/string.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) + +$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) + +$MadelineProto->[messages->getDialogs](messages_getDialogs.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Dialogs](../types/messages_Dialogs.md) + +$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$MadelineProto->[messages->getHistory](messages_getHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset_id' => [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) + +$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) + +$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) + +$MadelineProto->[messages->getStickerSet](messages_getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +$MadelineProto->[messages->getStickers](messages_getStickers.md)(\['emoticon' => [string](../types/string.md), 'hash' => [string](../types/string.md), \]) === [$messages\_Stickers](../types/messages_Stickers.md) + +$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) === [$MessageMedia](../types/MessageMedia.md) + +$MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'disabled' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->readHistory](messages_readHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_ReceivedNotifyMessage](../types/ReceivedNotifyMessage.md) + +$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) + +$MadelineProto->[messages->reportSpam](messages_reportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) + +$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) + +$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) + +$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) + +$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$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) + +$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['broadcast' => [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) + +$MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'broadcast' => [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) + +$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) + +$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) + +$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), 'crop' => [InputPhotoCrop](../types/InputPhotoCrop.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) + +$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) + +*** +

$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) + +$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) + +$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) + +*** +

$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) + +$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) + +$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) + +*** +

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) + +$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) + diff --git a/old_docs/API_docs_v41/methods/auth_checkPhone.md b/old_docs/API_docs_v41/methods/auth_checkPhone.md index 291221de..1826ce63 100644 --- a/old_docs/API_docs_v41/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v41/methods/auth_checkPhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); diff --git a/old_docs/API_docs_v41/methods/auth_recoverPassword.md b/old_docs/API_docs_v41/methods/auth_recoverPassword.md index cdc9bd7d..5e37b0f3 100644 --- a/old_docs/API_docs_v41/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v41/methods/auth_recoverPassword.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_Authorization = $MadelineProto->auth->recoverPassword(['code' => 'string', ]); diff --git a/old_docs/API_docs_v41/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v41/methods/auth_requestPasswordRecovery.md index e18c6c93..c69d0c49 100644 --- a/old_docs/API_docs_v41/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v41/methods/auth_requestPasswordRecovery.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_PasswordRecovery = $MadelineProto->auth->requestPasswordRecovery(); diff --git a/old_docs/API_docs_v41/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v41/methods/auth_resetAuthorizations.md index 47feea16..a46c880d 100644 --- a/old_docs/API_docs_v41/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v41/methods/auth_resetAuthorizations.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); diff --git a/old_docs/API_docs_v41/methods/auth_sendCall.md b/old_docs/API_docs_v41/methods/auth_sendCall.md index e2bd2855..5947cda7 100644 --- a/old_docs/API_docs_v41/methods/auth_sendCall.md +++ b/old_docs/API_docs_v41/methods/auth_sendCall.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendCall(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v41/methods/auth_sendInvites.md b/old_docs/API_docs_v41/methods/auth_sendInvites.md index be32fe6b..9b88b4a3 100644 --- a/old_docs/API_docs_v41/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v41/methods/auth_sendInvites.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); diff --git a/old_docs/API_docs_v41/methods/auth_sendSms.md b/old_docs/API_docs_v41/methods/auth_sendSms.md index a17fdd3a..41340660 100644 --- a/old_docs/API_docs_v41/methods/auth_sendSms.md +++ b/old_docs/API_docs_v41/methods/auth_sendSms.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendSms(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v41/methods/channels_checkUsername.md b/old_docs/API_docs_v41/methods/channels_checkUsername.md index 7bc7c245..7e3d5a89 100644 --- a/old_docs/API_docs_v41/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v41/methods/channels_checkUsername.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->checkUsername(['channel' => InputChannel, 'username' => 'string', ]); diff --git a/old_docs/API_docs_v41/methods/channels_createChannel.md b/old_docs/API_docs_v41/methods/channels_createChannel.md index 1305e4fb..a5ddc379 100644 --- a/old_docs/API_docs_v41/methods/channels_createChannel.md +++ b/old_docs/API_docs_v41/methods/channels_createChannel.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->createChannel(['broadcast' => Bool, 'megagroup' => Bool, 'title' => 'string', 'about' => 'string', ]); diff --git a/old_docs/API_docs_v41/methods/channels_deleteChannel.md b/old_docs/API_docs_v41/methods/channels_deleteChannel.md index e660d25c..69dad9a3 100644 --- a/old_docs/API_docs_v41/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v41/methods/channels_deleteChannel.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->deleteChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v41/methods/channels_deleteMessages.md b/old_docs/API_docs_v41/methods/channels_deleteMessages.md index fb9d3cc2..b12270b3 100644 --- a/old_docs/API_docs_v41/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v41/methods/channels_deleteMessages.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v41/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v41/methods/channels_deleteUserHistory.md index fbe34341..75f531bb 100644 --- a/old_docs/API_docs_v41/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v41/methods/channels_deleteUserHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->channels->deleteUserHistory(['channel' => InputChannel, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v41/methods/channels_editAbout.md b/old_docs/API_docs_v41/methods/channels_editAbout.md index 8908f29e..67521065 100644 --- a/old_docs/API_docs_v41/methods/channels_editAbout.md +++ b/old_docs/API_docs_v41/methods/channels_editAbout.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->editAbout(['channel' => InputChannel, 'about' => 'string', ]); diff --git a/old_docs/API_docs_v41/methods/channels_editAdmin.md b/old_docs/API_docs_v41/methods/channels_editAdmin.md index 9e540072..9f69c065 100644 --- a/old_docs/API_docs_v41/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v41/methods/channels_editAdmin.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->editAdmin(['channel' => InputChannel, 'user_id' => InputUser, 'role' => ChannelParticipantRole, ]); diff --git a/old_docs/API_docs_v41/methods/channels_editPhoto.md b/old_docs/API_docs_v41/methods/channels_editPhoto.md index 9ccd864f..c854c64a 100644 --- a/old_docs/API_docs_v41/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v41/methods/channels_editPhoto.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editPhoto(['channel' => InputChannel, 'photo' => InputChatPhoto, ]); diff --git a/old_docs/API_docs_v41/methods/channels_editTitle.md b/old_docs/API_docs_v41/methods/channels_editTitle.md index b1024faf..9bc6773e 100644 --- a/old_docs/API_docs_v41/methods/channels_editTitle.md +++ b/old_docs/API_docs_v41/methods/channels_editTitle.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editTitle(['channel' => InputChannel, 'title' => 'string', ]); diff --git a/old_docs/API_docs_v41/methods/channels_exportInvite.md b/old_docs/API_docs_v41/methods/channels_exportInvite.md index f0c737d5..ca65dcc8 100644 --- a/old_docs/API_docs_v41/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v41/methods/channels_exportInvite.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedChatInvite = $MadelineProto->channels->exportInvite(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v41/methods/channels_getChannels.md b/old_docs/API_docs_v41/methods/channels_getChannels.md index 9cd9e798..af22556f 100644 --- a/old_docs/API_docs_v41/methods/channels_getChannels.md +++ b/old_docs/API_docs_v41/methods/channels_getChannels.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel, InputChannel], ]); diff --git a/old_docs/API_docs_v41/methods/channels_getDialogs.md b/old_docs/API_docs_v41/methods/channels_getDialogs.md index 9ad21720..1b5837b7 100644 --- a/old_docs/API_docs_v41/methods/channels_getDialogs.md +++ b/old_docs/API_docs_v41/methods/channels_getDialogs.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Dialogs = $MadelineProto->channels->getDialogs(['offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v41/methods/channels_getImportantHistory.md b/old_docs/API_docs_v41/methods/channels_getImportantHistory.md index 66be0b21..861e4a32 100644 --- a/old_docs/API_docs_v41/methods/channels_getImportantHistory.md +++ b/old_docs/API_docs_v41/methods/channels_getImportantHistory.md @@ -34,12 +34,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->channels->getImportantHistory(['channel' => InputChannel, 'offset_id' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); diff --git a/old_docs/API_docs_v41/methods/channels_getMessages.md b/old_docs/API_docs_v41/methods/channels_getMessages.md index cc944fe5..eda13d0b 100644 --- a/old_docs/API_docs_v41/methods/channels_getMessages.md +++ b/old_docs/API_docs_v41/methods/channels_getMessages.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v41/methods/channels_getParticipant.md b/old_docs/API_docs_v41/methods/channels_getParticipant.md index db9b1fc6..be5fe96a 100644 --- a/old_docs/API_docs_v41/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v41/methods/channels_getParticipant.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $channels_ChannelParticipant = $MadelineProto->channels->getParticipant(['channel' => InputChannel, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v41/methods/channels_getParticipants.md b/old_docs/API_docs_v41/methods/channels_getParticipants.md index 96662466..6a27016b 100644 --- a/old_docs/API_docs_v41/methods/channels_getParticipants.md +++ b/old_docs/API_docs_v41/methods/channels_getParticipants.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $channels_ChannelParticipants = $MadelineProto->channels->getParticipants(['channel' => InputChannel, 'filter' => ChannelParticipantsFilter, 'offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v41/methods/channels_inviteToChannel.md b/old_docs/API_docs_v41/methods/channels_inviteToChannel.md index 676f800c..e7d12db7 100644 --- a/old_docs/API_docs_v41/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v41/methods/channels_inviteToChannel.md @@ -52,12 +52,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v41/methods/channels_joinChannel.md b/old_docs/API_docs_v41/methods/channels_joinChannel.md index 721f707c..3ac2b326 100644 --- a/old_docs/API_docs_v41/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v41/methods/channels_joinChannel.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->joinChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v41/methods/channels_kickFromChannel.md b/old_docs/API_docs_v41/methods/channels_kickFromChannel.md index bf8bb5b8..8f6c92be 100644 --- a/old_docs/API_docs_v41/methods/channels_kickFromChannel.md +++ b/old_docs/API_docs_v41/methods/channels_kickFromChannel.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->kickFromChannel(['channel' => InputChannel, 'user_id' => InputUser, 'kicked' => Bool, ]); diff --git a/old_docs/API_docs_v41/methods/channels_leaveChannel.md b/old_docs/API_docs_v41/methods/channels_leaveChannel.md index 7f02e08c..95b60a90 100644 --- a/old_docs/API_docs_v41/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v41/methods/channels_leaveChannel.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->leaveChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v41/methods/channels_readHistory.md b/old_docs/API_docs_v41/methods/channels_readHistory.md index cca891f0..c6b14541 100644 --- a/old_docs/API_docs_v41/methods/channels_readHistory.md +++ b/old_docs/API_docs_v41/methods/channels_readHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->readHistory(['channel' => InputChannel, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v41/methods/channels_reportSpam.md b/old_docs/API_docs_v41/methods/channels_reportSpam.md index 09af14e0..ca5c28f5 100644 --- a/old_docs/API_docs_v41/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v41/methods/channels_reportSpam.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v41/methods/channels_toggleComments.md b/old_docs/API_docs_v41/methods/channels_toggleComments.md index 73ef8d23..cc9f478d 100644 --- a/old_docs/API_docs_v41/methods/channels_toggleComments.md +++ b/old_docs/API_docs_v41/methods/channels_toggleComments.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->toggleComments(['channel' => InputChannel, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v41/methods/channels_updateUsername.md b/old_docs/API_docs_v41/methods/channels_updateUsername.md index ad34490a..2093b6ce 100644 --- a/old_docs/API_docs_v41/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v41/methods/channels_updateUsername.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->updateUsername(['channel' => InputChannel, 'username' => 'string', ]); diff --git a/old_docs/API_docs_v41/methods/contacts_block.md b/old_docs/API_docs_v41/methods/contacts_block.md index d0729d30..e592cace 100644 --- a/old_docs/API_docs_v41/methods/contacts_block.md +++ b/old_docs/API_docs_v41/methods/contacts_block.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v41/methods/contacts_deleteContact.md b/old_docs/API_docs_v41/methods/contacts_deleteContact.md index b8c17544..1a3f2a27 100644 --- a/old_docs/API_docs_v41/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v41/methods/contacts_deleteContact.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v41/methods/contacts_deleteContacts.md b/old_docs/API_docs_v41/methods/contacts_deleteContacts.md index 64c69460..f6627599 100644 --- a/old_docs/API_docs_v41/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v41/methods/contacts_deleteContacts.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v41/methods/contacts_exportCard.md b/old_docs/API_docs_v41/methods/contacts_exportCard.md index b05f57ce..1d2129f3 100644 --- a/old_docs/API_docs_v41/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v41/methods/contacts_exportCard.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); diff --git a/old_docs/API_docs_v41/methods/contacts_getBlocked.md b/old_docs/API_docs_v41/methods/contacts_getBlocked.md index d7d8c5cc..44d24aba 100644 --- a/old_docs/API_docs_v41/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v41/methods/contacts_getBlocked.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v41/methods/contacts_getContacts.md b/old_docs/API_docs_v41/methods/contacts_getContacts.md index 1ab8af27..83c4846f 100644 --- a/old_docs/API_docs_v41/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v41/methods/contacts_getContacts.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v41/methods/contacts_getStatuses.md b/old_docs/API_docs_v41/methods/contacts_getStatuses.md index b927a140..5cef3084 100644 --- a/old_docs/API_docs_v41/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v41/methods/contacts_getStatuses.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); diff --git a/old_docs/API_docs_v41/methods/contacts_getSuggested.md b/old_docs/API_docs_v41/methods/contacts_getSuggested.md index 302e60e5..1ce04bef 100644 --- a/old_docs/API_docs_v41/methods/contacts_getSuggested.md +++ b/old_docs/API_docs_v41/methods/contacts_getSuggested.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Suggested = $MadelineProto->contacts->getSuggested(['limit' => int, ]); diff --git a/old_docs/API_docs_v41/methods/contacts_importCard.md b/old_docs/API_docs_v41/methods/contacts_importCard.md index 81a1e138..89c96657 100644 --- a/old_docs/API_docs_v41/methods/contacts_importCard.md +++ b/old_docs/API_docs_v41/methods/contacts_importCard.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); diff --git a/old_docs/API_docs_v41/methods/contacts_importContacts.md b/old_docs/API_docs_v41/methods/contacts_importContacts.md index 578e5dfd..cd3d6615 100644 --- a/old_docs/API_docs_v41/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v41/methods/contacts_importContacts.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], 'replace' => Bool, ]); diff --git a/old_docs/API_docs_v41/methods/contacts_search.md b/old_docs/API_docs_v41/methods/contacts_search.md index 68daecd6..64ff748e 100644 --- a/old_docs/API_docs_v41/methods/contacts_search.md +++ b/old_docs/API_docs_v41/methods/contacts_search.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); diff --git a/old_docs/API_docs_v41/methods/contacts_unblock.md b/old_docs/API_docs_v41/methods/contacts_unblock.md index f7d151b9..ec72ae2d 100644 --- a/old_docs/API_docs_v41/methods/contacts_unblock.md +++ b/old_docs/API_docs_v41/methods/contacts_unblock.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v41/methods/help_getAppChangelog.md b/old_docs/API_docs_v41/methods/help_getAppChangelog.md index dbca4fc8..eb48fabb 100644 --- a/old_docs/API_docs_v41/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v41/methods/help_getAppChangelog.md @@ -32,12 +32,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_AppChangelog = $MadelineProto->help->getAppChangelog(['device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v41/methods/help_getAppUpdate.md b/old_docs/API_docs_v41/methods/help_getAppUpdate.md index f97da105..ad5b8228 100644 --- a/old_docs/API_docs_v41/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v41/methods/help_getAppUpdate.md @@ -32,12 +32,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(['device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v41/methods/help_getConfig.md b/old_docs/API_docs_v41/methods/help_getConfig.md index 16e25c68..ca4bfc25 100644 --- a/old_docs/API_docs_v41/methods/help_getConfig.md +++ b/old_docs/API_docs_v41/methods/help_getConfig.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); diff --git a/old_docs/API_docs_v41/methods/help_getInviteText.md b/old_docs/API_docs_v41/methods/help_getInviteText.md index 0831ba5f..ad6ac262 100644 --- a/old_docs/API_docs_v41/methods/help_getInviteText.md +++ b/old_docs/API_docs_v41/methods/help_getInviteText.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(['lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v41/methods/help_getNearestDc.md b/old_docs/API_docs_v41/methods/help_getNearestDc.md index 35a8bf91..458f60ab 100644 --- a/old_docs/API_docs_v41/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v41/methods/help_getNearestDc.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); diff --git a/old_docs/API_docs_v41/methods/help_getSupport.md b/old_docs/API_docs_v41/methods/help_getSupport.md index a5bab0f2..9ee25b00 100644 --- a/old_docs/API_docs_v41/methods/help_getSupport.md +++ b/old_docs/API_docs_v41/methods/help_getSupport.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); diff --git a/old_docs/API_docs_v41/methods/help_saveAppLog.md b/old_docs/API_docs_v41/methods/help_saveAppLog.md index 0165b6e3..a7884c47 100644 --- a/old_docs/API_docs_v41/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v41/methods/help_saveAppLog.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); diff --git a/old_docs/API_docs_v41/methods/initConnection.md b/old_docs/API_docs_v41/methods/initConnection.md index 2d3d86ad..73620276 100644 --- a/old_docs/API_docs_v41/methods/initConnection.md +++ b/old_docs/API_docs_v41/methods/initConnection.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->initConnection(['api_id' => int, 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', 'query' => !X, ]); diff --git a/old_docs/API_docs_v41/methods/invokeAfterMsg.md b/old_docs/API_docs_v41/methods/invokeAfterMsg.md index e33a2c93..8e953e78 100644 --- a/old_docs/API_docs_v41/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v41/methods/invokeAfterMsg.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); diff --git a/old_docs/API_docs_v41/methods/invokeAfterMsgs.md b/old_docs/API_docs_v41/methods/invokeAfterMsgs.md index 3150a613..bc8a83b7 100644 --- a/old_docs/API_docs_v41/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v41/methods/invokeAfterMsgs.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); diff --git a/old_docs/API_docs_v41/methods/invokeWithLayer.md b/old_docs/API_docs_v41/methods/invokeWithLayer.md index 71d02abb..8a0c4e79 100644 --- a/old_docs/API_docs_v41/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v41/methods/invokeWithLayer.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); diff --git a/old_docs/API_docs_v41/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v41/methods/invokeWithoutUpdates.md index 2bab236a..2d90a776 100644 --- a/old_docs/API_docs_v41/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v41/methods/invokeWithoutUpdates.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeWithoutUpdates(['query' => !X, ]); diff --git a/old_docs/API_docs_v41/methods/messages_addChatUser.md b/old_docs/API_docs_v41/methods/messages_addChatUser.md index 3e4c5ccc..c6ef275f 100644 --- a/old_docs/API_docs_v41/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v41/methods/messages_addChatUser.md @@ -46,12 +46,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); diff --git a/old_docs/API_docs_v41/methods/messages_checkChatInvite.md b/old_docs/API_docs_v41/methods/messages_checkChatInvite.md index de1d9ff4..cea63313 100644 --- a/old_docs/API_docs_v41/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v41/methods/messages_checkChatInvite.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ChatInvite = $MadelineProto->messages->checkChatInvite(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v41/methods/messages_createChat.md b/old_docs/API_docs_v41/methods/messages_createChat.md index 68c0263a..966f58dc 100644 --- a/old_docs/API_docs_v41/methods/messages_createChat.md +++ b/old_docs/API_docs_v41/methods/messages_createChat.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); diff --git a/old_docs/API_docs_v41/methods/messages_deactivateChat.md b/old_docs/API_docs_v41/methods/messages_deactivateChat.md index 516a28ff..c4bab810 100644 --- a/old_docs/API_docs_v41/methods/messages_deactivateChat.md +++ b/old_docs/API_docs_v41/methods/messages_deactivateChat.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->deactivateChat(['chat_id' => InputPeer, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v41/methods/messages_deleteChatUser.md b/old_docs/API_docs_v41/methods/messages_deleteChatUser.md index 0a6830de..9a9227ba 100644 --- a/old_docs/API_docs_v41/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v41/methods/messages_deleteChatUser.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v41/methods/messages_deleteHistory.md b/old_docs/API_docs_v41/methods/messages_deleteHistory.md index d883a9ad..4cb70ec8 100644 --- a/old_docs/API_docs_v41/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v41/methods/messages_deleteHistory.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['peer' => InputPeer, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v41/methods/messages_deleteMessages.md b/old_docs/API_docs_v41/methods/messages_deleteMessages.md index 41570996..fa043e1c 100644 --- a/old_docs/API_docs_v41/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v41/methods/messages_deleteMessages.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v41/methods/messages_editChatAdmin.md b/old_docs/API_docs_v41/methods/messages_editChatAdmin.md index 7916f8b1..5bba0559 100644 --- a/old_docs/API_docs_v41/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v41/methods/messages_editChatAdmin.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]); diff --git a/old_docs/API_docs_v41/methods/messages_editChatPhoto.md b/old_docs/API_docs_v41/methods/messages_editChatPhoto.md index 122913c4..5827a5cc 100644 --- a/old_docs/API_docs_v41/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v41/methods/messages_editChatPhoto.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); diff --git a/old_docs/API_docs_v41/methods/messages_editChatTitle.md b/old_docs/API_docs_v41/methods/messages_editChatTitle.md index 3a1e974b..2e69d790 100644 --- a/old_docs/API_docs_v41/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v41/methods/messages_editChatTitle.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); diff --git a/old_docs/API_docs_v41/methods/messages_exportChatInvite.md b/old_docs/API_docs_v41/methods/messages_exportChatInvite.md index 98685d96..ec80e207 100644 --- a/old_docs/API_docs_v41/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v41/methods/messages_exportChatInvite.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]); diff --git a/old_docs/API_docs_v41/methods/messages_forwardMessage.md b/old_docs/API_docs_v41/methods/messages_forwardMessage.md index 45b7a07f..d6916437 100644 --- a/old_docs/API_docs_v41/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v41/methods/messages_forwardMessage.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); diff --git a/old_docs/API_docs_v41/methods/messages_forwardMessages.md b/old_docs/API_docs_v41/methods/messages_forwardMessages.md index b7273f1d..6a646f5f 100644 --- a/old_docs/API_docs_v41/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v41/methods/messages_forwardMessages.md @@ -60,12 +60,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessages(['broadcast' => Bool, 'from_peer' => InputPeer, 'id' => [int, int], 'to_peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v41/methods/messages_getAllStickers.md b/old_docs/API_docs_v41/methods/messages_getAllStickers.md index d4193723..322f9b0b 100644 --- a/old_docs/API_docs_v41/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v41/methods/messages_getAllStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v41/methods/messages_getChats.md b/old_docs/API_docs_v41/methods/messages_getChats.md index 290438a1..e84c7193 100644 --- a/old_docs/API_docs_v41/methods/messages_getChats.md +++ b/old_docs/API_docs_v41/methods/messages_getChats.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v41/methods/messages_getDialogs.md b/old_docs/API_docs_v41/methods/messages_getDialogs.md index 72311136..269c6897 100644 --- a/old_docs/API_docs_v41/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v41/methods/messages_getDialogs.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v41/methods/messages_getHistory.md b/old_docs/API_docs_v41/methods/messages_getHistory.md index dd61853d..dfefb639 100644 --- a/old_docs/API_docs_v41/methods/messages_getHistory.md +++ b/old_docs/API_docs_v41/methods/messages_getHistory.md @@ -46,12 +46,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getHistory(['peer' => InputPeer, 'offset_id' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); diff --git a/old_docs/API_docs_v41/methods/messages_getMessages.md b/old_docs/API_docs_v41/methods/messages_getMessages.md index 86d1da8a..d538cb5f 100644 --- a/old_docs/API_docs_v41/methods/messages_getMessages.md +++ b/old_docs/API_docs_v41/methods/messages_getMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v41/methods/messages_getMessagesViews.md b/old_docs/API_docs_v41/methods/messages_getMessagesViews.md index b8d78c85..934adc16 100644 --- a/old_docs/API_docs_v41/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v41/methods/messages_getMessagesViews.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int, int], 'increment' => Bool, ]); diff --git a/old_docs/API_docs_v41/methods/messages_getStickerSet.md b/old_docs/API_docs_v41/methods/messages_getStickerSet.md index c86807e4..c9140ab2 100644 --- a/old_docs/API_docs_v41/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v41/methods/messages_getStickerSet.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSet = $MadelineProto->messages->getStickerSet(['stickerset' => InputStickerSet, ]); diff --git a/old_docs/API_docs_v41/methods/messages_getStickers.md b/old_docs/API_docs_v41/methods/messages_getStickers.md index 4854696d..d2ea57cf 100644 --- a/old_docs/API_docs_v41/methods/messages_getStickers.md +++ b/old_docs/API_docs_v41/methods/messages_getStickers.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Stickers = $MadelineProto->messages->getStickers(['emoticon' => 'string', 'hash' => 'string', ]); diff --git a/old_docs/API_docs_v41/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v41/methods/messages_getWebPagePreview.md index d01bdd32..e8b20c5d 100644 --- a/old_docs/API_docs_v41/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v41/methods/messages_getWebPagePreview.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $MessageMedia = $MadelineProto->messages->getWebPagePreview(['message' => 'string', ]); diff --git a/old_docs/API_docs_v41/methods/messages_importChatInvite.md b/old_docs/API_docs_v41/methods/messages_importChatInvite.md index 0d6cd7c8..b1830a9b 100644 --- a/old_docs/API_docs_v41/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v41/methods/messages_importChatInvite.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->importChatInvite(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v41/methods/messages_installStickerSet.md b/old_docs/API_docs_v41/methods/messages_installStickerSet.md index 04b693cd..77c5a2a5 100644 --- a/old_docs/API_docs_v41/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v41/methods/messages_installStickerSet.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->installStickerSet(['stickerset' => InputStickerSet, 'disabled' => Bool, ]); diff --git a/old_docs/API_docs_v41/methods/messages_migrateChat.md b/old_docs/API_docs_v41/methods/messages_migrateChat.md index db57adfa..22ccfcc1 100644 --- a/old_docs/API_docs_v41/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v41/methods/messages_migrateChat.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]); diff --git a/old_docs/API_docs_v41/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v41/methods/messages_readEncryptedHistory.md index 39b110e3..2ba4cca4 100644 --- a/old_docs/API_docs_v41/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v41/methods/messages_readEncryptedHistory.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); diff --git a/old_docs/API_docs_v41/methods/messages_readHistory.md b/old_docs/API_docs_v41/methods/messages_readHistory.md index 3de17061..26b608af 100644 --- a/old_docs/API_docs_v41/methods/messages_readHistory.md +++ b/old_docs/API_docs_v41/methods/messages_readHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v41/methods/messages_readMessageContents.md b/old_docs/API_docs_v41/methods/messages_readMessageContents.md index 9bb1bee8..a09cb63e 100644 --- a/old_docs/API_docs_v41/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v41/methods/messages_readMessageContents.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v41/methods/messages_receivedMessages.md b/old_docs/API_docs_v41/methods/messages_receivedMessages.md index 7aab635f..b5e87992 100644 --- a/old_docs/API_docs_v41/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v41/methods/messages_receivedMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_ReceivedNotifyMessage = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); diff --git a/old_docs/API_docs_v41/methods/messages_reportSpam.md b/old_docs/API_docs_v41/methods/messages_reportSpam.md index 2e2b1177..09c1e63b 100644 --- a/old_docs/API_docs_v41/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v41/methods/messages_reportSpam.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reportSpam(['peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v41/methods/messages_search.md b/old_docs/API_docs_v41/methods/messages_search.md index f63e235d..01af8760 100644 --- a/old_docs/API_docs_v41/methods/messages_search.md +++ b/old_docs/API_docs_v41/methods/messages_search.md @@ -50,12 +50,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->search(['important_only' => Bool, 'peer' => InputPeer, 'q' => 'string', 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v41/methods/messages_searchGlobal.md b/old_docs/API_docs_v41/methods/messages_searchGlobal.md index 0edd1e40..6ad4aec0 100644 --- a/old_docs/API_docs_v41/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v41/methods/messages_searchGlobal.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->searchGlobal(['q' => 'string', 'offset_date' => int, 'offset_peer' => InputPeer, 'offset_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v41/methods/messages_sendBroadcast.md b/old_docs/API_docs_v41/methods/messages_sendBroadcast.md index 28e248a9..6cff8b29 100644 --- a/old_docs/API_docs_v41/methods/messages_sendBroadcast.md +++ b/old_docs/API_docs_v41/methods/messages_sendBroadcast.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendBroadcast(['contacts' => [InputUser, InputUser], 'message' => 'string', 'media' => InputMedia, ]); diff --git a/old_docs/API_docs_v41/methods/messages_sendEncrypted.md b/old_docs/API_docs_v41/methods/messages_sendEncrypted.md index d48f88d7..76305f32 100644 --- a/old_docs/API_docs_v41/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v41/methods/messages_sendEncrypted.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v41/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v41/methods/messages_sendEncryptedFile.md index 4fd0648e..8db2ead9 100644 --- a/old_docs/API_docs_v41/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v41/methods/messages_sendEncryptedFile.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); diff --git a/old_docs/API_docs_v41/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v41/methods/messages_sendEncryptedService.md index d66894bf..c7836c94 100644 --- a/old_docs/API_docs_v41/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v41/methods/messages_sendEncryptedService.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v41/methods/messages_sendMedia.md b/old_docs/API_docs_v41/methods/messages_sendMedia.md index 566334c0..694ccc4b 100644 --- a/old_docs/API_docs_v41/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v41/methods/messages_sendMedia.md @@ -61,12 +61,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendMedia(['broadcast' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, 'reply_markup' => ReplyMarkup, ]); diff --git a/old_docs/API_docs_v41/methods/messages_sendMessage.md b/old_docs/API_docs_v41/methods/messages_sendMessage.md index 82d5e61d..0c3ef389 100644 --- a/old_docs/API_docs_v41/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v41/methods/messages_sendMessage.md @@ -63,12 +63,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendMessage(['no_webpage' => Bool, 'broadcast' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v41/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v41/methods/messages_setEncryptedTyping.md index e9afe99c..4e7450eb 100644 --- a/old_docs/API_docs_v41/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v41/methods/messages_setEncryptedTyping.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); diff --git a/old_docs/API_docs_v41/methods/messages_setTyping.md b/old_docs/API_docs_v41/methods/messages_setTyping.md index bea4982b..a2b94823 100644 --- a/old_docs/API_docs_v41/methods/messages_setTyping.md +++ b/old_docs/API_docs_v41/methods/messages_setTyping.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); diff --git a/old_docs/API_docs_v41/methods/messages_startBot.md b/old_docs/API_docs_v41/methods/messages_startBot.md index 94a4d86a..50d6f475 100644 --- a/old_docs/API_docs_v41/methods/messages_startBot.md +++ b/old_docs/API_docs_v41/methods/messages_startBot.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'peer' => InputPeer, 'start_param' => 'string', ]); diff --git a/old_docs/API_docs_v41/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v41/methods/messages_toggleChatAdmins.md index ab591fd9..349ea0e6 100644 --- a/old_docs/API_docs_v41/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v41/methods/messages_toggleChatAdmins.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => InputPeer, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v41/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v41/methods/messages_uninstallStickerSet.md index 6d04e847..26b2fbb3 100644 --- a/old_docs/API_docs_v41/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v41/methods/messages_uninstallStickerSet.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->uninstallStickerSet(['stickerset' => InputStickerSet, ]); diff --git a/old_docs/API_docs_v41/methods/photos_deletePhotos.md b/old_docs/API_docs_v41/methods/photos_deletePhotos.md index b9daca10..937aadd5 100644 --- a/old_docs/API_docs_v41/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v41/methods/photos_deletePhotos.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); diff --git a/old_docs/API_docs_v41/methods/photos_getUserPhotos.md b/old_docs/API_docs_v41/methods/photos_getUserPhotos.md index ea27a44f..d1c15e90 100644 --- a/old_docs/API_docs_v41/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v41/methods/photos_getUserPhotos.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => long, 'limit' => int, ]); diff --git a/old_docs/API_docs_v41/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v41/methods/photos_updateProfilePhoto.md index 2d1e1e76..4c5c517f 100644 --- a/old_docs/API_docs_v41/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v41/methods/photos_updateProfilePhoto.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, 'crop' => InputPhotoCrop, ]); diff --git a/old_docs/API_docs_v41/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v41/methods/photos_uploadProfilePhoto.md index 6ff4ddf5..3d7d301b 100644 --- a/old_docs/API_docs_v41/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v41/methods/photos_uploadProfilePhoto.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, 'caption' => 'string', 'geo_point' => InputGeoPoint, 'crop' => InputPhotoCrop, ]); diff --git a/old_docs/API_docs_v41/methods/users_getUsers.md b/old_docs/API_docs_v41/methods/users_getUsers.md index ef1c7fd8..bce13ee6 100644 --- a/old_docs/API_docs_v41/methods/users_getUsers.md +++ b/old_docs/API_docs_v41/methods/users_getUsers.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v42/README.md b/old_docs/API_docs_v42/README.md index 3fae78a5..9a24b23d 100644 --- a/old_docs/API_docs_v42/README.md +++ b/old_docs/API_docs_v42/README.md @@ -4,11 +4,11 @@ description: MadelineProto API documentation (layer v42) --- # MadelineProto API documentation (layer v42) +[Back to main documentation](..) + + [Methods](methods/) [Constructors](constructors/) -[Types](types/) - - -[Back to main documentation](..) +[Types](types/) \ No newline at end of file diff --git a/old_docs/API_docs_v42/methods/README.md b/old_docs/API_docs_v42/methods/README.md index d5c1fa05..9e25f170 100644 --- a/old_docs/API_docs_v42/methods/README.md +++ b/old_docs/API_docs_v42/methods/README.md @@ -1,347 +1,342 @@ --- title: Methods -description: List of methods +description: What do you want to do? --- -# Methods -[Back to API documentation index](..) +# What do you want to do? +[Go back to API documentation index](..) +[Go to the old code-version method index](api_index.html) -$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); +* [Logout](https://docs.madelineproto.xyz/logout.html) -$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); +* [Login](https://docs.madelineproto.xyz/docs/LOGIN.html) -$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); +* [Get all chats, broadcast a message to all chats](https://docs.madelineproto.xyz/docs/DIALOGS.html) -$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); +* [Get the full participant list of a channel/group/supergroup](https://docs.madelineproto.xyz/get_pwr_chat.html) -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); +* [Get full info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_full_info.html) +* [Get info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_info.html) -$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); +* [Get info about the currently logged-in user](https://docs.madelineproto.xyz/get_self.html) -$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); +* [Upload or download files up to 1.5 GB](https://docs.madelineproto.xyz/docs/FILES.html) -$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); +* [Make a phone call and play a song](https://docs.madelineproto.xyz/docs/CALLS.html) -$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); - -$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); - - -$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); - -$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); +* [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) *** -

$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) +

* Change the phone number associated to this account -$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Check if this username is available -$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Delete this account -$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) +* Get account TTL -$MadelineProto->[account->getAuthorizations](account_getAuthorizations.md)(\[\]) === [$account\_Authorizations](../types/account_Authorizations.md) +* Get all logged-in authorizations -$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) +* Get notification settings -$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md) +* Get the current password -$MadelineProto->[account->getPasswordSettings](account_getPasswordSettings.md)(\['current_password_hash' => [bytes](../types/bytes.md), \]) === [$account\_PasswordSettings](../types/account_PasswordSettings.md) +* Get the current 2FA settings -$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Get privacy settings -$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) +* Returns a list of available wallpapers. -$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) +* Register device for push notifications -$MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) +* Delete a certain session -$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) +* Reset all notification settings -$MadelineProto->[account->sendChangePhoneCode](account_sendChangePhoneCode.md)(\['phone_number' => [string](../types/string.md), \]) === [$account\_SentChangePhoneCode](../types/account_SentChangePhoneCode.md) +* Change the phone number -$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) +* Set account TTL -$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Set privacy settings -$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Stop sending PUSH notifications to app -$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Disable all notifications for a certain period -$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) +* Change notification settings -$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) +* Update the 2FA password settings -$MadelineProto->[account->updateProfile](account_updateProfile.md)(\['first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), \]) === [$User](../types/User.md) +* Update profile info -$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Update online status -$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) +* Update this user's username *** -

$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) +

* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info -$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) +* Check if this phone number is registered on telegram -$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) +* You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$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) +* You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->recoverPassword](auth_recoverPassword.md)(\['code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account -$MadelineProto->[auth->requestPasswordRecovery](auth_requestPasswordRecovery.md)(\[\]) === [$auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) +* Send an email to recover the 2FA password -$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) +* Delete all logged-in sessions. -$MadelineProto->[auth->sendCall](auth_sendCall.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Send verification phone call -$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) +* Use phone_login instead -$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Invite friends to telegram! -$MadelineProto->[auth->sendSms](auth_sendSms.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Send SMS verification code -$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) +* You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) -$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) +* You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) *** -

$MadelineProto->[channels->checkUsername](channels_checkUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +

* Check if this username is free and can be assigned to a channel/supergroup -$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) +* Create channel/supergroup -$MadelineProto->[channels->deleteChannel](channels_deleteChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Delete a channel/supergroup -$MadelineProto->[channels->deleteMessages](channels_deleteMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Delete channel/supergroup messages -$MadelineProto->[channels->deleteUserHistory](channels_deleteUserHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Delete all messages of a user in a channel/supergroup -$MadelineProto->[channels->editAbout](channels_editAbout.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'about' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Edit the about text of a channel/supergroup -$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) +* Edit admin permissions of a user in a channel/supergroup -$MadelineProto->[channels->editPhoto](channels_editPhoto.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) +* Edit the photo of a supergroup/channel -$MadelineProto->[channels->editTitle](channels_editTitle.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Edit the title of a supergroup/channel -$MadelineProto->[channels->exportInvite](channels_exportInvite.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) +* Export the invite link of a channel -$MadelineProto->[channels->getChannels](channels_getChannels.md)(\['id' => \[[InputChannel](../types/InputChannel.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get info about multiple channels/supergroups -$MadelineProto->[channels->getDialogs](channels_getDialogs.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Dialogs](../types/messages_Dialogs.md) +* Get channel dialogs -$MadelineProto->[channels->getFullChannel](channels_getFullChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) +* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[channels->getImportantHistory](channels_getImportantHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'offset_id' => [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) +* Get important channel/supergroup history -$MadelineProto->[channels->getMessages](channels_getMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get channel/supergroup messages -$MadelineProto->[channels->getParticipant](channels_getParticipant.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) +* Get info about a certain channel/supergroup participant -$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) +* Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead) -$MadelineProto->[channels->inviteToChannel](channels_inviteToChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'users' => \[[InputUser](../types/InputUser.md)\], \]) === [$Updates](../types/Updates.md) +* Add users to channel/supergroup -$MadelineProto->[channels->joinChannel](channels_joinChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Join a channel/supergroup -$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) +* Kick user from channel -$MadelineProto->[channels->leaveChannel](channels_leaveChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Leave a channel/supergroup -$MadelineProto->[channels->readHistory](channels_readHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Mark channel/supergroup history as read -$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) +* Report a supergroup/channel for spam -$MadelineProto->[channels->toggleComments](channels_toggleComments.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Enable channel comments -$MadelineProto->[channels->updateUsername](channels_updateUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Update the username of a supergroup/channel *** -

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +

* Block a user -$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) +* Delete a contact -$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) +* Delete multiple contacts -$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) +* Export contact as card -$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) +* Get blocked users -$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [string](../types/string.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) +* Get info about a certain contact -$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) +* Get online status of all users -$MadelineProto->[contacts->getSuggested](contacts_getSuggested.md)(\['limit' => [int](../types/int.md), \]) === [$contacts\_Suggested](../types/contacts_Suggested.md) +* Get suggested contacts -$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) +* Import card as contact -$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], 'replace' => [Bool](../types/Bool.md), \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) +* Add phone number as contact -$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) +* You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) +* Search contacts -$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +* Unblock a user *** -

$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) +

* Get the changelog of this app -$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) +* Get info about app updates -$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) +* Get server configuration -$MadelineProto->[help->getInviteText](help_getInviteText.md)(\['lang_code' => [string](../types/string.md), \]) === [$help\_InviteText](../types/help_InviteText.md) +* Get invitation text -$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) +* Get nearest datacenter -$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) +* Get info of support user -$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) +* Log data for developer of this app *** -

$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) +

* Initializes connection and save information on the user's device and application. *** -

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invokes a query after successfull completion of one of the previous queries. *** -

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Result type returned by a current query. *** -

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invoke this method with layer X *** -

$MadelineProto->[invokeWithoutUpdates](invokeWithoutUpdates.md)(\['query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invoke with method without returning updates in the socket *** -

$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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Add a user to a normal chat (use channels->inviteToChannel for supergroups) -$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md) +* Check if an invitation link is valid -$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Create a chat (not supergroup) -$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md) +* Delete a user from a chat (not supergroup) -$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Delete chat history -$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Delete messages -$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Edit admin permissions -$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) +* Edit the photo of a normal chat (not supergroup) -$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Edit the title of a normal chat (not supergroup) -$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) +* Export chat invite -$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) +* Forward message -$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['broadcast' => [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) +* Forward messages -$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [string](../types/string.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) +* Get all stickerpacks -$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get info about chats -$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) +* You cannot use this method directly, instead use $MadelineProto->get_dh_config(); -$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) +* Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html -$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) +* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[messages->getHistory](messages_getHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset_id' => [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) +* Get previous messages of a group -$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get messages -$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) +* Get and increase message views -$MadelineProto->[messages->getStickerSet](messages_getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) +* Get a stickerset -$MadelineProto->[messages->getStickers](messages_getStickers.md)(\['emoticon' => [string](../types/string.md), 'hash' => [string](../types/string.md), \]) === [$messages\_Stickers](../types/messages_Stickers.md) +* Get stickers -$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) === [$MessageMedia](../types/MessageMedia.md) +* Get webpage preview -$MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Import chat invite -$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'disabled' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Add a sticker set -$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) +* Convert chat to supergroup -$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Mark messages as read in secret chats -$MadelineProto->[messages->readHistory](messages_readHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Mark messages as read -$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Mark message as read -$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_ReceivedNotifyMessage](../types/ReceivedNotifyMessage.md) +* Mark messages as read -$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) +* You cannot use this method directly -$MadelineProto->[messages->reportSpam](messages_reportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Report a peer for spam -$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Search peers or messages -$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) +* Global message search -$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) +* Send a message to all users in the chat list -$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send message to secret chat -$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) +* Send a file to a secret chat -$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send a service message to a secret chat -$MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['broadcast' => [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) +* Send a media -$MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'broadcast' => [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) +* Send a message -$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Send typing notification to secret chat -$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) +* Change typing status -$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) +* Start a bot -$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Enable all users are admins in normal groups (not supergroups) -$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) +* Remove a sticker set *** -

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) +

* Delete profile photos -$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) +* Get the profile photos of a user -$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), 'crop' => [InputPhotoCrop](../types/InputPhotoCrop.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) +* Update the profile photo (use photos->uploadProfilePhoto to upload the photo) -$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) +* Upload profile photo *** -

$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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates -$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) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates -$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates *** -

$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) +

* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info *** -

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) +

* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) +* Get info about users diff --git a/old_docs/API_docs_v42/methods/account_changePhone.md b/old_docs/API_docs_v42/methods/account_changePhone.md index aeb5c4bc..65f0b0d0 100644 --- a/old_docs/API_docs_v42/methods/account_changePhone.md +++ b/old_docs/API_docs_v42/methods/account_changePhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); diff --git a/old_docs/API_docs_v42/methods/account_checkUsername.md b/old_docs/API_docs_v42/methods/account_checkUsername.md index 0124bb38..08107762 100644 --- a/old_docs/API_docs_v42/methods/account_checkUsername.md +++ b/old_docs/API_docs_v42/methods/account_checkUsername.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v42/methods/account_deleteAccount.md b/old_docs/API_docs_v42/methods/account_deleteAccount.md index e8b46c24..3a6f4700 100644 --- a/old_docs/API_docs_v42/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v42/methods/account_deleteAccount.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); diff --git a/old_docs/API_docs_v42/methods/account_getAccountTTL.md b/old_docs/API_docs_v42/methods/account_getAccountTTL.md index 0cdd0b98..ab6a6ea1 100644 --- a/old_docs/API_docs_v42/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v42/methods/account_getAccountTTL.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); diff --git a/old_docs/API_docs_v42/methods/account_getAuthorizations.md b/old_docs/API_docs_v42/methods/account_getAuthorizations.md index f92db8fe..303203e4 100644 --- a/old_docs/API_docs_v42/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v42/methods/account_getAuthorizations.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_Authorizations = $MadelineProto->account->getAuthorizations(); diff --git a/old_docs/API_docs_v42/methods/account_getNotifySettings.md b/old_docs/API_docs_v42/methods/account_getNotifySettings.md index f00be12c..ad492f49 100644 --- a/old_docs/API_docs_v42/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v42/methods/account_getNotifySettings.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); diff --git a/old_docs/API_docs_v42/methods/account_getPassword.md b/old_docs/API_docs_v42/methods/account_getPassword.md index c189421d..2692dab1 100644 --- a/old_docs/API_docs_v42/methods/account_getPassword.md +++ b/old_docs/API_docs_v42/methods/account_getPassword.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_Password = $MadelineProto->account->getPassword(); diff --git a/old_docs/API_docs_v42/methods/account_getPasswordSettings.md b/old_docs/API_docs_v42/methods/account_getPasswordSettings.md index 96cb953e..2039d405 100644 --- a/old_docs/API_docs_v42/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v42/methods/account_getPasswordSettings.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PasswordSettings = $MadelineProto->account->getPasswordSettings(['current_password_hash' => 'bytes', ]); diff --git a/old_docs/API_docs_v42/methods/account_getPrivacy.md b/old_docs/API_docs_v42/methods/account_getPrivacy.md index 979bfb94..5480ffbb 100644 --- a/old_docs/API_docs_v42/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v42/methods/account_getPrivacy.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); diff --git a/old_docs/API_docs_v42/methods/account_getWallPapers.md b/old_docs/API_docs_v42/methods/account_getWallPapers.md index 89b281be..7c8bff39 100644 --- a/old_docs/API_docs_v42/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v42/methods/account_getWallPapers.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); diff --git a/old_docs/API_docs_v42/methods/account_registerDevice.md b/old_docs/API_docs_v42/methods/account_registerDevice.md index 651e753f..8dae7506 100644 --- a/old_docs/API_docs_v42/methods/account_registerDevice.md +++ b/old_docs/API_docs_v42/methods/account_registerDevice.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'app_sandbox' => Bool, 'lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v42/methods/account_resetAuthorization.md b/old_docs/API_docs_v42/methods/account_resetAuthorization.md index 4155d3c8..543aee08 100644 --- a/old_docs/API_docs_v42/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v42/methods/account_resetAuthorization.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetAuthorization(['hash' => long, ]); diff --git a/old_docs/API_docs_v42/methods/account_resetNotifySettings.md b/old_docs/API_docs_v42/methods/account_resetNotifySettings.md index ccc836a9..557373b0 100644 --- a/old_docs/API_docs_v42/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v42/methods/account_resetNotifySettings.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); diff --git a/old_docs/API_docs_v42/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v42/methods/account_sendChangePhoneCode.md index 0b384269..930e0f76 100644 --- a/old_docs/API_docs_v42/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v42/methods/account_sendChangePhoneCode.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_SentChangePhoneCode = $MadelineProto->account->sendChangePhoneCode(['phone_number' => 'string', ]); diff --git a/old_docs/API_docs_v42/methods/account_setAccountTTL.md b/old_docs/API_docs_v42/methods/account_setAccountTTL.md index 5100e62e..bacdd77a 100644 --- a/old_docs/API_docs_v42/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v42/methods/account_setAccountTTL.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); diff --git a/old_docs/API_docs_v42/methods/account_setPrivacy.md b/old_docs/API_docs_v42/methods/account_setPrivacy.md index fbcedae7..6e24ded7 100644 --- a/old_docs/API_docs_v42/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v42/methods/account_setPrivacy.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); diff --git a/old_docs/API_docs_v42/methods/account_unregisterDevice.md b/old_docs/API_docs_v42/methods/account_unregisterDevice.md index 1d2b7670..b666d91a 100644 --- a/old_docs/API_docs_v42/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v42/methods/account_unregisterDevice.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); diff --git a/old_docs/API_docs_v42/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v42/methods/account_updateDeviceLocked.md index ef816501..cd52093a 100644 --- a/old_docs/API_docs_v42/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v42/methods/account_updateDeviceLocked.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); diff --git a/old_docs/API_docs_v42/methods/account_updateNotifySettings.md b/old_docs/API_docs_v42/methods/account_updateNotifySettings.md index 18cbdb75..db020309 100644 --- a/old_docs/API_docs_v42/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v42/methods/account_updateNotifySettings.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); diff --git a/old_docs/API_docs_v42/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v42/methods/account_updatePasswordSettings.md index 0754dd63..8af1e37f 100644 --- a/old_docs/API_docs_v42/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v42/methods/account_updatePasswordSettings.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updatePasswordSettings(['current_password_hash' => 'bytes', 'new_settings' => account_PasswordInputSettings, ]); diff --git a/old_docs/API_docs_v42/methods/account_updateProfile.md b/old_docs/API_docs_v42/methods/account_updateProfile.md index f16398ed..caea3391 100644 --- a/old_docs/API_docs_v42/methods/account_updateProfile.md +++ b/old_docs/API_docs_v42/methods/account_updateProfile.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', ]); diff --git a/old_docs/API_docs_v42/methods/account_updateStatus.md b/old_docs/API_docs_v42/methods/account_updateStatus.md index 4b049e65..50b99b1e 100644 --- a/old_docs/API_docs_v42/methods/account_updateStatus.md +++ b/old_docs/API_docs_v42/methods/account_updateStatus.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); diff --git a/old_docs/API_docs_v42/methods/account_updateUsername.md b/old_docs/API_docs_v42/methods/account_updateUsername.md index 08d2abe0..7276e2aa 100644 --- a/old_docs/API_docs_v42/methods/account_updateUsername.md +++ b/old_docs/API_docs_v42/methods/account_updateUsername.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v42/methods/api_README.md b/old_docs/API_docs_v42/methods/api_README.md new file mode 100644 index 00000000..1f111131 --- /dev/null +++ b/old_docs/API_docs_v42/methods/api_README.md @@ -0,0 +1,348 @@ +--- +title: Methods +description: List of methods +--- +# Methods +[Back to API documentation index](..) + +[Go to the new description-version method index](index.html) + +$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); + +$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); + +$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); + +$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); + +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); + + +$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); + +$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); + +$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); + +$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); + +$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); + + +$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); + +$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); + +*** +

$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) + +$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) + +$MadelineProto->[account->getAuthorizations](account_getAuthorizations.md)(\[\]) === [$account\_Authorizations](../types/account_Authorizations.md) + +$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) + +$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md) + +$MadelineProto->[account->getPasswordSettings](account_getPasswordSettings.md)(\['current_password_hash' => [bytes](../types/bytes.md), \]) === [$account\_PasswordSettings](../types/account_PasswordSettings.md) + +$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) + +$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) + +$MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->sendChangePhoneCode](account_sendChangePhoneCode.md)(\['phone_number' => [string](../types/string.md), \]) === [$account\_SentChangePhoneCode](../types/account_SentChangePhoneCode.md) + +$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[account->updateProfile](account_updateProfile.md)(\['first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), \]) === [$User](../types/User.md) + +$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) + +*** +

$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) + +$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) + +$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) + +$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$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) + +$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->recoverPassword](auth_recoverPassword.md)(\['code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->requestPasswordRecovery](auth_requestPasswordRecovery.md)(\[\]) === [$auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) + +$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->sendCall](auth_sendCall.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->sendSms](auth_sendSms.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$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) + +*** +

$MadelineProto->[channels->checkUsername](channels_checkUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->deleteChannel](channels_deleteChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->deleteMessages](channels_deleteMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[channels->deleteUserHistory](channels_deleteUserHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[channels->editAbout](channels_editAbout.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'about' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->editPhoto](channels_editPhoto.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->editTitle](channels_editTitle.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->exportInvite](channels_exportInvite.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) + +$MadelineProto->[channels->getChannels](channels_getChannels.md)(\['id' => \[[InputChannel](../types/InputChannel.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[channels->getDialogs](channels_getDialogs.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Dialogs](../types/messages_Dialogs.md) + +$MadelineProto->[channels->getFullChannel](channels_getFullChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$MadelineProto->[channels->getImportantHistory](channels_getImportantHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'offset_id' => [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) + +$MadelineProto->[channels->getMessages](channels_getMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) + +$MadelineProto->[channels->getParticipant](channels_getParticipant.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) + +$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) + +$MadelineProto->[channels->inviteToChannel](channels_inviteToChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'users' => \[[InputUser](../types/InputUser.md)\], \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->joinChannel](channels_joinChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$MadelineProto->[channels->leaveChannel](channels_leaveChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->readHistory](channels_readHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->toggleComments](channels_toggleComments.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->updateUsername](channels_updateUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) + +$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) + +$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) + +$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [string](../types/string.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) + +$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) + +$MadelineProto->[contacts->getSuggested](contacts_getSuggested.md)(\['limit' => [int](../types/int.md), \]) === [$contacts\_Suggested](../types/contacts_Suggested.md) + +$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) + +$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], 'replace' => [Bool](../types/Bool.md), \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) + +$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) + +$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) + +$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +*** +

$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) + +$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) + +$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) + +$MadelineProto->[help->getInviteText](help_getInviteText.md)(\['lang_code' => [string](../types/string.md), \]) === [$help\_InviteText](../types/help_InviteText.md) + +$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) + +$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) + +$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) + +*** +

$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) + +*** +

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeWithoutUpdates](invokeWithoutUpdates.md)(\['query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$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) + +$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) + +$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md) + +$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) + +$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['broadcast' => [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) + +$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [string](../types/string.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) + +$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) + +$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) + +$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$MadelineProto->[messages->getHistory](messages_getHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset_id' => [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) + +$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) + +$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) + +$MadelineProto->[messages->getStickerSet](messages_getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +$MadelineProto->[messages->getStickers](messages_getStickers.md)(\['emoticon' => [string](../types/string.md), 'hash' => [string](../types/string.md), \]) === [$messages\_Stickers](../types/messages_Stickers.md) + +$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) === [$MessageMedia](../types/MessageMedia.md) + +$MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'disabled' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->readHistory](messages_readHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_ReceivedNotifyMessage](../types/ReceivedNotifyMessage.md) + +$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) + +$MadelineProto->[messages->reportSpam](messages_reportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) + +$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) + +$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) + +$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) + +$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$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) + +$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['broadcast' => [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) + +$MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'broadcast' => [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) + +$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) + +$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) + +$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), 'crop' => [InputPhotoCrop](../types/InputPhotoCrop.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) + +$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) + +*** +

$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) + +$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) + +$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) + +*** +

$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) + +$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) + +$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) + +*** +

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) + +$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) + diff --git a/old_docs/API_docs_v42/methods/auth_checkPhone.md b/old_docs/API_docs_v42/methods/auth_checkPhone.md index 291221de..1826ce63 100644 --- a/old_docs/API_docs_v42/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v42/methods/auth_checkPhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); diff --git a/old_docs/API_docs_v42/methods/auth_recoverPassword.md b/old_docs/API_docs_v42/methods/auth_recoverPassword.md index cdc9bd7d..5e37b0f3 100644 --- a/old_docs/API_docs_v42/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v42/methods/auth_recoverPassword.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_Authorization = $MadelineProto->auth->recoverPassword(['code' => 'string', ]); diff --git a/old_docs/API_docs_v42/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v42/methods/auth_requestPasswordRecovery.md index e18c6c93..c69d0c49 100644 --- a/old_docs/API_docs_v42/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v42/methods/auth_requestPasswordRecovery.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_PasswordRecovery = $MadelineProto->auth->requestPasswordRecovery(); diff --git a/old_docs/API_docs_v42/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v42/methods/auth_resetAuthorizations.md index 47feea16..a46c880d 100644 --- a/old_docs/API_docs_v42/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v42/methods/auth_resetAuthorizations.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); diff --git a/old_docs/API_docs_v42/methods/auth_sendCall.md b/old_docs/API_docs_v42/methods/auth_sendCall.md index e2bd2855..5947cda7 100644 --- a/old_docs/API_docs_v42/methods/auth_sendCall.md +++ b/old_docs/API_docs_v42/methods/auth_sendCall.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendCall(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v42/methods/auth_sendInvites.md b/old_docs/API_docs_v42/methods/auth_sendInvites.md index be32fe6b..9b88b4a3 100644 --- a/old_docs/API_docs_v42/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v42/methods/auth_sendInvites.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); diff --git a/old_docs/API_docs_v42/methods/auth_sendSms.md b/old_docs/API_docs_v42/methods/auth_sendSms.md index a17fdd3a..41340660 100644 --- a/old_docs/API_docs_v42/methods/auth_sendSms.md +++ b/old_docs/API_docs_v42/methods/auth_sendSms.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendSms(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v42/methods/channels_checkUsername.md b/old_docs/API_docs_v42/methods/channels_checkUsername.md index 7bc7c245..7e3d5a89 100644 --- a/old_docs/API_docs_v42/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v42/methods/channels_checkUsername.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->checkUsername(['channel' => InputChannel, 'username' => 'string', ]); diff --git a/old_docs/API_docs_v42/methods/channels_createChannel.md b/old_docs/API_docs_v42/methods/channels_createChannel.md index 1305e4fb..a5ddc379 100644 --- a/old_docs/API_docs_v42/methods/channels_createChannel.md +++ b/old_docs/API_docs_v42/methods/channels_createChannel.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->createChannel(['broadcast' => Bool, 'megagroup' => Bool, 'title' => 'string', 'about' => 'string', ]); diff --git a/old_docs/API_docs_v42/methods/channels_deleteChannel.md b/old_docs/API_docs_v42/methods/channels_deleteChannel.md index e660d25c..69dad9a3 100644 --- a/old_docs/API_docs_v42/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v42/methods/channels_deleteChannel.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->deleteChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v42/methods/channels_deleteMessages.md b/old_docs/API_docs_v42/methods/channels_deleteMessages.md index fb9d3cc2..b12270b3 100644 --- a/old_docs/API_docs_v42/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v42/methods/channels_deleteMessages.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v42/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v42/methods/channels_deleteUserHistory.md index fbe34341..75f531bb 100644 --- a/old_docs/API_docs_v42/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v42/methods/channels_deleteUserHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->channels->deleteUserHistory(['channel' => InputChannel, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v42/methods/channels_editAbout.md b/old_docs/API_docs_v42/methods/channels_editAbout.md index 8908f29e..67521065 100644 --- a/old_docs/API_docs_v42/methods/channels_editAbout.md +++ b/old_docs/API_docs_v42/methods/channels_editAbout.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->editAbout(['channel' => InputChannel, 'about' => 'string', ]); diff --git a/old_docs/API_docs_v42/methods/channels_editAdmin.md b/old_docs/API_docs_v42/methods/channels_editAdmin.md index 01662a1d..7b6cc0f1 100644 --- a/old_docs/API_docs_v42/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v42/methods/channels_editAdmin.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editAdmin(['channel' => InputChannel, 'user_id' => InputUser, 'role' => ChannelParticipantRole, ]); diff --git a/old_docs/API_docs_v42/methods/channels_editPhoto.md b/old_docs/API_docs_v42/methods/channels_editPhoto.md index 9ccd864f..c854c64a 100644 --- a/old_docs/API_docs_v42/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v42/methods/channels_editPhoto.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editPhoto(['channel' => InputChannel, 'photo' => InputChatPhoto, ]); diff --git a/old_docs/API_docs_v42/methods/channels_editTitle.md b/old_docs/API_docs_v42/methods/channels_editTitle.md index b1024faf..9bc6773e 100644 --- a/old_docs/API_docs_v42/methods/channels_editTitle.md +++ b/old_docs/API_docs_v42/methods/channels_editTitle.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editTitle(['channel' => InputChannel, 'title' => 'string', ]); diff --git a/old_docs/API_docs_v42/methods/channels_exportInvite.md b/old_docs/API_docs_v42/methods/channels_exportInvite.md index f0c737d5..ca65dcc8 100644 --- a/old_docs/API_docs_v42/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v42/methods/channels_exportInvite.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedChatInvite = $MadelineProto->channels->exportInvite(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v42/methods/channels_getChannels.md b/old_docs/API_docs_v42/methods/channels_getChannels.md index 9cd9e798..af22556f 100644 --- a/old_docs/API_docs_v42/methods/channels_getChannels.md +++ b/old_docs/API_docs_v42/methods/channels_getChannels.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel, InputChannel], ]); diff --git a/old_docs/API_docs_v42/methods/channels_getDialogs.md b/old_docs/API_docs_v42/methods/channels_getDialogs.md index 9ad21720..1b5837b7 100644 --- a/old_docs/API_docs_v42/methods/channels_getDialogs.md +++ b/old_docs/API_docs_v42/methods/channels_getDialogs.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Dialogs = $MadelineProto->channels->getDialogs(['offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v42/methods/channels_getImportantHistory.md b/old_docs/API_docs_v42/methods/channels_getImportantHistory.md index 66be0b21..861e4a32 100644 --- a/old_docs/API_docs_v42/methods/channels_getImportantHistory.md +++ b/old_docs/API_docs_v42/methods/channels_getImportantHistory.md @@ -34,12 +34,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->channels->getImportantHistory(['channel' => InputChannel, 'offset_id' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); diff --git a/old_docs/API_docs_v42/methods/channels_getMessages.md b/old_docs/API_docs_v42/methods/channels_getMessages.md index cc944fe5..eda13d0b 100644 --- a/old_docs/API_docs_v42/methods/channels_getMessages.md +++ b/old_docs/API_docs_v42/methods/channels_getMessages.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v42/methods/channels_getParticipant.md b/old_docs/API_docs_v42/methods/channels_getParticipant.md index db9b1fc6..be5fe96a 100644 --- a/old_docs/API_docs_v42/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v42/methods/channels_getParticipant.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $channels_ChannelParticipant = $MadelineProto->channels->getParticipant(['channel' => InputChannel, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v42/methods/channels_getParticipants.md b/old_docs/API_docs_v42/methods/channels_getParticipants.md index 96662466..6a27016b 100644 --- a/old_docs/API_docs_v42/methods/channels_getParticipants.md +++ b/old_docs/API_docs_v42/methods/channels_getParticipants.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $channels_ChannelParticipants = $MadelineProto->channels->getParticipants(['channel' => InputChannel, 'filter' => ChannelParticipantsFilter, 'offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v42/methods/channels_inviteToChannel.md b/old_docs/API_docs_v42/methods/channels_inviteToChannel.md index 676f800c..e7d12db7 100644 --- a/old_docs/API_docs_v42/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v42/methods/channels_inviteToChannel.md @@ -52,12 +52,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v42/methods/channels_joinChannel.md b/old_docs/API_docs_v42/methods/channels_joinChannel.md index 721f707c..3ac2b326 100644 --- a/old_docs/API_docs_v42/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v42/methods/channels_joinChannel.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->joinChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v42/methods/channels_kickFromChannel.md b/old_docs/API_docs_v42/methods/channels_kickFromChannel.md index bf8bb5b8..8f6c92be 100644 --- a/old_docs/API_docs_v42/methods/channels_kickFromChannel.md +++ b/old_docs/API_docs_v42/methods/channels_kickFromChannel.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->kickFromChannel(['channel' => InputChannel, 'user_id' => InputUser, 'kicked' => Bool, ]); diff --git a/old_docs/API_docs_v42/methods/channels_leaveChannel.md b/old_docs/API_docs_v42/methods/channels_leaveChannel.md index 7f02e08c..95b60a90 100644 --- a/old_docs/API_docs_v42/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v42/methods/channels_leaveChannel.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->leaveChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v42/methods/channels_readHistory.md b/old_docs/API_docs_v42/methods/channels_readHistory.md index cca891f0..c6b14541 100644 --- a/old_docs/API_docs_v42/methods/channels_readHistory.md +++ b/old_docs/API_docs_v42/methods/channels_readHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->readHistory(['channel' => InputChannel, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v42/methods/channels_reportSpam.md b/old_docs/API_docs_v42/methods/channels_reportSpam.md index 09af14e0..ca5c28f5 100644 --- a/old_docs/API_docs_v42/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v42/methods/channels_reportSpam.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v42/methods/channels_toggleComments.md b/old_docs/API_docs_v42/methods/channels_toggleComments.md index 73ef8d23..cc9f478d 100644 --- a/old_docs/API_docs_v42/methods/channels_toggleComments.md +++ b/old_docs/API_docs_v42/methods/channels_toggleComments.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->toggleComments(['channel' => InputChannel, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v42/methods/channels_updateUsername.md b/old_docs/API_docs_v42/methods/channels_updateUsername.md index ad34490a..2093b6ce 100644 --- a/old_docs/API_docs_v42/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v42/methods/channels_updateUsername.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->updateUsername(['channel' => InputChannel, 'username' => 'string', ]); diff --git a/old_docs/API_docs_v42/methods/contacts_block.md b/old_docs/API_docs_v42/methods/contacts_block.md index d0729d30..e592cace 100644 --- a/old_docs/API_docs_v42/methods/contacts_block.md +++ b/old_docs/API_docs_v42/methods/contacts_block.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v42/methods/contacts_deleteContact.md b/old_docs/API_docs_v42/methods/contacts_deleteContact.md index b8c17544..1a3f2a27 100644 --- a/old_docs/API_docs_v42/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v42/methods/contacts_deleteContact.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v42/methods/contacts_deleteContacts.md b/old_docs/API_docs_v42/methods/contacts_deleteContacts.md index 64c69460..f6627599 100644 --- a/old_docs/API_docs_v42/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v42/methods/contacts_deleteContacts.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v42/methods/contacts_exportCard.md b/old_docs/API_docs_v42/methods/contacts_exportCard.md index b05f57ce..1d2129f3 100644 --- a/old_docs/API_docs_v42/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v42/methods/contacts_exportCard.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); diff --git a/old_docs/API_docs_v42/methods/contacts_getBlocked.md b/old_docs/API_docs_v42/methods/contacts_getBlocked.md index d7d8c5cc..44d24aba 100644 --- a/old_docs/API_docs_v42/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v42/methods/contacts_getBlocked.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v42/methods/contacts_getContacts.md b/old_docs/API_docs_v42/methods/contacts_getContacts.md index 1ab8af27..83c4846f 100644 --- a/old_docs/API_docs_v42/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v42/methods/contacts_getContacts.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v42/methods/contacts_getStatuses.md b/old_docs/API_docs_v42/methods/contacts_getStatuses.md index b927a140..5cef3084 100644 --- a/old_docs/API_docs_v42/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v42/methods/contacts_getStatuses.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); diff --git a/old_docs/API_docs_v42/methods/contacts_getSuggested.md b/old_docs/API_docs_v42/methods/contacts_getSuggested.md index 302e60e5..1ce04bef 100644 --- a/old_docs/API_docs_v42/methods/contacts_getSuggested.md +++ b/old_docs/API_docs_v42/methods/contacts_getSuggested.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Suggested = $MadelineProto->contacts->getSuggested(['limit' => int, ]); diff --git a/old_docs/API_docs_v42/methods/contacts_importCard.md b/old_docs/API_docs_v42/methods/contacts_importCard.md index 81a1e138..89c96657 100644 --- a/old_docs/API_docs_v42/methods/contacts_importCard.md +++ b/old_docs/API_docs_v42/methods/contacts_importCard.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); diff --git a/old_docs/API_docs_v42/methods/contacts_importContacts.md b/old_docs/API_docs_v42/methods/contacts_importContacts.md index 578e5dfd..cd3d6615 100644 --- a/old_docs/API_docs_v42/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v42/methods/contacts_importContacts.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], 'replace' => Bool, ]); diff --git a/old_docs/API_docs_v42/methods/contacts_search.md b/old_docs/API_docs_v42/methods/contacts_search.md index 68daecd6..64ff748e 100644 --- a/old_docs/API_docs_v42/methods/contacts_search.md +++ b/old_docs/API_docs_v42/methods/contacts_search.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); diff --git a/old_docs/API_docs_v42/methods/contacts_unblock.md b/old_docs/API_docs_v42/methods/contacts_unblock.md index f7d151b9..ec72ae2d 100644 --- a/old_docs/API_docs_v42/methods/contacts_unblock.md +++ b/old_docs/API_docs_v42/methods/contacts_unblock.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v42/methods/help_getAppChangelog.md b/old_docs/API_docs_v42/methods/help_getAppChangelog.md index dbca4fc8..eb48fabb 100644 --- a/old_docs/API_docs_v42/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v42/methods/help_getAppChangelog.md @@ -32,12 +32,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_AppChangelog = $MadelineProto->help->getAppChangelog(['device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v42/methods/help_getAppUpdate.md b/old_docs/API_docs_v42/methods/help_getAppUpdate.md index f97da105..ad5b8228 100644 --- a/old_docs/API_docs_v42/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v42/methods/help_getAppUpdate.md @@ -32,12 +32,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(['device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v42/methods/help_getConfig.md b/old_docs/API_docs_v42/methods/help_getConfig.md index 16e25c68..ca4bfc25 100644 --- a/old_docs/API_docs_v42/methods/help_getConfig.md +++ b/old_docs/API_docs_v42/methods/help_getConfig.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); diff --git a/old_docs/API_docs_v42/methods/help_getInviteText.md b/old_docs/API_docs_v42/methods/help_getInviteText.md index 0831ba5f..ad6ac262 100644 --- a/old_docs/API_docs_v42/methods/help_getInviteText.md +++ b/old_docs/API_docs_v42/methods/help_getInviteText.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(['lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v42/methods/help_getNearestDc.md b/old_docs/API_docs_v42/methods/help_getNearestDc.md index 35a8bf91..458f60ab 100644 --- a/old_docs/API_docs_v42/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v42/methods/help_getNearestDc.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); diff --git a/old_docs/API_docs_v42/methods/help_getSupport.md b/old_docs/API_docs_v42/methods/help_getSupport.md index a5bab0f2..9ee25b00 100644 --- a/old_docs/API_docs_v42/methods/help_getSupport.md +++ b/old_docs/API_docs_v42/methods/help_getSupport.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); diff --git a/old_docs/API_docs_v42/methods/help_saveAppLog.md b/old_docs/API_docs_v42/methods/help_saveAppLog.md index 0165b6e3..a7884c47 100644 --- a/old_docs/API_docs_v42/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v42/methods/help_saveAppLog.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); diff --git a/old_docs/API_docs_v42/methods/initConnection.md b/old_docs/API_docs_v42/methods/initConnection.md index 2d3d86ad..73620276 100644 --- a/old_docs/API_docs_v42/methods/initConnection.md +++ b/old_docs/API_docs_v42/methods/initConnection.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->initConnection(['api_id' => int, 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', 'query' => !X, ]); diff --git a/old_docs/API_docs_v42/methods/invokeAfterMsg.md b/old_docs/API_docs_v42/methods/invokeAfterMsg.md index e33a2c93..8e953e78 100644 --- a/old_docs/API_docs_v42/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v42/methods/invokeAfterMsg.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); diff --git a/old_docs/API_docs_v42/methods/invokeAfterMsgs.md b/old_docs/API_docs_v42/methods/invokeAfterMsgs.md index 3150a613..bc8a83b7 100644 --- a/old_docs/API_docs_v42/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v42/methods/invokeAfterMsgs.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); diff --git a/old_docs/API_docs_v42/methods/invokeWithLayer.md b/old_docs/API_docs_v42/methods/invokeWithLayer.md index 71d02abb..8a0c4e79 100644 --- a/old_docs/API_docs_v42/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v42/methods/invokeWithLayer.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); diff --git a/old_docs/API_docs_v42/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v42/methods/invokeWithoutUpdates.md index 2bab236a..2d90a776 100644 --- a/old_docs/API_docs_v42/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v42/methods/invokeWithoutUpdates.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeWithoutUpdates(['query' => !X, ]); diff --git a/old_docs/API_docs_v42/methods/messages_addChatUser.md b/old_docs/API_docs_v42/methods/messages_addChatUser.md index 3e4c5ccc..c6ef275f 100644 --- a/old_docs/API_docs_v42/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v42/methods/messages_addChatUser.md @@ -46,12 +46,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); diff --git a/old_docs/API_docs_v42/methods/messages_checkChatInvite.md b/old_docs/API_docs_v42/methods/messages_checkChatInvite.md index de1d9ff4..cea63313 100644 --- a/old_docs/API_docs_v42/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v42/methods/messages_checkChatInvite.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ChatInvite = $MadelineProto->messages->checkChatInvite(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v42/methods/messages_createChat.md b/old_docs/API_docs_v42/methods/messages_createChat.md index 68c0263a..966f58dc 100644 --- a/old_docs/API_docs_v42/methods/messages_createChat.md +++ b/old_docs/API_docs_v42/methods/messages_createChat.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); diff --git a/old_docs/API_docs_v42/methods/messages_deleteChatUser.md b/old_docs/API_docs_v42/methods/messages_deleteChatUser.md index 0a6830de..9a9227ba 100644 --- a/old_docs/API_docs_v42/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v42/methods/messages_deleteChatUser.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v42/methods/messages_deleteHistory.md b/old_docs/API_docs_v42/methods/messages_deleteHistory.md index d883a9ad..4cb70ec8 100644 --- a/old_docs/API_docs_v42/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v42/methods/messages_deleteHistory.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['peer' => InputPeer, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v42/methods/messages_deleteMessages.md b/old_docs/API_docs_v42/methods/messages_deleteMessages.md index 41570996..fa043e1c 100644 --- a/old_docs/API_docs_v42/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v42/methods/messages_deleteMessages.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v42/methods/messages_editChatAdmin.md b/old_docs/API_docs_v42/methods/messages_editChatAdmin.md index 7916f8b1..5bba0559 100644 --- a/old_docs/API_docs_v42/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v42/methods/messages_editChatAdmin.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]); diff --git a/old_docs/API_docs_v42/methods/messages_editChatPhoto.md b/old_docs/API_docs_v42/methods/messages_editChatPhoto.md index 122913c4..5827a5cc 100644 --- a/old_docs/API_docs_v42/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v42/methods/messages_editChatPhoto.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); diff --git a/old_docs/API_docs_v42/methods/messages_editChatTitle.md b/old_docs/API_docs_v42/methods/messages_editChatTitle.md index 3a1e974b..2e69d790 100644 --- a/old_docs/API_docs_v42/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v42/methods/messages_editChatTitle.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); diff --git a/old_docs/API_docs_v42/methods/messages_exportChatInvite.md b/old_docs/API_docs_v42/methods/messages_exportChatInvite.md index 98685d96..ec80e207 100644 --- a/old_docs/API_docs_v42/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v42/methods/messages_exportChatInvite.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]); diff --git a/old_docs/API_docs_v42/methods/messages_forwardMessage.md b/old_docs/API_docs_v42/methods/messages_forwardMessage.md index 45b7a07f..d6916437 100644 --- a/old_docs/API_docs_v42/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v42/methods/messages_forwardMessage.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); diff --git a/old_docs/API_docs_v42/methods/messages_forwardMessages.md b/old_docs/API_docs_v42/methods/messages_forwardMessages.md index b7273f1d..6a646f5f 100644 --- a/old_docs/API_docs_v42/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v42/methods/messages_forwardMessages.md @@ -60,12 +60,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessages(['broadcast' => Bool, 'from_peer' => InputPeer, 'id' => [int, int], 'to_peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v42/methods/messages_getAllStickers.md b/old_docs/API_docs_v42/methods/messages_getAllStickers.md index d4193723..322f9b0b 100644 --- a/old_docs/API_docs_v42/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v42/methods/messages_getAllStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v42/methods/messages_getChats.md b/old_docs/API_docs_v42/methods/messages_getChats.md index 290438a1..e84c7193 100644 --- a/old_docs/API_docs_v42/methods/messages_getChats.md +++ b/old_docs/API_docs_v42/methods/messages_getChats.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v42/methods/messages_getDialogs.md b/old_docs/API_docs_v42/methods/messages_getDialogs.md index 7a28bd83..bd3ef681 100644 --- a/old_docs/API_docs_v42/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v42/methods/messages_getDialogs.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['offset_date' => int, 'offset_id' => int, 'offset_peer' => InputPeer, 'limit' => int, ]); diff --git a/old_docs/API_docs_v42/methods/messages_getHistory.md b/old_docs/API_docs_v42/methods/messages_getHistory.md index dd61853d..dfefb639 100644 --- a/old_docs/API_docs_v42/methods/messages_getHistory.md +++ b/old_docs/API_docs_v42/methods/messages_getHistory.md @@ -46,12 +46,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getHistory(['peer' => InputPeer, 'offset_id' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); diff --git a/old_docs/API_docs_v42/methods/messages_getMessages.md b/old_docs/API_docs_v42/methods/messages_getMessages.md index 86d1da8a..d538cb5f 100644 --- a/old_docs/API_docs_v42/methods/messages_getMessages.md +++ b/old_docs/API_docs_v42/methods/messages_getMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v42/methods/messages_getMessagesViews.md b/old_docs/API_docs_v42/methods/messages_getMessagesViews.md index b8d78c85..934adc16 100644 --- a/old_docs/API_docs_v42/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v42/methods/messages_getMessagesViews.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int, int], 'increment' => Bool, ]); diff --git a/old_docs/API_docs_v42/methods/messages_getStickerSet.md b/old_docs/API_docs_v42/methods/messages_getStickerSet.md index c86807e4..c9140ab2 100644 --- a/old_docs/API_docs_v42/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v42/methods/messages_getStickerSet.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSet = $MadelineProto->messages->getStickerSet(['stickerset' => InputStickerSet, ]); diff --git a/old_docs/API_docs_v42/methods/messages_getStickers.md b/old_docs/API_docs_v42/methods/messages_getStickers.md index 4854696d..d2ea57cf 100644 --- a/old_docs/API_docs_v42/methods/messages_getStickers.md +++ b/old_docs/API_docs_v42/methods/messages_getStickers.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Stickers = $MadelineProto->messages->getStickers(['emoticon' => 'string', 'hash' => 'string', ]); diff --git a/old_docs/API_docs_v42/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v42/methods/messages_getWebPagePreview.md index d01bdd32..e8b20c5d 100644 --- a/old_docs/API_docs_v42/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v42/methods/messages_getWebPagePreview.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $MessageMedia = $MadelineProto->messages->getWebPagePreview(['message' => 'string', ]); diff --git a/old_docs/API_docs_v42/methods/messages_importChatInvite.md b/old_docs/API_docs_v42/methods/messages_importChatInvite.md index 0d6cd7c8..b1830a9b 100644 --- a/old_docs/API_docs_v42/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v42/methods/messages_importChatInvite.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->importChatInvite(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v42/methods/messages_installStickerSet.md b/old_docs/API_docs_v42/methods/messages_installStickerSet.md index 04b693cd..77c5a2a5 100644 --- a/old_docs/API_docs_v42/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v42/methods/messages_installStickerSet.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->installStickerSet(['stickerset' => InputStickerSet, 'disabled' => Bool, ]); diff --git a/old_docs/API_docs_v42/methods/messages_migrateChat.md b/old_docs/API_docs_v42/methods/messages_migrateChat.md index db57adfa..22ccfcc1 100644 --- a/old_docs/API_docs_v42/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v42/methods/messages_migrateChat.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]); diff --git a/old_docs/API_docs_v42/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v42/methods/messages_readEncryptedHistory.md index 39b110e3..2ba4cca4 100644 --- a/old_docs/API_docs_v42/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v42/methods/messages_readEncryptedHistory.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); diff --git a/old_docs/API_docs_v42/methods/messages_readHistory.md b/old_docs/API_docs_v42/methods/messages_readHistory.md index 3de17061..26b608af 100644 --- a/old_docs/API_docs_v42/methods/messages_readHistory.md +++ b/old_docs/API_docs_v42/methods/messages_readHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v42/methods/messages_readMessageContents.md b/old_docs/API_docs_v42/methods/messages_readMessageContents.md index 9bb1bee8..a09cb63e 100644 --- a/old_docs/API_docs_v42/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v42/methods/messages_readMessageContents.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v42/methods/messages_receivedMessages.md b/old_docs/API_docs_v42/methods/messages_receivedMessages.md index 7aab635f..b5e87992 100644 --- a/old_docs/API_docs_v42/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v42/methods/messages_receivedMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_ReceivedNotifyMessage = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); diff --git a/old_docs/API_docs_v42/methods/messages_reportSpam.md b/old_docs/API_docs_v42/methods/messages_reportSpam.md index 2e2b1177..09c1e63b 100644 --- a/old_docs/API_docs_v42/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v42/methods/messages_reportSpam.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reportSpam(['peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v42/methods/messages_search.md b/old_docs/API_docs_v42/methods/messages_search.md index f63e235d..01af8760 100644 --- a/old_docs/API_docs_v42/methods/messages_search.md +++ b/old_docs/API_docs_v42/methods/messages_search.md @@ -50,12 +50,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->search(['important_only' => Bool, 'peer' => InputPeer, 'q' => 'string', 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v42/methods/messages_searchGlobal.md b/old_docs/API_docs_v42/methods/messages_searchGlobal.md index 0edd1e40..6ad4aec0 100644 --- a/old_docs/API_docs_v42/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v42/methods/messages_searchGlobal.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->searchGlobal(['q' => 'string', 'offset_date' => int, 'offset_peer' => InputPeer, 'offset_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v42/methods/messages_sendBroadcast.md b/old_docs/API_docs_v42/methods/messages_sendBroadcast.md index 28e248a9..6cff8b29 100644 --- a/old_docs/API_docs_v42/methods/messages_sendBroadcast.md +++ b/old_docs/API_docs_v42/methods/messages_sendBroadcast.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendBroadcast(['contacts' => [InputUser, InputUser], 'message' => 'string', 'media' => InputMedia, ]); diff --git a/old_docs/API_docs_v42/methods/messages_sendEncrypted.md b/old_docs/API_docs_v42/methods/messages_sendEncrypted.md index d48f88d7..76305f32 100644 --- a/old_docs/API_docs_v42/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v42/methods/messages_sendEncrypted.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v42/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v42/methods/messages_sendEncryptedFile.md index 4fd0648e..8db2ead9 100644 --- a/old_docs/API_docs_v42/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v42/methods/messages_sendEncryptedFile.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); diff --git a/old_docs/API_docs_v42/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v42/methods/messages_sendEncryptedService.md index d66894bf..c7836c94 100644 --- a/old_docs/API_docs_v42/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v42/methods/messages_sendEncryptedService.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v42/methods/messages_sendMedia.md b/old_docs/API_docs_v42/methods/messages_sendMedia.md index 566334c0..694ccc4b 100644 --- a/old_docs/API_docs_v42/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v42/methods/messages_sendMedia.md @@ -61,12 +61,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendMedia(['broadcast' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, 'reply_markup' => ReplyMarkup, ]); diff --git a/old_docs/API_docs_v42/methods/messages_sendMessage.md b/old_docs/API_docs_v42/methods/messages_sendMessage.md index 82d5e61d..0c3ef389 100644 --- a/old_docs/API_docs_v42/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v42/methods/messages_sendMessage.md @@ -63,12 +63,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendMessage(['no_webpage' => Bool, 'broadcast' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v42/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v42/methods/messages_setEncryptedTyping.md index e9afe99c..4e7450eb 100644 --- a/old_docs/API_docs_v42/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v42/methods/messages_setEncryptedTyping.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); diff --git a/old_docs/API_docs_v42/methods/messages_setTyping.md b/old_docs/API_docs_v42/methods/messages_setTyping.md index bea4982b..a2b94823 100644 --- a/old_docs/API_docs_v42/methods/messages_setTyping.md +++ b/old_docs/API_docs_v42/methods/messages_setTyping.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); diff --git a/old_docs/API_docs_v42/methods/messages_startBot.md b/old_docs/API_docs_v42/methods/messages_startBot.md index 94a4d86a..50d6f475 100644 --- a/old_docs/API_docs_v42/methods/messages_startBot.md +++ b/old_docs/API_docs_v42/methods/messages_startBot.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'peer' => InputPeer, 'start_param' => 'string', ]); diff --git a/old_docs/API_docs_v42/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v42/methods/messages_toggleChatAdmins.md index ab591fd9..349ea0e6 100644 --- a/old_docs/API_docs_v42/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v42/methods/messages_toggleChatAdmins.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => InputPeer, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v42/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v42/methods/messages_uninstallStickerSet.md index 6d04e847..26b2fbb3 100644 --- a/old_docs/API_docs_v42/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v42/methods/messages_uninstallStickerSet.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->uninstallStickerSet(['stickerset' => InputStickerSet, ]); diff --git a/old_docs/API_docs_v42/methods/photos_deletePhotos.md b/old_docs/API_docs_v42/methods/photos_deletePhotos.md index b9daca10..937aadd5 100644 --- a/old_docs/API_docs_v42/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v42/methods/photos_deletePhotos.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); diff --git a/old_docs/API_docs_v42/methods/photos_getUserPhotos.md b/old_docs/API_docs_v42/methods/photos_getUserPhotos.md index ea27a44f..d1c15e90 100644 --- a/old_docs/API_docs_v42/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v42/methods/photos_getUserPhotos.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => long, 'limit' => int, ]); diff --git a/old_docs/API_docs_v42/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v42/methods/photos_updateProfilePhoto.md index 2d1e1e76..4c5c517f 100644 --- a/old_docs/API_docs_v42/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v42/methods/photos_updateProfilePhoto.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, 'crop' => InputPhotoCrop, ]); diff --git a/old_docs/API_docs_v42/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v42/methods/photos_uploadProfilePhoto.md index 6ff4ddf5..3d7d301b 100644 --- a/old_docs/API_docs_v42/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v42/methods/photos_uploadProfilePhoto.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, 'caption' => 'string', 'geo_point' => InputGeoPoint, 'crop' => InputPhotoCrop, ]); diff --git a/old_docs/API_docs_v42/methods/users_getUsers.md b/old_docs/API_docs_v42/methods/users_getUsers.md index ef1c7fd8..bce13ee6 100644 --- a/old_docs/API_docs_v42/methods/users_getUsers.md +++ b/old_docs/API_docs_v42/methods/users_getUsers.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v44/README.md b/old_docs/API_docs_v44/README.md index baa3f0da..e2a1e624 100644 --- a/old_docs/API_docs_v44/README.md +++ b/old_docs/API_docs_v44/README.md @@ -4,11 +4,11 @@ description: MadelineProto API documentation (layer v44) --- # MadelineProto API documentation (layer v44) +[Back to main documentation](..) + + [Methods](methods/) [Constructors](constructors/) -[Types](types/) - - -[Back to main documentation](..) +[Types](types/) \ No newline at end of file diff --git a/old_docs/API_docs_v44/methods/README.md b/old_docs/API_docs_v44/methods/README.md index 37b2a11c..d2b68bdb 100644 --- a/old_docs/API_docs_v44/methods/README.md +++ b/old_docs/API_docs_v44/methods/README.md @@ -1,357 +1,352 @@ --- title: Methods -description: List of methods +description: What do you want to do? --- -# Methods -[Back to API documentation index](..) +# What do you want to do? +[Go back to API documentation index](..) +[Go to the old code-version method index](api_index.html) -$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); +* [Logout](https://docs.madelineproto.xyz/logout.html) -$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); +* [Login](https://docs.madelineproto.xyz/docs/LOGIN.html) -$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); +* [Get all chats, broadcast a message to all chats](https://docs.madelineproto.xyz/docs/DIALOGS.html) -$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); +* [Get the full participant list of a channel/group/supergroup](https://docs.madelineproto.xyz/get_pwr_chat.html) -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); +* [Get full info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_full_info.html) +* [Get info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_info.html) -$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); +* [Get info about the currently logged-in user](https://docs.madelineproto.xyz/get_self.html) -$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); +* [Upload or download files up to 1.5 GB](https://docs.madelineproto.xyz/docs/FILES.html) -$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); +* [Make a phone call and play a song](https://docs.madelineproto.xyz/docs/CALLS.html) -$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); - -$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); - - -$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); - -$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); +* [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) *** -

$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) +

* Change the phone number associated to this account -$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Check if this username is available -$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Delete this account -$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) +* Get account TTL -$MadelineProto->[account->getAuthorizations](account_getAuthorizations.md)(\[\]) === [$account\_Authorizations](../types/account_Authorizations.md) +* Get all logged-in authorizations -$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) +* Get notification settings -$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md) +* Get the current password -$MadelineProto->[account->getPasswordSettings](account_getPasswordSettings.md)(\['current_password_hash' => [bytes](../types/bytes.md), \]) === [$account\_PasswordSettings](../types/account_PasswordSettings.md) +* Get the current 2FA settings -$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Get privacy settings -$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) +* Returns a list of available wallpapers. -$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) +* Register device for push notifications -$MadelineProto->[account->reportPeer](account_reportPeer.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reason' => [ReportReason](../types/ReportReason.md), \]) === [$Bool](../types/Bool.md) +* Report for spam -$MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) +* Delete a certain session -$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) +* Reset all notification settings -$MadelineProto->[account->sendChangePhoneCode](account_sendChangePhoneCode.md)(\['phone_number' => [string](../types/string.md), \]) === [$account\_SentChangePhoneCode](../types/account_SentChangePhoneCode.md) +* Change the phone number -$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) +* Set account TTL -$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Set privacy settings -$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Stop sending PUSH notifications to app -$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Disable all notifications for a certain period -$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) +* Change notification settings -$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) +* Update the 2FA password settings -$MadelineProto->[account->updateProfile](account_updateProfile.md)(\['first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), \]) === [$User](../types/User.md) +* Update profile info -$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Update online status -$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) +* Update this user's username *** -

$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) +

* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info -$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) +* Check if this phone number is registered on telegram -$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) +* You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$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) +* You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->recoverPassword](auth_recoverPassword.md)(\['code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account -$MadelineProto->[auth->requestPasswordRecovery](auth_requestPasswordRecovery.md)(\[\]) === [$auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) +* Send an email to recover the 2FA password -$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) +* Delete all logged-in sessions. -$MadelineProto->[auth->sendCall](auth_sendCall.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Send verification phone call -$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) +* Use phone_login instead -$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Invite friends to telegram! -$MadelineProto->[auth->sendSms](auth_sendSms.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Send SMS verification code -$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) +* You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) -$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) +* You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) *** -

$MadelineProto->[channels->checkUsername](channels_checkUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +

* Check if this username is free and can be assigned to a channel/supergroup -$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) +* Create channel/supergroup -$MadelineProto->[channels->deleteChannel](channels_deleteChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Delete a channel/supergroup -$MadelineProto->[channels->deleteMessages](channels_deleteMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Delete channel/supergroup messages -$MadelineProto->[channels->deleteUserHistory](channels_deleteUserHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Delete all messages of a user in a channel/supergroup -$MadelineProto->[channels->editAbout](channels_editAbout.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'about' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Edit the about text of a channel/supergroup -$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) +* Edit admin permissions of a user in a channel/supergroup -$MadelineProto->[channels->editPhoto](channels_editPhoto.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) +* Edit the photo of a supergroup/channel -$MadelineProto->[channels->editTitle](channels_editTitle.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Edit the title of a supergroup/channel -$MadelineProto->[channels->exportInvite](channels_exportInvite.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) +* Export the invite link of a channel -$MadelineProto->[channels->getChannels](channels_getChannels.md)(\['id' => \[[InputChannel](../types/InputChannel.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get info about multiple channels/supergroups -$MadelineProto->[channels->getDialogs](channels_getDialogs.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Dialogs](../types/messages_Dialogs.md) +* Get channel dialogs -$MadelineProto->[channels->getFullChannel](channels_getFullChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) +* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[channels->getImportantHistory](channels_getImportantHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'offset_id' => [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) +* Get important channel/supergroup history -$MadelineProto->[channels->getMessages](channels_getMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get channel/supergroup messages -$MadelineProto->[channels->getParticipant](channels_getParticipant.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) +* Get info about a certain channel/supergroup participant -$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) +* Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead) -$MadelineProto->[channels->inviteToChannel](channels_inviteToChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'users' => \[[InputUser](../types/InputUser.md)\], \]) === [$Updates](../types/Updates.md) +* Add users to channel/supergroup -$MadelineProto->[channels->joinChannel](channels_joinChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Join a channel/supergroup -$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) +* Kick user from channel -$MadelineProto->[channels->leaveChannel](channels_leaveChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Leave a channel/supergroup -$MadelineProto->[channels->readHistory](channels_readHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Mark channel/supergroup history as read -$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) +* Report a supergroup/channel for spam -$MadelineProto->[channels->toggleComments](channels_toggleComments.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Enable channel comments -$MadelineProto->[channels->updateUsername](channels_updateUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Update the username of a supergroup/channel *** -

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +

* Block a user -$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) +* Delete a contact -$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) +* Delete multiple contacts -$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) +* Export contact as card -$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) +* Get blocked users -$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [string](../types/string.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) +* Get info about a certain contact -$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) +* Get online status of all users -$MadelineProto->[contacts->getSuggested](contacts_getSuggested.md)(\['limit' => [int](../types/int.md), \]) === [$contacts\_Suggested](../types/contacts_Suggested.md) +* Get suggested contacts -$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) +* Import card as contact -$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], 'replace' => [Bool](../types/Bool.md), \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) +* Add phone number as contact -$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) +* You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) +* Search contacts -$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +* Unblock a user *** -

$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) +

* Get the changelog of this app -$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) +* Get info about app updates -$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) +* Get server configuration -$MadelineProto->[help->getInviteText](help_getInviteText.md)(\['lang_code' => [string](../types/string.md), \]) === [$help\_InviteText](../types/help_InviteText.md) +* Get invitation text -$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) +* Get nearest datacenter -$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) +* Get info of support user -$MadelineProto->[help->getTermsOfService](help_getTermsOfService.md)(\['lang_code' => [string](../types/string.md), \]) === [$help\_TermsOfService](../types/help_TermsOfService.md) +* Get terms of service -$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) +* Log data for developer of this app *** -

$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) +

* Initializes connection and save information on the user's device and application. *** -

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invokes a query after successfull completion of one of the previous queries. *** -

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Result type returned by a current query. *** -

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invoke this method with layer X *** -

$MadelineProto->[invokeWithoutUpdates](invokeWithoutUpdates.md)(\['query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invoke with method without returning updates in the socket *** -

$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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Add a user to a normal chat (use channels->inviteToChannel for supergroups) -$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md) +* Check if an invitation link is valid -$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Create a chat (not supergroup) -$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md) +* Delete a user from a chat (not supergroup) -$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Delete chat history -$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Delete messages -$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Edit admin permissions -$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) +* Edit the photo of a normal chat (not supergroup) -$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Edit the title of a normal chat (not supergroup) -$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) +* Export chat invite -$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) +* Forward message -$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['broadcast' => [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) +* Forward messages -$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) +* Get all stickerpacks -$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get info about chats -$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) +* You cannot use this method directly, instead use $MadelineProto->get_dh_config(); -$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) +* Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html -$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) +* Get document by SHA256 hash -$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) +* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[messages->getHistory](messages_getHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset_id' => [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) +* Get previous messages of a group -$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get messages -$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) +* Get and increase message views -$MadelineProto->[messages->getStickerSet](messages_getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) +* Get a stickerset -$MadelineProto->[messages->getStickers](messages_getStickers.md)(\['emoticon' => [string](../types/string.md), 'hash' => [string](../types/string.md), \]) === [$messages\_Stickers](../types/messages_Stickers.md) +* Get stickers -$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) === [$MessageMedia](../types/MessageMedia.md) +* Get webpage preview -$MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Import chat invite -$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'disabled' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Add a sticker set -$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) +* Convert chat to supergroup -$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Mark messages as read in secret chats -$MadelineProto->[messages->readHistory](messages_readHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Mark messages as read -$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Mark message as read -$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_ReceivedNotifyMessage](../types/ReceivedNotifyMessage.md) +* Mark messages as read -$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) +* You cannot use this method directly -$MadelineProto->[messages->reorderStickerSets](messages_reorderStickerSets.md)(\['order' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) +* Reorder sticker sets -$MadelineProto->[messages->reportSpam](messages_reportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Report a peer for spam -$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Search peers or messages -$MadelineProto->[messages->searchGifs](messages_searchGifs.md)(\['q' => [string](../types/string.md), 'offset' => [int](../types/int.md), \]) === [$messages\_FoundGifs](../types/messages_FoundGifs.md) +* Search gifs -$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) +* Global message search -$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) +* Send a message to all users in the chat list -$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send message to secret chat -$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) +* Send a file to a secret chat -$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send a service message to a secret chat -$MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['broadcast' => [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) +* Send a media -$MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'broadcast' => [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) +* Send a message -$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Send typing notification to secret chat -$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) +* Change typing status -$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) +* Start a bot -$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Enable all users are admins in normal groups (not supergroups) -$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) +* Remove a sticker set *** -

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) +

* Delete profile photos -$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) +* Get the profile photos of a user -$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), 'crop' => [InputPhotoCrop](../types/InputPhotoCrop.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) +* Update the profile photo (use photos->uploadProfilePhoto to upload the photo) -$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) +* Upload profile photo *** -

$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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates -$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) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates -$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates *** -

$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) +

* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info *** -

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) +

* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) +* Get info about users diff --git a/old_docs/API_docs_v44/methods/account_changePhone.md b/old_docs/API_docs_v44/methods/account_changePhone.md index aeb5c4bc..65f0b0d0 100644 --- a/old_docs/API_docs_v44/methods/account_changePhone.md +++ b/old_docs/API_docs_v44/methods/account_changePhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); diff --git a/old_docs/API_docs_v44/methods/account_checkUsername.md b/old_docs/API_docs_v44/methods/account_checkUsername.md index 0124bb38..08107762 100644 --- a/old_docs/API_docs_v44/methods/account_checkUsername.md +++ b/old_docs/API_docs_v44/methods/account_checkUsername.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v44/methods/account_deleteAccount.md b/old_docs/API_docs_v44/methods/account_deleteAccount.md index e8b46c24..3a6f4700 100644 --- a/old_docs/API_docs_v44/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v44/methods/account_deleteAccount.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); diff --git a/old_docs/API_docs_v44/methods/account_getAccountTTL.md b/old_docs/API_docs_v44/methods/account_getAccountTTL.md index 0cdd0b98..ab6a6ea1 100644 --- a/old_docs/API_docs_v44/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v44/methods/account_getAccountTTL.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); diff --git a/old_docs/API_docs_v44/methods/account_getAuthorizations.md b/old_docs/API_docs_v44/methods/account_getAuthorizations.md index f92db8fe..303203e4 100644 --- a/old_docs/API_docs_v44/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v44/methods/account_getAuthorizations.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_Authorizations = $MadelineProto->account->getAuthorizations(); diff --git a/old_docs/API_docs_v44/methods/account_getNotifySettings.md b/old_docs/API_docs_v44/methods/account_getNotifySettings.md index f00be12c..ad492f49 100644 --- a/old_docs/API_docs_v44/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v44/methods/account_getNotifySettings.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); diff --git a/old_docs/API_docs_v44/methods/account_getPassword.md b/old_docs/API_docs_v44/methods/account_getPassword.md index c189421d..2692dab1 100644 --- a/old_docs/API_docs_v44/methods/account_getPassword.md +++ b/old_docs/API_docs_v44/methods/account_getPassword.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_Password = $MadelineProto->account->getPassword(); diff --git a/old_docs/API_docs_v44/methods/account_getPasswordSettings.md b/old_docs/API_docs_v44/methods/account_getPasswordSettings.md index 96cb953e..2039d405 100644 --- a/old_docs/API_docs_v44/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v44/methods/account_getPasswordSettings.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PasswordSettings = $MadelineProto->account->getPasswordSettings(['current_password_hash' => 'bytes', ]); diff --git a/old_docs/API_docs_v44/methods/account_getPrivacy.md b/old_docs/API_docs_v44/methods/account_getPrivacy.md index 979bfb94..5480ffbb 100644 --- a/old_docs/API_docs_v44/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v44/methods/account_getPrivacy.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); diff --git a/old_docs/API_docs_v44/methods/account_getWallPapers.md b/old_docs/API_docs_v44/methods/account_getWallPapers.md index 89b281be..7c8bff39 100644 --- a/old_docs/API_docs_v44/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v44/methods/account_getWallPapers.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); diff --git a/old_docs/API_docs_v44/methods/account_registerDevice.md b/old_docs/API_docs_v44/methods/account_registerDevice.md index 651e753f..8dae7506 100644 --- a/old_docs/API_docs_v44/methods/account_registerDevice.md +++ b/old_docs/API_docs_v44/methods/account_registerDevice.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'app_sandbox' => Bool, 'lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v44/methods/account_reportPeer.md b/old_docs/API_docs_v44/methods/account_reportPeer.md index a07c87d0..c5fe7073 100644 --- a/old_docs/API_docs_v44/methods/account_reportPeer.md +++ b/old_docs/API_docs_v44/methods/account_reportPeer.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->reportPeer(['peer' => InputPeer, 'reason' => ReportReason, ]); diff --git a/old_docs/API_docs_v44/methods/account_resetAuthorization.md b/old_docs/API_docs_v44/methods/account_resetAuthorization.md index 4155d3c8..543aee08 100644 --- a/old_docs/API_docs_v44/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v44/methods/account_resetAuthorization.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetAuthorization(['hash' => long, ]); diff --git a/old_docs/API_docs_v44/methods/account_resetNotifySettings.md b/old_docs/API_docs_v44/methods/account_resetNotifySettings.md index ccc836a9..557373b0 100644 --- a/old_docs/API_docs_v44/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v44/methods/account_resetNotifySettings.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); diff --git a/old_docs/API_docs_v44/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v44/methods/account_sendChangePhoneCode.md index 0b384269..930e0f76 100644 --- a/old_docs/API_docs_v44/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v44/methods/account_sendChangePhoneCode.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_SentChangePhoneCode = $MadelineProto->account->sendChangePhoneCode(['phone_number' => 'string', ]); diff --git a/old_docs/API_docs_v44/methods/account_setAccountTTL.md b/old_docs/API_docs_v44/methods/account_setAccountTTL.md index 5100e62e..bacdd77a 100644 --- a/old_docs/API_docs_v44/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v44/methods/account_setAccountTTL.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); diff --git a/old_docs/API_docs_v44/methods/account_setPrivacy.md b/old_docs/API_docs_v44/methods/account_setPrivacy.md index fbcedae7..6e24ded7 100644 --- a/old_docs/API_docs_v44/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v44/methods/account_setPrivacy.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); diff --git a/old_docs/API_docs_v44/methods/account_unregisterDevice.md b/old_docs/API_docs_v44/methods/account_unregisterDevice.md index 1d2b7670..b666d91a 100644 --- a/old_docs/API_docs_v44/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v44/methods/account_unregisterDevice.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); diff --git a/old_docs/API_docs_v44/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v44/methods/account_updateDeviceLocked.md index ef816501..cd52093a 100644 --- a/old_docs/API_docs_v44/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v44/methods/account_updateDeviceLocked.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); diff --git a/old_docs/API_docs_v44/methods/account_updateNotifySettings.md b/old_docs/API_docs_v44/methods/account_updateNotifySettings.md index 18cbdb75..db020309 100644 --- a/old_docs/API_docs_v44/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v44/methods/account_updateNotifySettings.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); diff --git a/old_docs/API_docs_v44/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v44/methods/account_updatePasswordSettings.md index 0754dd63..8af1e37f 100644 --- a/old_docs/API_docs_v44/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v44/methods/account_updatePasswordSettings.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updatePasswordSettings(['current_password_hash' => 'bytes', 'new_settings' => account_PasswordInputSettings, ]); diff --git a/old_docs/API_docs_v44/methods/account_updateProfile.md b/old_docs/API_docs_v44/methods/account_updateProfile.md index f16398ed..caea3391 100644 --- a/old_docs/API_docs_v44/methods/account_updateProfile.md +++ b/old_docs/API_docs_v44/methods/account_updateProfile.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', ]); diff --git a/old_docs/API_docs_v44/methods/account_updateStatus.md b/old_docs/API_docs_v44/methods/account_updateStatus.md index 4b049e65..50b99b1e 100644 --- a/old_docs/API_docs_v44/methods/account_updateStatus.md +++ b/old_docs/API_docs_v44/methods/account_updateStatus.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); diff --git a/old_docs/API_docs_v44/methods/account_updateUsername.md b/old_docs/API_docs_v44/methods/account_updateUsername.md index 08d2abe0..7276e2aa 100644 --- a/old_docs/API_docs_v44/methods/account_updateUsername.md +++ b/old_docs/API_docs_v44/methods/account_updateUsername.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v44/methods/api_README.md b/old_docs/API_docs_v44/methods/api_README.md new file mode 100644 index 00000000..dfc3d87e --- /dev/null +++ b/old_docs/API_docs_v44/methods/api_README.md @@ -0,0 +1,358 @@ +--- +title: Methods +description: List of methods +--- +# Methods +[Back to API documentation index](..) + +[Go to the new description-version method index](index.html) + +$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); + +$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); + +$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); + +$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); + +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); + + +$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); + +$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); + +$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); + +$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); + +$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); + + +$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); + +$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); + +*** +

$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) + +$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) + +$MadelineProto->[account->getAuthorizations](account_getAuthorizations.md)(\[\]) === [$account\_Authorizations](../types/account_Authorizations.md) + +$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) + +$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md) + +$MadelineProto->[account->getPasswordSettings](account_getPasswordSettings.md)(\['current_password_hash' => [bytes](../types/bytes.md), \]) === [$account\_PasswordSettings](../types/account_PasswordSettings.md) + +$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) + +$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) + +$MadelineProto->[account->reportPeer](account_reportPeer.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reason' => [ReportReason](../types/ReportReason.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->sendChangePhoneCode](account_sendChangePhoneCode.md)(\['phone_number' => [string](../types/string.md), \]) === [$account\_SentChangePhoneCode](../types/account_SentChangePhoneCode.md) + +$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[account->updateProfile](account_updateProfile.md)(\['first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), \]) === [$User](../types/User.md) + +$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) + +*** +

$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) + +$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) + +$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) + +$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$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) + +$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->recoverPassword](auth_recoverPassword.md)(\['code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->requestPasswordRecovery](auth_requestPasswordRecovery.md)(\[\]) === [$auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) + +$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->sendCall](auth_sendCall.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->sendSms](auth_sendSms.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$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) + +*** +

$MadelineProto->[channels->checkUsername](channels_checkUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->deleteChannel](channels_deleteChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->deleteMessages](channels_deleteMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[channels->deleteUserHistory](channels_deleteUserHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[channels->editAbout](channels_editAbout.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'about' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->editPhoto](channels_editPhoto.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->editTitle](channels_editTitle.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->exportInvite](channels_exportInvite.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) + +$MadelineProto->[channels->getChannels](channels_getChannels.md)(\['id' => \[[InputChannel](../types/InputChannel.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[channels->getDialogs](channels_getDialogs.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Dialogs](../types/messages_Dialogs.md) + +$MadelineProto->[channels->getFullChannel](channels_getFullChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$MadelineProto->[channels->getImportantHistory](channels_getImportantHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'offset_id' => [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) + +$MadelineProto->[channels->getMessages](channels_getMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) + +$MadelineProto->[channels->getParticipant](channels_getParticipant.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) + +$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) + +$MadelineProto->[channels->inviteToChannel](channels_inviteToChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'users' => \[[InputUser](../types/InputUser.md)\], \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->joinChannel](channels_joinChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$MadelineProto->[channels->leaveChannel](channels_leaveChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->readHistory](channels_readHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->toggleComments](channels_toggleComments.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->updateUsername](channels_updateUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) + +$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) + +$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) + +$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [string](../types/string.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) + +$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) + +$MadelineProto->[contacts->getSuggested](contacts_getSuggested.md)(\['limit' => [int](../types/int.md), \]) === [$contacts\_Suggested](../types/contacts_Suggested.md) + +$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) + +$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], 'replace' => [Bool](../types/Bool.md), \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) + +$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) + +$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) + +$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +*** +

$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) + +$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) + +$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) + +$MadelineProto->[help->getInviteText](help_getInviteText.md)(\['lang_code' => [string](../types/string.md), \]) === [$help\_InviteText](../types/help_InviteText.md) + +$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) + +$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) + +$MadelineProto->[help->getTermsOfService](help_getTermsOfService.md)(\['lang_code' => [string](../types/string.md), \]) === [$help\_TermsOfService](../types/help_TermsOfService.md) + +$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) + +*** +

$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) + +*** +

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeWithoutUpdates](invokeWithoutUpdates.md)(\['query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$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) + +$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) + +$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md) + +$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) + +$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['broadcast' => [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) + +$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) + +$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) + +$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) + +$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) + +$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$MadelineProto->[messages->getHistory](messages_getHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset_id' => [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) + +$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) + +$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) + +$MadelineProto->[messages->getStickerSet](messages_getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +$MadelineProto->[messages->getStickers](messages_getStickers.md)(\['emoticon' => [string](../types/string.md), 'hash' => [string](../types/string.md), \]) === [$messages\_Stickers](../types/messages_Stickers.md) + +$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) === [$MessageMedia](../types/MessageMedia.md) + +$MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'disabled' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->readHistory](messages_readHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_ReceivedNotifyMessage](../types/ReceivedNotifyMessage.md) + +$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) + +$MadelineProto->[messages->reorderStickerSets](messages_reorderStickerSets.md)(\['order' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->reportSpam](messages_reportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) + +$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) + +$MadelineProto->[messages->searchGifs](messages_searchGifs.md)(\['q' => [string](../types/string.md), 'offset' => [int](../types/int.md), \]) === [$messages\_FoundGifs](../types/messages_FoundGifs.md) + +$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) + +$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) + +$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$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) + +$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['broadcast' => [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) + +$MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'broadcast' => [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) + +$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) + +$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) + +$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), 'crop' => [InputPhotoCrop](../types/InputPhotoCrop.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) + +$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) + +*** +

$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) + +$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) + +$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) + +*** +

$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) + +$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) + +$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) + +*** +

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) + +$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) + diff --git a/old_docs/API_docs_v44/methods/auth_checkPhone.md b/old_docs/API_docs_v44/methods/auth_checkPhone.md index 291221de..1826ce63 100644 --- a/old_docs/API_docs_v44/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v44/methods/auth_checkPhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); diff --git a/old_docs/API_docs_v44/methods/auth_recoverPassword.md b/old_docs/API_docs_v44/methods/auth_recoverPassword.md index cdc9bd7d..5e37b0f3 100644 --- a/old_docs/API_docs_v44/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v44/methods/auth_recoverPassword.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_Authorization = $MadelineProto->auth->recoverPassword(['code' => 'string', ]); diff --git a/old_docs/API_docs_v44/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v44/methods/auth_requestPasswordRecovery.md index e18c6c93..c69d0c49 100644 --- a/old_docs/API_docs_v44/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v44/methods/auth_requestPasswordRecovery.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_PasswordRecovery = $MadelineProto->auth->requestPasswordRecovery(); diff --git a/old_docs/API_docs_v44/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v44/methods/auth_resetAuthorizations.md index 47feea16..a46c880d 100644 --- a/old_docs/API_docs_v44/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v44/methods/auth_resetAuthorizations.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); diff --git a/old_docs/API_docs_v44/methods/auth_sendCall.md b/old_docs/API_docs_v44/methods/auth_sendCall.md index e2bd2855..5947cda7 100644 --- a/old_docs/API_docs_v44/methods/auth_sendCall.md +++ b/old_docs/API_docs_v44/methods/auth_sendCall.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendCall(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v44/methods/auth_sendInvites.md b/old_docs/API_docs_v44/methods/auth_sendInvites.md index be32fe6b..9b88b4a3 100644 --- a/old_docs/API_docs_v44/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v44/methods/auth_sendInvites.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); diff --git a/old_docs/API_docs_v44/methods/auth_sendSms.md b/old_docs/API_docs_v44/methods/auth_sendSms.md index a17fdd3a..41340660 100644 --- a/old_docs/API_docs_v44/methods/auth_sendSms.md +++ b/old_docs/API_docs_v44/methods/auth_sendSms.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendSms(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v44/methods/channels_checkUsername.md b/old_docs/API_docs_v44/methods/channels_checkUsername.md index 7bc7c245..7e3d5a89 100644 --- a/old_docs/API_docs_v44/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v44/methods/channels_checkUsername.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->checkUsername(['channel' => InputChannel, 'username' => 'string', ]); diff --git a/old_docs/API_docs_v44/methods/channels_createChannel.md b/old_docs/API_docs_v44/methods/channels_createChannel.md index 1305e4fb..a5ddc379 100644 --- a/old_docs/API_docs_v44/methods/channels_createChannel.md +++ b/old_docs/API_docs_v44/methods/channels_createChannel.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->createChannel(['broadcast' => Bool, 'megagroup' => Bool, 'title' => 'string', 'about' => 'string', ]); diff --git a/old_docs/API_docs_v44/methods/channels_deleteChannel.md b/old_docs/API_docs_v44/methods/channels_deleteChannel.md index e660d25c..69dad9a3 100644 --- a/old_docs/API_docs_v44/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v44/methods/channels_deleteChannel.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->deleteChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v44/methods/channels_deleteMessages.md b/old_docs/API_docs_v44/methods/channels_deleteMessages.md index fb9d3cc2..b12270b3 100644 --- a/old_docs/API_docs_v44/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v44/methods/channels_deleteMessages.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v44/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v44/methods/channels_deleteUserHistory.md index fbe34341..75f531bb 100644 --- a/old_docs/API_docs_v44/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v44/methods/channels_deleteUserHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->channels->deleteUserHistory(['channel' => InputChannel, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v44/methods/channels_editAbout.md b/old_docs/API_docs_v44/methods/channels_editAbout.md index 8908f29e..67521065 100644 --- a/old_docs/API_docs_v44/methods/channels_editAbout.md +++ b/old_docs/API_docs_v44/methods/channels_editAbout.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->editAbout(['channel' => InputChannel, 'about' => 'string', ]); diff --git a/old_docs/API_docs_v44/methods/channels_editAdmin.md b/old_docs/API_docs_v44/methods/channels_editAdmin.md index 01662a1d..7b6cc0f1 100644 --- a/old_docs/API_docs_v44/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v44/methods/channels_editAdmin.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editAdmin(['channel' => InputChannel, 'user_id' => InputUser, 'role' => ChannelParticipantRole, ]); diff --git a/old_docs/API_docs_v44/methods/channels_editPhoto.md b/old_docs/API_docs_v44/methods/channels_editPhoto.md index 9ccd864f..c854c64a 100644 --- a/old_docs/API_docs_v44/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v44/methods/channels_editPhoto.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editPhoto(['channel' => InputChannel, 'photo' => InputChatPhoto, ]); diff --git a/old_docs/API_docs_v44/methods/channels_editTitle.md b/old_docs/API_docs_v44/methods/channels_editTitle.md index b1024faf..9bc6773e 100644 --- a/old_docs/API_docs_v44/methods/channels_editTitle.md +++ b/old_docs/API_docs_v44/methods/channels_editTitle.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editTitle(['channel' => InputChannel, 'title' => 'string', ]); diff --git a/old_docs/API_docs_v44/methods/channels_exportInvite.md b/old_docs/API_docs_v44/methods/channels_exportInvite.md index f0c737d5..ca65dcc8 100644 --- a/old_docs/API_docs_v44/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v44/methods/channels_exportInvite.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedChatInvite = $MadelineProto->channels->exportInvite(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v44/methods/channels_getChannels.md b/old_docs/API_docs_v44/methods/channels_getChannels.md index 9cd9e798..af22556f 100644 --- a/old_docs/API_docs_v44/methods/channels_getChannels.md +++ b/old_docs/API_docs_v44/methods/channels_getChannels.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel, InputChannel], ]); diff --git a/old_docs/API_docs_v44/methods/channels_getDialogs.md b/old_docs/API_docs_v44/methods/channels_getDialogs.md index 9ad21720..1b5837b7 100644 --- a/old_docs/API_docs_v44/methods/channels_getDialogs.md +++ b/old_docs/API_docs_v44/methods/channels_getDialogs.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Dialogs = $MadelineProto->channels->getDialogs(['offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v44/methods/channels_getImportantHistory.md b/old_docs/API_docs_v44/methods/channels_getImportantHistory.md index 66be0b21..861e4a32 100644 --- a/old_docs/API_docs_v44/methods/channels_getImportantHistory.md +++ b/old_docs/API_docs_v44/methods/channels_getImportantHistory.md @@ -34,12 +34,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->channels->getImportantHistory(['channel' => InputChannel, 'offset_id' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); diff --git a/old_docs/API_docs_v44/methods/channels_getMessages.md b/old_docs/API_docs_v44/methods/channels_getMessages.md index cc944fe5..eda13d0b 100644 --- a/old_docs/API_docs_v44/methods/channels_getMessages.md +++ b/old_docs/API_docs_v44/methods/channels_getMessages.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v44/methods/channels_getParticipant.md b/old_docs/API_docs_v44/methods/channels_getParticipant.md index db9b1fc6..be5fe96a 100644 --- a/old_docs/API_docs_v44/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v44/methods/channels_getParticipant.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $channels_ChannelParticipant = $MadelineProto->channels->getParticipant(['channel' => InputChannel, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v44/methods/channels_getParticipants.md b/old_docs/API_docs_v44/methods/channels_getParticipants.md index 96662466..6a27016b 100644 --- a/old_docs/API_docs_v44/methods/channels_getParticipants.md +++ b/old_docs/API_docs_v44/methods/channels_getParticipants.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $channels_ChannelParticipants = $MadelineProto->channels->getParticipants(['channel' => InputChannel, 'filter' => ChannelParticipantsFilter, 'offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v44/methods/channels_inviteToChannel.md b/old_docs/API_docs_v44/methods/channels_inviteToChannel.md index 676f800c..e7d12db7 100644 --- a/old_docs/API_docs_v44/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v44/methods/channels_inviteToChannel.md @@ -52,12 +52,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v44/methods/channels_joinChannel.md b/old_docs/API_docs_v44/methods/channels_joinChannel.md index 721f707c..3ac2b326 100644 --- a/old_docs/API_docs_v44/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v44/methods/channels_joinChannel.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->joinChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v44/methods/channels_kickFromChannel.md b/old_docs/API_docs_v44/methods/channels_kickFromChannel.md index bf8bb5b8..8f6c92be 100644 --- a/old_docs/API_docs_v44/methods/channels_kickFromChannel.md +++ b/old_docs/API_docs_v44/methods/channels_kickFromChannel.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->kickFromChannel(['channel' => InputChannel, 'user_id' => InputUser, 'kicked' => Bool, ]); diff --git a/old_docs/API_docs_v44/methods/channels_leaveChannel.md b/old_docs/API_docs_v44/methods/channels_leaveChannel.md index 7f02e08c..95b60a90 100644 --- a/old_docs/API_docs_v44/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v44/methods/channels_leaveChannel.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->leaveChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v44/methods/channels_readHistory.md b/old_docs/API_docs_v44/methods/channels_readHistory.md index cca891f0..c6b14541 100644 --- a/old_docs/API_docs_v44/methods/channels_readHistory.md +++ b/old_docs/API_docs_v44/methods/channels_readHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->readHistory(['channel' => InputChannel, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v44/methods/channels_reportSpam.md b/old_docs/API_docs_v44/methods/channels_reportSpam.md index 09af14e0..ca5c28f5 100644 --- a/old_docs/API_docs_v44/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v44/methods/channels_reportSpam.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v44/methods/channels_toggleComments.md b/old_docs/API_docs_v44/methods/channels_toggleComments.md index 73ef8d23..cc9f478d 100644 --- a/old_docs/API_docs_v44/methods/channels_toggleComments.md +++ b/old_docs/API_docs_v44/methods/channels_toggleComments.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->toggleComments(['channel' => InputChannel, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v44/methods/channels_updateUsername.md b/old_docs/API_docs_v44/methods/channels_updateUsername.md index ad34490a..2093b6ce 100644 --- a/old_docs/API_docs_v44/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v44/methods/channels_updateUsername.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->updateUsername(['channel' => InputChannel, 'username' => 'string', ]); diff --git a/old_docs/API_docs_v44/methods/contacts_block.md b/old_docs/API_docs_v44/methods/contacts_block.md index d0729d30..e592cace 100644 --- a/old_docs/API_docs_v44/methods/contacts_block.md +++ b/old_docs/API_docs_v44/methods/contacts_block.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v44/methods/contacts_deleteContact.md b/old_docs/API_docs_v44/methods/contacts_deleteContact.md index b8c17544..1a3f2a27 100644 --- a/old_docs/API_docs_v44/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v44/methods/contacts_deleteContact.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v44/methods/contacts_deleteContacts.md b/old_docs/API_docs_v44/methods/contacts_deleteContacts.md index 64c69460..f6627599 100644 --- a/old_docs/API_docs_v44/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v44/methods/contacts_deleteContacts.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v44/methods/contacts_exportCard.md b/old_docs/API_docs_v44/methods/contacts_exportCard.md index b05f57ce..1d2129f3 100644 --- a/old_docs/API_docs_v44/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v44/methods/contacts_exportCard.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); diff --git a/old_docs/API_docs_v44/methods/contacts_getBlocked.md b/old_docs/API_docs_v44/methods/contacts_getBlocked.md index d7d8c5cc..44d24aba 100644 --- a/old_docs/API_docs_v44/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v44/methods/contacts_getBlocked.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v44/methods/contacts_getContacts.md b/old_docs/API_docs_v44/methods/contacts_getContacts.md index 1ab8af27..83c4846f 100644 --- a/old_docs/API_docs_v44/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v44/methods/contacts_getContacts.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v44/methods/contacts_getStatuses.md b/old_docs/API_docs_v44/methods/contacts_getStatuses.md index b927a140..5cef3084 100644 --- a/old_docs/API_docs_v44/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v44/methods/contacts_getStatuses.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); diff --git a/old_docs/API_docs_v44/methods/contacts_getSuggested.md b/old_docs/API_docs_v44/methods/contacts_getSuggested.md index 302e60e5..1ce04bef 100644 --- a/old_docs/API_docs_v44/methods/contacts_getSuggested.md +++ b/old_docs/API_docs_v44/methods/contacts_getSuggested.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Suggested = $MadelineProto->contacts->getSuggested(['limit' => int, ]); diff --git a/old_docs/API_docs_v44/methods/contacts_importCard.md b/old_docs/API_docs_v44/methods/contacts_importCard.md index 81a1e138..89c96657 100644 --- a/old_docs/API_docs_v44/methods/contacts_importCard.md +++ b/old_docs/API_docs_v44/methods/contacts_importCard.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); diff --git a/old_docs/API_docs_v44/methods/contacts_importContacts.md b/old_docs/API_docs_v44/methods/contacts_importContacts.md index 578e5dfd..cd3d6615 100644 --- a/old_docs/API_docs_v44/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v44/methods/contacts_importContacts.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], 'replace' => Bool, ]); diff --git a/old_docs/API_docs_v44/methods/contacts_search.md b/old_docs/API_docs_v44/methods/contacts_search.md index 68daecd6..64ff748e 100644 --- a/old_docs/API_docs_v44/methods/contacts_search.md +++ b/old_docs/API_docs_v44/methods/contacts_search.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); diff --git a/old_docs/API_docs_v44/methods/contacts_unblock.md b/old_docs/API_docs_v44/methods/contacts_unblock.md index f7d151b9..ec72ae2d 100644 --- a/old_docs/API_docs_v44/methods/contacts_unblock.md +++ b/old_docs/API_docs_v44/methods/contacts_unblock.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v44/methods/help_getAppChangelog.md b/old_docs/API_docs_v44/methods/help_getAppChangelog.md index dbca4fc8..eb48fabb 100644 --- a/old_docs/API_docs_v44/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v44/methods/help_getAppChangelog.md @@ -32,12 +32,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_AppChangelog = $MadelineProto->help->getAppChangelog(['device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v44/methods/help_getAppUpdate.md b/old_docs/API_docs_v44/methods/help_getAppUpdate.md index f97da105..ad5b8228 100644 --- a/old_docs/API_docs_v44/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v44/methods/help_getAppUpdate.md @@ -32,12 +32,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(['device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v44/methods/help_getConfig.md b/old_docs/API_docs_v44/methods/help_getConfig.md index 16e25c68..ca4bfc25 100644 --- a/old_docs/API_docs_v44/methods/help_getConfig.md +++ b/old_docs/API_docs_v44/methods/help_getConfig.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); diff --git a/old_docs/API_docs_v44/methods/help_getInviteText.md b/old_docs/API_docs_v44/methods/help_getInviteText.md index 0831ba5f..ad6ac262 100644 --- a/old_docs/API_docs_v44/methods/help_getInviteText.md +++ b/old_docs/API_docs_v44/methods/help_getInviteText.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(['lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v44/methods/help_getNearestDc.md b/old_docs/API_docs_v44/methods/help_getNearestDc.md index 35a8bf91..458f60ab 100644 --- a/old_docs/API_docs_v44/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v44/methods/help_getNearestDc.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); diff --git a/old_docs/API_docs_v44/methods/help_getSupport.md b/old_docs/API_docs_v44/methods/help_getSupport.md index a5bab0f2..9ee25b00 100644 --- a/old_docs/API_docs_v44/methods/help_getSupport.md +++ b/old_docs/API_docs_v44/methods/help_getSupport.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); diff --git a/old_docs/API_docs_v44/methods/help_getTermsOfService.md b/old_docs/API_docs_v44/methods/help_getTermsOfService.md index 3363d658..0936575e 100644 --- a/old_docs/API_docs_v44/methods/help_getTermsOfService.md +++ b/old_docs/API_docs_v44/methods/help_getTermsOfService.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_TermsOfService = $MadelineProto->help->getTermsOfService(['lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v44/methods/help_saveAppLog.md b/old_docs/API_docs_v44/methods/help_saveAppLog.md index 0165b6e3..a7884c47 100644 --- a/old_docs/API_docs_v44/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v44/methods/help_saveAppLog.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); diff --git a/old_docs/API_docs_v44/methods/initConnection.md b/old_docs/API_docs_v44/methods/initConnection.md index 2d3d86ad..73620276 100644 --- a/old_docs/API_docs_v44/methods/initConnection.md +++ b/old_docs/API_docs_v44/methods/initConnection.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->initConnection(['api_id' => int, 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', 'query' => !X, ]); diff --git a/old_docs/API_docs_v44/methods/invokeAfterMsg.md b/old_docs/API_docs_v44/methods/invokeAfterMsg.md index e33a2c93..8e953e78 100644 --- a/old_docs/API_docs_v44/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v44/methods/invokeAfterMsg.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); diff --git a/old_docs/API_docs_v44/methods/invokeAfterMsgs.md b/old_docs/API_docs_v44/methods/invokeAfterMsgs.md index 3150a613..bc8a83b7 100644 --- a/old_docs/API_docs_v44/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v44/methods/invokeAfterMsgs.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); diff --git a/old_docs/API_docs_v44/methods/invokeWithLayer.md b/old_docs/API_docs_v44/methods/invokeWithLayer.md index 71d02abb..8a0c4e79 100644 --- a/old_docs/API_docs_v44/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v44/methods/invokeWithLayer.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); diff --git a/old_docs/API_docs_v44/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v44/methods/invokeWithoutUpdates.md index 2bab236a..2d90a776 100644 --- a/old_docs/API_docs_v44/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v44/methods/invokeWithoutUpdates.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeWithoutUpdates(['query' => !X, ]); diff --git a/old_docs/API_docs_v44/methods/messages_addChatUser.md b/old_docs/API_docs_v44/methods/messages_addChatUser.md index 3e4c5ccc..c6ef275f 100644 --- a/old_docs/API_docs_v44/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v44/methods/messages_addChatUser.md @@ -46,12 +46,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); diff --git a/old_docs/API_docs_v44/methods/messages_checkChatInvite.md b/old_docs/API_docs_v44/methods/messages_checkChatInvite.md index de1d9ff4..cea63313 100644 --- a/old_docs/API_docs_v44/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v44/methods/messages_checkChatInvite.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ChatInvite = $MadelineProto->messages->checkChatInvite(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v44/methods/messages_createChat.md b/old_docs/API_docs_v44/methods/messages_createChat.md index 68c0263a..966f58dc 100644 --- a/old_docs/API_docs_v44/methods/messages_createChat.md +++ b/old_docs/API_docs_v44/methods/messages_createChat.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); diff --git a/old_docs/API_docs_v44/methods/messages_deleteChatUser.md b/old_docs/API_docs_v44/methods/messages_deleteChatUser.md index 0a6830de..9a9227ba 100644 --- a/old_docs/API_docs_v44/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v44/methods/messages_deleteChatUser.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v44/methods/messages_deleteHistory.md b/old_docs/API_docs_v44/methods/messages_deleteHistory.md index d883a9ad..4cb70ec8 100644 --- a/old_docs/API_docs_v44/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v44/methods/messages_deleteHistory.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['peer' => InputPeer, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v44/methods/messages_deleteMessages.md b/old_docs/API_docs_v44/methods/messages_deleteMessages.md index 41570996..fa043e1c 100644 --- a/old_docs/API_docs_v44/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v44/methods/messages_deleteMessages.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v44/methods/messages_editChatAdmin.md b/old_docs/API_docs_v44/methods/messages_editChatAdmin.md index 7916f8b1..5bba0559 100644 --- a/old_docs/API_docs_v44/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v44/methods/messages_editChatAdmin.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]); diff --git a/old_docs/API_docs_v44/methods/messages_editChatPhoto.md b/old_docs/API_docs_v44/methods/messages_editChatPhoto.md index 122913c4..5827a5cc 100644 --- a/old_docs/API_docs_v44/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v44/methods/messages_editChatPhoto.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); diff --git a/old_docs/API_docs_v44/methods/messages_editChatTitle.md b/old_docs/API_docs_v44/methods/messages_editChatTitle.md index 3a1e974b..2e69d790 100644 --- a/old_docs/API_docs_v44/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v44/methods/messages_editChatTitle.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); diff --git a/old_docs/API_docs_v44/methods/messages_exportChatInvite.md b/old_docs/API_docs_v44/methods/messages_exportChatInvite.md index 98685d96..ec80e207 100644 --- a/old_docs/API_docs_v44/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v44/methods/messages_exportChatInvite.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]); diff --git a/old_docs/API_docs_v44/methods/messages_forwardMessage.md b/old_docs/API_docs_v44/methods/messages_forwardMessage.md index 45b7a07f..d6916437 100644 --- a/old_docs/API_docs_v44/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v44/methods/messages_forwardMessage.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); diff --git a/old_docs/API_docs_v44/methods/messages_forwardMessages.md b/old_docs/API_docs_v44/methods/messages_forwardMessages.md index b7273f1d..6a646f5f 100644 --- a/old_docs/API_docs_v44/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v44/methods/messages_forwardMessages.md @@ -60,12 +60,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessages(['broadcast' => Bool, 'from_peer' => InputPeer, 'id' => [int, int], 'to_peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v44/methods/messages_getAllStickers.md b/old_docs/API_docs_v44/methods/messages_getAllStickers.md index 16fdba6c..2ba37a91 100644 --- a/old_docs/API_docs_v44/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v44/methods/messages_getAllStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => int, ]); diff --git a/old_docs/API_docs_v44/methods/messages_getChats.md b/old_docs/API_docs_v44/methods/messages_getChats.md index 290438a1..e84c7193 100644 --- a/old_docs/API_docs_v44/methods/messages_getChats.md +++ b/old_docs/API_docs_v44/methods/messages_getChats.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v44/methods/messages_getDialogs.md b/old_docs/API_docs_v44/methods/messages_getDialogs.md index 7a28bd83..bd3ef681 100644 --- a/old_docs/API_docs_v44/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v44/methods/messages_getDialogs.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['offset_date' => int, 'offset_id' => int, 'offset_peer' => InputPeer, 'limit' => int, ]); diff --git a/old_docs/API_docs_v44/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v44/methods/messages_getDocumentByHash.md index 1af5bad4..ad8e22be 100644 --- a/old_docs/API_docs_v44/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v44/methods/messages_getDocumentByHash.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Document = $MadelineProto->messages->getDocumentByHash(['sha256' => 'bytes', 'size' => int, 'mime_type' => 'string', ]); diff --git a/old_docs/API_docs_v44/methods/messages_getHistory.md b/old_docs/API_docs_v44/methods/messages_getHistory.md index dd61853d..dfefb639 100644 --- a/old_docs/API_docs_v44/methods/messages_getHistory.md +++ b/old_docs/API_docs_v44/methods/messages_getHistory.md @@ -46,12 +46,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getHistory(['peer' => InputPeer, 'offset_id' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); diff --git a/old_docs/API_docs_v44/methods/messages_getMessages.md b/old_docs/API_docs_v44/methods/messages_getMessages.md index 86d1da8a..d538cb5f 100644 --- a/old_docs/API_docs_v44/methods/messages_getMessages.md +++ b/old_docs/API_docs_v44/methods/messages_getMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v44/methods/messages_getMessagesViews.md b/old_docs/API_docs_v44/methods/messages_getMessagesViews.md index b8d78c85..934adc16 100644 --- a/old_docs/API_docs_v44/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v44/methods/messages_getMessagesViews.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int, int], 'increment' => Bool, ]); diff --git a/old_docs/API_docs_v44/methods/messages_getStickerSet.md b/old_docs/API_docs_v44/methods/messages_getStickerSet.md index c86807e4..c9140ab2 100644 --- a/old_docs/API_docs_v44/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v44/methods/messages_getStickerSet.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSet = $MadelineProto->messages->getStickerSet(['stickerset' => InputStickerSet, ]); diff --git a/old_docs/API_docs_v44/methods/messages_getStickers.md b/old_docs/API_docs_v44/methods/messages_getStickers.md index 4854696d..d2ea57cf 100644 --- a/old_docs/API_docs_v44/methods/messages_getStickers.md +++ b/old_docs/API_docs_v44/methods/messages_getStickers.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Stickers = $MadelineProto->messages->getStickers(['emoticon' => 'string', 'hash' => 'string', ]); diff --git a/old_docs/API_docs_v44/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v44/methods/messages_getWebPagePreview.md index d01bdd32..e8b20c5d 100644 --- a/old_docs/API_docs_v44/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v44/methods/messages_getWebPagePreview.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $MessageMedia = $MadelineProto->messages->getWebPagePreview(['message' => 'string', ]); diff --git a/old_docs/API_docs_v44/methods/messages_importChatInvite.md b/old_docs/API_docs_v44/methods/messages_importChatInvite.md index 0d6cd7c8..b1830a9b 100644 --- a/old_docs/API_docs_v44/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v44/methods/messages_importChatInvite.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->importChatInvite(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v44/methods/messages_installStickerSet.md b/old_docs/API_docs_v44/methods/messages_installStickerSet.md index 04b693cd..77c5a2a5 100644 --- a/old_docs/API_docs_v44/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v44/methods/messages_installStickerSet.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->installStickerSet(['stickerset' => InputStickerSet, 'disabled' => Bool, ]); diff --git a/old_docs/API_docs_v44/methods/messages_migrateChat.md b/old_docs/API_docs_v44/methods/messages_migrateChat.md index db57adfa..22ccfcc1 100644 --- a/old_docs/API_docs_v44/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v44/methods/messages_migrateChat.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]); diff --git a/old_docs/API_docs_v44/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v44/methods/messages_readEncryptedHistory.md index 39b110e3..2ba4cca4 100644 --- a/old_docs/API_docs_v44/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v44/methods/messages_readEncryptedHistory.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); diff --git a/old_docs/API_docs_v44/methods/messages_readHistory.md b/old_docs/API_docs_v44/methods/messages_readHistory.md index 3de17061..26b608af 100644 --- a/old_docs/API_docs_v44/methods/messages_readHistory.md +++ b/old_docs/API_docs_v44/methods/messages_readHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v44/methods/messages_readMessageContents.md b/old_docs/API_docs_v44/methods/messages_readMessageContents.md index 9bb1bee8..a09cb63e 100644 --- a/old_docs/API_docs_v44/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v44/methods/messages_readMessageContents.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v44/methods/messages_receivedMessages.md b/old_docs/API_docs_v44/methods/messages_receivedMessages.md index 7aab635f..b5e87992 100644 --- a/old_docs/API_docs_v44/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v44/methods/messages_receivedMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_ReceivedNotifyMessage = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); diff --git a/old_docs/API_docs_v44/methods/messages_reorderStickerSets.md b/old_docs/API_docs_v44/methods/messages_reorderStickerSets.md index b2cbe4c1..90913e5d 100644 --- a/old_docs/API_docs_v44/methods/messages_reorderStickerSets.md +++ b/old_docs/API_docs_v44/methods/messages_reorderStickerSets.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reorderStickerSets(['order' => [long, long], ]); diff --git a/old_docs/API_docs_v44/methods/messages_reportSpam.md b/old_docs/API_docs_v44/methods/messages_reportSpam.md index 2e2b1177..09c1e63b 100644 --- a/old_docs/API_docs_v44/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v44/methods/messages_reportSpam.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reportSpam(['peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v44/methods/messages_search.md b/old_docs/API_docs_v44/methods/messages_search.md index f63e235d..01af8760 100644 --- a/old_docs/API_docs_v44/methods/messages_search.md +++ b/old_docs/API_docs_v44/methods/messages_search.md @@ -50,12 +50,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->search(['important_only' => Bool, 'peer' => InputPeer, 'q' => 'string', 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v44/methods/messages_searchGifs.md b/old_docs/API_docs_v44/methods/messages_searchGifs.md index 103ebfeb..9677bf24 100644 --- a/old_docs/API_docs_v44/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v44/methods/messages_searchGifs.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_FoundGifs = $MadelineProto->messages->searchGifs(['q' => 'string', 'offset' => int, ]); diff --git a/old_docs/API_docs_v44/methods/messages_searchGlobal.md b/old_docs/API_docs_v44/methods/messages_searchGlobal.md index 0edd1e40..6ad4aec0 100644 --- a/old_docs/API_docs_v44/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v44/methods/messages_searchGlobal.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->searchGlobal(['q' => 'string', 'offset_date' => int, 'offset_peer' => InputPeer, 'offset_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v44/methods/messages_sendBroadcast.md b/old_docs/API_docs_v44/methods/messages_sendBroadcast.md index 28e248a9..6cff8b29 100644 --- a/old_docs/API_docs_v44/methods/messages_sendBroadcast.md +++ b/old_docs/API_docs_v44/methods/messages_sendBroadcast.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendBroadcast(['contacts' => [InputUser, InputUser], 'message' => 'string', 'media' => InputMedia, ]); diff --git a/old_docs/API_docs_v44/methods/messages_sendEncrypted.md b/old_docs/API_docs_v44/methods/messages_sendEncrypted.md index d48f88d7..76305f32 100644 --- a/old_docs/API_docs_v44/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v44/methods/messages_sendEncrypted.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v44/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v44/methods/messages_sendEncryptedFile.md index 4fd0648e..8db2ead9 100644 --- a/old_docs/API_docs_v44/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v44/methods/messages_sendEncryptedFile.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); diff --git a/old_docs/API_docs_v44/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v44/methods/messages_sendEncryptedService.md index d66894bf..c7836c94 100644 --- a/old_docs/API_docs_v44/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v44/methods/messages_sendEncryptedService.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v44/methods/messages_sendMedia.md b/old_docs/API_docs_v44/methods/messages_sendMedia.md index 566334c0..694ccc4b 100644 --- a/old_docs/API_docs_v44/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v44/methods/messages_sendMedia.md @@ -61,12 +61,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendMedia(['broadcast' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, 'reply_markup' => ReplyMarkup, ]); diff --git a/old_docs/API_docs_v44/methods/messages_sendMessage.md b/old_docs/API_docs_v44/methods/messages_sendMessage.md index 82d5e61d..0c3ef389 100644 --- a/old_docs/API_docs_v44/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v44/methods/messages_sendMessage.md @@ -63,12 +63,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendMessage(['no_webpage' => Bool, 'broadcast' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v44/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v44/methods/messages_setEncryptedTyping.md index e9afe99c..4e7450eb 100644 --- a/old_docs/API_docs_v44/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v44/methods/messages_setEncryptedTyping.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); diff --git a/old_docs/API_docs_v44/methods/messages_setTyping.md b/old_docs/API_docs_v44/methods/messages_setTyping.md index bea4982b..a2b94823 100644 --- a/old_docs/API_docs_v44/methods/messages_setTyping.md +++ b/old_docs/API_docs_v44/methods/messages_setTyping.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); diff --git a/old_docs/API_docs_v44/methods/messages_startBot.md b/old_docs/API_docs_v44/methods/messages_startBot.md index 94a4d86a..50d6f475 100644 --- a/old_docs/API_docs_v44/methods/messages_startBot.md +++ b/old_docs/API_docs_v44/methods/messages_startBot.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'peer' => InputPeer, 'start_param' => 'string', ]); diff --git a/old_docs/API_docs_v44/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v44/methods/messages_toggleChatAdmins.md index ab591fd9..349ea0e6 100644 --- a/old_docs/API_docs_v44/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v44/methods/messages_toggleChatAdmins.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => InputPeer, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v44/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v44/methods/messages_uninstallStickerSet.md index 6d04e847..26b2fbb3 100644 --- a/old_docs/API_docs_v44/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v44/methods/messages_uninstallStickerSet.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->uninstallStickerSet(['stickerset' => InputStickerSet, ]); diff --git a/old_docs/API_docs_v44/methods/photos_deletePhotos.md b/old_docs/API_docs_v44/methods/photos_deletePhotos.md index b9daca10..937aadd5 100644 --- a/old_docs/API_docs_v44/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v44/methods/photos_deletePhotos.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); diff --git a/old_docs/API_docs_v44/methods/photos_getUserPhotos.md b/old_docs/API_docs_v44/methods/photos_getUserPhotos.md index ea27a44f..d1c15e90 100644 --- a/old_docs/API_docs_v44/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v44/methods/photos_getUserPhotos.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => long, 'limit' => int, ]); diff --git a/old_docs/API_docs_v44/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v44/methods/photos_updateProfilePhoto.md index 2d1e1e76..4c5c517f 100644 --- a/old_docs/API_docs_v44/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v44/methods/photos_updateProfilePhoto.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, 'crop' => InputPhotoCrop, ]); diff --git a/old_docs/API_docs_v44/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v44/methods/photos_uploadProfilePhoto.md index 6ff4ddf5..3d7d301b 100644 --- a/old_docs/API_docs_v44/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v44/methods/photos_uploadProfilePhoto.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, 'caption' => 'string', 'geo_point' => InputGeoPoint, 'crop' => InputPhotoCrop, ]); diff --git a/old_docs/API_docs_v44/methods/users_getUsers.md b/old_docs/API_docs_v44/methods/users_getUsers.md index ef1c7fd8..bce13ee6 100644 --- a/old_docs/API_docs_v44/methods/users_getUsers.md +++ b/old_docs/API_docs_v44/methods/users_getUsers.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v45/README.md b/old_docs/API_docs_v45/README.md index 81168b63..84210984 100644 --- a/old_docs/API_docs_v45/README.md +++ b/old_docs/API_docs_v45/README.md @@ -4,11 +4,11 @@ description: MadelineProto API documentation (layer v45) --- # MadelineProto API documentation (layer v45) +[Back to main documentation](..) + + [Methods](methods/) [Constructors](constructors/) -[Types](types/) - - -[Back to main documentation](..) +[Types](types/) \ No newline at end of file diff --git a/old_docs/API_docs_v45/methods/README.md b/old_docs/API_docs_v45/methods/README.md index 21b31dd7..83d9b106 100644 --- a/old_docs/API_docs_v45/methods/README.md +++ b/old_docs/API_docs_v45/methods/README.md @@ -1,367 +1,362 @@ --- title: Methods -description: List of methods +description: What do you want to do? --- -# Methods -[Back to API documentation index](..) +# What do you want to do? +[Go back to API documentation index](..) +[Go to the old code-version method index](api_index.html) -$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); +* [Logout](https://docs.madelineproto.xyz/logout.html) -$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); +* [Login](https://docs.madelineproto.xyz/docs/LOGIN.html) -$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); +* [Get all chats, broadcast a message to all chats](https://docs.madelineproto.xyz/docs/DIALOGS.html) -$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); +* [Get the full participant list of a channel/group/supergroup](https://docs.madelineproto.xyz/get_pwr_chat.html) -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); +* [Get full info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_full_info.html) +* [Get info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_info.html) -$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); +* [Get info about the currently logged-in user](https://docs.madelineproto.xyz/get_self.html) -$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); +* [Upload or download files up to 1.5 GB](https://docs.madelineproto.xyz/docs/FILES.html) -$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); +* [Make a phone call and play a song](https://docs.madelineproto.xyz/docs/CALLS.html) -$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); - -$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); - - -$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); - -$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); +* [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) *** -

$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) +

* Change the phone number associated to this account -$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Check if this username is available -$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Delete this account -$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) +* Get account TTL -$MadelineProto->[account->getAuthorizations](account_getAuthorizations.md)(\[\]) === [$account\_Authorizations](../types/account_Authorizations.md) +* Get all logged-in authorizations -$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) +* Get notification settings -$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md) +* Get the current password -$MadelineProto->[account->getPasswordSettings](account_getPasswordSettings.md)(\['current_password_hash' => [bytes](../types/bytes.md), \]) === [$account\_PasswordSettings](../types/account_PasswordSettings.md) +* Get the current 2FA settings -$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Get privacy settings -$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) +* Returns a list of available wallpapers. -$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) +* Register device for push notifications -$MadelineProto->[account->reportPeer](account_reportPeer.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reason' => [ReportReason](../types/ReportReason.md), \]) === [$Bool](../types/Bool.md) +* Report for spam -$MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) +* Delete a certain session -$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) +* Reset all notification settings -$MadelineProto->[account->sendChangePhoneCode](account_sendChangePhoneCode.md)(\['phone_number' => [string](../types/string.md), \]) === [$account\_SentChangePhoneCode](../types/account_SentChangePhoneCode.md) +* Change the phone number -$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) +* Set account TTL -$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Set privacy settings -$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Stop sending PUSH notifications to app -$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Disable all notifications for a certain period -$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) +* Change notification settings -$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) +* Update the 2FA password settings -$MadelineProto->[account->updateProfile](account_updateProfile.md)(\['first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), \]) === [$User](../types/User.md) +* Update profile info -$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Update online status -$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) +* Update this user's username *** -

$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) +

* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info -$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) +* Check if this phone number is registered on telegram -$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) +* You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$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) +* You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->recoverPassword](auth_recoverPassword.md)(\['code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account -$MadelineProto->[auth->requestPasswordRecovery](auth_requestPasswordRecovery.md)(\[\]) === [$auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) +* Send an email to recover the 2FA password -$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) +* Delete all logged-in sessions. -$MadelineProto->[auth->sendCall](auth_sendCall.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Send verification phone call -$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) +* Use phone_login instead -$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Invite friends to telegram! -$MadelineProto->[auth->sendSms](auth_sendSms.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Send SMS verification code -$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) +* You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) -$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) +* You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) *** -

$MadelineProto->[channels->checkUsername](channels_checkUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +

* Check if this username is free and can be assigned to a channel/supergroup -$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) +* Create channel/supergroup -$MadelineProto->[channels->deleteChannel](channels_deleteChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Delete a channel/supergroup -$MadelineProto->[channels->deleteMessages](channels_deleteMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Delete channel/supergroup messages -$MadelineProto->[channels->deleteUserHistory](channels_deleteUserHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Delete all messages of a user in a channel/supergroup -$MadelineProto->[channels->editAbout](channels_editAbout.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'about' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Edit the about text of a channel/supergroup -$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) +* Edit admin permissions of a user in a channel/supergroup -$MadelineProto->[channels->editPhoto](channels_editPhoto.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) +* Edit the photo of a supergroup/channel -$MadelineProto->[channels->editTitle](channels_editTitle.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Edit the title of a supergroup/channel -$MadelineProto->[channels->exportInvite](channels_exportInvite.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) +* Export the invite link of a channel -$MadelineProto->[channels->getChannels](channels_getChannels.md)(\['id' => \[[InputChannel](../types/InputChannel.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get info about multiple channels/supergroups -$MadelineProto->[channels->getDialogs](channels_getDialogs.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Dialogs](../types/messages_Dialogs.md) +* Get channel dialogs -$MadelineProto->[channels->getFullChannel](channels_getFullChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) +* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[channels->getImportantHistory](channels_getImportantHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'offset_id' => [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) +* Get important channel/supergroup history -$MadelineProto->[channels->getMessages](channels_getMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get channel/supergroup messages -$MadelineProto->[channels->getParticipant](channels_getParticipant.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) +* Get info about a certain channel/supergroup participant -$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) +* Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead) -$MadelineProto->[channels->inviteToChannel](channels_inviteToChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'users' => \[[InputUser](../types/InputUser.md)\], \]) === [$Updates](../types/Updates.md) +* Add users to channel/supergroup -$MadelineProto->[channels->joinChannel](channels_joinChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Join a channel/supergroup -$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) +* Kick user from channel -$MadelineProto->[channels->leaveChannel](channels_leaveChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Leave a channel/supergroup -$MadelineProto->[channels->readHistory](channels_readHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Mark channel/supergroup history as read -$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) +* Report a supergroup/channel for spam -$MadelineProto->[channels->toggleComments](channels_toggleComments.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Enable channel comments -$MadelineProto->[channels->updateUsername](channels_updateUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Update the username of a supergroup/channel *** -

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +

* Block a user -$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) +* Delete a contact -$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) +* Delete multiple contacts -$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) +* Export contact as card -$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) +* Get blocked users -$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [string](../types/string.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) +* Get info about a certain contact -$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) +* Get online status of all users -$MadelineProto->[contacts->getSuggested](contacts_getSuggested.md)(\['limit' => [int](../types/int.md), \]) === [$contacts\_Suggested](../types/contacts_Suggested.md) +* Get suggested contacts -$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) +* Import card as contact -$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], 'replace' => [Bool](../types/Bool.md), \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) +* Add phone number as contact -$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) +* You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) +* Search contacts -$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +* Unblock a user *** -

$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) +

* Get the changelog of this app -$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) +* Get info about app updates -$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) +* Get server configuration -$MadelineProto->[help->getInviteText](help_getInviteText.md)(\['lang_code' => [string](../types/string.md), \]) === [$help\_InviteText](../types/help_InviteText.md) +* Get invitation text -$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) +* Get nearest datacenter -$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) +* Get info of support user -$MadelineProto->[help->getTermsOfService](help_getTermsOfService.md)(\['lang_code' => [string](../types/string.md), \]) === [$help\_TermsOfService](../types/help_TermsOfService.md) +* Get terms of service -$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) +* Log data for developer of this app *** -

$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) +

* Initializes connection and save information on the user's device and application. *** -

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invokes a query after successfull completion of one of the previous queries. *** -

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Result type returned by a current query. *** -

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invoke this method with layer X *** -

$MadelineProto->[invokeWithoutUpdates](invokeWithoutUpdates.md)(\['query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invoke with method without returning updates in the socket *** -

$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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Add a user to a normal chat (use channels->inviteToChannel for supergroups) -$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md) +* Check if an invitation link is valid -$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Create a chat (not supergroup) -$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md) +* Delete a user from a chat (not supergroup) -$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Delete chat history -$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Delete messages -$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Edit admin permissions -$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) +* Edit the photo of a normal chat (not supergroup) -$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Edit the title of a normal chat (not supergroup) -$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) +* Export chat invite -$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) +* Forward message -$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['broadcast' => [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) +* Forward messages -$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) +* Get all stickerpacks -$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get info about chats -$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) +* You cannot use this method directly, instead use $MadelineProto->get_dh_config(); -$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) +* Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html -$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) +* Get document by SHA256 hash -$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) +* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[messages->getHistory](messages_getHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset_id' => [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) +* Get previous messages of a group -$MadelineProto->[messages->getInlineBotResults](messages_getInlineBotResults.md)(\['bot' => [InputUser](../types/InputUser.md), 'query' => [string](../types/string.md), 'offset' => [string](../types/string.md), \]) === [$messages\_BotResults](../types/messages_BotResults.md) +* Call inline bot -$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get messages -$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) +* Get and increase message views -$MadelineProto->[messages->getSavedGifs](messages_getSavedGifs.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_SavedGifs](../types/messages_SavedGifs.md) +* Get saved gifs -$MadelineProto->[messages->getStickerSet](messages_getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) +* Get a stickerset -$MadelineProto->[messages->getStickers](messages_getStickers.md)(\['emoticon' => [string](../types/string.md), 'hash' => [string](../types/string.md), \]) === [$messages\_Stickers](../types/messages_Stickers.md) +* Get stickers -$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) === [$MessageMedia](../types/MessageMedia.md) +* Get webpage preview -$MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Import chat invite -$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'disabled' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Add a sticker set -$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) +* Convert chat to supergroup -$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Mark messages as read in secret chats -$MadelineProto->[messages->readHistory](messages_readHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Mark messages as read -$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Mark message as read -$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_ReceivedNotifyMessage](../types/ReceivedNotifyMessage.md) +* Mark messages as read -$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) +* You cannot use this method directly -$MadelineProto->[messages->reorderStickerSets](messages_reorderStickerSets.md)(\['order' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) +* Reorder sticker sets -$MadelineProto->[messages->reportSpam](messages_reportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Report a peer for spam -$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$MadelineProto->[messages->saveGif](messages_saveGif.md)(\['id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Save a GIF -$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) +* Search peers or messages -$MadelineProto->[messages->searchGifs](messages_searchGifs.md)(\['q' => [string](../types/string.md), 'offset' => [int](../types/int.md), \]) === [$messages\_FoundGifs](../types/messages_FoundGifs.md) +* Search gifs -$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) +* Global message search -$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) +* Send a message to all users in the chat list -$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send message to secret chat -$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) +* Send a file to a secret chat -$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send a service message to a secret chat -$MadelineProto->[messages->sendInlineBotResult](messages_sendInlineBotResult.md)(\['broadcast' => [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) +* Send a received bot result to the chat -$MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['broadcast' => [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) +* Send a media -$MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'broadcast' => [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) +* Send a message -$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Send typing notification to secret chat -$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), \]) === [$Bool](../types/Bool.md) +* Bots only: set the results of an inline query -$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) +* Change typing status -$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) +* Start a bot -$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Enable all users are admins in normal groups (not supergroups) -$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) +* Remove a sticker set *** -

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) +

* Delete profile photos -$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) +* Get the profile photos of a user -$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), 'crop' => [InputPhotoCrop](../types/InputPhotoCrop.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) +* Update the profile photo (use photos->uploadProfilePhoto to upload the photo) -$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) +* Upload profile photo *** -

$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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates -$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) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates -$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates *** -

$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) +

* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info *** -

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) +

* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) +* Get info about users diff --git a/old_docs/API_docs_v45/methods/account_changePhone.md b/old_docs/API_docs_v45/methods/account_changePhone.md index aeb5c4bc..65f0b0d0 100644 --- a/old_docs/API_docs_v45/methods/account_changePhone.md +++ b/old_docs/API_docs_v45/methods/account_changePhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); diff --git a/old_docs/API_docs_v45/methods/account_checkUsername.md b/old_docs/API_docs_v45/methods/account_checkUsername.md index 0124bb38..08107762 100644 --- a/old_docs/API_docs_v45/methods/account_checkUsername.md +++ b/old_docs/API_docs_v45/methods/account_checkUsername.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v45/methods/account_deleteAccount.md b/old_docs/API_docs_v45/methods/account_deleteAccount.md index e8b46c24..3a6f4700 100644 --- a/old_docs/API_docs_v45/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v45/methods/account_deleteAccount.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); diff --git a/old_docs/API_docs_v45/methods/account_getAccountTTL.md b/old_docs/API_docs_v45/methods/account_getAccountTTL.md index 0cdd0b98..ab6a6ea1 100644 --- a/old_docs/API_docs_v45/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v45/methods/account_getAccountTTL.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); diff --git a/old_docs/API_docs_v45/methods/account_getAuthorizations.md b/old_docs/API_docs_v45/methods/account_getAuthorizations.md index f92db8fe..303203e4 100644 --- a/old_docs/API_docs_v45/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v45/methods/account_getAuthorizations.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_Authorizations = $MadelineProto->account->getAuthorizations(); diff --git a/old_docs/API_docs_v45/methods/account_getNotifySettings.md b/old_docs/API_docs_v45/methods/account_getNotifySettings.md index f00be12c..ad492f49 100644 --- a/old_docs/API_docs_v45/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v45/methods/account_getNotifySettings.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); diff --git a/old_docs/API_docs_v45/methods/account_getPassword.md b/old_docs/API_docs_v45/methods/account_getPassword.md index c189421d..2692dab1 100644 --- a/old_docs/API_docs_v45/methods/account_getPassword.md +++ b/old_docs/API_docs_v45/methods/account_getPassword.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_Password = $MadelineProto->account->getPassword(); diff --git a/old_docs/API_docs_v45/methods/account_getPasswordSettings.md b/old_docs/API_docs_v45/methods/account_getPasswordSettings.md index 96cb953e..2039d405 100644 --- a/old_docs/API_docs_v45/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v45/methods/account_getPasswordSettings.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PasswordSettings = $MadelineProto->account->getPasswordSettings(['current_password_hash' => 'bytes', ]); diff --git a/old_docs/API_docs_v45/methods/account_getPrivacy.md b/old_docs/API_docs_v45/methods/account_getPrivacy.md index 979bfb94..5480ffbb 100644 --- a/old_docs/API_docs_v45/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v45/methods/account_getPrivacy.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); diff --git a/old_docs/API_docs_v45/methods/account_getWallPapers.md b/old_docs/API_docs_v45/methods/account_getWallPapers.md index 89b281be..7c8bff39 100644 --- a/old_docs/API_docs_v45/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v45/methods/account_getWallPapers.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); diff --git a/old_docs/API_docs_v45/methods/account_registerDevice.md b/old_docs/API_docs_v45/methods/account_registerDevice.md index 651e753f..8dae7506 100644 --- a/old_docs/API_docs_v45/methods/account_registerDevice.md +++ b/old_docs/API_docs_v45/methods/account_registerDevice.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'app_sandbox' => Bool, 'lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v45/methods/account_reportPeer.md b/old_docs/API_docs_v45/methods/account_reportPeer.md index a07c87d0..c5fe7073 100644 --- a/old_docs/API_docs_v45/methods/account_reportPeer.md +++ b/old_docs/API_docs_v45/methods/account_reportPeer.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->reportPeer(['peer' => InputPeer, 'reason' => ReportReason, ]); diff --git a/old_docs/API_docs_v45/methods/account_resetAuthorization.md b/old_docs/API_docs_v45/methods/account_resetAuthorization.md index 4155d3c8..543aee08 100644 --- a/old_docs/API_docs_v45/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v45/methods/account_resetAuthorization.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetAuthorization(['hash' => long, ]); diff --git a/old_docs/API_docs_v45/methods/account_resetNotifySettings.md b/old_docs/API_docs_v45/methods/account_resetNotifySettings.md index ccc836a9..557373b0 100644 --- a/old_docs/API_docs_v45/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v45/methods/account_resetNotifySettings.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); diff --git a/old_docs/API_docs_v45/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v45/methods/account_sendChangePhoneCode.md index 0b384269..930e0f76 100644 --- a/old_docs/API_docs_v45/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v45/methods/account_sendChangePhoneCode.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_SentChangePhoneCode = $MadelineProto->account->sendChangePhoneCode(['phone_number' => 'string', ]); diff --git a/old_docs/API_docs_v45/methods/account_setAccountTTL.md b/old_docs/API_docs_v45/methods/account_setAccountTTL.md index 5100e62e..bacdd77a 100644 --- a/old_docs/API_docs_v45/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v45/methods/account_setAccountTTL.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); diff --git a/old_docs/API_docs_v45/methods/account_setPrivacy.md b/old_docs/API_docs_v45/methods/account_setPrivacy.md index fbcedae7..6e24ded7 100644 --- a/old_docs/API_docs_v45/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v45/methods/account_setPrivacy.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); diff --git a/old_docs/API_docs_v45/methods/account_unregisterDevice.md b/old_docs/API_docs_v45/methods/account_unregisterDevice.md index 1d2b7670..b666d91a 100644 --- a/old_docs/API_docs_v45/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v45/methods/account_unregisterDevice.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); diff --git a/old_docs/API_docs_v45/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v45/methods/account_updateDeviceLocked.md index ef816501..cd52093a 100644 --- a/old_docs/API_docs_v45/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v45/methods/account_updateDeviceLocked.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); diff --git a/old_docs/API_docs_v45/methods/account_updateNotifySettings.md b/old_docs/API_docs_v45/methods/account_updateNotifySettings.md index 18cbdb75..db020309 100644 --- a/old_docs/API_docs_v45/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v45/methods/account_updateNotifySettings.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); diff --git a/old_docs/API_docs_v45/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v45/methods/account_updatePasswordSettings.md index 0754dd63..8af1e37f 100644 --- a/old_docs/API_docs_v45/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v45/methods/account_updatePasswordSettings.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updatePasswordSettings(['current_password_hash' => 'bytes', 'new_settings' => account_PasswordInputSettings, ]); diff --git a/old_docs/API_docs_v45/methods/account_updateProfile.md b/old_docs/API_docs_v45/methods/account_updateProfile.md index f16398ed..caea3391 100644 --- a/old_docs/API_docs_v45/methods/account_updateProfile.md +++ b/old_docs/API_docs_v45/methods/account_updateProfile.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', ]); diff --git a/old_docs/API_docs_v45/methods/account_updateStatus.md b/old_docs/API_docs_v45/methods/account_updateStatus.md index 4b049e65..50b99b1e 100644 --- a/old_docs/API_docs_v45/methods/account_updateStatus.md +++ b/old_docs/API_docs_v45/methods/account_updateStatus.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); diff --git a/old_docs/API_docs_v45/methods/account_updateUsername.md b/old_docs/API_docs_v45/methods/account_updateUsername.md index 08d2abe0..7276e2aa 100644 --- a/old_docs/API_docs_v45/methods/account_updateUsername.md +++ b/old_docs/API_docs_v45/methods/account_updateUsername.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v45/methods/api_README.md b/old_docs/API_docs_v45/methods/api_README.md new file mode 100644 index 00000000..e485d378 --- /dev/null +++ b/old_docs/API_docs_v45/methods/api_README.md @@ -0,0 +1,368 @@ +--- +title: Methods +description: List of methods +--- +# Methods +[Back to API documentation index](..) + +[Go to the new description-version method index](index.html) + +$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); + +$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); + +$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); + +$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); + +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); + + +$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); + +$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); + +$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); + +$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); + +$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); + + +$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); + +$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); + +*** +

$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) + +$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) + +$MadelineProto->[account->getAuthorizations](account_getAuthorizations.md)(\[\]) === [$account\_Authorizations](../types/account_Authorizations.md) + +$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) + +$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md) + +$MadelineProto->[account->getPasswordSettings](account_getPasswordSettings.md)(\['current_password_hash' => [bytes](../types/bytes.md), \]) === [$account\_PasswordSettings](../types/account_PasswordSettings.md) + +$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) + +$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) + +$MadelineProto->[account->reportPeer](account_reportPeer.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reason' => [ReportReason](../types/ReportReason.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->sendChangePhoneCode](account_sendChangePhoneCode.md)(\['phone_number' => [string](../types/string.md), \]) === [$account\_SentChangePhoneCode](../types/account_SentChangePhoneCode.md) + +$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[account->updateProfile](account_updateProfile.md)(\['first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), \]) === [$User](../types/User.md) + +$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) + +*** +

$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) + +$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) + +$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) + +$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$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) + +$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->recoverPassword](auth_recoverPassword.md)(\['code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->requestPasswordRecovery](auth_requestPasswordRecovery.md)(\[\]) === [$auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) + +$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->sendCall](auth_sendCall.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->sendSms](auth_sendSms.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$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) + +*** +

$MadelineProto->[channels->checkUsername](channels_checkUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->deleteChannel](channels_deleteChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->deleteMessages](channels_deleteMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[channels->deleteUserHistory](channels_deleteUserHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[channels->editAbout](channels_editAbout.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'about' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->editPhoto](channels_editPhoto.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->editTitle](channels_editTitle.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->exportInvite](channels_exportInvite.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) + +$MadelineProto->[channels->getChannels](channels_getChannels.md)(\['id' => \[[InputChannel](../types/InputChannel.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[channels->getDialogs](channels_getDialogs.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Dialogs](../types/messages_Dialogs.md) + +$MadelineProto->[channels->getFullChannel](channels_getFullChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$MadelineProto->[channels->getImportantHistory](channels_getImportantHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'offset_id' => [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) + +$MadelineProto->[channels->getMessages](channels_getMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) + +$MadelineProto->[channels->getParticipant](channels_getParticipant.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) + +$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) + +$MadelineProto->[channels->inviteToChannel](channels_inviteToChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'users' => \[[InputUser](../types/InputUser.md)\], \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->joinChannel](channels_joinChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$MadelineProto->[channels->leaveChannel](channels_leaveChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->readHistory](channels_readHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->toggleComments](channels_toggleComments.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->updateUsername](channels_updateUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) + +$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) + +$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) + +$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [string](../types/string.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) + +$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) + +$MadelineProto->[contacts->getSuggested](contacts_getSuggested.md)(\['limit' => [int](../types/int.md), \]) === [$contacts\_Suggested](../types/contacts_Suggested.md) + +$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) + +$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], 'replace' => [Bool](../types/Bool.md), \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) + +$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) + +$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) + +$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +*** +

$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) + +$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) + +$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) + +$MadelineProto->[help->getInviteText](help_getInviteText.md)(\['lang_code' => [string](../types/string.md), \]) === [$help\_InviteText](../types/help_InviteText.md) + +$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) + +$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) + +$MadelineProto->[help->getTermsOfService](help_getTermsOfService.md)(\['lang_code' => [string](../types/string.md), \]) === [$help\_TermsOfService](../types/help_TermsOfService.md) + +$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) + +*** +

$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) + +*** +

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeWithoutUpdates](invokeWithoutUpdates.md)(\['query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$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) + +$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) + +$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md) + +$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) + +$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['broadcast' => [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) + +$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) + +$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) + +$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) + +$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) + +$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$MadelineProto->[messages->getHistory](messages_getHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset_id' => [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) + +$MadelineProto->[messages->getInlineBotResults](messages_getInlineBotResults.md)(\['bot' => [InputUser](../types/InputUser.md), 'query' => [string](../types/string.md), 'offset' => [string](../types/string.md), \]) === [$messages\_BotResults](../types/messages_BotResults.md) + +$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) + +$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) + +$MadelineProto->[messages->getSavedGifs](messages_getSavedGifs.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_SavedGifs](../types/messages_SavedGifs.md) + +$MadelineProto->[messages->getStickerSet](messages_getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +$MadelineProto->[messages->getStickers](messages_getStickers.md)(\['emoticon' => [string](../types/string.md), 'hash' => [string](../types/string.md), \]) === [$messages\_Stickers](../types/messages_Stickers.md) + +$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) === [$MessageMedia](../types/MessageMedia.md) + +$MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'disabled' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->readHistory](messages_readHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_ReceivedNotifyMessage](../types/ReceivedNotifyMessage.md) + +$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) + +$MadelineProto->[messages->reorderStickerSets](messages_reorderStickerSets.md)(\['order' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->reportSpam](messages_reportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) + +$MadelineProto->[messages->saveGif](messages_saveGif.md)(\['id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->searchGifs](messages_searchGifs.md)(\['q' => [string](../types/string.md), 'offset' => [int](../types/int.md), \]) === [$messages\_FoundGifs](../types/messages_FoundGifs.md) + +$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) + +$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) + +$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$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) + +$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$MadelineProto->[messages->sendInlineBotResult](messages_sendInlineBotResult.md)(\['broadcast' => [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) + +$MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['broadcast' => [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) + +$MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'broadcast' => [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) + +$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$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), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) + +$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) + +$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), 'crop' => [InputPhotoCrop](../types/InputPhotoCrop.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) + +$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) + +*** +

$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) + +$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) + +$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) + +*** +

$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) + +$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) + +$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) + +*** +

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) + +$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) + diff --git a/old_docs/API_docs_v45/methods/auth_checkPhone.md b/old_docs/API_docs_v45/methods/auth_checkPhone.md index 291221de..1826ce63 100644 --- a/old_docs/API_docs_v45/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v45/methods/auth_checkPhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); diff --git a/old_docs/API_docs_v45/methods/auth_recoverPassword.md b/old_docs/API_docs_v45/methods/auth_recoverPassword.md index cdc9bd7d..5e37b0f3 100644 --- a/old_docs/API_docs_v45/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v45/methods/auth_recoverPassword.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_Authorization = $MadelineProto->auth->recoverPassword(['code' => 'string', ]); diff --git a/old_docs/API_docs_v45/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v45/methods/auth_requestPasswordRecovery.md index e18c6c93..c69d0c49 100644 --- a/old_docs/API_docs_v45/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v45/methods/auth_requestPasswordRecovery.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_PasswordRecovery = $MadelineProto->auth->requestPasswordRecovery(); diff --git a/old_docs/API_docs_v45/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v45/methods/auth_resetAuthorizations.md index 47feea16..a46c880d 100644 --- a/old_docs/API_docs_v45/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v45/methods/auth_resetAuthorizations.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); diff --git a/old_docs/API_docs_v45/methods/auth_sendCall.md b/old_docs/API_docs_v45/methods/auth_sendCall.md index e2bd2855..5947cda7 100644 --- a/old_docs/API_docs_v45/methods/auth_sendCall.md +++ b/old_docs/API_docs_v45/methods/auth_sendCall.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendCall(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v45/methods/auth_sendInvites.md b/old_docs/API_docs_v45/methods/auth_sendInvites.md index be32fe6b..9b88b4a3 100644 --- a/old_docs/API_docs_v45/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v45/methods/auth_sendInvites.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); diff --git a/old_docs/API_docs_v45/methods/auth_sendSms.md b/old_docs/API_docs_v45/methods/auth_sendSms.md index a17fdd3a..41340660 100644 --- a/old_docs/API_docs_v45/methods/auth_sendSms.md +++ b/old_docs/API_docs_v45/methods/auth_sendSms.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendSms(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v45/methods/channels_checkUsername.md b/old_docs/API_docs_v45/methods/channels_checkUsername.md index 7bc7c245..7e3d5a89 100644 --- a/old_docs/API_docs_v45/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v45/methods/channels_checkUsername.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->checkUsername(['channel' => InputChannel, 'username' => 'string', ]); diff --git a/old_docs/API_docs_v45/methods/channels_createChannel.md b/old_docs/API_docs_v45/methods/channels_createChannel.md index 1305e4fb..a5ddc379 100644 --- a/old_docs/API_docs_v45/methods/channels_createChannel.md +++ b/old_docs/API_docs_v45/methods/channels_createChannel.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->createChannel(['broadcast' => Bool, 'megagroup' => Bool, 'title' => 'string', 'about' => 'string', ]); diff --git a/old_docs/API_docs_v45/methods/channels_deleteChannel.md b/old_docs/API_docs_v45/methods/channels_deleteChannel.md index e660d25c..69dad9a3 100644 --- a/old_docs/API_docs_v45/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v45/methods/channels_deleteChannel.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->deleteChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v45/methods/channels_deleteMessages.md b/old_docs/API_docs_v45/methods/channels_deleteMessages.md index fb9d3cc2..b12270b3 100644 --- a/old_docs/API_docs_v45/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v45/methods/channels_deleteMessages.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v45/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v45/methods/channels_deleteUserHistory.md index fbe34341..75f531bb 100644 --- a/old_docs/API_docs_v45/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v45/methods/channels_deleteUserHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->channels->deleteUserHistory(['channel' => InputChannel, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v45/methods/channels_editAbout.md b/old_docs/API_docs_v45/methods/channels_editAbout.md index 8908f29e..67521065 100644 --- a/old_docs/API_docs_v45/methods/channels_editAbout.md +++ b/old_docs/API_docs_v45/methods/channels_editAbout.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->editAbout(['channel' => InputChannel, 'about' => 'string', ]); diff --git a/old_docs/API_docs_v45/methods/channels_editAdmin.md b/old_docs/API_docs_v45/methods/channels_editAdmin.md index 01662a1d..7b6cc0f1 100644 --- a/old_docs/API_docs_v45/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v45/methods/channels_editAdmin.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editAdmin(['channel' => InputChannel, 'user_id' => InputUser, 'role' => ChannelParticipantRole, ]); diff --git a/old_docs/API_docs_v45/methods/channels_editPhoto.md b/old_docs/API_docs_v45/methods/channels_editPhoto.md index 9ccd864f..c854c64a 100644 --- a/old_docs/API_docs_v45/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v45/methods/channels_editPhoto.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editPhoto(['channel' => InputChannel, 'photo' => InputChatPhoto, ]); diff --git a/old_docs/API_docs_v45/methods/channels_editTitle.md b/old_docs/API_docs_v45/methods/channels_editTitle.md index b1024faf..9bc6773e 100644 --- a/old_docs/API_docs_v45/methods/channels_editTitle.md +++ b/old_docs/API_docs_v45/methods/channels_editTitle.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editTitle(['channel' => InputChannel, 'title' => 'string', ]); diff --git a/old_docs/API_docs_v45/methods/channels_exportInvite.md b/old_docs/API_docs_v45/methods/channels_exportInvite.md index f0c737d5..ca65dcc8 100644 --- a/old_docs/API_docs_v45/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v45/methods/channels_exportInvite.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedChatInvite = $MadelineProto->channels->exportInvite(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v45/methods/channels_getChannels.md b/old_docs/API_docs_v45/methods/channels_getChannels.md index 9cd9e798..af22556f 100644 --- a/old_docs/API_docs_v45/methods/channels_getChannels.md +++ b/old_docs/API_docs_v45/methods/channels_getChannels.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel, InputChannel], ]); diff --git a/old_docs/API_docs_v45/methods/channels_getDialogs.md b/old_docs/API_docs_v45/methods/channels_getDialogs.md index 9ad21720..1b5837b7 100644 --- a/old_docs/API_docs_v45/methods/channels_getDialogs.md +++ b/old_docs/API_docs_v45/methods/channels_getDialogs.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Dialogs = $MadelineProto->channels->getDialogs(['offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v45/methods/channels_getImportantHistory.md b/old_docs/API_docs_v45/methods/channels_getImportantHistory.md index 66be0b21..861e4a32 100644 --- a/old_docs/API_docs_v45/methods/channels_getImportantHistory.md +++ b/old_docs/API_docs_v45/methods/channels_getImportantHistory.md @@ -34,12 +34,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->channels->getImportantHistory(['channel' => InputChannel, 'offset_id' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); diff --git a/old_docs/API_docs_v45/methods/channels_getMessages.md b/old_docs/API_docs_v45/methods/channels_getMessages.md index cc944fe5..eda13d0b 100644 --- a/old_docs/API_docs_v45/methods/channels_getMessages.md +++ b/old_docs/API_docs_v45/methods/channels_getMessages.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v45/methods/channels_getParticipant.md b/old_docs/API_docs_v45/methods/channels_getParticipant.md index db9b1fc6..be5fe96a 100644 --- a/old_docs/API_docs_v45/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v45/methods/channels_getParticipant.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $channels_ChannelParticipant = $MadelineProto->channels->getParticipant(['channel' => InputChannel, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v45/methods/channels_getParticipants.md b/old_docs/API_docs_v45/methods/channels_getParticipants.md index 96662466..6a27016b 100644 --- a/old_docs/API_docs_v45/methods/channels_getParticipants.md +++ b/old_docs/API_docs_v45/methods/channels_getParticipants.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $channels_ChannelParticipants = $MadelineProto->channels->getParticipants(['channel' => InputChannel, 'filter' => ChannelParticipantsFilter, 'offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v45/methods/channels_inviteToChannel.md b/old_docs/API_docs_v45/methods/channels_inviteToChannel.md index 676f800c..e7d12db7 100644 --- a/old_docs/API_docs_v45/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v45/methods/channels_inviteToChannel.md @@ -52,12 +52,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v45/methods/channels_joinChannel.md b/old_docs/API_docs_v45/methods/channels_joinChannel.md index 721f707c..3ac2b326 100644 --- a/old_docs/API_docs_v45/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v45/methods/channels_joinChannel.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->joinChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v45/methods/channels_kickFromChannel.md b/old_docs/API_docs_v45/methods/channels_kickFromChannel.md index bf8bb5b8..8f6c92be 100644 --- a/old_docs/API_docs_v45/methods/channels_kickFromChannel.md +++ b/old_docs/API_docs_v45/methods/channels_kickFromChannel.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->kickFromChannel(['channel' => InputChannel, 'user_id' => InputUser, 'kicked' => Bool, ]); diff --git a/old_docs/API_docs_v45/methods/channels_leaveChannel.md b/old_docs/API_docs_v45/methods/channels_leaveChannel.md index 7f02e08c..95b60a90 100644 --- a/old_docs/API_docs_v45/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v45/methods/channels_leaveChannel.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->leaveChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v45/methods/channels_readHistory.md b/old_docs/API_docs_v45/methods/channels_readHistory.md index cca891f0..c6b14541 100644 --- a/old_docs/API_docs_v45/methods/channels_readHistory.md +++ b/old_docs/API_docs_v45/methods/channels_readHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->readHistory(['channel' => InputChannel, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v45/methods/channels_reportSpam.md b/old_docs/API_docs_v45/methods/channels_reportSpam.md index 09af14e0..ca5c28f5 100644 --- a/old_docs/API_docs_v45/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v45/methods/channels_reportSpam.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v45/methods/channels_toggleComments.md b/old_docs/API_docs_v45/methods/channels_toggleComments.md index 73ef8d23..cc9f478d 100644 --- a/old_docs/API_docs_v45/methods/channels_toggleComments.md +++ b/old_docs/API_docs_v45/methods/channels_toggleComments.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->toggleComments(['channel' => InputChannel, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v45/methods/channels_updateUsername.md b/old_docs/API_docs_v45/methods/channels_updateUsername.md index ad34490a..2093b6ce 100644 --- a/old_docs/API_docs_v45/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v45/methods/channels_updateUsername.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->updateUsername(['channel' => InputChannel, 'username' => 'string', ]); diff --git a/old_docs/API_docs_v45/methods/contacts_block.md b/old_docs/API_docs_v45/methods/contacts_block.md index d0729d30..e592cace 100644 --- a/old_docs/API_docs_v45/methods/contacts_block.md +++ b/old_docs/API_docs_v45/methods/contacts_block.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v45/methods/contacts_deleteContact.md b/old_docs/API_docs_v45/methods/contacts_deleteContact.md index b8c17544..1a3f2a27 100644 --- a/old_docs/API_docs_v45/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v45/methods/contacts_deleteContact.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v45/methods/contacts_deleteContacts.md b/old_docs/API_docs_v45/methods/contacts_deleteContacts.md index 64c69460..f6627599 100644 --- a/old_docs/API_docs_v45/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v45/methods/contacts_deleteContacts.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v45/methods/contacts_exportCard.md b/old_docs/API_docs_v45/methods/contacts_exportCard.md index b05f57ce..1d2129f3 100644 --- a/old_docs/API_docs_v45/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v45/methods/contacts_exportCard.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); diff --git a/old_docs/API_docs_v45/methods/contacts_getBlocked.md b/old_docs/API_docs_v45/methods/contacts_getBlocked.md index d7d8c5cc..44d24aba 100644 --- a/old_docs/API_docs_v45/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v45/methods/contacts_getBlocked.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v45/methods/contacts_getContacts.md b/old_docs/API_docs_v45/methods/contacts_getContacts.md index 1ab8af27..83c4846f 100644 --- a/old_docs/API_docs_v45/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v45/methods/contacts_getContacts.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v45/methods/contacts_getStatuses.md b/old_docs/API_docs_v45/methods/contacts_getStatuses.md index b927a140..5cef3084 100644 --- a/old_docs/API_docs_v45/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v45/methods/contacts_getStatuses.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); diff --git a/old_docs/API_docs_v45/methods/contacts_getSuggested.md b/old_docs/API_docs_v45/methods/contacts_getSuggested.md index 302e60e5..1ce04bef 100644 --- a/old_docs/API_docs_v45/methods/contacts_getSuggested.md +++ b/old_docs/API_docs_v45/methods/contacts_getSuggested.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Suggested = $MadelineProto->contacts->getSuggested(['limit' => int, ]); diff --git a/old_docs/API_docs_v45/methods/contacts_importCard.md b/old_docs/API_docs_v45/methods/contacts_importCard.md index 81a1e138..89c96657 100644 --- a/old_docs/API_docs_v45/methods/contacts_importCard.md +++ b/old_docs/API_docs_v45/methods/contacts_importCard.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); diff --git a/old_docs/API_docs_v45/methods/contacts_importContacts.md b/old_docs/API_docs_v45/methods/contacts_importContacts.md index 578e5dfd..cd3d6615 100644 --- a/old_docs/API_docs_v45/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v45/methods/contacts_importContacts.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], 'replace' => Bool, ]); diff --git a/old_docs/API_docs_v45/methods/contacts_search.md b/old_docs/API_docs_v45/methods/contacts_search.md index 68daecd6..64ff748e 100644 --- a/old_docs/API_docs_v45/methods/contacts_search.md +++ b/old_docs/API_docs_v45/methods/contacts_search.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); diff --git a/old_docs/API_docs_v45/methods/contacts_unblock.md b/old_docs/API_docs_v45/methods/contacts_unblock.md index f7d151b9..ec72ae2d 100644 --- a/old_docs/API_docs_v45/methods/contacts_unblock.md +++ b/old_docs/API_docs_v45/methods/contacts_unblock.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v45/methods/help_getAppChangelog.md b/old_docs/API_docs_v45/methods/help_getAppChangelog.md index dbca4fc8..eb48fabb 100644 --- a/old_docs/API_docs_v45/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v45/methods/help_getAppChangelog.md @@ -32,12 +32,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_AppChangelog = $MadelineProto->help->getAppChangelog(['device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v45/methods/help_getAppUpdate.md b/old_docs/API_docs_v45/methods/help_getAppUpdate.md index f97da105..ad5b8228 100644 --- a/old_docs/API_docs_v45/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v45/methods/help_getAppUpdate.md @@ -32,12 +32,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(['device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v45/methods/help_getConfig.md b/old_docs/API_docs_v45/methods/help_getConfig.md index 16e25c68..ca4bfc25 100644 --- a/old_docs/API_docs_v45/methods/help_getConfig.md +++ b/old_docs/API_docs_v45/methods/help_getConfig.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); diff --git a/old_docs/API_docs_v45/methods/help_getInviteText.md b/old_docs/API_docs_v45/methods/help_getInviteText.md index 0831ba5f..ad6ac262 100644 --- a/old_docs/API_docs_v45/methods/help_getInviteText.md +++ b/old_docs/API_docs_v45/methods/help_getInviteText.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(['lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v45/methods/help_getNearestDc.md b/old_docs/API_docs_v45/methods/help_getNearestDc.md index 35a8bf91..458f60ab 100644 --- a/old_docs/API_docs_v45/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v45/methods/help_getNearestDc.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); diff --git a/old_docs/API_docs_v45/methods/help_getSupport.md b/old_docs/API_docs_v45/methods/help_getSupport.md index a5bab0f2..9ee25b00 100644 --- a/old_docs/API_docs_v45/methods/help_getSupport.md +++ b/old_docs/API_docs_v45/methods/help_getSupport.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); diff --git a/old_docs/API_docs_v45/methods/help_getTermsOfService.md b/old_docs/API_docs_v45/methods/help_getTermsOfService.md index 3363d658..0936575e 100644 --- a/old_docs/API_docs_v45/methods/help_getTermsOfService.md +++ b/old_docs/API_docs_v45/methods/help_getTermsOfService.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_TermsOfService = $MadelineProto->help->getTermsOfService(['lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v45/methods/help_saveAppLog.md b/old_docs/API_docs_v45/methods/help_saveAppLog.md index 0165b6e3..a7884c47 100644 --- a/old_docs/API_docs_v45/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v45/methods/help_saveAppLog.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); diff --git a/old_docs/API_docs_v45/methods/initConnection.md b/old_docs/API_docs_v45/methods/initConnection.md index 2d3d86ad..73620276 100644 --- a/old_docs/API_docs_v45/methods/initConnection.md +++ b/old_docs/API_docs_v45/methods/initConnection.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->initConnection(['api_id' => int, 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', 'query' => !X, ]); diff --git a/old_docs/API_docs_v45/methods/invokeAfterMsg.md b/old_docs/API_docs_v45/methods/invokeAfterMsg.md index e33a2c93..8e953e78 100644 --- a/old_docs/API_docs_v45/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v45/methods/invokeAfterMsg.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); diff --git a/old_docs/API_docs_v45/methods/invokeAfterMsgs.md b/old_docs/API_docs_v45/methods/invokeAfterMsgs.md index 3150a613..bc8a83b7 100644 --- a/old_docs/API_docs_v45/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v45/methods/invokeAfterMsgs.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); diff --git a/old_docs/API_docs_v45/methods/invokeWithLayer.md b/old_docs/API_docs_v45/methods/invokeWithLayer.md index 71d02abb..8a0c4e79 100644 --- a/old_docs/API_docs_v45/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v45/methods/invokeWithLayer.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); diff --git a/old_docs/API_docs_v45/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v45/methods/invokeWithoutUpdates.md index 2bab236a..2d90a776 100644 --- a/old_docs/API_docs_v45/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v45/methods/invokeWithoutUpdates.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeWithoutUpdates(['query' => !X, ]); diff --git a/old_docs/API_docs_v45/methods/messages_addChatUser.md b/old_docs/API_docs_v45/methods/messages_addChatUser.md index 3e4c5ccc..c6ef275f 100644 --- a/old_docs/API_docs_v45/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v45/methods/messages_addChatUser.md @@ -46,12 +46,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); diff --git a/old_docs/API_docs_v45/methods/messages_checkChatInvite.md b/old_docs/API_docs_v45/methods/messages_checkChatInvite.md index de1d9ff4..cea63313 100644 --- a/old_docs/API_docs_v45/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v45/methods/messages_checkChatInvite.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ChatInvite = $MadelineProto->messages->checkChatInvite(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v45/methods/messages_createChat.md b/old_docs/API_docs_v45/methods/messages_createChat.md index 68c0263a..966f58dc 100644 --- a/old_docs/API_docs_v45/methods/messages_createChat.md +++ b/old_docs/API_docs_v45/methods/messages_createChat.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); diff --git a/old_docs/API_docs_v45/methods/messages_deleteChatUser.md b/old_docs/API_docs_v45/methods/messages_deleteChatUser.md index 0a6830de..9a9227ba 100644 --- a/old_docs/API_docs_v45/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v45/methods/messages_deleteChatUser.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v45/methods/messages_deleteHistory.md b/old_docs/API_docs_v45/methods/messages_deleteHistory.md index d883a9ad..4cb70ec8 100644 --- a/old_docs/API_docs_v45/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v45/methods/messages_deleteHistory.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['peer' => InputPeer, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v45/methods/messages_deleteMessages.md b/old_docs/API_docs_v45/methods/messages_deleteMessages.md index 41570996..fa043e1c 100644 --- a/old_docs/API_docs_v45/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v45/methods/messages_deleteMessages.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v45/methods/messages_editChatAdmin.md b/old_docs/API_docs_v45/methods/messages_editChatAdmin.md index 7916f8b1..5bba0559 100644 --- a/old_docs/API_docs_v45/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v45/methods/messages_editChatAdmin.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]); diff --git a/old_docs/API_docs_v45/methods/messages_editChatPhoto.md b/old_docs/API_docs_v45/methods/messages_editChatPhoto.md index 122913c4..5827a5cc 100644 --- a/old_docs/API_docs_v45/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v45/methods/messages_editChatPhoto.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); diff --git a/old_docs/API_docs_v45/methods/messages_editChatTitle.md b/old_docs/API_docs_v45/methods/messages_editChatTitle.md index 3a1e974b..2e69d790 100644 --- a/old_docs/API_docs_v45/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v45/methods/messages_editChatTitle.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); diff --git a/old_docs/API_docs_v45/methods/messages_exportChatInvite.md b/old_docs/API_docs_v45/methods/messages_exportChatInvite.md index 98685d96..ec80e207 100644 --- a/old_docs/API_docs_v45/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v45/methods/messages_exportChatInvite.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]); diff --git a/old_docs/API_docs_v45/methods/messages_forwardMessage.md b/old_docs/API_docs_v45/methods/messages_forwardMessage.md index 45b7a07f..d6916437 100644 --- a/old_docs/API_docs_v45/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v45/methods/messages_forwardMessage.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); diff --git a/old_docs/API_docs_v45/methods/messages_forwardMessages.md b/old_docs/API_docs_v45/methods/messages_forwardMessages.md index b7273f1d..6a646f5f 100644 --- a/old_docs/API_docs_v45/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v45/methods/messages_forwardMessages.md @@ -60,12 +60,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessages(['broadcast' => Bool, 'from_peer' => InputPeer, 'id' => [int, int], 'to_peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v45/methods/messages_getAllStickers.md b/old_docs/API_docs_v45/methods/messages_getAllStickers.md index 16fdba6c..2ba37a91 100644 --- a/old_docs/API_docs_v45/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v45/methods/messages_getAllStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => int, ]); diff --git a/old_docs/API_docs_v45/methods/messages_getChats.md b/old_docs/API_docs_v45/methods/messages_getChats.md index 290438a1..e84c7193 100644 --- a/old_docs/API_docs_v45/methods/messages_getChats.md +++ b/old_docs/API_docs_v45/methods/messages_getChats.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v45/methods/messages_getDialogs.md b/old_docs/API_docs_v45/methods/messages_getDialogs.md index 7a28bd83..bd3ef681 100644 --- a/old_docs/API_docs_v45/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v45/methods/messages_getDialogs.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['offset_date' => int, 'offset_id' => int, 'offset_peer' => InputPeer, 'limit' => int, ]); diff --git a/old_docs/API_docs_v45/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v45/methods/messages_getDocumentByHash.md index 1af5bad4..ad8e22be 100644 --- a/old_docs/API_docs_v45/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v45/methods/messages_getDocumentByHash.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Document = $MadelineProto->messages->getDocumentByHash(['sha256' => 'bytes', 'size' => int, 'mime_type' => 'string', ]); diff --git a/old_docs/API_docs_v45/methods/messages_getHistory.md b/old_docs/API_docs_v45/methods/messages_getHistory.md index dd61853d..dfefb639 100644 --- a/old_docs/API_docs_v45/methods/messages_getHistory.md +++ b/old_docs/API_docs_v45/methods/messages_getHistory.md @@ -46,12 +46,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getHistory(['peer' => InputPeer, 'offset_id' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); diff --git a/old_docs/API_docs_v45/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v45/methods/messages_getInlineBotResults.md index fc80c5e8..0675fe08 100644 --- a/old_docs/API_docs_v45/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v45/methods/messages_getInlineBotResults.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_BotResults = $MadelineProto->messages->getInlineBotResults(['bot' => InputUser, 'query' => 'string', 'offset' => 'string', ]); diff --git a/old_docs/API_docs_v45/methods/messages_getMessages.md b/old_docs/API_docs_v45/methods/messages_getMessages.md index 86d1da8a..d538cb5f 100644 --- a/old_docs/API_docs_v45/methods/messages_getMessages.md +++ b/old_docs/API_docs_v45/methods/messages_getMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v45/methods/messages_getMessagesViews.md b/old_docs/API_docs_v45/methods/messages_getMessagesViews.md index b8d78c85..934adc16 100644 --- a/old_docs/API_docs_v45/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v45/methods/messages_getMessagesViews.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int, int], 'increment' => Bool, ]); diff --git a/old_docs/API_docs_v45/methods/messages_getSavedGifs.md b/old_docs/API_docs_v45/methods/messages_getSavedGifs.md index f61348ce..38585538 100644 --- a/old_docs/API_docs_v45/methods/messages_getSavedGifs.md +++ b/old_docs/API_docs_v45/methods/messages_getSavedGifs.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => int, ]); diff --git a/old_docs/API_docs_v45/methods/messages_getStickerSet.md b/old_docs/API_docs_v45/methods/messages_getStickerSet.md index c86807e4..c9140ab2 100644 --- a/old_docs/API_docs_v45/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v45/methods/messages_getStickerSet.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSet = $MadelineProto->messages->getStickerSet(['stickerset' => InputStickerSet, ]); diff --git a/old_docs/API_docs_v45/methods/messages_getStickers.md b/old_docs/API_docs_v45/methods/messages_getStickers.md index 4854696d..d2ea57cf 100644 --- a/old_docs/API_docs_v45/methods/messages_getStickers.md +++ b/old_docs/API_docs_v45/methods/messages_getStickers.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Stickers = $MadelineProto->messages->getStickers(['emoticon' => 'string', 'hash' => 'string', ]); diff --git a/old_docs/API_docs_v45/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v45/methods/messages_getWebPagePreview.md index d01bdd32..e8b20c5d 100644 --- a/old_docs/API_docs_v45/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v45/methods/messages_getWebPagePreview.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $MessageMedia = $MadelineProto->messages->getWebPagePreview(['message' => 'string', ]); diff --git a/old_docs/API_docs_v45/methods/messages_importChatInvite.md b/old_docs/API_docs_v45/methods/messages_importChatInvite.md index 0d6cd7c8..b1830a9b 100644 --- a/old_docs/API_docs_v45/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v45/methods/messages_importChatInvite.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->importChatInvite(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v45/methods/messages_installStickerSet.md b/old_docs/API_docs_v45/methods/messages_installStickerSet.md index 04b693cd..77c5a2a5 100644 --- a/old_docs/API_docs_v45/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v45/methods/messages_installStickerSet.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->installStickerSet(['stickerset' => InputStickerSet, 'disabled' => Bool, ]); diff --git a/old_docs/API_docs_v45/methods/messages_migrateChat.md b/old_docs/API_docs_v45/methods/messages_migrateChat.md index db57adfa..22ccfcc1 100644 --- a/old_docs/API_docs_v45/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v45/methods/messages_migrateChat.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]); diff --git a/old_docs/API_docs_v45/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v45/methods/messages_readEncryptedHistory.md index 39b110e3..2ba4cca4 100644 --- a/old_docs/API_docs_v45/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v45/methods/messages_readEncryptedHistory.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); diff --git a/old_docs/API_docs_v45/methods/messages_readHistory.md b/old_docs/API_docs_v45/methods/messages_readHistory.md index 3de17061..26b608af 100644 --- a/old_docs/API_docs_v45/methods/messages_readHistory.md +++ b/old_docs/API_docs_v45/methods/messages_readHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v45/methods/messages_readMessageContents.md b/old_docs/API_docs_v45/methods/messages_readMessageContents.md index 9bb1bee8..a09cb63e 100644 --- a/old_docs/API_docs_v45/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v45/methods/messages_readMessageContents.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v45/methods/messages_receivedMessages.md b/old_docs/API_docs_v45/methods/messages_receivedMessages.md index 7aab635f..b5e87992 100644 --- a/old_docs/API_docs_v45/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v45/methods/messages_receivedMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_ReceivedNotifyMessage = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); diff --git a/old_docs/API_docs_v45/methods/messages_reorderStickerSets.md b/old_docs/API_docs_v45/methods/messages_reorderStickerSets.md index b2cbe4c1..90913e5d 100644 --- a/old_docs/API_docs_v45/methods/messages_reorderStickerSets.md +++ b/old_docs/API_docs_v45/methods/messages_reorderStickerSets.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reorderStickerSets(['order' => [long, long], ]); diff --git a/old_docs/API_docs_v45/methods/messages_reportSpam.md b/old_docs/API_docs_v45/methods/messages_reportSpam.md index 2e2b1177..09c1e63b 100644 --- a/old_docs/API_docs_v45/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v45/methods/messages_reportSpam.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reportSpam(['peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v45/methods/messages_saveGif.md b/old_docs/API_docs_v45/methods/messages_saveGif.md index 6f608c4c..145039e7 100644 --- a/old_docs/API_docs_v45/methods/messages_saveGif.md +++ b/old_docs/API_docs_v45/methods/messages_saveGif.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->saveGif(['id' => InputDocument, 'unsave' => Bool, ]); diff --git a/old_docs/API_docs_v45/methods/messages_search.md b/old_docs/API_docs_v45/methods/messages_search.md index f63e235d..01af8760 100644 --- a/old_docs/API_docs_v45/methods/messages_search.md +++ b/old_docs/API_docs_v45/methods/messages_search.md @@ -50,12 +50,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->search(['important_only' => Bool, 'peer' => InputPeer, 'q' => 'string', 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v45/methods/messages_searchGifs.md b/old_docs/API_docs_v45/methods/messages_searchGifs.md index 103ebfeb..9677bf24 100644 --- a/old_docs/API_docs_v45/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v45/methods/messages_searchGifs.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_FoundGifs = $MadelineProto->messages->searchGifs(['q' => 'string', 'offset' => int, ]); diff --git a/old_docs/API_docs_v45/methods/messages_searchGlobal.md b/old_docs/API_docs_v45/methods/messages_searchGlobal.md index 0edd1e40..6ad4aec0 100644 --- a/old_docs/API_docs_v45/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v45/methods/messages_searchGlobal.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->searchGlobal(['q' => 'string', 'offset_date' => int, 'offset_peer' => InputPeer, 'offset_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v45/methods/messages_sendBroadcast.md b/old_docs/API_docs_v45/methods/messages_sendBroadcast.md index 28e248a9..6cff8b29 100644 --- a/old_docs/API_docs_v45/methods/messages_sendBroadcast.md +++ b/old_docs/API_docs_v45/methods/messages_sendBroadcast.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendBroadcast(['contacts' => [InputUser, InputUser], 'message' => 'string', 'media' => InputMedia, ]); diff --git a/old_docs/API_docs_v45/methods/messages_sendEncrypted.md b/old_docs/API_docs_v45/methods/messages_sendEncrypted.md index d48f88d7..76305f32 100644 --- a/old_docs/API_docs_v45/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v45/methods/messages_sendEncrypted.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v45/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v45/methods/messages_sendEncryptedFile.md index 4fd0648e..8db2ead9 100644 --- a/old_docs/API_docs_v45/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v45/methods/messages_sendEncryptedFile.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); diff --git a/old_docs/API_docs_v45/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v45/methods/messages_sendEncryptedService.md index d66894bf..c7836c94 100644 --- a/old_docs/API_docs_v45/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v45/methods/messages_sendEncryptedService.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v45/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v45/methods/messages_sendInlineBotResult.md index 66457732..10960f6f 100644 --- a/old_docs/API_docs_v45/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v45/methods/messages_sendInlineBotResult.md @@ -45,12 +45,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendInlineBotResult(['broadcast' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'query_id' => long, 'id' => 'string', ]); diff --git a/old_docs/API_docs_v45/methods/messages_sendMedia.md b/old_docs/API_docs_v45/methods/messages_sendMedia.md index 566334c0..694ccc4b 100644 --- a/old_docs/API_docs_v45/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v45/methods/messages_sendMedia.md @@ -61,12 +61,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendMedia(['broadcast' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, 'reply_markup' => ReplyMarkup, ]); diff --git a/old_docs/API_docs_v45/methods/messages_sendMessage.md b/old_docs/API_docs_v45/methods/messages_sendMessage.md index 82d5e61d..0c3ef389 100644 --- a/old_docs/API_docs_v45/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v45/methods/messages_sendMessage.md @@ -63,12 +63,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendMessage(['no_webpage' => Bool, 'broadcast' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v45/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v45/methods/messages_setEncryptedTyping.md index e9afe99c..4e7450eb 100644 --- a/old_docs/API_docs_v45/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v45/methods/messages_setEncryptedTyping.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); diff --git a/old_docs/API_docs_v45/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v45/methods/messages_setInlineBotResults.md index 28a67893..9febbecd 100644 --- a/old_docs/API_docs_v45/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v45/methods/messages_setInlineBotResults.md @@ -51,12 +51,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setInlineBotResults(['gallery' => Bool, 'private' => Bool, 'query_id' => long, 'results' => [InputBotInlineResult, InputBotInlineResult], 'cache_time' => int, 'next_offset' => 'string', ]); diff --git a/old_docs/API_docs_v45/methods/messages_setTyping.md b/old_docs/API_docs_v45/methods/messages_setTyping.md index bea4982b..a2b94823 100644 --- a/old_docs/API_docs_v45/methods/messages_setTyping.md +++ b/old_docs/API_docs_v45/methods/messages_setTyping.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); diff --git a/old_docs/API_docs_v45/methods/messages_startBot.md b/old_docs/API_docs_v45/methods/messages_startBot.md index 94a4d86a..50d6f475 100644 --- a/old_docs/API_docs_v45/methods/messages_startBot.md +++ b/old_docs/API_docs_v45/methods/messages_startBot.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'peer' => InputPeer, 'start_param' => 'string', ]); diff --git a/old_docs/API_docs_v45/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v45/methods/messages_toggleChatAdmins.md index ab591fd9..349ea0e6 100644 --- a/old_docs/API_docs_v45/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v45/methods/messages_toggleChatAdmins.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => InputPeer, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v45/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v45/methods/messages_uninstallStickerSet.md index 6d04e847..26b2fbb3 100644 --- a/old_docs/API_docs_v45/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v45/methods/messages_uninstallStickerSet.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->uninstallStickerSet(['stickerset' => InputStickerSet, ]); diff --git a/old_docs/API_docs_v45/methods/photos_deletePhotos.md b/old_docs/API_docs_v45/methods/photos_deletePhotos.md index b9daca10..937aadd5 100644 --- a/old_docs/API_docs_v45/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v45/methods/photos_deletePhotos.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); diff --git a/old_docs/API_docs_v45/methods/photos_getUserPhotos.md b/old_docs/API_docs_v45/methods/photos_getUserPhotos.md index ea27a44f..d1c15e90 100644 --- a/old_docs/API_docs_v45/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v45/methods/photos_getUserPhotos.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => long, 'limit' => int, ]); diff --git a/old_docs/API_docs_v45/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v45/methods/photos_updateProfilePhoto.md index 2d1e1e76..4c5c517f 100644 --- a/old_docs/API_docs_v45/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v45/methods/photos_updateProfilePhoto.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, 'crop' => InputPhotoCrop, ]); diff --git a/old_docs/API_docs_v45/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v45/methods/photos_uploadProfilePhoto.md index 6ff4ddf5..3d7d301b 100644 --- a/old_docs/API_docs_v45/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v45/methods/photos_uploadProfilePhoto.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, 'caption' => 'string', 'geo_point' => InputGeoPoint, 'crop' => InputPhotoCrop, ]); diff --git a/old_docs/API_docs_v45/methods/users_getUsers.md b/old_docs/API_docs_v45/methods/users_getUsers.md index ef1c7fd8..bce13ee6 100644 --- a/old_docs/API_docs_v45/methods/users_getUsers.md +++ b/old_docs/API_docs_v45/methods/users_getUsers.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v46/README.md b/old_docs/API_docs_v46/README.md index aac1d09b..f509608b 100644 --- a/old_docs/API_docs_v46/README.md +++ b/old_docs/API_docs_v46/README.md @@ -4,11 +4,11 @@ description: MadelineProto API documentation (layer v46) --- # MadelineProto API documentation (layer v46) +[Back to main documentation](..) + + [Methods](methods/) [Constructors](constructors/) -[Types](types/) - - -[Back to main documentation](..) +[Types](types/) \ No newline at end of file diff --git a/old_docs/API_docs_v46/methods/README.md b/old_docs/API_docs_v46/methods/README.md index 21b31dd7..83d9b106 100644 --- a/old_docs/API_docs_v46/methods/README.md +++ b/old_docs/API_docs_v46/methods/README.md @@ -1,367 +1,362 @@ --- title: Methods -description: List of methods +description: What do you want to do? --- -# Methods -[Back to API documentation index](..) +# What do you want to do? +[Go back to API documentation index](..) +[Go to the old code-version method index](api_index.html) -$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); +* [Logout](https://docs.madelineproto.xyz/logout.html) -$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); +* [Login](https://docs.madelineproto.xyz/docs/LOGIN.html) -$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); +* [Get all chats, broadcast a message to all chats](https://docs.madelineproto.xyz/docs/DIALOGS.html) -$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); +* [Get the full participant list of a channel/group/supergroup](https://docs.madelineproto.xyz/get_pwr_chat.html) -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); +* [Get full info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_full_info.html) +* [Get info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_info.html) -$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); +* [Get info about the currently logged-in user](https://docs.madelineproto.xyz/get_self.html) -$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); +* [Upload or download files up to 1.5 GB](https://docs.madelineproto.xyz/docs/FILES.html) -$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); +* [Make a phone call and play a song](https://docs.madelineproto.xyz/docs/CALLS.html) -$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); - -$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); - - -$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); - -$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); +* [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) *** -

$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) +

* Change the phone number associated to this account -$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Check if this username is available -$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Delete this account -$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) +* Get account TTL -$MadelineProto->[account->getAuthorizations](account_getAuthorizations.md)(\[\]) === [$account\_Authorizations](../types/account_Authorizations.md) +* Get all logged-in authorizations -$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) +* Get notification settings -$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md) +* Get the current password -$MadelineProto->[account->getPasswordSettings](account_getPasswordSettings.md)(\['current_password_hash' => [bytes](../types/bytes.md), \]) === [$account\_PasswordSettings](../types/account_PasswordSettings.md) +* Get the current 2FA settings -$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Get privacy settings -$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) +* Returns a list of available wallpapers. -$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) +* Register device for push notifications -$MadelineProto->[account->reportPeer](account_reportPeer.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reason' => [ReportReason](../types/ReportReason.md), \]) === [$Bool](../types/Bool.md) +* Report for spam -$MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) +* Delete a certain session -$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) +* Reset all notification settings -$MadelineProto->[account->sendChangePhoneCode](account_sendChangePhoneCode.md)(\['phone_number' => [string](../types/string.md), \]) === [$account\_SentChangePhoneCode](../types/account_SentChangePhoneCode.md) +* Change the phone number -$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) +* Set account TTL -$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Set privacy settings -$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Stop sending PUSH notifications to app -$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Disable all notifications for a certain period -$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) +* Change notification settings -$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) +* Update the 2FA password settings -$MadelineProto->[account->updateProfile](account_updateProfile.md)(\['first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), \]) === [$User](../types/User.md) +* Update profile info -$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Update online status -$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) +* Update this user's username *** -

$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) +

* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info -$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) +* Check if this phone number is registered on telegram -$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) +* You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$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) +* You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->recoverPassword](auth_recoverPassword.md)(\['code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account -$MadelineProto->[auth->requestPasswordRecovery](auth_requestPasswordRecovery.md)(\[\]) === [$auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) +* Send an email to recover the 2FA password -$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) +* Delete all logged-in sessions. -$MadelineProto->[auth->sendCall](auth_sendCall.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Send verification phone call -$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) +* Use phone_login instead -$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Invite friends to telegram! -$MadelineProto->[auth->sendSms](auth_sendSms.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Send SMS verification code -$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) +* You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) -$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) +* You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) *** -

$MadelineProto->[channels->checkUsername](channels_checkUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +

* Check if this username is free and can be assigned to a channel/supergroup -$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) +* Create channel/supergroup -$MadelineProto->[channels->deleteChannel](channels_deleteChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Delete a channel/supergroup -$MadelineProto->[channels->deleteMessages](channels_deleteMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Delete channel/supergroup messages -$MadelineProto->[channels->deleteUserHistory](channels_deleteUserHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Delete all messages of a user in a channel/supergroup -$MadelineProto->[channels->editAbout](channels_editAbout.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'about' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Edit the about text of a channel/supergroup -$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) +* Edit admin permissions of a user in a channel/supergroup -$MadelineProto->[channels->editPhoto](channels_editPhoto.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) +* Edit the photo of a supergroup/channel -$MadelineProto->[channels->editTitle](channels_editTitle.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Edit the title of a supergroup/channel -$MadelineProto->[channels->exportInvite](channels_exportInvite.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) +* Export the invite link of a channel -$MadelineProto->[channels->getChannels](channels_getChannels.md)(\['id' => \[[InputChannel](../types/InputChannel.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get info about multiple channels/supergroups -$MadelineProto->[channels->getDialogs](channels_getDialogs.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Dialogs](../types/messages_Dialogs.md) +* Get channel dialogs -$MadelineProto->[channels->getFullChannel](channels_getFullChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) +* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[channels->getImportantHistory](channels_getImportantHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'offset_id' => [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) +* Get important channel/supergroup history -$MadelineProto->[channels->getMessages](channels_getMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get channel/supergroup messages -$MadelineProto->[channels->getParticipant](channels_getParticipant.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) +* Get info about a certain channel/supergroup participant -$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) +* Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead) -$MadelineProto->[channels->inviteToChannel](channels_inviteToChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'users' => \[[InputUser](../types/InputUser.md)\], \]) === [$Updates](../types/Updates.md) +* Add users to channel/supergroup -$MadelineProto->[channels->joinChannel](channels_joinChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Join a channel/supergroup -$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) +* Kick user from channel -$MadelineProto->[channels->leaveChannel](channels_leaveChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Leave a channel/supergroup -$MadelineProto->[channels->readHistory](channels_readHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Mark channel/supergroup history as read -$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) +* Report a supergroup/channel for spam -$MadelineProto->[channels->toggleComments](channels_toggleComments.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Enable channel comments -$MadelineProto->[channels->updateUsername](channels_updateUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Update the username of a supergroup/channel *** -

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +

* Block a user -$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) +* Delete a contact -$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) +* Delete multiple contacts -$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) +* Export contact as card -$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) +* Get blocked users -$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [string](../types/string.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) +* Get info about a certain contact -$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) +* Get online status of all users -$MadelineProto->[contacts->getSuggested](contacts_getSuggested.md)(\['limit' => [int](../types/int.md), \]) === [$contacts\_Suggested](../types/contacts_Suggested.md) +* Get suggested contacts -$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) +* Import card as contact -$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], 'replace' => [Bool](../types/Bool.md), \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) +* Add phone number as contact -$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) +* You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) +* Search contacts -$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +* Unblock a user *** -

$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) +

* Get the changelog of this app -$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) +* Get info about app updates -$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) +* Get server configuration -$MadelineProto->[help->getInviteText](help_getInviteText.md)(\['lang_code' => [string](../types/string.md), \]) === [$help\_InviteText](../types/help_InviteText.md) +* Get invitation text -$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) +* Get nearest datacenter -$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) +* Get info of support user -$MadelineProto->[help->getTermsOfService](help_getTermsOfService.md)(\['lang_code' => [string](../types/string.md), \]) === [$help\_TermsOfService](../types/help_TermsOfService.md) +* Get terms of service -$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) +* Log data for developer of this app *** -

$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) +

* Initializes connection and save information on the user's device and application. *** -

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invokes a query after successfull completion of one of the previous queries. *** -

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Result type returned by a current query. *** -

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invoke this method with layer X *** -

$MadelineProto->[invokeWithoutUpdates](invokeWithoutUpdates.md)(\['query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invoke with method without returning updates in the socket *** -

$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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Add a user to a normal chat (use channels->inviteToChannel for supergroups) -$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md) +* Check if an invitation link is valid -$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Create a chat (not supergroup) -$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md) +* Delete a user from a chat (not supergroup) -$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Delete chat history -$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Delete messages -$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Edit admin permissions -$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) +* Edit the photo of a normal chat (not supergroup) -$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Edit the title of a normal chat (not supergroup) -$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) +* Export chat invite -$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) +* Forward message -$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['broadcast' => [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) +* Forward messages -$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) +* Get all stickerpacks -$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get info about chats -$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) +* You cannot use this method directly, instead use $MadelineProto->get_dh_config(); -$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) +* Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html -$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) +* Get document by SHA256 hash -$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) +* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[messages->getHistory](messages_getHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset_id' => [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) +* Get previous messages of a group -$MadelineProto->[messages->getInlineBotResults](messages_getInlineBotResults.md)(\['bot' => [InputUser](../types/InputUser.md), 'query' => [string](../types/string.md), 'offset' => [string](../types/string.md), \]) === [$messages\_BotResults](../types/messages_BotResults.md) +* Call inline bot -$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get messages -$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) +* Get and increase message views -$MadelineProto->[messages->getSavedGifs](messages_getSavedGifs.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_SavedGifs](../types/messages_SavedGifs.md) +* Get saved gifs -$MadelineProto->[messages->getStickerSet](messages_getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) +* Get a stickerset -$MadelineProto->[messages->getStickers](messages_getStickers.md)(\['emoticon' => [string](../types/string.md), 'hash' => [string](../types/string.md), \]) === [$messages\_Stickers](../types/messages_Stickers.md) +* Get stickers -$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) === [$MessageMedia](../types/MessageMedia.md) +* Get webpage preview -$MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Import chat invite -$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'disabled' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Add a sticker set -$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) +* Convert chat to supergroup -$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Mark messages as read in secret chats -$MadelineProto->[messages->readHistory](messages_readHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Mark messages as read -$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Mark message as read -$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_ReceivedNotifyMessage](../types/ReceivedNotifyMessage.md) +* Mark messages as read -$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) +* You cannot use this method directly -$MadelineProto->[messages->reorderStickerSets](messages_reorderStickerSets.md)(\['order' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) +* Reorder sticker sets -$MadelineProto->[messages->reportSpam](messages_reportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Report a peer for spam -$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$MadelineProto->[messages->saveGif](messages_saveGif.md)(\['id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Save a GIF -$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) +* Search peers or messages -$MadelineProto->[messages->searchGifs](messages_searchGifs.md)(\['q' => [string](../types/string.md), 'offset' => [int](../types/int.md), \]) === [$messages\_FoundGifs](../types/messages_FoundGifs.md) +* Search gifs -$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) +* Global message search -$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) +* Send a message to all users in the chat list -$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send message to secret chat -$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) +* Send a file to a secret chat -$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send a service message to a secret chat -$MadelineProto->[messages->sendInlineBotResult](messages_sendInlineBotResult.md)(\['broadcast' => [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) +* Send a received bot result to the chat -$MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['broadcast' => [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) +* Send a media -$MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'broadcast' => [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) +* Send a message -$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Send typing notification to secret chat -$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), \]) === [$Bool](../types/Bool.md) +* Bots only: set the results of an inline query -$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) +* Change typing status -$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) +* Start a bot -$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Enable all users are admins in normal groups (not supergroups) -$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) +* Remove a sticker set *** -

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) +

* Delete profile photos -$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) +* Get the profile photos of a user -$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), 'crop' => [InputPhotoCrop](../types/InputPhotoCrop.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) +* Update the profile photo (use photos->uploadProfilePhoto to upload the photo) -$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) +* Upload profile photo *** -

$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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates -$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) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates -$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates *** -

$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) +

* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info *** -

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) +

* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) +* Get info about users diff --git a/old_docs/API_docs_v46/methods/account_changePhone.md b/old_docs/API_docs_v46/methods/account_changePhone.md index aeb5c4bc..65f0b0d0 100644 --- a/old_docs/API_docs_v46/methods/account_changePhone.md +++ b/old_docs/API_docs_v46/methods/account_changePhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); diff --git a/old_docs/API_docs_v46/methods/account_checkUsername.md b/old_docs/API_docs_v46/methods/account_checkUsername.md index 0124bb38..08107762 100644 --- a/old_docs/API_docs_v46/methods/account_checkUsername.md +++ b/old_docs/API_docs_v46/methods/account_checkUsername.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v46/methods/account_deleteAccount.md b/old_docs/API_docs_v46/methods/account_deleteAccount.md index e8b46c24..3a6f4700 100644 --- a/old_docs/API_docs_v46/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v46/methods/account_deleteAccount.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); diff --git a/old_docs/API_docs_v46/methods/account_getAccountTTL.md b/old_docs/API_docs_v46/methods/account_getAccountTTL.md index 0cdd0b98..ab6a6ea1 100644 --- a/old_docs/API_docs_v46/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v46/methods/account_getAccountTTL.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); diff --git a/old_docs/API_docs_v46/methods/account_getAuthorizations.md b/old_docs/API_docs_v46/methods/account_getAuthorizations.md index f92db8fe..303203e4 100644 --- a/old_docs/API_docs_v46/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v46/methods/account_getAuthorizations.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_Authorizations = $MadelineProto->account->getAuthorizations(); diff --git a/old_docs/API_docs_v46/methods/account_getNotifySettings.md b/old_docs/API_docs_v46/methods/account_getNotifySettings.md index f00be12c..ad492f49 100644 --- a/old_docs/API_docs_v46/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v46/methods/account_getNotifySettings.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); diff --git a/old_docs/API_docs_v46/methods/account_getPassword.md b/old_docs/API_docs_v46/methods/account_getPassword.md index c189421d..2692dab1 100644 --- a/old_docs/API_docs_v46/methods/account_getPassword.md +++ b/old_docs/API_docs_v46/methods/account_getPassword.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_Password = $MadelineProto->account->getPassword(); diff --git a/old_docs/API_docs_v46/methods/account_getPasswordSettings.md b/old_docs/API_docs_v46/methods/account_getPasswordSettings.md index 96cb953e..2039d405 100644 --- a/old_docs/API_docs_v46/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v46/methods/account_getPasswordSettings.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PasswordSettings = $MadelineProto->account->getPasswordSettings(['current_password_hash' => 'bytes', ]); diff --git a/old_docs/API_docs_v46/methods/account_getPrivacy.md b/old_docs/API_docs_v46/methods/account_getPrivacy.md index 979bfb94..5480ffbb 100644 --- a/old_docs/API_docs_v46/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v46/methods/account_getPrivacy.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); diff --git a/old_docs/API_docs_v46/methods/account_getWallPapers.md b/old_docs/API_docs_v46/methods/account_getWallPapers.md index 89b281be..7c8bff39 100644 --- a/old_docs/API_docs_v46/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v46/methods/account_getWallPapers.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); diff --git a/old_docs/API_docs_v46/methods/account_registerDevice.md b/old_docs/API_docs_v46/methods/account_registerDevice.md index 651e753f..8dae7506 100644 --- a/old_docs/API_docs_v46/methods/account_registerDevice.md +++ b/old_docs/API_docs_v46/methods/account_registerDevice.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'app_sandbox' => Bool, 'lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v46/methods/account_reportPeer.md b/old_docs/API_docs_v46/methods/account_reportPeer.md index a07c87d0..c5fe7073 100644 --- a/old_docs/API_docs_v46/methods/account_reportPeer.md +++ b/old_docs/API_docs_v46/methods/account_reportPeer.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->reportPeer(['peer' => InputPeer, 'reason' => ReportReason, ]); diff --git a/old_docs/API_docs_v46/methods/account_resetAuthorization.md b/old_docs/API_docs_v46/methods/account_resetAuthorization.md index 4155d3c8..543aee08 100644 --- a/old_docs/API_docs_v46/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v46/methods/account_resetAuthorization.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetAuthorization(['hash' => long, ]); diff --git a/old_docs/API_docs_v46/methods/account_resetNotifySettings.md b/old_docs/API_docs_v46/methods/account_resetNotifySettings.md index ccc836a9..557373b0 100644 --- a/old_docs/API_docs_v46/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v46/methods/account_resetNotifySettings.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); diff --git a/old_docs/API_docs_v46/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v46/methods/account_sendChangePhoneCode.md index 0b384269..930e0f76 100644 --- a/old_docs/API_docs_v46/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v46/methods/account_sendChangePhoneCode.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_SentChangePhoneCode = $MadelineProto->account->sendChangePhoneCode(['phone_number' => 'string', ]); diff --git a/old_docs/API_docs_v46/methods/account_setAccountTTL.md b/old_docs/API_docs_v46/methods/account_setAccountTTL.md index 5100e62e..bacdd77a 100644 --- a/old_docs/API_docs_v46/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v46/methods/account_setAccountTTL.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); diff --git a/old_docs/API_docs_v46/methods/account_setPrivacy.md b/old_docs/API_docs_v46/methods/account_setPrivacy.md index fbcedae7..6e24ded7 100644 --- a/old_docs/API_docs_v46/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v46/methods/account_setPrivacy.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); diff --git a/old_docs/API_docs_v46/methods/account_unregisterDevice.md b/old_docs/API_docs_v46/methods/account_unregisterDevice.md index 1d2b7670..b666d91a 100644 --- a/old_docs/API_docs_v46/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v46/methods/account_unregisterDevice.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); diff --git a/old_docs/API_docs_v46/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v46/methods/account_updateDeviceLocked.md index ef816501..cd52093a 100644 --- a/old_docs/API_docs_v46/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v46/methods/account_updateDeviceLocked.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); diff --git a/old_docs/API_docs_v46/methods/account_updateNotifySettings.md b/old_docs/API_docs_v46/methods/account_updateNotifySettings.md index 18cbdb75..db020309 100644 --- a/old_docs/API_docs_v46/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v46/methods/account_updateNotifySettings.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); diff --git a/old_docs/API_docs_v46/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v46/methods/account_updatePasswordSettings.md index 0754dd63..8af1e37f 100644 --- a/old_docs/API_docs_v46/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v46/methods/account_updatePasswordSettings.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updatePasswordSettings(['current_password_hash' => 'bytes', 'new_settings' => account_PasswordInputSettings, ]); diff --git a/old_docs/API_docs_v46/methods/account_updateProfile.md b/old_docs/API_docs_v46/methods/account_updateProfile.md index f16398ed..caea3391 100644 --- a/old_docs/API_docs_v46/methods/account_updateProfile.md +++ b/old_docs/API_docs_v46/methods/account_updateProfile.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', ]); diff --git a/old_docs/API_docs_v46/methods/account_updateStatus.md b/old_docs/API_docs_v46/methods/account_updateStatus.md index 4b049e65..50b99b1e 100644 --- a/old_docs/API_docs_v46/methods/account_updateStatus.md +++ b/old_docs/API_docs_v46/methods/account_updateStatus.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); diff --git a/old_docs/API_docs_v46/methods/account_updateUsername.md b/old_docs/API_docs_v46/methods/account_updateUsername.md index 08d2abe0..7276e2aa 100644 --- a/old_docs/API_docs_v46/methods/account_updateUsername.md +++ b/old_docs/API_docs_v46/methods/account_updateUsername.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v46/methods/api_README.md b/old_docs/API_docs_v46/methods/api_README.md new file mode 100644 index 00000000..e485d378 --- /dev/null +++ b/old_docs/API_docs_v46/methods/api_README.md @@ -0,0 +1,368 @@ +--- +title: Methods +description: List of methods +--- +# Methods +[Back to API documentation index](..) + +[Go to the new description-version method index](index.html) + +$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); + +$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); + +$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); + +$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); + +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); + + +$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); + +$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); + +$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); + +$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); + +$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); + + +$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); + +$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); + +*** +

$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) + +$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) + +$MadelineProto->[account->getAuthorizations](account_getAuthorizations.md)(\[\]) === [$account\_Authorizations](../types/account_Authorizations.md) + +$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) + +$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md) + +$MadelineProto->[account->getPasswordSettings](account_getPasswordSettings.md)(\['current_password_hash' => [bytes](../types/bytes.md), \]) === [$account\_PasswordSettings](../types/account_PasswordSettings.md) + +$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) + +$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) + +$MadelineProto->[account->reportPeer](account_reportPeer.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reason' => [ReportReason](../types/ReportReason.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->sendChangePhoneCode](account_sendChangePhoneCode.md)(\['phone_number' => [string](../types/string.md), \]) === [$account\_SentChangePhoneCode](../types/account_SentChangePhoneCode.md) + +$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[account->updateProfile](account_updateProfile.md)(\['first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), \]) === [$User](../types/User.md) + +$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) + +*** +

$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) + +$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) + +$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) + +$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$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) + +$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->recoverPassword](auth_recoverPassword.md)(\['code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->requestPasswordRecovery](auth_requestPasswordRecovery.md)(\[\]) === [$auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) + +$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->sendCall](auth_sendCall.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->sendSms](auth_sendSms.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$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) + +*** +

$MadelineProto->[channels->checkUsername](channels_checkUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->deleteChannel](channels_deleteChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->deleteMessages](channels_deleteMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[channels->deleteUserHistory](channels_deleteUserHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[channels->editAbout](channels_editAbout.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'about' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->editPhoto](channels_editPhoto.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->editTitle](channels_editTitle.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->exportInvite](channels_exportInvite.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) + +$MadelineProto->[channels->getChannels](channels_getChannels.md)(\['id' => \[[InputChannel](../types/InputChannel.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[channels->getDialogs](channels_getDialogs.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Dialogs](../types/messages_Dialogs.md) + +$MadelineProto->[channels->getFullChannel](channels_getFullChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$MadelineProto->[channels->getImportantHistory](channels_getImportantHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'offset_id' => [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) + +$MadelineProto->[channels->getMessages](channels_getMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) + +$MadelineProto->[channels->getParticipant](channels_getParticipant.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) + +$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) + +$MadelineProto->[channels->inviteToChannel](channels_inviteToChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'users' => \[[InputUser](../types/InputUser.md)\], \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->joinChannel](channels_joinChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$MadelineProto->[channels->leaveChannel](channels_leaveChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->readHistory](channels_readHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->toggleComments](channels_toggleComments.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->updateUsername](channels_updateUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) + +$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) + +$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) + +$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [string](../types/string.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) + +$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) + +$MadelineProto->[contacts->getSuggested](contacts_getSuggested.md)(\['limit' => [int](../types/int.md), \]) === [$contacts\_Suggested](../types/contacts_Suggested.md) + +$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) + +$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], 'replace' => [Bool](../types/Bool.md), \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) + +$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) + +$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) + +$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +*** +

$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) + +$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) + +$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) + +$MadelineProto->[help->getInviteText](help_getInviteText.md)(\['lang_code' => [string](../types/string.md), \]) === [$help\_InviteText](../types/help_InviteText.md) + +$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) + +$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) + +$MadelineProto->[help->getTermsOfService](help_getTermsOfService.md)(\['lang_code' => [string](../types/string.md), \]) === [$help\_TermsOfService](../types/help_TermsOfService.md) + +$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) + +*** +

$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) + +*** +

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeWithoutUpdates](invokeWithoutUpdates.md)(\['query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$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) + +$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) + +$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md) + +$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) + +$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['broadcast' => [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) + +$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) + +$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) + +$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) + +$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) + +$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$MadelineProto->[messages->getHistory](messages_getHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset_id' => [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) + +$MadelineProto->[messages->getInlineBotResults](messages_getInlineBotResults.md)(\['bot' => [InputUser](../types/InputUser.md), 'query' => [string](../types/string.md), 'offset' => [string](../types/string.md), \]) === [$messages\_BotResults](../types/messages_BotResults.md) + +$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) + +$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) + +$MadelineProto->[messages->getSavedGifs](messages_getSavedGifs.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_SavedGifs](../types/messages_SavedGifs.md) + +$MadelineProto->[messages->getStickerSet](messages_getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +$MadelineProto->[messages->getStickers](messages_getStickers.md)(\['emoticon' => [string](../types/string.md), 'hash' => [string](../types/string.md), \]) === [$messages\_Stickers](../types/messages_Stickers.md) + +$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) === [$MessageMedia](../types/MessageMedia.md) + +$MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'disabled' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->readHistory](messages_readHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_ReceivedNotifyMessage](../types/ReceivedNotifyMessage.md) + +$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) + +$MadelineProto->[messages->reorderStickerSets](messages_reorderStickerSets.md)(\['order' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->reportSpam](messages_reportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) + +$MadelineProto->[messages->saveGif](messages_saveGif.md)(\['id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->searchGifs](messages_searchGifs.md)(\['q' => [string](../types/string.md), 'offset' => [int](../types/int.md), \]) === [$messages\_FoundGifs](../types/messages_FoundGifs.md) + +$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) + +$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) + +$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$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) + +$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$MadelineProto->[messages->sendInlineBotResult](messages_sendInlineBotResult.md)(\['broadcast' => [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) + +$MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['broadcast' => [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) + +$MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'broadcast' => [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) + +$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$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), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) + +$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) + +$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), 'crop' => [InputPhotoCrop](../types/InputPhotoCrop.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) + +$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) + +*** +

$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) + +$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) + +$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) + +*** +

$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) + +$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) + +$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) + +*** +

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) + +$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) + diff --git a/old_docs/API_docs_v46/methods/auth_checkPhone.md b/old_docs/API_docs_v46/methods/auth_checkPhone.md index 291221de..1826ce63 100644 --- a/old_docs/API_docs_v46/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v46/methods/auth_checkPhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); diff --git a/old_docs/API_docs_v46/methods/auth_recoverPassword.md b/old_docs/API_docs_v46/methods/auth_recoverPassword.md index cdc9bd7d..5e37b0f3 100644 --- a/old_docs/API_docs_v46/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v46/methods/auth_recoverPassword.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_Authorization = $MadelineProto->auth->recoverPassword(['code' => 'string', ]); diff --git a/old_docs/API_docs_v46/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v46/methods/auth_requestPasswordRecovery.md index e18c6c93..c69d0c49 100644 --- a/old_docs/API_docs_v46/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v46/methods/auth_requestPasswordRecovery.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_PasswordRecovery = $MadelineProto->auth->requestPasswordRecovery(); diff --git a/old_docs/API_docs_v46/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v46/methods/auth_resetAuthorizations.md index 47feea16..a46c880d 100644 --- a/old_docs/API_docs_v46/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v46/methods/auth_resetAuthorizations.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); diff --git a/old_docs/API_docs_v46/methods/auth_sendCall.md b/old_docs/API_docs_v46/methods/auth_sendCall.md index e2bd2855..5947cda7 100644 --- a/old_docs/API_docs_v46/methods/auth_sendCall.md +++ b/old_docs/API_docs_v46/methods/auth_sendCall.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendCall(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v46/methods/auth_sendInvites.md b/old_docs/API_docs_v46/methods/auth_sendInvites.md index be32fe6b..9b88b4a3 100644 --- a/old_docs/API_docs_v46/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v46/methods/auth_sendInvites.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); diff --git a/old_docs/API_docs_v46/methods/auth_sendSms.md b/old_docs/API_docs_v46/methods/auth_sendSms.md index a17fdd3a..41340660 100644 --- a/old_docs/API_docs_v46/methods/auth_sendSms.md +++ b/old_docs/API_docs_v46/methods/auth_sendSms.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendSms(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v46/methods/channels_checkUsername.md b/old_docs/API_docs_v46/methods/channels_checkUsername.md index 7bc7c245..7e3d5a89 100644 --- a/old_docs/API_docs_v46/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v46/methods/channels_checkUsername.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->checkUsername(['channel' => InputChannel, 'username' => 'string', ]); diff --git a/old_docs/API_docs_v46/methods/channels_createChannel.md b/old_docs/API_docs_v46/methods/channels_createChannel.md index 1305e4fb..a5ddc379 100644 --- a/old_docs/API_docs_v46/methods/channels_createChannel.md +++ b/old_docs/API_docs_v46/methods/channels_createChannel.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->createChannel(['broadcast' => Bool, 'megagroup' => Bool, 'title' => 'string', 'about' => 'string', ]); diff --git a/old_docs/API_docs_v46/methods/channels_deleteChannel.md b/old_docs/API_docs_v46/methods/channels_deleteChannel.md index e660d25c..69dad9a3 100644 --- a/old_docs/API_docs_v46/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v46/methods/channels_deleteChannel.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->deleteChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v46/methods/channels_deleteMessages.md b/old_docs/API_docs_v46/methods/channels_deleteMessages.md index fb9d3cc2..b12270b3 100644 --- a/old_docs/API_docs_v46/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v46/methods/channels_deleteMessages.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v46/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v46/methods/channels_deleteUserHistory.md index fbe34341..75f531bb 100644 --- a/old_docs/API_docs_v46/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v46/methods/channels_deleteUserHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->channels->deleteUserHistory(['channel' => InputChannel, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v46/methods/channels_editAbout.md b/old_docs/API_docs_v46/methods/channels_editAbout.md index 8908f29e..67521065 100644 --- a/old_docs/API_docs_v46/methods/channels_editAbout.md +++ b/old_docs/API_docs_v46/methods/channels_editAbout.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->editAbout(['channel' => InputChannel, 'about' => 'string', ]); diff --git a/old_docs/API_docs_v46/methods/channels_editAdmin.md b/old_docs/API_docs_v46/methods/channels_editAdmin.md index 01662a1d..7b6cc0f1 100644 --- a/old_docs/API_docs_v46/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v46/methods/channels_editAdmin.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editAdmin(['channel' => InputChannel, 'user_id' => InputUser, 'role' => ChannelParticipantRole, ]); diff --git a/old_docs/API_docs_v46/methods/channels_editPhoto.md b/old_docs/API_docs_v46/methods/channels_editPhoto.md index 9ccd864f..c854c64a 100644 --- a/old_docs/API_docs_v46/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v46/methods/channels_editPhoto.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editPhoto(['channel' => InputChannel, 'photo' => InputChatPhoto, ]); diff --git a/old_docs/API_docs_v46/methods/channels_editTitle.md b/old_docs/API_docs_v46/methods/channels_editTitle.md index b1024faf..9bc6773e 100644 --- a/old_docs/API_docs_v46/methods/channels_editTitle.md +++ b/old_docs/API_docs_v46/methods/channels_editTitle.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editTitle(['channel' => InputChannel, 'title' => 'string', ]); diff --git a/old_docs/API_docs_v46/methods/channels_exportInvite.md b/old_docs/API_docs_v46/methods/channels_exportInvite.md index f0c737d5..ca65dcc8 100644 --- a/old_docs/API_docs_v46/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v46/methods/channels_exportInvite.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedChatInvite = $MadelineProto->channels->exportInvite(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v46/methods/channels_getChannels.md b/old_docs/API_docs_v46/methods/channels_getChannels.md index 9cd9e798..af22556f 100644 --- a/old_docs/API_docs_v46/methods/channels_getChannels.md +++ b/old_docs/API_docs_v46/methods/channels_getChannels.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel, InputChannel], ]); diff --git a/old_docs/API_docs_v46/methods/channels_getDialogs.md b/old_docs/API_docs_v46/methods/channels_getDialogs.md index 9ad21720..1b5837b7 100644 --- a/old_docs/API_docs_v46/methods/channels_getDialogs.md +++ b/old_docs/API_docs_v46/methods/channels_getDialogs.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Dialogs = $MadelineProto->channels->getDialogs(['offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v46/methods/channels_getImportantHistory.md b/old_docs/API_docs_v46/methods/channels_getImportantHistory.md index 66be0b21..861e4a32 100644 --- a/old_docs/API_docs_v46/methods/channels_getImportantHistory.md +++ b/old_docs/API_docs_v46/methods/channels_getImportantHistory.md @@ -34,12 +34,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->channels->getImportantHistory(['channel' => InputChannel, 'offset_id' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); diff --git a/old_docs/API_docs_v46/methods/channels_getMessages.md b/old_docs/API_docs_v46/methods/channels_getMessages.md index cc944fe5..eda13d0b 100644 --- a/old_docs/API_docs_v46/methods/channels_getMessages.md +++ b/old_docs/API_docs_v46/methods/channels_getMessages.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v46/methods/channels_getParticipant.md b/old_docs/API_docs_v46/methods/channels_getParticipant.md index db9b1fc6..be5fe96a 100644 --- a/old_docs/API_docs_v46/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v46/methods/channels_getParticipant.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $channels_ChannelParticipant = $MadelineProto->channels->getParticipant(['channel' => InputChannel, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v46/methods/channels_getParticipants.md b/old_docs/API_docs_v46/methods/channels_getParticipants.md index 96662466..6a27016b 100644 --- a/old_docs/API_docs_v46/methods/channels_getParticipants.md +++ b/old_docs/API_docs_v46/methods/channels_getParticipants.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $channels_ChannelParticipants = $MadelineProto->channels->getParticipants(['channel' => InputChannel, 'filter' => ChannelParticipantsFilter, 'offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v46/methods/channels_inviteToChannel.md b/old_docs/API_docs_v46/methods/channels_inviteToChannel.md index 676f800c..e7d12db7 100644 --- a/old_docs/API_docs_v46/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v46/methods/channels_inviteToChannel.md @@ -52,12 +52,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v46/methods/channels_joinChannel.md b/old_docs/API_docs_v46/methods/channels_joinChannel.md index 721f707c..3ac2b326 100644 --- a/old_docs/API_docs_v46/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v46/methods/channels_joinChannel.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->joinChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v46/methods/channels_kickFromChannel.md b/old_docs/API_docs_v46/methods/channels_kickFromChannel.md index bf8bb5b8..8f6c92be 100644 --- a/old_docs/API_docs_v46/methods/channels_kickFromChannel.md +++ b/old_docs/API_docs_v46/methods/channels_kickFromChannel.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->kickFromChannel(['channel' => InputChannel, 'user_id' => InputUser, 'kicked' => Bool, ]); diff --git a/old_docs/API_docs_v46/methods/channels_leaveChannel.md b/old_docs/API_docs_v46/methods/channels_leaveChannel.md index 7f02e08c..95b60a90 100644 --- a/old_docs/API_docs_v46/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v46/methods/channels_leaveChannel.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->leaveChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v46/methods/channels_readHistory.md b/old_docs/API_docs_v46/methods/channels_readHistory.md index cca891f0..c6b14541 100644 --- a/old_docs/API_docs_v46/methods/channels_readHistory.md +++ b/old_docs/API_docs_v46/methods/channels_readHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->readHistory(['channel' => InputChannel, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v46/methods/channels_reportSpam.md b/old_docs/API_docs_v46/methods/channels_reportSpam.md index 09af14e0..ca5c28f5 100644 --- a/old_docs/API_docs_v46/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v46/methods/channels_reportSpam.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v46/methods/channels_toggleComments.md b/old_docs/API_docs_v46/methods/channels_toggleComments.md index 73ef8d23..cc9f478d 100644 --- a/old_docs/API_docs_v46/methods/channels_toggleComments.md +++ b/old_docs/API_docs_v46/methods/channels_toggleComments.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->toggleComments(['channel' => InputChannel, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v46/methods/channels_updateUsername.md b/old_docs/API_docs_v46/methods/channels_updateUsername.md index ad34490a..2093b6ce 100644 --- a/old_docs/API_docs_v46/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v46/methods/channels_updateUsername.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->updateUsername(['channel' => InputChannel, 'username' => 'string', ]); diff --git a/old_docs/API_docs_v46/methods/contacts_block.md b/old_docs/API_docs_v46/methods/contacts_block.md index d0729d30..e592cace 100644 --- a/old_docs/API_docs_v46/methods/contacts_block.md +++ b/old_docs/API_docs_v46/methods/contacts_block.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v46/methods/contacts_deleteContact.md b/old_docs/API_docs_v46/methods/contacts_deleteContact.md index b8c17544..1a3f2a27 100644 --- a/old_docs/API_docs_v46/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v46/methods/contacts_deleteContact.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v46/methods/contacts_deleteContacts.md b/old_docs/API_docs_v46/methods/contacts_deleteContacts.md index 64c69460..f6627599 100644 --- a/old_docs/API_docs_v46/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v46/methods/contacts_deleteContacts.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v46/methods/contacts_exportCard.md b/old_docs/API_docs_v46/methods/contacts_exportCard.md index b05f57ce..1d2129f3 100644 --- a/old_docs/API_docs_v46/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v46/methods/contacts_exportCard.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); diff --git a/old_docs/API_docs_v46/methods/contacts_getBlocked.md b/old_docs/API_docs_v46/methods/contacts_getBlocked.md index d7d8c5cc..44d24aba 100644 --- a/old_docs/API_docs_v46/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v46/methods/contacts_getBlocked.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v46/methods/contacts_getContacts.md b/old_docs/API_docs_v46/methods/contacts_getContacts.md index 1ab8af27..83c4846f 100644 --- a/old_docs/API_docs_v46/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v46/methods/contacts_getContacts.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v46/methods/contacts_getStatuses.md b/old_docs/API_docs_v46/methods/contacts_getStatuses.md index b927a140..5cef3084 100644 --- a/old_docs/API_docs_v46/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v46/methods/contacts_getStatuses.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); diff --git a/old_docs/API_docs_v46/methods/contacts_getSuggested.md b/old_docs/API_docs_v46/methods/contacts_getSuggested.md index 302e60e5..1ce04bef 100644 --- a/old_docs/API_docs_v46/methods/contacts_getSuggested.md +++ b/old_docs/API_docs_v46/methods/contacts_getSuggested.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Suggested = $MadelineProto->contacts->getSuggested(['limit' => int, ]); diff --git a/old_docs/API_docs_v46/methods/contacts_importCard.md b/old_docs/API_docs_v46/methods/contacts_importCard.md index 81a1e138..89c96657 100644 --- a/old_docs/API_docs_v46/methods/contacts_importCard.md +++ b/old_docs/API_docs_v46/methods/contacts_importCard.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); diff --git a/old_docs/API_docs_v46/methods/contacts_importContacts.md b/old_docs/API_docs_v46/methods/contacts_importContacts.md index 578e5dfd..cd3d6615 100644 --- a/old_docs/API_docs_v46/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v46/methods/contacts_importContacts.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], 'replace' => Bool, ]); diff --git a/old_docs/API_docs_v46/methods/contacts_search.md b/old_docs/API_docs_v46/methods/contacts_search.md index 68daecd6..64ff748e 100644 --- a/old_docs/API_docs_v46/methods/contacts_search.md +++ b/old_docs/API_docs_v46/methods/contacts_search.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); diff --git a/old_docs/API_docs_v46/methods/contacts_unblock.md b/old_docs/API_docs_v46/methods/contacts_unblock.md index f7d151b9..ec72ae2d 100644 --- a/old_docs/API_docs_v46/methods/contacts_unblock.md +++ b/old_docs/API_docs_v46/methods/contacts_unblock.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v46/methods/help_getAppChangelog.md b/old_docs/API_docs_v46/methods/help_getAppChangelog.md index dbca4fc8..eb48fabb 100644 --- a/old_docs/API_docs_v46/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v46/methods/help_getAppChangelog.md @@ -32,12 +32,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_AppChangelog = $MadelineProto->help->getAppChangelog(['device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v46/methods/help_getAppUpdate.md b/old_docs/API_docs_v46/methods/help_getAppUpdate.md index f97da105..ad5b8228 100644 --- a/old_docs/API_docs_v46/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v46/methods/help_getAppUpdate.md @@ -32,12 +32,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(['device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v46/methods/help_getConfig.md b/old_docs/API_docs_v46/methods/help_getConfig.md index 16e25c68..ca4bfc25 100644 --- a/old_docs/API_docs_v46/methods/help_getConfig.md +++ b/old_docs/API_docs_v46/methods/help_getConfig.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); diff --git a/old_docs/API_docs_v46/methods/help_getInviteText.md b/old_docs/API_docs_v46/methods/help_getInviteText.md index 0831ba5f..ad6ac262 100644 --- a/old_docs/API_docs_v46/methods/help_getInviteText.md +++ b/old_docs/API_docs_v46/methods/help_getInviteText.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(['lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v46/methods/help_getNearestDc.md b/old_docs/API_docs_v46/methods/help_getNearestDc.md index 35a8bf91..458f60ab 100644 --- a/old_docs/API_docs_v46/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v46/methods/help_getNearestDc.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); diff --git a/old_docs/API_docs_v46/methods/help_getSupport.md b/old_docs/API_docs_v46/methods/help_getSupport.md index a5bab0f2..9ee25b00 100644 --- a/old_docs/API_docs_v46/methods/help_getSupport.md +++ b/old_docs/API_docs_v46/methods/help_getSupport.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); diff --git a/old_docs/API_docs_v46/methods/help_getTermsOfService.md b/old_docs/API_docs_v46/methods/help_getTermsOfService.md index 3363d658..0936575e 100644 --- a/old_docs/API_docs_v46/methods/help_getTermsOfService.md +++ b/old_docs/API_docs_v46/methods/help_getTermsOfService.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_TermsOfService = $MadelineProto->help->getTermsOfService(['lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v46/methods/help_saveAppLog.md b/old_docs/API_docs_v46/methods/help_saveAppLog.md index 0165b6e3..a7884c47 100644 --- a/old_docs/API_docs_v46/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v46/methods/help_saveAppLog.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); diff --git a/old_docs/API_docs_v46/methods/initConnection.md b/old_docs/API_docs_v46/methods/initConnection.md index 2d3d86ad..73620276 100644 --- a/old_docs/API_docs_v46/methods/initConnection.md +++ b/old_docs/API_docs_v46/methods/initConnection.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->initConnection(['api_id' => int, 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', 'query' => !X, ]); diff --git a/old_docs/API_docs_v46/methods/invokeAfterMsg.md b/old_docs/API_docs_v46/methods/invokeAfterMsg.md index e33a2c93..8e953e78 100644 --- a/old_docs/API_docs_v46/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v46/methods/invokeAfterMsg.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); diff --git a/old_docs/API_docs_v46/methods/invokeAfterMsgs.md b/old_docs/API_docs_v46/methods/invokeAfterMsgs.md index 3150a613..bc8a83b7 100644 --- a/old_docs/API_docs_v46/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v46/methods/invokeAfterMsgs.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); diff --git a/old_docs/API_docs_v46/methods/invokeWithLayer.md b/old_docs/API_docs_v46/methods/invokeWithLayer.md index 71d02abb..8a0c4e79 100644 --- a/old_docs/API_docs_v46/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v46/methods/invokeWithLayer.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); diff --git a/old_docs/API_docs_v46/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v46/methods/invokeWithoutUpdates.md index 2bab236a..2d90a776 100644 --- a/old_docs/API_docs_v46/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v46/methods/invokeWithoutUpdates.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeWithoutUpdates(['query' => !X, ]); diff --git a/old_docs/API_docs_v46/methods/messages_addChatUser.md b/old_docs/API_docs_v46/methods/messages_addChatUser.md index 3e4c5ccc..c6ef275f 100644 --- a/old_docs/API_docs_v46/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v46/methods/messages_addChatUser.md @@ -46,12 +46,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); diff --git a/old_docs/API_docs_v46/methods/messages_checkChatInvite.md b/old_docs/API_docs_v46/methods/messages_checkChatInvite.md index de1d9ff4..cea63313 100644 --- a/old_docs/API_docs_v46/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v46/methods/messages_checkChatInvite.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ChatInvite = $MadelineProto->messages->checkChatInvite(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v46/methods/messages_createChat.md b/old_docs/API_docs_v46/methods/messages_createChat.md index 68c0263a..966f58dc 100644 --- a/old_docs/API_docs_v46/methods/messages_createChat.md +++ b/old_docs/API_docs_v46/methods/messages_createChat.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); diff --git a/old_docs/API_docs_v46/methods/messages_deleteChatUser.md b/old_docs/API_docs_v46/methods/messages_deleteChatUser.md index 0a6830de..9a9227ba 100644 --- a/old_docs/API_docs_v46/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v46/methods/messages_deleteChatUser.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v46/methods/messages_deleteHistory.md b/old_docs/API_docs_v46/methods/messages_deleteHistory.md index d883a9ad..4cb70ec8 100644 --- a/old_docs/API_docs_v46/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v46/methods/messages_deleteHistory.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['peer' => InputPeer, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v46/methods/messages_deleteMessages.md b/old_docs/API_docs_v46/methods/messages_deleteMessages.md index 41570996..fa043e1c 100644 --- a/old_docs/API_docs_v46/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v46/methods/messages_deleteMessages.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v46/methods/messages_editChatAdmin.md b/old_docs/API_docs_v46/methods/messages_editChatAdmin.md index 7916f8b1..5bba0559 100644 --- a/old_docs/API_docs_v46/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v46/methods/messages_editChatAdmin.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]); diff --git a/old_docs/API_docs_v46/methods/messages_editChatPhoto.md b/old_docs/API_docs_v46/methods/messages_editChatPhoto.md index 122913c4..5827a5cc 100644 --- a/old_docs/API_docs_v46/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v46/methods/messages_editChatPhoto.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); diff --git a/old_docs/API_docs_v46/methods/messages_editChatTitle.md b/old_docs/API_docs_v46/methods/messages_editChatTitle.md index 3a1e974b..2e69d790 100644 --- a/old_docs/API_docs_v46/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v46/methods/messages_editChatTitle.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); diff --git a/old_docs/API_docs_v46/methods/messages_exportChatInvite.md b/old_docs/API_docs_v46/methods/messages_exportChatInvite.md index 98685d96..ec80e207 100644 --- a/old_docs/API_docs_v46/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v46/methods/messages_exportChatInvite.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]); diff --git a/old_docs/API_docs_v46/methods/messages_forwardMessage.md b/old_docs/API_docs_v46/methods/messages_forwardMessage.md index 45b7a07f..d6916437 100644 --- a/old_docs/API_docs_v46/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v46/methods/messages_forwardMessage.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); diff --git a/old_docs/API_docs_v46/methods/messages_forwardMessages.md b/old_docs/API_docs_v46/methods/messages_forwardMessages.md index b7273f1d..6a646f5f 100644 --- a/old_docs/API_docs_v46/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v46/methods/messages_forwardMessages.md @@ -60,12 +60,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessages(['broadcast' => Bool, 'from_peer' => InputPeer, 'id' => [int, int], 'to_peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v46/methods/messages_getAllStickers.md b/old_docs/API_docs_v46/methods/messages_getAllStickers.md index 16fdba6c..2ba37a91 100644 --- a/old_docs/API_docs_v46/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v46/methods/messages_getAllStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => int, ]); diff --git a/old_docs/API_docs_v46/methods/messages_getChats.md b/old_docs/API_docs_v46/methods/messages_getChats.md index 290438a1..e84c7193 100644 --- a/old_docs/API_docs_v46/methods/messages_getChats.md +++ b/old_docs/API_docs_v46/methods/messages_getChats.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v46/methods/messages_getDialogs.md b/old_docs/API_docs_v46/methods/messages_getDialogs.md index 7a28bd83..bd3ef681 100644 --- a/old_docs/API_docs_v46/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v46/methods/messages_getDialogs.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['offset_date' => int, 'offset_id' => int, 'offset_peer' => InputPeer, 'limit' => int, ]); diff --git a/old_docs/API_docs_v46/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v46/methods/messages_getDocumentByHash.md index 1af5bad4..ad8e22be 100644 --- a/old_docs/API_docs_v46/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v46/methods/messages_getDocumentByHash.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Document = $MadelineProto->messages->getDocumentByHash(['sha256' => 'bytes', 'size' => int, 'mime_type' => 'string', ]); diff --git a/old_docs/API_docs_v46/methods/messages_getHistory.md b/old_docs/API_docs_v46/methods/messages_getHistory.md index dd61853d..dfefb639 100644 --- a/old_docs/API_docs_v46/methods/messages_getHistory.md +++ b/old_docs/API_docs_v46/methods/messages_getHistory.md @@ -46,12 +46,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getHistory(['peer' => InputPeer, 'offset_id' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); diff --git a/old_docs/API_docs_v46/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v46/methods/messages_getInlineBotResults.md index fc80c5e8..0675fe08 100644 --- a/old_docs/API_docs_v46/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v46/methods/messages_getInlineBotResults.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_BotResults = $MadelineProto->messages->getInlineBotResults(['bot' => InputUser, 'query' => 'string', 'offset' => 'string', ]); diff --git a/old_docs/API_docs_v46/methods/messages_getMessages.md b/old_docs/API_docs_v46/methods/messages_getMessages.md index 86d1da8a..d538cb5f 100644 --- a/old_docs/API_docs_v46/methods/messages_getMessages.md +++ b/old_docs/API_docs_v46/methods/messages_getMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v46/methods/messages_getMessagesViews.md b/old_docs/API_docs_v46/methods/messages_getMessagesViews.md index b8d78c85..934adc16 100644 --- a/old_docs/API_docs_v46/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v46/methods/messages_getMessagesViews.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int, int], 'increment' => Bool, ]); diff --git a/old_docs/API_docs_v46/methods/messages_getSavedGifs.md b/old_docs/API_docs_v46/methods/messages_getSavedGifs.md index f61348ce..38585538 100644 --- a/old_docs/API_docs_v46/methods/messages_getSavedGifs.md +++ b/old_docs/API_docs_v46/methods/messages_getSavedGifs.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => int, ]); diff --git a/old_docs/API_docs_v46/methods/messages_getStickerSet.md b/old_docs/API_docs_v46/methods/messages_getStickerSet.md index c86807e4..c9140ab2 100644 --- a/old_docs/API_docs_v46/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v46/methods/messages_getStickerSet.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSet = $MadelineProto->messages->getStickerSet(['stickerset' => InputStickerSet, ]); diff --git a/old_docs/API_docs_v46/methods/messages_getStickers.md b/old_docs/API_docs_v46/methods/messages_getStickers.md index 4854696d..d2ea57cf 100644 --- a/old_docs/API_docs_v46/methods/messages_getStickers.md +++ b/old_docs/API_docs_v46/methods/messages_getStickers.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Stickers = $MadelineProto->messages->getStickers(['emoticon' => 'string', 'hash' => 'string', ]); diff --git a/old_docs/API_docs_v46/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v46/methods/messages_getWebPagePreview.md index d01bdd32..e8b20c5d 100644 --- a/old_docs/API_docs_v46/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v46/methods/messages_getWebPagePreview.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $MessageMedia = $MadelineProto->messages->getWebPagePreview(['message' => 'string', ]); diff --git a/old_docs/API_docs_v46/methods/messages_importChatInvite.md b/old_docs/API_docs_v46/methods/messages_importChatInvite.md index 0d6cd7c8..b1830a9b 100644 --- a/old_docs/API_docs_v46/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v46/methods/messages_importChatInvite.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->importChatInvite(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v46/methods/messages_installStickerSet.md b/old_docs/API_docs_v46/methods/messages_installStickerSet.md index 04b693cd..77c5a2a5 100644 --- a/old_docs/API_docs_v46/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v46/methods/messages_installStickerSet.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->installStickerSet(['stickerset' => InputStickerSet, 'disabled' => Bool, ]); diff --git a/old_docs/API_docs_v46/methods/messages_migrateChat.md b/old_docs/API_docs_v46/methods/messages_migrateChat.md index db57adfa..22ccfcc1 100644 --- a/old_docs/API_docs_v46/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v46/methods/messages_migrateChat.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]); diff --git a/old_docs/API_docs_v46/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v46/methods/messages_readEncryptedHistory.md index 39b110e3..2ba4cca4 100644 --- a/old_docs/API_docs_v46/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v46/methods/messages_readEncryptedHistory.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); diff --git a/old_docs/API_docs_v46/methods/messages_readHistory.md b/old_docs/API_docs_v46/methods/messages_readHistory.md index 3de17061..26b608af 100644 --- a/old_docs/API_docs_v46/methods/messages_readHistory.md +++ b/old_docs/API_docs_v46/methods/messages_readHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v46/methods/messages_readMessageContents.md b/old_docs/API_docs_v46/methods/messages_readMessageContents.md index 9bb1bee8..a09cb63e 100644 --- a/old_docs/API_docs_v46/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v46/methods/messages_readMessageContents.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v46/methods/messages_receivedMessages.md b/old_docs/API_docs_v46/methods/messages_receivedMessages.md index 7aab635f..b5e87992 100644 --- a/old_docs/API_docs_v46/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v46/methods/messages_receivedMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_ReceivedNotifyMessage = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); diff --git a/old_docs/API_docs_v46/methods/messages_reorderStickerSets.md b/old_docs/API_docs_v46/methods/messages_reorderStickerSets.md index b2cbe4c1..90913e5d 100644 --- a/old_docs/API_docs_v46/methods/messages_reorderStickerSets.md +++ b/old_docs/API_docs_v46/methods/messages_reorderStickerSets.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reorderStickerSets(['order' => [long, long], ]); diff --git a/old_docs/API_docs_v46/methods/messages_reportSpam.md b/old_docs/API_docs_v46/methods/messages_reportSpam.md index 2e2b1177..09c1e63b 100644 --- a/old_docs/API_docs_v46/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v46/methods/messages_reportSpam.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reportSpam(['peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v46/methods/messages_saveGif.md b/old_docs/API_docs_v46/methods/messages_saveGif.md index 6f608c4c..145039e7 100644 --- a/old_docs/API_docs_v46/methods/messages_saveGif.md +++ b/old_docs/API_docs_v46/methods/messages_saveGif.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->saveGif(['id' => InputDocument, 'unsave' => Bool, ]); diff --git a/old_docs/API_docs_v46/methods/messages_search.md b/old_docs/API_docs_v46/methods/messages_search.md index f63e235d..01af8760 100644 --- a/old_docs/API_docs_v46/methods/messages_search.md +++ b/old_docs/API_docs_v46/methods/messages_search.md @@ -50,12 +50,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->search(['important_only' => Bool, 'peer' => InputPeer, 'q' => 'string', 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v46/methods/messages_searchGifs.md b/old_docs/API_docs_v46/methods/messages_searchGifs.md index 103ebfeb..9677bf24 100644 --- a/old_docs/API_docs_v46/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v46/methods/messages_searchGifs.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_FoundGifs = $MadelineProto->messages->searchGifs(['q' => 'string', 'offset' => int, ]); diff --git a/old_docs/API_docs_v46/methods/messages_searchGlobal.md b/old_docs/API_docs_v46/methods/messages_searchGlobal.md index 0edd1e40..6ad4aec0 100644 --- a/old_docs/API_docs_v46/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v46/methods/messages_searchGlobal.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->searchGlobal(['q' => 'string', 'offset_date' => int, 'offset_peer' => InputPeer, 'offset_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v46/methods/messages_sendBroadcast.md b/old_docs/API_docs_v46/methods/messages_sendBroadcast.md index 28e248a9..6cff8b29 100644 --- a/old_docs/API_docs_v46/methods/messages_sendBroadcast.md +++ b/old_docs/API_docs_v46/methods/messages_sendBroadcast.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendBroadcast(['contacts' => [InputUser, InputUser], 'message' => 'string', 'media' => InputMedia, ]); diff --git a/old_docs/API_docs_v46/methods/messages_sendEncrypted.md b/old_docs/API_docs_v46/methods/messages_sendEncrypted.md index d48f88d7..76305f32 100644 --- a/old_docs/API_docs_v46/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v46/methods/messages_sendEncrypted.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v46/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v46/methods/messages_sendEncryptedFile.md index 4fd0648e..8db2ead9 100644 --- a/old_docs/API_docs_v46/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v46/methods/messages_sendEncryptedFile.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); diff --git a/old_docs/API_docs_v46/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v46/methods/messages_sendEncryptedService.md index d66894bf..c7836c94 100644 --- a/old_docs/API_docs_v46/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v46/methods/messages_sendEncryptedService.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v46/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v46/methods/messages_sendInlineBotResult.md index 66457732..10960f6f 100644 --- a/old_docs/API_docs_v46/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v46/methods/messages_sendInlineBotResult.md @@ -45,12 +45,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendInlineBotResult(['broadcast' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'query_id' => long, 'id' => 'string', ]); diff --git a/old_docs/API_docs_v46/methods/messages_sendMedia.md b/old_docs/API_docs_v46/methods/messages_sendMedia.md index 566334c0..694ccc4b 100644 --- a/old_docs/API_docs_v46/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v46/methods/messages_sendMedia.md @@ -61,12 +61,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendMedia(['broadcast' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, 'reply_markup' => ReplyMarkup, ]); diff --git a/old_docs/API_docs_v46/methods/messages_sendMessage.md b/old_docs/API_docs_v46/methods/messages_sendMessage.md index 82d5e61d..0c3ef389 100644 --- a/old_docs/API_docs_v46/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v46/methods/messages_sendMessage.md @@ -63,12 +63,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendMessage(['no_webpage' => Bool, 'broadcast' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v46/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v46/methods/messages_setEncryptedTyping.md index e9afe99c..4e7450eb 100644 --- a/old_docs/API_docs_v46/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v46/methods/messages_setEncryptedTyping.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); diff --git a/old_docs/API_docs_v46/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v46/methods/messages_setInlineBotResults.md index 28a67893..9febbecd 100644 --- a/old_docs/API_docs_v46/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v46/methods/messages_setInlineBotResults.md @@ -51,12 +51,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setInlineBotResults(['gallery' => Bool, 'private' => Bool, 'query_id' => long, 'results' => [InputBotInlineResult, InputBotInlineResult], 'cache_time' => int, 'next_offset' => 'string', ]); diff --git a/old_docs/API_docs_v46/methods/messages_setTyping.md b/old_docs/API_docs_v46/methods/messages_setTyping.md index bea4982b..a2b94823 100644 --- a/old_docs/API_docs_v46/methods/messages_setTyping.md +++ b/old_docs/API_docs_v46/methods/messages_setTyping.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); diff --git a/old_docs/API_docs_v46/methods/messages_startBot.md b/old_docs/API_docs_v46/methods/messages_startBot.md index 94a4d86a..50d6f475 100644 --- a/old_docs/API_docs_v46/methods/messages_startBot.md +++ b/old_docs/API_docs_v46/methods/messages_startBot.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'peer' => InputPeer, 'start_param' => 'string', ]); diff --git a/old_docs/API_docs_v46/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v46/methods/messages_toggleChatAdmins.md index ab591fd9..349ea0e6 100644 --- a/old_docs/API_docs_v46/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v46/methods/messages_toggleChatAdmins.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => InputPeer, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v46/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v46/methods/messages_uninstallStickerSet.md index 6d04e847..26b2fbb3 100644 --- a/old_docs/API_docs_v46/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v46/methods/messages_uninstallStickerSet.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->uninstallStickerSet(['stickerset' => InputStickerSet, ]); diff --git a/old_docs/API_docs_v46/methods/photos_deletePhotos.md b/old_docs/API_docs_v46/methods/photos_deletePhotos.md index b9daca10..937aadd5 100644 --- a/old_docs/API_docs_v46/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v46/methods/photos_deletePhotos.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); diff --git a/old_docs/API_docs_v46/methods/photos_getUserPhotos.md b/old_docs/API_docs_v46/methods/photos_getUserPhotos.md index ea27a44f..d1c15e90 100644 --- a/old_docs/API_docs_v46/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v46/methods/photos_getUserPhotos.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => long, 'limit' => int, ]); diff --git a/old_docs/API_docs_v46/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v46/methods/photos_updateProfilePhoto.md index 2d1e1e76..4c5c517f 100644 --- a/old_docs/API_docs_v46/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v46/methods/photos_updateProfilePhoto.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, 'crop' => InputPhotoCrop, ]); diff --git a/old_docs/API_docs_v46/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v46/methods/photos_uploadProfilePhoto.md index 6ff4ddf5..3d7d301b 100644 --- a/old_docs/API_docs_v46/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v46/methods/photos_uploadProfilePhoto.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, 'caption' => 'string', 'geo_point' => InputGeoPoint, 'crop' => InputPhotoCrop, ]); diff --git a/old_docs/API_docs_v46/methods/users_getUsers.md b/old_docs/API_docs_v46/methods/users_getUsers.md index ef1c7fd8..bce13ee6 100644 --- a/old_docs/API_docs_v46/methods/users_getUsers.md +++ b/old_docs/API_docs_v46/methods/users_getUsers.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v51/README.md b/old_docs/API_docs_v51/README.md index a1e660c8..1401e799 100644 --- a/old_docs/API_docs_v51/README.md +++ b/old_docs/API_docs_v51/README.md @@ -4,11 +4,11 @@ description: MadelineProto API documentation (layer v51) --- # MadelineProto API documentation (layer v51) +[Back to main documentation](..) + + [Methods](methods/) [Constructors](constructors/) -[Types](types/) - - -[Back to main documentation](..) +[Types](types/) \ No newline at end of file diff --git a/old_docs/API_docs_v51/methods/README.md b/old_docs/API_docs_v51/methods/README.md index 403f961f..ae2515db 100644 --- a/old_docs/API_docs_v51/methods/README.md +++ b/old_docs/API_docs_v51/methods/README.md @@ -1,387 +1,382 @@ --- title: Methods -description: List of methods +description: What do you want to do? --- -# Methods -[Back to API documentation index](..) +# What do you want to do? +[Go back to API documentation index](..) +[Go to the old code-version method index](api_index.html) -$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); +* [Logout](https://docs.madelineproto.xyz/logout.html) -$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); +* [Login](https://docs.madelineproto.xyz/docs/LOGIN.html) -$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); +* [Get all chats, broadcast a message to all chats](https://docs.madelineproto.xyz/docs/DIALOGS.html) -$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); +* [Get the full participant list of a channel/group/supergroup](https://docs.madelineproto.xyz/get_pwr_chat.html) -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); +* [Get full info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_full_info.html) +* [Get info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_info.html) -$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); +* [Get info about the currently logged-in user](https://docs.madelineproto.xyz/get_self.html) -$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); +* [Upload or download files up to 1.5 GB](https://docs.madelineproto.xyz/docs/FILES.html) -$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); +* [Make a phone call and play a song](https://docs.madelineproto.xyz/docs/CALLS.html) -$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); - -$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); - - -$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); - -$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); +* [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) *** -

$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) +

* Change the phone number associated to this account -$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Check if this username is available -$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Delete this account -$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) +* Get account TTL -$MadelineProto->[account->getAuthorizations](account_getAuthorizations.md)(\[\]) === [$account\_Authorizations](../types/account_Authorizations.md) +* Get all logged-in authorizations -$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) +* Get notification settings -$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md) +* Get the current password -$MadelineProto->[account->getPasswordSettings](account_getPasswordSettings.md)(\['current_password_hash' => [bytes](../types/bytes.md), \]) === [$account\_PasswordSettings](../types/account_PasswordSettings.md) +* Get the current 2FA settings -$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Get privacy settings -$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) +* Returns a list of available wallpapers. -$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) +* Register device for push notifications -$MadelineProto->[account->reportPeer](account_reportPeer.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reason' => [ReportReason](../types/ReportReason.md), \]) === [$Bool](../types/Bool.md) +* Report for spam -$MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) +* Delete a certain session -$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) +* Reset all notification settings -$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) +* Change the phone number -$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) +* Set account TTL -$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Set privacy settings -$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Stop sending PUSH notifications to app -$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Disable all notifications for a certain period -$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) +* Change notification settings -$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) +* Update the 2FA password settings -$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) +* Update profile info -$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Update online status -$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) +* Update this user's username *** -

$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) +

* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info -$MadelineProto->[auth->cancelCode](auth_cancelCode.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Invalidate sent phone code -$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) +* Check if this phone number is registered on telegram -$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) +* You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$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) +* You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->recoverPassword](auth_recoverPassword.md)(\['code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account -$MadelineProto->[auth->requestPasswordRecovery](auth_requestPasswordRecovery.md)(\[\]) === [$auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) +* Send an email to recover the 2FA password -$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) +* Resend the SMS verification code -$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) +* Delete all logged-in sessions. -$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) +* Use phone_login instead -$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Invite friends to telegram! -$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) +* You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) -$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) +* You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) *** -

$MadelineProto->[channels->checkUsername](channels_checkUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +

* Check if this username is free and can be assigned to a channel/supergroup -$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) +* Create channel/supergroup -$MadelineProto->[channels->deleteChannel](channels_deleteChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Delete a channel/supergroup -$MadelineProto->[channels->deleteMessages](channels_deleteMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Delete channel/supergroup messages -$MadelineProto->[channels->deleteUserHistory](channels_deleteUserHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Delete all messages of a user in a channel/supergroup -$MadelineProto->[channels->editAbout](channels_editAbout.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'about' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Edit the about text of a channel/supergroup -$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) +* Edit admin permissions of a user in a channel/supergroup -$MadelineProto->[channels->editPhoto](channels_editPhoto.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) +* Edit the photo of a supergroup/channel -$MadelineProto->[channels->editTitle](channels_editTitle.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Edit the title of a supergroup/channel -$MadelineProto->[channels->exportInvite](channels_exportInvite.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) +* Export the invite link of a channel -$MadelineProto->[channels->exportMessageLink](channels_exportMessageLink.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => [int](../types/int.md), \]) === [$ExportedMessageLink](../types/ExportedMessageLink.md) +* Get the link of a message in a channel -$MadelineProto->[channels->getChannels](channels_getChannels.md)(\['id' => \[[InputChannel](../types/InputChannel.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get info about multiple channels/supergroups -$MadelineProto->[channels->getDialogs](channels_getDialogs.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Dialogs](../types/messages_Dialogs.md) +* Get channel dialogs -$MadelineProto->[channels->getFullChannel](channels_getFullChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) +* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$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) +* Get important channel/supergroup history -$MadelineProto->[channels->getMessages](channels_getMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get channel/supergroup messages -$MadelineProto->[channels->getParticipant](channels_getParticipant.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) +* Get info about a certain channel/supergroup participant -$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) +* Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead) -$MadelineProto->[channels->inviteToChannel](channels_inviteToChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'users' => \[[InputUser](../types/InputUser.md)\], \]) === [$Updates](../types/Updates.md) +* Add users to channel/supergroup -$MadelineProto->[channels->joinChannel](channels_joinChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Join a channel/supergroup -$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) +* Kick user from channel -$MadelineProto->[channels->leaveChannel](channels_leaveChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Leave a channel/supergroup -$MadelineProto->[channels->readHistory](channels_readHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Mark channel/supergroup history as read -$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) +* Report a supergroup/channel for spam -$MadelineProto->[channels->toggleComments](channels_toggleComments.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Enable channel comments -$MadelineProto->[channels->toggleInvites](channels_toggleInvites.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Allow or disallow any user to invite users to this channel/supergroup -$MadelineProto->[channels->toggleSignatures](channels_toggleSignatures.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Toggle channel signatures -$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) +* Set the pinned message of a channel/supergroup -$MadelineProto->[channels->updateUsername](channels_updateUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Update the username of a supergroup/channel *** -

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +

* Block a user -$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) +* Delete a contact -$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) +* Delete multiple contacts -$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) +* Export contact as card -$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) +* Get blocked users -$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [string](../types/string.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) +* Get info about a certain contact -$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) +* Get online status of all users -$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) +* Import card as contact -$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], 'replace' => [Bool](../types/Bool.md), \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) +* Add phone number as contact -$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) +* You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) +* Search contacts -$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +* Unblock a user *** -

$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) +

* Get the changelog of this app -$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) +* Get info about app updates -$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) +* Get server configuration -$MadelineProto->[help->getInviteText](help_getInviteText.md)(\['lang_code' => [string](../types/string.md), \]) === [$help\_InviteText](../types/help_InviteText.md) +* Get invitation text -$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) +* Get nearest datacenter -$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) +* Get info of support user -$MadelineProto->[help->getTermsOfService](help_getTermsOfService.md)(\['lang_code' => [string](../types/string.md), \]) === [$help\_TermsOfService](../types/help_TermsOfService.md) +* Get terms of service -$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) +* Log data for developer of this app *** -

$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) +

* Initializes connection and save information on the user's device and application. *** -

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invokes a query after successfull completion of one of the previous queries. *** -

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Result type returned by a current query. *** -

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invoke this method with layer X *** -

$MadelineProto->[invokeWithoutUpdates](invokeWithoutUpdates.md)(\['query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invoke with method without returning updates in the socket *** -

$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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Add a user to a normal chat (use channels->inviteToChannel for supergroups) -$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md) +* Check if an invitation link is valid -$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Create a chat (not supergroup) -$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md) +* Delete a user from a chat (not supergroup) -$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Delete chat history -$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Delete messages -$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Edit admin permissions -$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) +* Edit the photo of a normal chat (not supergroup) -$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Edit the title of a normal chat (not supergroup) -$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) +* Edit a sent inline message -$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) +* Edit a message -$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) +* Export chat invite -$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) +* Forward message -$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) +* Forward messages -$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) +* Get all stickerpacks -$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) +* Get the callback answer of a bot (after clicking a button) -$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get info about chats -$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) +* You cannot use this method directly, instead use $MadelineProto->get_dh_config(); -$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) +* Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html -$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) +* Get document by SHA256 hash -$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) +* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$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) +* Get previous messages of a group -$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) +* Call inline bot -$MadelineProto->[messages->getMessageEditData](messages_getMessageEditData.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$messages\_MessageEditData](../types/messages_MessageEditData.md) +* Check if about to edit a message or a media caption -$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get messages -$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) +* Get and increase message views -$MadelineProto->[messages->getPeerSettings](messages_getPeerSettings.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$PeerSettings](../types/PeerSettings.md) +* Get the settings of apeer -$MadelineProto->[messages->getSavedGifs](messages_getSavedGifs.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_SavedGifs](../types/messages_SavedGifs.md) +* Get saved gifs -$MadelineProto->[messages->getStickerSet](messages_getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) +* Get a stickerset -$MadelineProto->[messages->getStickers](messages_getStickers.md)(\['emoticon' => [string](../types/string.md), 'hash' => [string](../types/string.md), \]) === [$messages\_Stickers](../types/messages_Stickers.md) +* Get stickers -$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) === [$MessageMedia](../types/MessageMedia.md) +* Get webpage preview -$MadelineProto->[messages->hideReportSpam](messages_hideReportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Hide report spam popup -$MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Import chat invite -$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'disabled' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Add a sticker set -$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) +* Convert chat to supergroup -$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Mark messages as read in secret chats -$MadelineProto->[messages->readHistory](messages_readHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Mark messages as read -$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Mark message as read -$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_ReceivedNotifyMessage](../types/ReceivedNotifyMessage.md) +* Mark messages as read -$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) +* You cannot use this method directly -$MadelineProto->[messages->reorderStickerSets](messages_reorderStickerSets.md)(\['order' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) +* Reorder sticker sets -$MadelineProto->[messages->reportSpam](messages_reportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Report a peer for spam -$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$MadelineProto->[messages->saveGif](messages_saveGif.md)(\['id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Save a GIF -$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) +* Search peers or messages -$MadelineProto->[messages->searchGifs](messages_searchGifs.md)(\['q' => [string](../types/string.md), 'offset' => [int](../types/int.md), \]) === [$messages\_FoundGifs](../types/messages_FoundGifs.md) +* Search gifs -$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) +* Global message search -$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) +* Send a message to all users in the chat list -$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send message to secret chat -$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) +* Send a file to a secret chat -$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send a service message to a secret chat -$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) +* Send a received bot result to the chat -$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) +* Send a media -$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) +* Send a message -$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) +* Bots only: set the callback answer (after a button was clicked) -$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Send typing notification to secret chat -$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) +* Bots only: set the results of an inline query -$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) +* Change typing status -$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) +* Start a bot -$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Enable all users are admins in normal groups (not supergroups) -$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) +* Remove a sticker set *** -

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) +

* Delete profile photos -$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) +* Get the profile photos of a user -$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), 'crop' => [InputPhotoCrop](../types/InputPhotoCrop.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) +* Update the profile photo (use photos->uploadProfilePhoto to upload the photo) -$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) +* Upload profile photo *** -

$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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates -$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) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates -$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates *** -

$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) +

* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info *** -

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) +

* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) +* Get info about users diff --git a/old_docs/API_docs_v51/methods/account_changePhone.md b/old_docs/API_docs_v51/methods/account_changePhone.md index aeb5c4bc..65f0b0d0 100644 --- a/old_docs/API_docs_v51/methods/account_changePhone.md +++ b/old_docs/API_docs_v51/methods/account_changePhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); diff --git a/old_docs/API_docs_v51/methods/account_checkUsername.md b/old_docs/API_docs_v51/methods/account_checkUsername.md index 0124bb38..08107762 100644 --- a/old_docs/API_docs_v51/methods/account_checkUsername.md +++ b/old_docs/API_docs_v51/methods/account_checkUsername.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v51/methods/account_deleteAccount.md b/old_docs/API_docs_v51/methods/account_deleteAccount.md index e8b46c24..3a6f4700 100644 --- a/old_docs/API_docs_v51/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v51/methods/account_deleteAccount.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); diff --git a/old_docs/API_docs_v51/methods/account_getAccountTTL.md b/old_docs/API_docs_v51/methods/account_getAccountTTL.md index 0cdd0b98..ab6a6ea1 100644 --- a/old_docs/API_docs_v51/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v51/methods/account_getAccountTTL.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); diff --git a/old_docs/API_docs_v51/methods/account_getAuthorizations.md b/old_docs/API_docs_v51/methods/account_getAuthorizations.md index f92db8fe..303203e4 100644 --- a/old_docs/API_docs_v51/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v51/methods/account_getAuthorizations.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_Authorizations = $MadelineProto->account->getAuthorizations(); diff --git a/old_docs/API_docs_v51/methods/account_getNotifySettings.md b/old_docs/API_docs_v51/methods/account_getNotifySettings.md index f00be12c..ad492f49 100644 --- a/old_docs/API_docs_v51/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v51/methods/account_getNotifySettings.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); diff --git a/old_docs/API_docs_v51/methods/account_getPassword.md b/old_docs/API_docs_v51/methods/account_getPassword.md index c189421d..2692dab1 100644 --- a/old_docs/API_docs_v51/methods/account_getPassword.md +++ b/old_docs/API_docs_v51/methods/account_getPassword.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_Password = $MadelineProto->account->getPassword(); diff --git a/old_docs/API_docs_v51/methods/account_getPasswordSettings.md b/old_docs/API_docs_v51/methods/account_getPasswordSettings.md index 96cb953e..2039d405 100644 --- a/old_docs/API_docs_v51/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v51/methods/account_getPasswordSettings.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PasswordSettings = $MadelineProto->account->getPasswordSettings(['current_password_hash' => 'bytes', ]); diff --git a/old_docs/API_docs_v51/methods/account_getPrivacy.md b/old_docs/API_docs_v51/methods/account_getPrivacy.md index 979bfb94..5480ffbb 100644 --- a/old_docs/API_docs_v51/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v51/methods/account_getPrivacy.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); diff --git a/old_docs/API_docs_v51/methods/account_getWallPapers.md b/old_docs/API_docs_v51/methods/account_getWallPapers.md index 89b281be..7c8bff39 100644 --- a/old_docs/API_docs_v51/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v51/methods/account_getWallPapers.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); diff --git a/old_docs/API_docs_v51/methods/account_registerDevice.md b/old_docs/API_docs_v51/methods/account_registerDevice.md index 651e753f..8dae7506 100644 --- a/old_docs/API_docs_v51/methods/account_registerDevice.md +++ b/old_docs/API_docs_v51/methods/account_registerDevice.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'app_sandbox' => Bool, 'lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v51/methods/account_reportPeer.md b/old_docs/API_docs_v51/methods/account_reportPeer.md index a07c87d0..c5fe7073 100644 --- a/old_docs/API_docs_v51/methods/account_reportPeer.md +++ b/old_docs/API_docs_v51/methods/account_reportPeer.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->reportPeer(['peer' => InputPeer, 'reason' => ReportReason, ]); diff --git a/old_docs/API_docs_v51/methods/account_resetAuthorization.md b/old_docs/API_docs_v51/methods/account_resetAuthorization.md index 4155d3c8..543aee08 100644 --- a/old_docs/API_docs_v51/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v51/methods/account_resetAuthorization.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetAuthorization(['hash' => long, ]); diff --git a/old_docs/API_docs_v51/methods/account_resetNotifySettings.md b/old_docs/API_docs_v51/methods/account_resetNotifySettings.md index ccc836a9..557373b0 100644 --- a/old_docs/API_docs_v51/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v51/methods/account_resetNotifySettings.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); diff --git a/old_docs/API_docs_v51/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v51/methods/account_sendChangePhoneCode.md index c9f9c174..bdf7331f 100644 --- a/old_docs/API_docs_v51/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v51/methods/account_sendChangePhoneCode.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendChangePhoneCode(['allow_flashcall' => Bool, 'phone_number' => 'string', 'current_number' => Bool, ]); diff --git a/old_docs/API_docs_v51/methods/account_setAccountTTL.md b/old_docs/API_docs_v51/methods/account_setAccountTTL.md index 5100e62e..bacdd77a 100644 --- a/old_docs/API_docs_v51/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v51/methods/account_setAccountTTL.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); diff --git a/old_docs/API_docs_v51/methods/account_setPrivacy.md b/old_docs/API_docs_v51/methods/account_setPrivacy.md index fbcedae7..6e24ded7 100644 --- a/old_docs/API_docs_v51/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v51/methods/account_setPrivacy.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); diff --git a/old_docs/API_docs_v51/methods/account_unregisterDevice.md b/old_docs/API_docs_v51/methods/account_unregisterDevice.md index 1d2b7670..b666d91a 100644 --- a/old_docs/API_docs_v51/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v51/methods/account_unregisterDevice.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); diff --git a/old_docs/API_docs_v51/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v51/methods/account_updateDeviceLocked.md index ef816501..cd52093a 100644 --- a/old_docs/API_docs_v51/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v51/methods/account_updateDeviceLocked.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); diff --git a/old_docs/API_docs_v51/methods/account_updateNotifySettings.md b/old_docs/API_docs_v51/methods/account_updateNotifySettings.md index 18cbdb75..db020309 100644 --- a/old_docs/API_docs_v51/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v51/methods/account_updateNotifySettings.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); diff --git a/old_docs/API_docs_v51/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v51/methods/account_updatePasswordSettings.md index 0754dd63..8af1e37f 100644 --- a/old_docs/API_docs_v51/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v51/methods/account_updatePasswordSettings.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updatePasswordSettings(['current_password_hash' => 'bytes', 'new_settings' => account_PasswordInputSettings, ]); diff --git a/old_docs/API_docs_v51/methods/account_updateProfile.md b/old_docs/API_docs_v51/methods/account_updateProfile.md index e24ef2f5..59629188 100644 --- a/old_docs/API_docs_v51/methods/account_updateProfile.md +++ b/old_docs/API_docs_v51/methods/account_updateProfile.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', 'about' => 'string', ]); diff --git a/old_docs/API_docs_v51/methods/account_updateStatus.md b/old_docs/API_docs_v51/methods/account_updateStatus.md index 4b049e65..50b99b1e 100644 --- a/old_docs/API_docs_v51/methods/account_updateStatus.md +++ b/old_docs/API_docs_v51/methods/account_updateStatus.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); diff --git a/old_docs/API_docs_v51/methods/account_updateUsername.md b/old_docs/API_docs_v51/methods/account_updateUsername.md index 08d2abe0..7276e2aa 100644 --- a/old_docs/API_docs_v51/methods/account_updateUsername.md +++ b/old_docs/API_docs_v51/methods/account_updateUsername.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v51/methods/api_README.md b/old_docs/API_docs_v51/methods/api_README.md new file mode 100644 index 00000000..b967985b --- /dev/null +++ b/old_docs/API_docs_v51/methods/api_README.md @@ -0,0 +1,388 @@ +--- +title: Methods +description: List of methods +--- +# Methods +[Back to API documentation index](..) + +[Go to the new description-version method index](index.html) + +$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); + +$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); + +$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); + +$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); + +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); + + +$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); + +$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); + +$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); + +$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); + +$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); + + +$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); + +$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); + +*** +

$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) + +$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) + +$MadelineProto->[account->getAuthorizations](account_getAuthorizations.md)(\[\]) === [$account\_Authorizations](../types/account_Authorizations.md) + +$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) + +$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md) + +$MadelineProto->[account->getPasswordSettings](account_getPasswordSettings.md)(\['current_password_hash' => [bytes](../types/bytes.md), \]) === [$account\_PasswordSettings](../types/account_PasswordSettings.md) + +$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) + +$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) + +$MadelineProto->[account->reportPeer](account_reportPeer.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reason' => [ReportReason](../types/ReportReason.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$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) + +$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) + +*** +

$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) + +$MadelineProto->[auth->cancelCode](auth_cancelCode.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) + +$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) + +$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$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) + +$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->recoverPassword](auth_recoverPassword.md)(\['code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->requestPasswordRecovery](auth_requestPasswordRecovery.md)(\[\]) === [$auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) + +$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) + +$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$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) + +*** +

$MadelineProto->[channels->checkUsername](channels_checkUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->deleteChannel](channels_deleteChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->deleteMessages](channels_deleteMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[channels->deleteUserHistory](channels_deleteUserHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[channels->editAbout](channels_editAbout.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'about' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->editPhoto](channels_editPhoto.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->editTitle](channels_editTitle.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->exportInvite](channels_exportInvite.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) + +$MadelineProto->[channels->exportMessageLink](channels_exportMessageLink.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => [int](../types/int.md), \]) === [$ExportedMessageLink](../types/ExportedMessageLink.md) + +$MadelineProto->[channels->getChannels](channels_getChannels.md)(\['id' => \[[InputChannel](../types/InputChannel.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[channels->getDialogs](channels_getDialogs.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Dialogs](../types/messages_Dialogs.md) + +$MadelineProto->[channels->getFullChannel](channels_getFullChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$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) + +$MadelineProto->[channels->getMessages](channels_getMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) + +$MadelineProto->[channels->getParticipant](channels_getParticipant.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) + +$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) + +$MadelineProto->[channels->inviteToChannel](channels_inviteToChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'users' => \[[InputUser](../types/InputUser.md)\], \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->joinChannel](channels_joinChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$MadelineProto->[channels->leaveChannel](channels_leaveChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->readHistory](channels_readHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->toggleComments](channels_toggleComments.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->toggleInvites](channels_toggleInvites.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->toggleSignatures](channels_toggleSignatures.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$MadelineProto->[channels->updateUsername](channels_updateUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) + +$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) + +$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) + +$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [string](../types/string.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) + +$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) + +$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) + +$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], 'replace' => [Bool](../types/Bool.md), \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) + +$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) + +$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) + +$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +*** +

$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) + +$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) + +$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) + +$MadelineProto->[help->getInviteText](help_getInviteText.md)(\['lang_code' => [string](../types/string.md), \]) === [$help\_InviteText](../types/help_InviteText.md) + +$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) + +$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) + +$MadelineProto->[help->getTermsOfService](help_getTermsOfService.md)(\['lang_code' => [string](../types/string.md), \]) === [$help\_TermsOfService](../types/help_TermsOfService.md) + +$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) + +*** +

$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) + +*** +

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeWithoutUpdates](invokeWithoutUpdates.md)(\['query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$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) + +$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) + +$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md) + +$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$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) + +$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) + +$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) + +$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) + +$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) + +$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) + +$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) + +$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$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) + +$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) + +$MadelineProto->[messages->getMessageEditData](messages_getMessageEditData.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$messages\_MessageEditData](../types/messages_MessageEditData.md) + +$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) + +$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) + +$MadelineProto->[messages->getPeerSettings](messages_getPeerSettings.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$PeerSettings](../types/PeerSettings.md) + +$MadelineProto->[messages->getSavedGifs](messages_getSavedGifs.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_SavedGifs](../types/messages_SavedGifs.md) + +$MadelineProto->[messages->getStickerSet](messages_getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +$MadelineProto->[messages->getStickers](messages_getStickers.md)(\['emoticon' => [string](../types/string.md), 'hash' => [string](../types/string.md), \]) === [$messages\_Stickers](../types/messages_Stickers.md) + +$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) === [$MessageMedia](../types/MessageMedia.md) + +$MadelineProto->[messages->hideReportSpam](messages_hideReportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'disabled' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->readHistory](messages_readHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_ReceivedNotifyMessage](../types/ReceivedNotifyMessage.md) + +$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) + +$MadelineProto->[messages->reorderStickerSets](messages_reorderStickerSets.md)(\['order' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->reportSpam](messages_reportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) + +$MadelineProto->[messages->saveGif](messages_saveGif.md)(\['id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->searchGifs](messages_searchGifs.md)(\['q' => [string](../types/string.md), 'offset' => [int](../types/int.md), \]) === [$messages\_FoundGifs](../types/messages_FoundGifs.md) + +$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) + +$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) + +$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$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) + +$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$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) + +$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) + +$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) + +$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) + +$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) + +$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) + +$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), 'crop' => [InputPhotoCrop](../types/InputPhotoCrop.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) + +$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) + +*** +

$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) + +$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) + +$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) + +*** +

$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) + +$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) + +$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) + +*** +

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) + +$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) + diff --git a/old_docs/API_docs_v51/methods/auth_cancelCode.md b/old_docs/API_docs_v51/methods/auth_cancelCode.md index 2ad15548..52b85d4c 100644 --- a/old_docs/API_docs_v51/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v51/methods/auth_cancelCode.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->cancelCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v51/methods/auth_checkPhone.md b/old_docs/API_docs_v51/methods/auth_checkPhone.md index 291221de..1826ce63 100644 --- a/old_docs/API_docs_v51/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v51/methods/auth_checkPhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); diff --git a/old_docs/API_docs_v51/methods/auth_recoverPassword.md b/old_docs/API_docs_v51/methods/auth_recoverPassword.md index cdc9bd7d..5e37b0f3 100644 --- a/old_docs/API_docs_v51/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v51/methods/auth_recoverPassword.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_Authorization = $MadelineProto->auth->recoverPassword(['code' => 'string', ]); diff --git a/old_docs/API_docs_v51/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v51/methods/auth_requestPasswordRecovery.md index e18c6c93..c69d0c49 100644 --- a/old_docs/API_docs_v51/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v51/methods/auth_requestPasswordRecovery.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_PasswordRecovery = $MadelineProto->auth->requestPasswordRecovery(); diff --git a/old_docs/API_docs_v51/methods/auth_resendCode.md b/old_docs/API_docs_v51/methods/auth_resendCode.md index de437402..253480a3 100644 --- a/old_docs/API_docs_v51/methods/auth_resendCode.md +++ b/old_docs/API_docs_v51/methods/auth_resendCode.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_SentCode = $MadelineProto->auth->resendCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v51/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v51/methods/auth_resetAuthorizations.md index 47feea16..a46c880d 100644 --- a/old_docs/API_docs_v51/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v51/methods/auth_resetAuthorizations.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); diff --git a/old_docs/API_docs_v51/methods/auth_sendInvites.md b/old_docs/API_docs_v51/methods/auth_sendInvites.md index be32fe6b..9b88b4a3 100644 --- a/old_docs/API_docs_v51/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v51/methods/auth_sendInvites.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); diff --git a/old_docs/API_docs_v51/methods/channels_checkUsername.md b/old_docs/API_docs_v51/methods/channels_checkUsername.md index 7bc7c245..7e3d5a89 100644 --- a/old_docs/API_docs_v51/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v51/methods/channels_checkUsername.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->checkUsername(['channel' => InputChannel, 'username' => 'string', ]); diff --git a/old_docs/API_docs_v51/methods/channels_createChannel.md b/old_docs/API_docs_v51/methods/channels_createChannel.md index 1305e4fb..a5ddc379 100644 --- a/old_docs/API_docs_v51/methods/channels_createChannel.md +++ b/old_docs/API_docs_v51/methods/channels_createChannel.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->createChannel(['broadcast' => Bool, 'megagroup' => Bool, 'title' => 'string', 'about' => 'string', ]); diff --git a/old_docs/API_docs_v51/methods/channels_deleteChannel.md b/old_docs/API_docs_v51/methods/channels_deleteChannel.md index e660d25c..69dad9a3 100644 --- a/old_docs/API_docs_v51/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v51/methods/channels_deleteChannel.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->deleteChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v51/methods/channels_deleteMessages.md b/old_docs/API_docs_v51/methods/channels_deleteMessages.md index fb9d3cc2..b12270b3 100644 --- a/old_docs/API_docs_v51/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v51/methods/channels_deleteMessages.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v51/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v51/methods/channels_deleteUserHistory.md index fbe34341..75f531bb 100644 --- a/old_docs/API_docs_v51/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v51/methods/channels_deleteUserHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->channels->deleteUserHistory(['channel' => InputChannel, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v51/methods/channels_editAbout.md b/old_docs/API_docs_v51/methods/channels_editAbout.md index 8908f29e..67521065 100644 --- a/old_docs/API_docs_v51/methods/channels_editAbout.md +++ b/old_docs/API_docs_v51/methods/channels_editAbout.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->editAbout(['channel' => InputChannel, 'about' => 'string', ]); diff --git a/old_docs/API_docs_v51/methods/channels_editAdmin.md b/old_docs/API_docs_v51/methods/channels_editAdmin.md index 01662a1d..7b6cc0f1 100644 --- a/old_docs/API_docs_v51/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v51/methods/channels_editAdmin.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editAdmin(['channel' => InputChannel, 'user_id' => InputUser, 'role' => ChannelParticipantRole, ]); diff --git a/old_docs/API_docs_v51/methods/channels_editPhoto.md b/old_docs/API_docs_v51/methods/channels_editPhoto.md index 9ccd864f..c854c64a 100644 --- a/old_docs/API_docs_v51/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v51/methods/channels_editPhoto.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editPhoto(['channel' => InputChannel, 'photo' => InputChatPhoto, ]); diff --git a/old_docs/API_docs_v51/methods/channels_editTitle.md b/old_docs/API_docs_v51/methods/channels_editTitle.md index b1024faf..9bc6773e 100644 --- a/old_docs/API_docs_v51/methods/channels_editTitle.md +++ b/old_docs/API_docs_v51/methods/channels_editTitle.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editTitle(['channel' => InputChannel, 'title' => 'string', ]); diff --git a/old_docs/API_docs_v51/methods/channels_exportInvite.md b/old_docs/API_docs_v51/methods/channels_exportInvite.md index f0c737d5..ca65dcc8 100644 --- a/old_docs/API_docs_v51/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v51/methods/channels_exportInvite.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedChatInvite = $MadelineProto->channels->exportInvite(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v51/methods/channels_exportMessageLink.md b/old_docs/API_docs_v51/methods/channels_exportMessageLink.md index f910b594..b4a3c645 100644 --- a/old_docs/API_docs_v51/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v51/methods/channels_exportMessageLink.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedMessageLink = $MadelineProto->channels->exportMessageLink(['channel' => InputChannel, 'id' => int, ]); diff --git a/old_docs/API_docs_v51/methods/channels_getChannels.md b/old_docs/API_docs_v51/methods/channels_getChannels.md index 9cd9e798..af22556f 100644 --- a/old_docs/API_docs_v51/methods/channels_getChannels.md +++ b/old_docs/API_docs_v51/methods/channels_getChannels.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel, InputChannel], ]); diff --git a/old_docs/API_docs_v51/methods/channels_getDialogs.md b/old_docs/API_docs_v51/methods/channels_getDialogs.md index 9ad21720..1b5837b7 100644 --- a/old_docs/API_docs_v51/methods/channels_getDialogs.md +++ b/old_docs/API_docs_v51/methods/channels_getDialogs.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Dialogs = $MadelineProto->channels->getDialogs(['offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v51/methods/channels_getImportantHistory.md b/old_docs/API_docs_v51/methods/channels_getImportantHistory.md index 144eded5..029c670d 100644 --- a/old_docs/API_docs_v51/methods/channels_getImportantHistory.md +++ b/old_docs/API_docs_v51/methods/channels_getImportantHistory.md @@ -35,12 +35,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->channels->getImportantHistory(['channel' => InputChannel, 'offset_id' => int, 'offset_date' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); diff --git a/old_docs/API_docs_v51/methods/channels_getMessages.md b/old_docs/API_docs_v51/methods/channels_getMessages.md index cc944fe5..eda13d0b 100644 --- a/old_docs/API_docs_v51/methods/channels_getMessages.md +++ b/old_docs/API_docs_v51/methods/channels_getMessages.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v51/methods/channels_getParticipant.md b/old_docs/API_docs_v51/methods/channels_getParticipant.md index db9b1fc6..be5fe96a 100644 --- a/old_docs/API_docs_v51/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v51/methods/channels_getParticipant.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $channels_ChannelParticipant = $MadelineProto->channels->getParticipant(['channel' => InputChannel, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v51/methods/channels_getParticipants.md b/old_docs/API_docs_v51/methods/channels_getParticipants.md index 96662466..6a27016b 100644 --- a/old_docs/API_docs_v51/methods/channels_getParticipants.md +++ b/old_docs/API_docs_v51/methods/channels_getParticipants.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $channels_ChannelParticipants = $MadelineProto->channels->getParticipants(['channel' => InputChannel, 'filter' => ChannelParticipantsFilter, 'offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v51/methods/channels_inviteToChannel.md b/old_docs/API_docs_v51/methods/channels_inviteToChannel.md index 676f800c..e7d12db7 100644 --- a/old_docs/API_docs_v51/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v51/methods/channels_inviteToChannel.md @@ -52,12 +52,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v51/methods/channels_joinChannel.md b/old_docs/API_docs_v51/methods/channels_joinChannel.md index 721f707c..3ac2b326 100644 --- a/old_docs/API_docs_v51/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v51/methods/channels_joinChannel.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->joinChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v51/methods/channels_kickFromChannel.md b/old_docs/API_docs_v51/methods/channels_kickFromChannel.md index bf8bb5b8..8f6c92be 100644 --- a/old_docs/API_docs_v51/methods/channels_kickFromChannel.md +++ b/old_docs/API_docs_v51/methods/channels_kickFromChannel.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->kickFromChannel(['channel' => InputChannel, 'user_id' => InputUser, 'kicked' => Bool, ]); diff --git a/old_docs/API_docs_v51/methods/channels_leaveChannel.md b/old_docs/API_docs_v51/methods/channels_leaveChannel.md index 7f02e08c..95b60a90 100644 --- a/old_docs/API_docs_v51/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v51/methods/channels_leaveChannel.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->leaveChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v51/methods/channels_readHistory.md b/old_docs/API_docs_v51/methods/channels_readHistory.md index cca891f0..c6b14541 100644 --- a/old_docs/API_docs_v51/methods/channels_readHistory.md +++ b/old_docs/API_docs_v51/methods/channels_readHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->readHistory(['channel' => InputChannel, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v51/methods/channels_reportSpam.md b/old_docs/API_docs_v51/methods/channels_reportSpam.md index 09af14e0..ca5c28f5 100644 --- a/old_docs/API_docs_v51/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v51/methods/channels_reportSpam.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v51/methods/channels_toggleComments.md b/old_docs/API_docs_v51/methods/channels_toggleComments.md index 73ef8d23..cc9f478d 100644 --- a/old_docs/API_docs_v51/methods/channels_toggleComments.md +++ b/old_docs/API_docs_v51/methods/channels_toggleComments.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->toggleComments(['channel' => InputChannel, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v51/methods/channels_toggleInvites.md b/old_docs/API_docs_v51/methods/channels_toggleInvites.md index 5b541f67..e9e6450d 100644 --- a/old_docs/API_docs_v51/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v51/methods/channels_toggleInvites.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->toggleInvites(['channel' => InputChannel, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v51/methods/channels_toggleSignatures.md b/old_docs/API_docs_v51/methods/channels_toggleSignatures.md index f233a8e1..36d1eccb 100644 --- a/old_docs/API_docs_v51/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v51/methods/channels_toggleSignatures.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->toggleSignatures(['channel' => InputChannel, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v51/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v51/methods/channels_updatePinnedMessage.md index f06d1f0f..f8d10ece 100644 --- a/old_docs/API_docs_v51/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v51/methods/channels_updatePinnedMessage.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->updatePinnedMessage(['silent' => Bool, 'channel' => InputChannel, 'id' => int, ]); diff --git a/old_docs/API_docs_v51/methods/channels_updateUsername.md b/old_docs/API_docs_v51/methods/channels_updateUsername.md index ad34490a..2093b6ce 100644 --- a/old_docs/API_docs_v51/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v51/methods/channels_updateUsername.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->updateUsername(['channel' => InputChannel, 'username' => 'string', ]); diff --git a/old_docs/API_docs_v51/methods/contacts_block.md b/old_docs/API_docs_v51/methods/contacts_block.md index d0729d30..e592cace 100644 --- a/old_docs/API_docs_v51/methods/contacts_block.md +++ b/old_docs/API_docs_v51/methods/contacts_block.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v51/methods/contacts_deleteContact.md b/old_docs/API_docs_v51/methods/contacts_deleteContact.md index b8c17544..1a3f2a27 100644 --- a/old_docs/API_docs_v51/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v51/methods/contacts_deleteContact.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v51/methods/contacts_deleteContacts.md b/old_docs/API_docs_v51/methods/contacts_deleteContacts.md index 64c69460..f6627599 100644 --- a/old_docs/API_docs_v51/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v51/methods/contacts_deleteContacts.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v51/methods/contacts_exportCard.md b/old_docs/API_docs_v51/methods/contacts_exportCard.md index b05f57ce..1d2129f3 100644 --- a/old_docs/API_docs_v51/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v51/methods/contacts_exportCard.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); diff --git a/old_docs/API_docs_v51/methods/contacts_getBlocked.md b/old_docs/API_docs_v51/methods/contacts_getBlocked.md index d7d8c5cc..44d24aba 100644 --- a/old_docs/API_docs_v51/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v51/methods/contacts_getBlocked.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v51/methods/contacts_getContacts.md b/old_docs/API_docs_v51/methods/contacts_getContacts.md index 1ab8af27..83c4846f 100644 --- a/old_docs/API_docs_v51/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v51/methods/contacts_getContacts.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v51/methods/contacts_getStatuses.md b/old_docs/API_docs_v51/methods/contacts_getStatuses.md index b927a140..5cef3084 100644 --- a/old_docs/API_docs_v51/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v51/methods/contacts_getStatuses.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); diff --git a/old_docs/API_docs_v51/methods/contacts_importCard.md b/old_docs/API_docs_v51/methods/contacts_importCard.md index 81a1e138..89c96657 100644 --- a/old_docs/API_docs_v51/methods/contacts_importCard.md +++ b/old_docs/API_docs_v51/methods/contacts_importCard.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); diff --git a/old_docs/API_docs_v51/methods/contacts_importContacts.md b/old_docs/API_docs_v51/methods/contacts_importContacts.md index 578e5dfd..cd3d6615 100644 --- a/old_docs/API_docs_v51/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v51/methods/contacts_importContacts.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], 'replace' => Bool, ]); diff --git a/old_docs/API_docs_v51/methods/contacts_search.md b/old_docs/API_docs_v51/methods/contacts_search.md index 68daecd6..64ff748e 100644 --- a/old_docs/API_docs_v51/methods/contacts_search.md +++ b/old_docs/API_docs_v51/methods/contacts_search.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); diff --git a/old_docs/API_docs_v51/methods/contacts_unblock.md b/old_docs/API_docs_v51/methods/contacts_unblock.md index f7d151b9..ec72ae2d 100644 --- a/old_docs/API_docs_v51/methods/contacts_unblock.md +++ b/old_docs/API_docs_v51/methods/contacts_unblock.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v51/methods/help_getAppChangelog.md b/old_docs/API_docs_v51/methods/help_getAppChangelog.md index dbca4fc8..eb48fabb 100644 --- a/old_docs/API_docs_v51/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v51/methods/help_getAppChangelog.md @@ -32,12 +32,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_AppChangelog = $MadelineProto->help->getAppChangelog(['device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v51/methods/help_getAppUpdate.md b/old_docs/API_docs_v51/methods/help_getAppUpdate.md index f97da105..ad5b8228 100644 --- a/old_docs/API_docs_v51/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v51/methods/help_getAppUpdate.md @@ -32,12 +32,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(['device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v51/methods/help_getConfig.md b/old_docs/API_docs_v51/methods/help_getConfig.md index 16e25c68..ca4bfc25 100644 --- a/old_docs/API_docs_v51/methods/help_getConfig.md +++ b/old_docs/API_docs_v51/methods/help_getConfig.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); diff --git a/old_docs/API_docs_v51/methods/help_getInviteText.md b/old_docs/API_docs_v51/methods/help_getInviteText.md index 0831ba5f..ad6ac262 100644 --- a/old_docs/API_docs_v51/methods/help_getInviteText.md +++ b/old_docs/API_docs_v51/methods/help_getInviteText.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(['lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v51/methods/help_getNearestDc.md b/old_docs/API_docs_v51/methods/help_getNearestDc.md index 35a8bf91..458f60ab 100644 --- a/old_docs/API_docs_v51/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v51/methods/help_getNearestDc.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); diff --git a/old_docs/API_docs_v51/methods/help_getSupport.md b/old_docs/API_docs_v51/methods/help_getSupport.md index a5bab0f2..9ee25b00 100644 --- a/old_docs/API_docs_v51/methods/help_getSupport.md +++ b/old_docs/API_docs_v51/methods/help_getSupport.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); diff --git a/old_docs/API_docs_v51/methods/help_getTermsOfService.md b/old_docs/API_docs_v51/methods/help_getTermsOfService.md index 3363d658..0936575e 100644 --- a/old_docs/API_docs_v51/methods/help_getTermsOfService.md +++ b/old_docs/API_docs_v51/methods/help_getTermsOfService.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_TermsOfService = $MadelineProto->help->getTermsOfService(['lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v51/methods/help_saveAppLog.md b/old_docs/API_docs_v51/methods/help_saveAppLog.md index 0165b6e3..a7884c47 100644 --- a/old_docs/API_docs_v51/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v51/methods/help_saveAppLog.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); diff --git a/old_docs/API_docs_v51/methods/initConnection.md b/old_docs/API_docs_v51/methods/initConnection.md index 2d3d86ad..73620276 100644 --- a/old_docs/API_docs_v51/methods/initConnection.md +++ b/old_docs/API_docs_v51/methods/initConnection.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->initConnection(['api_id' => int, 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', 'query' => !X, ]); diff --git a/old_docs/API_docs_v51/methods/invokeAfterMsg.md b/old_docs/API_docs_v51/methods/invokeAfterMsg.md index e33a2c93..8e953e78 100644 --- a/old_docs/API_docs_v51/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v51/methods/invokeAfterMsg.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); diff --git a/old_docs/API_docs_v51/methods/invokeAfterMsgs.md b/old_docs/API_docs_v51/methods/invokeAfterMsgs.md index 3150a613..bc8a83b7 100644 --- a/old_docs/API_docs_v51/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v51/methods/invokeAfterMsgs.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); diff --git a/old_docs/API_docs_v51/methods/invokeWithLayer.md b/old_docs/API_docs_v51/methods/invokeWithLayer.md index 71d02abb..8a0c4e79 100644 --- a/old_docs/API_docs_v51/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v51/methods/invokeWithLayer.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); diff --git a/old_docs/API_docs_v51/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v51/methods/invokeWithoutUpdates.md index 2bab236a..2d90a776 100644 --- a/old_docs/API_docs_v51/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v51/methods/invokeWithoutUpdates.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeWithoutUpdates(['query' => !X, ]); diff --git a/old_docs/API_docs_v51/methods/messages_addChatUser.md b/old_docs/API_docs_v51/methods/messages_addChatUser.md index 3e4c5ccc..c6ef275f 100644 --- a/old_docs/API_docs_v51/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v51/methods/messages_addChatUser.md @@ -46,12 +46,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); diff --git a/old_docs/API_docs_v51/methods/messages_checkChatInvite.md b/old_docs/API_docs_v51/methods/messages_checkChatInvite.md index de1d9ff4..cea63313 100644 --- a/old_docs/API_docs_v51/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v51/methods/messages_checkChatInvite.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ChatInvite = $MadelineProto->messages->checkChatInvite(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v51/methods/messages_createChat.md b/old_docs/API_docs_v51/methods/messages_createChat.md index 68c0263a..966f58dc 100644 --- a/old_docs/API_docs_v51/methods/messages_createChat.md +++ b/old_docs/API_docs_v51/methods/messages_createChat.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); diff --git a/old_docs/API_docs_v51/methods/messages_deleteChatUser.md b/old_docs/API_docs_v51/methods/messages_deleteChatUser.md index 0a6830de..9a9227ba 100644 --- a/old_docs/API_docs_v51/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v51/methods/messages_deleteChatUser.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v51/methods/messages_deleteHistory.md b/old_docs/API_docs_v51/methods/messages_deleteHistory.md index d883a9ad..4cb70ec8 100644 --- a/old_docs/API_docs_v51/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v51/methods/messages_deleteHistory.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['peer' => InputPeer, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v51/methods/messages_deleteMessages.md b/old_docs/API_docs_v51/methods/messages_deleteMessages.md index 41570996..fa043e1c 100644 --- a/old_docs/API_docs_v51/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v51/methods/messages_deleteMessages.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v51/methods/messages_editChatAdmin.md b/old_docs/API_docs_v51/methods/messages_editChatAdmin.md index 7916f8b1..5bba0559 100644 --- a/old_docs/API_docs_v51/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v51/methods/messages_editChatAdmin.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]); diff --git a/old_docs/API_docs_v51/methods/messages_editChatPhoto.md b/old_docs/API_docs_v51/methods/messages_editChatPhoto.md index 122913c4..5827a5cc 100644 --- a/old_docs/API_docs_v51/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v51/methods/messages_editChatPhoto.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); diff --git a/old_docs/API_docs_v51/methods/messages_editChatTitle.md b/old_docs/API_docs_v51/methods/messages_editChatTitle.md index 3a1e974b..2e69d790 100644 --- a/old_docs/API_docs_v51/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v51/methods/messages_editChatTitle.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); diff --git a/old_docs/API_docs_v51/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v51/methods/messages_editInlineBotMessage.md index 2237fb20..73c8a2c4 100644 --- a/old_docs/API_docs_v51/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v51/methods/messages_editInlineBotMessage.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->editInlineBotMessage(['no_webpage' => Bool, 'id' => InputBotInlineMessageID, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v51/methods/messages_editMessage.md b/old_docs/API_docs_v51/methods/messages_editMessage.md index 177438a5..ad639325 100644 --- a/old_docs/API_docs_v51/methods/messages_editMessage.md +++ b/old_docs/API_docs_v51/methods/messages_editMessage.md @@ -51,12 +51,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editMessage(['no_webpage' => Bool, 'peer' => InputPeer, 'id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v51/methods/messages_exportChatInvite.md b/old_docs/API_docs_v51/methods/messages_exportChatInvite.md index 98685d96..ec80e207 100644 --- a/old_docs/API_docs_v51/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v51/methods/messages_exportChatInvite.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]); diff --git a/old_docs/API_docs_v51/methods/messages_forwardMessage.md b/old_docs/API_docs_v51/methods/messages_forwardMessage.md index 45b7a07f..d6916437 100644 --- a/old_docs/API_docs_v51/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v51/methods/messages_forwardMessage.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); diff --git a/old_docs/API_docs_v51/methods/messages_forwardMessages.md b/old_docs/API_docs_v51/methods/messages_forwardMessages.md index c536460c..b2549338 100644 --- a/old_docs/API_docs_v51/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v51/methods/messages_forwardMessages.md @@ -62,12 +62,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessages(['broadcast' => Bool, 'silent' => Bool, 'background' => Bool, 'from_peer' => InputPeer, 'id' => [int, int], 'to_peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v51/methods/messages_getAllStickers.md b/old_docs/API_docs_v51/methods/messages_getAllStickers.md index 16fdba6c..2ba37a91 100644 --- a/old_docs/API_docs_v51/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v51/methods/messages_getAllStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => int, ]); diff --git a/old_docs/API_docs_v51/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v51/methods/messages_getBotCallbackAnswer.md index bd83feb0..01ae3ac9 100644 --- a/old_docs/API_docs_v51/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v51/methods/messages_getBotCallbackAnswer.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_BotCallbackAnswer = $MadelineProto->messages->getBotCallbackAnswer(['peer' => InputPeer, 'msg_id' => int, 'data' => 'bytes', ]); diff --git a/old_docs/API_docs_v51/methods/messages_getChats.md b/old_docs/API_docs_v51/methods/messages_getChats.md index 290438a1..e84c7193 100644 --- a/old_docs/API_docs_v51/methods/messages_getChats.md +++ b/old_docs/API_docs_v51/methods/messages_getChats.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v51/methods/messages_getDialogs.md b/old_docs/API_docs_v51/methods/messages_getDialogs.md index 7a28bd83..bd3ef681 100644 --- a/old_docs/API_docs_v51/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v51/methods/messages_getDialogs.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['offset_date' => int, 'offset_id' => int, 'offset_peer' => InputPeer, 'limit' => int, ]); diff --git a/old_docs/API_docs_v51/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v51/methods/messages_getDocumentByHash.md index 1af5bad4..ad8e22be 100644 --- a/old_docs/API_docs_v51/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v51/methods/messages_getDocumentByHash.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Document = $MadelineProto->messages->getDocumentByHash(['sha256' => 'bytes', 'size' => int, 'mime_type' => 'string', ]); diff --git a/old_docs/API_docs_v51/methods/messages_getHistory.md b/old_docs/API_docs_v51/methods/messages_getHistory.md index dfae66e6..851d2680 100644 --- a/old_docs/API_docs_v51/methods/messages_getHistory.md +++ b/old_docs/API_docs_v51/methods/messages_getHistory.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getHistory(['peer' => InputPeer, 'offset_id' => int, 'offset_date' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); diff --git a/old_docs/API_docs_v51/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v51/methods/messages_getInlineBotResults.md index 8ab5bf78..4d86caf5 100644 --- a/old_docs/API_docs_v51/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v51/methods/messages_getInlineBotResults.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_BotResults = $MadelineProto->messages->getInlineBotResults(['bot' => InputUser, 'peer' => InputPeer, 'geo_point' => InputGeoPoint, 'query' => 'string', 'offset' => 'string', ]); diff --git a/old_docs/API_docs_v51/methods/messages_getMessageEditData.md b/old_docs/API_docs_v51/methods/messages_getMessageEditData.md index 12e71bee..34f8534f 100644 --- a/old_docs/API_docs_v51/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v51/methods/messages_getMessageEditData.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_MessageEditData = $MadelineProto->messages->getMessageEditData(['peer' => InputPeer, 'id' => int, ]); diff --git a/old_docs/API_docs_v51/methods/messages_getMessages.md b/old_docs/API_docs_v51/methods/messages_getMessages.md index 86d1da8a..d538cb5f 100644 --- a/old_docs/API_docs_v51/methods/messages_getMessages.md +++ b/old_docs/API_docs_v51/methods/messages_getMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v51/methods/messages_getMessagesViews.md b/old_docs/API_docs_v51/methods/messages_getMessagesViews.md index b8d78c85..934adc16 100644 --- a/old_docs/API_docs_v51/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v51/methods/messages_getMessagesViews.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int, int], 'increment' => Bool, ]); diff --git a/old_docs/API_docs_v51/methods/messages_getPeerSettings.md b/old_docs/API_docs_v51/methods/messages_getPeerSettings.md index f1f2a3bb..a18126f0 100644 --- a/old_docs/API_docs_v51/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v51/methods/messages_getPeerSettings.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $PeerSettings = $MadelineProto->messages->getPeerSettings(['peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v51/methods/messages_getSavedGifs.md b/old_docs/API_docs_v51/methods/messages_getSavedGifs.md index f61348ce..38585538 100644 --- a/old_docs/API_docs_v51/methods/messages_getSavedGifs.md +++ b/old_docs/API_docs_v51/methods/messages_getSavedGifs.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => int, ]); diff --git a/old_docs/API_docs_v51/methods/messages_getStickerSet.md b/old_docs/API_docs_v51/methods/messages_getStickerSet.md index c86807e4..c9140ab2 100644 --- a/old_docs/API_docs_v51/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v51/methods/messages_getStickerSet.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSet = $MadelineProto->messages->getStickerSet(['stickerset' => InputStickerSet, ]); diff --git a/old_docs/API_docs_v51/methods/messages_getStickers.md b/old_docs/API_docs_v51/methods/messages_getStickers.md index 4854696d..d2ea57cf 100644 --- a/old_docs/API_docs_v51/methods/messages_getStickers.md +++ b/old_docs/API_docs_v51/methods/messages_getStickers.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Stickers = $MadelineProto->messages->getStickers(['emoticon' => 'string', 'hash' => 'string', ]); diff --git a/old_docs/API_docs_v51/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v51/methods/messages_getWebPagePreview.md index d01bdd32..e8b20c5d 100644 --- a/old_docs/API_docs_v51/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v51/methods/messages_getWebPagePreview.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $MessageMedia = $MadelineProto->messages->getWebPagePreview(['message' => 'string', ]); diff --git a/old_docs/API_docs_v51/methods/messages_hideReportSpam.md b/old_docs/API_docs_v51/methods/messages_hideReportSpam.md index 856770cb..30523f2a 100644 --- a/old_docs/API_docs_v51/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v51/methods/messages_hideReportSpam.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->hideReportSpam(['peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v51/methods/messages_importChatInvite.md b/old_docs/API_docs_v51/methods/messages_importChatInvite.md index 0d6cd7c8..b1830a9b 100644 --- a/old_docs/API_docs_v51/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v51/methods/messages_importChatInvite.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->importChatInvite(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v51/methods/messages_installStickerSet.md b/old_docs/API_docs_v51/methods/messages_installStickerSet.md index 04b693cd..77c5a2a5 100644 --- a/old_docs/API_docs_v51/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v51/methods/messages_installStickerSet.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->installStickerSet(['stickerset' => InputStickerSet, 'disabled' => Bool, ]); diff --git a/old_docs/API_docs_v51/methods/messages_migrateChat.md b/old_docs/API_docs_v51/methods/messages_migrateChat.md index db57adfa..22ccfcc1 100644 --- a/old_docs/API_docs_v51/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v51/methods/messages_migrateChat.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]); diff --git a/old_docs/API_docs_v51/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v51/methods/messages_readEncryptedHistory.md index 39b110e3..2ba4cca4 100644 --- a/old_docs/API_docs_v51/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v51/methods/messages_readEncryptedHistory.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); diff --git a/old_docs/API_docs_v51/methods/messages_readHistory.md b/old_docs/API_docs_v51/methods/messages_readHistory.md index 3de17061..26b608af 100644 --- a/old_docs/API_docs_v51/methods/messages_readHistory.md +++ b/old_docs/API_docs_v51/methods/messages_readHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v51/methods/messages_readMessageContents.md b/old_docs/API_docs_v51/methods/messages_readMessageContents.md index 9bb1bee8..a09cb63e 100644 --- a/old_docs/API_docs_v51/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v51/methods/messages_readMessageContents.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v51/methods/messages_receivedMessages.md b/old_docs/API_docs_v51/methods/messages_receivedMessages.md index 7aab635f..b5e87992 100644 --- a/old_docs/API_docs_v51/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v51/methods/messages_receivedMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_ReceivedNotifyMessage = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); diff --git a/old_docs/API_docs_v51/methods/messages_reorderStickerSets.md b/old_docs/API_docs_v51/methods/messages_reorderStickerSets.md index b2cbe4c1..90913e5d 100644 --- a/old_docs/API_docs_v51/methods/messages_reorderStickerSets.md +++ b/old_docs/API_docs_v51/methods/messages_reorderStickerSets.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reorderStickerSets(['order' => [long, long], ]); diff --git a/old_docs/API_docs_v51/methods/messages_reportSpam.md b/old_docs/API_docs_v51/methods/messages_reportSpam.md index 2e2b1177..09c1e63b 100644 --- a/old_docs/API_docs_v51/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v51/methods/messages_reportSpam.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reportSpam(['peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v51/methods/messages_saveGif.md b/old_docs/API_docs_v51/methods/messages_saveGif.md index 6f608c4c..145039e7 100644 --- a/old_docs/API_docs_v51/methods/messages_saveGif.md +++ b/old_docs/API_docs_v51/methods/messages_saveGif.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->saveGif(['id' => InputDocument, 'unsave' => Bool, ]); diff --git a/old_docs/API_docs_v51/methods/messages_search.md b/old_docs/API_docs_v51/methods/messages_search.md index f63e235d..01af8760 100644 --- a/old_docs/API_docs_v51/methods/messages_search.md +++ b/old_docs/API_docs_v51/methods/messages_search.md @@ -50,12 +50,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->search(['important_only' => Bool, 'peer' => InputPeer, 'q' => 'string', 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v51/methods/messages_searchGifs.md b/old_docs/API_docs_v51/methods/messages_searchGifs.md index 103ebfeb..9677bf24 100644 --- a/old_docs/API_docs_v51/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v51/methods/messages_searchGifs.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_FoundGifs = $MadelineProto->messages->searchGifs(['q' => 'string', 'offset' => int, ]); diff --git a/old_docs/API_docs_v51/methods/messages_searchGlobal.md b/old_docs/API_docs_v51/methods/messages_searchGlobal.md index 0edd1e40..6ad4aec0 100644 --- a/old_docs/API_docs_v51/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v51/methods/messages_searchGlobal.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->searchGlobal(['q' => 'string', 'offset_date' => int, 'offset_peer' => InputPeer, 'offset_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v51/methods/messages_sendBroadcast.md b/old_docs/API_docs_v51/methods/messages_sendBroadcast.md index 28e248a9..6cff8b29 100644 --- a/old_docs/API_docs_v51/methods/messages_sendBroadcast.md +++ b/old_docs/API_docs_v51/methods/messages_sendBroadcast.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendBroadcast(['contacts' => [InputUser, InputUser], 'message' => 'string', 'media' => InputMedia, ]); diff --git a/old_docs/API_docs_v51/methods/messages_sendEncrypted.md b/old_docs/API_docs_v51/methods/messages_sendEncrypted.md index d48f88d7..76305f32 100644 --- a/old_docs/API_docs_v51/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v51/methods/messages_sendEncrypted.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v51/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v51/methods/messages_sendEncryptedFile.md index 4fd0648e..8db2ead9 100644 --- a/old_docs/API_docs_v51/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v51/methods/messages_sendEncryptedFile.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); diff --git a/old_docs/API_docs_v51/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v51/methods/messages_sendEncryptedService.md index d66894bf..c7836c94 100644 --- a/old_docs/API_docs_v51/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v51/methods/messages_sendEncryptedService.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v51/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v51/methods/messages_sendInlineBotResult.md index a2c2247d..2a1eeba1 100644 --- a/old_docs/API_docs_v51/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v51/methods/messages_sendInlineBotResult.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendInlineBotResult(['broadcast' => Bool, 'silent' => Bool, 'background' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'query_id' => long, 'id' => 'string', ]); diff --git a/old_docs/API_docs_v51/methods/messages_sendMedia.md b/old_docs/API_docs_v51/methods/messages_sendMedia.md index 4548e596..d8c20b9b 100644 --- a/old_docs/API_docs_v51/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v51/methods/messages_sendMedia.md @@ -63,12 +63,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendMedia(['broadcast' => Bool, 'silent' => Bool, 'background' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, 'reply_markup' => ReplyMarkup, ]); diff --git a/old_docs/API_docs_v51/methods/messages_sendMessage.md b/old_docs/API_docs_v51/methods/messages_sendMessage.md index 648e0617..b30daa8b 100644 --- a/old_docs/API_docs_v51/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v51/methods/messages_sendMessage.md @@ -65,12 +65,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendMessage(['no_webpage' => Bool, 'broadcast' => Bool, 'silent' => Bool, 'background' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v51/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v51/methods/messages_setBotCallbackAnswer.md index 06a7fb44..f15699a0 100644 --- a/old_docs/API_docs_v51/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v51/methods/messages_setBotCallbackAnswer.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setBotCallbackAnswer(['alert' => Bool, 'query_id' => long, 'message' => 'string', ]); diff --git a/old_docs/API_docs_v51/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v51/methods/messages_setEncryptedTyping.md index e9afe99c..4e7450eb 100644 --- a/old_docs/API_docs_v51/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v51/methods/messages_setEncryptedTyping.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); diff --git a/old_docs/API_docs_v51/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v51/methods/messages_setInlineBotResults.md index 79493009..d4ba6e65 100644 --- a/old_docs/API_docs_v51/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v51/methods/messages_setInlineBotResults.md @@ -52,12 +52,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setInlineBotResults(['gallery' => Bool, 'private' => Bool, 'query_id' => long, 'results' => [InputBotInlineResult, InputBotInlineResult], 'cache_time' => int, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, ]); diff --git a/old_docs/API_docs_v51/methods/messages_setTyping.md b/old_docs/API_docs_v51/methods/messages_setTyping.md index bea4982b..a2b94823 100644 --- a/old_docs/API_docs_v51/methods/messages_setTyping.md +++ b/old_docs/API_docs_v51/methods/messages_setTyping.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); diff --git a/old_docs/API_docs_v51/methods/messages_startBot.md b/old_docs/API_docs_v51/methods/messages_startBot.md index 94a4d86a..50d6f475 100644 --- a/old_docs/API_docs_v51/methods/messages_startBot.md +++ b/old_docs/API_docs_v51/methods/messages_startBot.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'peer' => InputPeer, 'start_param' => 'string', ]); diff --git a/old_docs/API_docs_v51/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v51/methods/messages_toggleChatAdmins.md index ab591fd9..349ea0e6 100644 --- a/old_docs/API_docs_v51/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v51/methods/messages_toggleChatAdmins.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => InputPeer, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v51/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v51/methods/messages_uninstallStickerSet.md index 6d04e847..26b2fbb3 100644 --- a/old_docs/API_docs_v51/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v51/methods/messages_uninstallStickerSet.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->uninstallStickerSet(['stickerset' => InputStickerSet, ]); diff --git a/old_docs/API_docs_v51/methods/photos_deletePhotos.md b/old_docs/API_docs_v51/methods/photos_deletePhotos.md index b9daca10..937aadd5 100644 --- a/old_docs/API_docs_v51/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v51/methods/photos_deletePhotos.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); diff --git a/old_docs/API_docs_v51/methods/photos_getUserPhotos.md b/old_docs/API_docs_v51/methods/photos_getUserPhotos.md index ea27a44f..d1c15e90 100644 --- a/old_docs/API_docs_v51/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v51/methods/photos_getUserPhotos.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => long, 'limit' => int, ]); diff --git a/old_docs/API_docs_v51/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v51/methods/photos_updateProfilePhoto.md index 2d1e1e76..4c5c517f 100644 --- a/old_docs/API_docs_v51/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v51/methods/photos_updateProfilePhoto.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, 'crop' => InputPhotoCrop, ]); diff --git a/old_docs/API_docs_v51/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v51/methods/photos_uploadProfilePhoto.md index 6ff4ddf5..3d7d301b 100644 --- a/old_docs/API_docs_v51/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v51/methods/photos_uploadProfilePhoto.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, 'caption' => 'string', 'geo_point' => InputGeoPoint, 'crop' => InputPhotoCrop, ]); diff --git a/old_docs/API_docs_v51/methods/users_getUsers.md b/old_docs/API_docs_v51/methods/users_getUsers.md index ef1c7fd8..bce13ee6 100644 --- a/old_docs/API_docs_v51/methods/users_getUsers.md +++ b/old_docs/API_docs_v51/methods/users_getUsers.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v53/README.md b/old_docs/API_docs_v53/README.md index 7e3f1528..260639d9 100644 --- a/old_docs/API_docs_v53/README.md +++ b/old_docs/API_docs_v53/README.md @@ -4,11 +4,11 @@ description: MadelineProto API documentation (layer v53) --- # MadelineProto API documentation (layer v53) +[Back to main documentation](..) + + [Methods](methods/) [Constructors](constructors/) -[Types](types/) - - -[Back to main documentation](..) +[Types](types/) \ No newline at end of file diff --git a/old_docs/API_docs_v53/methods/README.md b/old_docs/API_docs_v53/methods/README.md index fc8d1e19..b67bf866 100644 --- a/old_docs/API_docs_v53/methods/README.md +++ b/old_docs/API_docs_v53/methods/README.md @@ -1,391 +1,386 @@ --- title: Methods -description: List of methods +description: What do you want to do? --- -# Methods -[Back to API documentation index](..) +# What do you want to do? +[Go back to API documentation index](..) +[Go to the old code-version method index](api_index.html) -$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); +* [Logout](https://docs.madelineproto.xyz/logout.html) -$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); +* [Login](https://docs.madelineproto.xyz/docs/LOGIN.html) -$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); +* [Get all chats, broadcast a message to all chats](https://docs.madelineproto.xyz/docs/DIALOGS.html) -$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); +* [Get the full participant list of a channel/group/supergroup](https://docs.madelineproto.xyz/get_pwr_chat.html) -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); +* [Get full info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_full_info.html) +* [Get info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_info.html) -$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); +* [Get info about the currently logged-in user](https://docs.madelineproto.xyz/get_self.html) -$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); +* [Upload or download files up to 1.5 GB](https://docs.madelineproto.xyz/docs/FILES.html) -$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); +* [Make a phone call and play a song](https://docs.madelineproto.xyz/docs/CALLS.html) -$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); - -$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); - - -$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); - -$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); +* [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) *** -

$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) +

* Change the phone number associated to this account -$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Check if this username is available -$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Delete this account -$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) +* Get account TTL -$MadelineProto->[account->getAuthorizations](account_getAuthorizations.md)(\[\]) === [$account\_Authorizations](../types/account_Authorizations.md) +* Get all logged-in authorizations -$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) +* Get notification settings -$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md) +* Get the current password -$MadelineProto->[account->getPasswordSettings](account_getPasswordSettings.md)(\['current_password_hash' => [bytes](../types/bytes.md), \]) === [$account\_PasswordSettings](../types/account_PasswordSettings.md) +* Get the current 2FA settings -$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Get privacy settings -$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) +* Returns a list of available wallpapers. -$MadelineProto->[account->registerDevice](account_registerDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Register device for push notifications -$MadelineProto->[account->reportPeer](account_reportPeer.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reason' => [ReportReason](../types/ReportReason.md), \]) === [$Bool](../types/Bool.md) +* Report for spam -$MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) +* Delete a certain session -$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) +* Reset all notification settings -$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) +* Change the phone number -$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) +* Set account TTL -$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Set privacy settings -$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Stop sending PUSH notifications to app -$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Disable all notifications for a certain period -$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) +* Change notification settings -$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) +* Update the 2FA password settings -$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) +* Update profile info -$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Update online status -$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) +* Update this user's username *** -

$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) +

* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info -$MadelineProto->[auth->cancelCode](auth_cancelCode.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Invalidate sent phone code -$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) +* Check if this phone number is registered on telegram -$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) +* You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$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) +* You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->recoverPassword](auth_recoverPassword.md)(\['code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account -$MadelineProto->[auth->requestPasswordRecovery](auth_requestPasswordRecovery.md)(\[\]) === [$auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) +* Send an email to recover the 2FA password -$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) +* Resend the SMS verification code -$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) +* Delete all logged-in sessions. -$MadelineProto->[auth->sendCode](auth_sendCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'phone_number' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), 'api_id' => [int](../types/int.md), 'api_hash' => [string](../types/string.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) +* Use phone_login instead -$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Invite friends to telegram! -$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) +* You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) -$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) +* You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) *** -

$MadelineProto->[channels->checkUsername](channels_checkUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +

* Check if this username is free and can be assigned to a channel/supergroup -$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) +* Create channel/supergroup -$MadelineProto->[channels->deleteChannel](channels_deleteChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Delete a channel/supergroup -$MadelineProto->[channels->deleteMessages](channels_deleteMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Delete channel/supergroup messages -$MadelineProto->[channels->deleteUserHistory](channels_deleteUserHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Delete all messages of a user in a channel/supergroup -$MadelineProto->[channels->editAbout](channels_editAbout.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'about' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Edit the about text of a channel/supergroup -$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) +* Edit admin permissions of a user in a channel/supergroup -$MadelineProto->[channels->editPhoto](channels_editPhoto.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) +* Edit the photo of a supergroup/channel -$MadelineProto->[channels->editTitle](channels_editTitle.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Edit the title of a supergroup/channel -$MadelineProto->[channels->exportInvite](channels_exportInvite.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) +* Export the invite link of a channel -$MadelineProto->[channels->exportMessageLink](channels_exportMessageLink.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => [int](../types/int.md), \]) === [$ExportedMessageLink](../types/ExportedMessageLink.md) +* Get the link of a message in a channel -$MadelineProto->[channels->getChannels](channels_getChannels.md)(\['id' => \[[InputChannel](../types/InputChannel.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get info about multiple channels/supergroups -$MadelineProto->[channels->getFullChannel](channels_getFullChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) +* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[channels->getMessages](channels_getMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get channel/supergroup messages -$MadelineProto->[channels->getParticipant](channels_getParticipant.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) +* Get info about a certain channel/supergroup participant -$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) +* Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead) -$MadelineProto->[channels->inviteToChannel](channels_inviteToChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'users' => \[[InputUser](../types/InputUser.md)\], \]) === [$Updates](../types/Updates.md) +* Add users to channel/supergroup -$MadelineProto->[channels->joinChannel](channels_joinChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Join a channel/supergroup -$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) +* Kick user from channel -$MadelineProto->[channels->leaveChannel](channels_leaveChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Leave a channel/supergroup -$MadelineProto->[channels->readHistory](channels_readHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Mark channel/supergroup history as read -$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) +* Report a supergroup/channel for spam -$MadelineProto->[channels->toggleInvites](channels_toggleInvites.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Allow or disallow any user to invite users to this channel/supergroup -$MadelineProto->[channels->toggleSignatures](channels_toggleSignatures.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Toggle channel signatures -$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) +* Set the pinned message of a channel/supergroup -$MadelineProto->[channels->updateUsername](channels_updateUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Update the username of a supergroup/channel *** -

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +

* Block a user -$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) +* Delete a contact -$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) +* Delete multiple contacts -$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) +* Export contact as card -$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) +* Get blocked users -$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [string](../types/string.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) +* Get info about a certain contact -$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) +* Get online status of all users -$MadelineProto->[contacts->getTopPeers](contacts_getTopPeers.md)(\['correspondents' => [Bool](../types/Bool.md), 'bots_pm' => [Bool](../types/Bool.md), 'bots_inline' => [Bool](../types/Bool.md), 'groups' => [Bool](../types/Bool.md), 'channels' => [Bool](../types/Bool.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'hash' => [int](../types/int.md), \]) === [$contacts\_TopPeers](../types/contacts_TopPeers.md) +* Get most used chats -$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) +* Import card as contact -$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], 'replace' => [Bool](../types/Bool.md), \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) +* Add phone number as contact -$MadelineProto->[contacts->resetTopPeerRating](contacts_resetTopPeerRating.md)(\['category' => [TopPeerCategory](../types/TopPeerCategory.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Reset top peer rating for a certain category/peer -$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) +* You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) +* Search contacts -$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +* Unblock a user *** -

$MadelineProto->[help->getAppChangelog](help_getAppChangelog.md)(\[\]) === [$help\_AppChangelog](../types/help_AppChangelog.md) +

* Get the changelog of this app -$MadelineProto->[help->getAppUpdate](help_getAppUpdate.md)(\[\]) === [$help\_AppUpdate](../types/help_AppUpdate.md) +* Get info about app updates -$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) +* Get server configuration -$MadelineProto->[help->getInviteText](help_getInviteText.md)(\[\]) === [$help\_InviteText](../types/help_InviteText.md) +* Get invitation text -$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) +* Get nearest datacenter -$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) +* Get info of support user -$MadelineProto->[help->getTermsOfService](help_getTermsOfService.md)(\[\]) === [$help\_TermsOfService](../types/help_TermsOfService.md) +* Get terms of service -$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) +* Log data for developer of this app *** -

$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) +

* Initializes connection and save information on the user's device and application. *** -

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invokes a query after successfull completion of one of the previous queries. *** -

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Result type returned by a current query. *** -

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invoke this method with layer X *** -

$MadelineProto->[invokeWithoutUpdates](invokeWithoutUpdates.md)(\['query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invoke with method without returning updates in the socket *** -

$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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Add a user to a normal chat (use channels->inviteToChannel for supergroups) -$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md) +* Check if an invitation link is valid -$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Create a chat (not supergroup) -$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md) +* Delete a user from a chat (not supergroup) -$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['just_clear' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Delete chat history -$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Delete messages -$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Edit admin permissions -$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) +* Edit the photo of a normal chat (not supergroup) -$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Edit the title of a normal chat (not supergroup) -$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) +* Edit a sent inline message -$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) +* Edit a message -$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) +* Export chat invite -$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) +* Forward message -$MadelineProto->[messages->forwardMessages](messages_forwardMessages.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) +* Forward messages -$MadelineProto->[messages->getAllDrafts](messages_getAllDrafts.md)(\[\]) === [$Updates](../types/Updates.md) +* Get all message drafts -$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) +* Get all stickerpacks -$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) +* Get the callback answer of a bot (after clicking a button) -$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get info about chats -$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) +* You cannot use this method directly, instead use $MadelineProto->get_dh_config(); -$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) +* Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html -$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) +* Get document by SHA256 hash -$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) +* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$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) +* Get previous messages of a group -$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) +* Call inline bot -$MadelineProto->[messages->getMessageEditData](messages_getMessageEditData.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$messages\_MessageEditData](../types/messages_MessageEditData.md) +* Check if about to edit a message or a media caption -$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get messages -$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) +* Get and increase message views -$MadelineProto->[messages->getPeerDialogs](messages_getPeerDialogs.md)(\['peers' => \[[InputPeer](../types/InputPeer.md)\], \]) === [$messages\_PeerDialogs](../types/messages_PeerDialogs.md) +* Get dialog info of peers -$MadelineProto->[messages->getPeerSettings](messages_getPeerSettings.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$PeerSettings](../types/PeerSettings.md) +* Get the settings of apeer -$MadelineProto->[messages->getSavedGifs](messages_getSavedGifs.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_SavedGifs](../types/messages_SavedGifs.md) +* Get saved gifs -$MadelineProto->[messages->getStickerSet](messages_getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) +* Get a stickerset -$MadelineProto->[messages->getStickers](messages_getStickers.md)(\['emoticon' => [string](../types/string.md), 'hash' => [string](../types/string.md), \]) === [$messages\_Stickers](../types/messages_Stickers.md) +* Get stickers -$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) === [$MessageMedia](../types/MessageMedia.md) +* Get webpage preview -$MadelineProto->[messages->hideReportSpam](messages_hideReportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Hide report spam popup -$MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Import chat invite -$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'disabled' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Add a sticker set -$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) +* Convert chat to supergroup -$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Mark messages as read in secret chats -$MadelineProto->[messages->readHistory](messages_readHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Mark messages as read -$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Mark message as read -$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_ReceivedNotifyMessage](../types/ReceivedNotifyMessage.md) +* Mark messages as read -$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) +* You cannot use this method directly -$MadelineProto->[messages->reorderStickerSets](messages_reorderStickerSets.md)(\['order' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) +* Reorder sticker sets -$MadelineProto->[messages->reportSpam](messages_reportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Report a peer for spam -$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$MadelineProto->[messages->saveDraft](messages_saveDraft.md)(\['no_webpage' => [Bool](../types/Bool.md), 'reply_to_msg_id' => [int](../types/int.md), 'peer' => [InputPeer](../types/InputPeer.md), 'message' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Bool](../types/Bool.md) +* Save a message draft -$MadelineProto->[messages->saveGif](messages_saveGif.md)(\['id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Save a GIF -$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) +* Search peers or messages -$MadelineProto->[messages->searchGifs](messages_searchGifs.md)(\['q' => [string](../types/string.md), 'offset' => [int](../types/int.md), \]) === [$messages\_FoundGifs](../types/messages_FoundGifs.md) +* Search gifs -$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) +* Global message search -$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) +* Send a message to all users in the chat list -$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send message to secret chat -$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) +* Send a file to a secret chat -$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send a service message to a secret chat -$MadelineProto->[messages->sendInlineBotResult](messages_sendInlineBotResult.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'query_id' => [long](../types/long.md), 'id' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Send a received bot result to the chat -$MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'media' => [InputMedia](../types/InputMedia.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \]) === [$Updates](../types/Updates.md) +* Send a media -$MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Updates](../types/Updates.md) +* Send a message -$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) +* Bots only: set the callback answer (after a button was clicked) -$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Send typing notification to secret chat -$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) +* Bots only: set the results of an inline query -$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) +* Change typing status -$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) +* Start a bot -$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Enable all users are admins in normal groups (not supergroups) -$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) +* Remove a sticker set *** -

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) +

* Delete profile photos -$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) +* Get the profile photos of a user -$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), 'crop' => [InputPhotoCrop](../types/InputPhotoCrop.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) +* Update the profile photo (use photos->uploadProfilePhoto to upload the photo) -$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) +* Upload profile photo *** -

$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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates -$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) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates -$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates *** -

$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) +

* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info *** -

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) +

* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) +* Get info about users diff --git a/old_docs/API_docs_v53/methods/account_changePhone.md b/old_docs/API_docs_v53/methods/account_changePhone.md index aeb5c4bc..65f0b0d0 100644 --- a/old_docs/API_docs_v53/methods/account_changePhone.md +++ b/old_docs/API_docs_v53/methods/account_changePhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); diff --git a/old_docs/API_docs_v53/methods/account_checkUsername.md b/old_docs/API_docs_v53/methods/account_checkUsername.md index 0124bb38..08107762 100644 --- a/old_docs/API_docs_v53/methods/account_checkUsername.md +++ b/old_docs/API_docs_v53/methods/account_checkUsername.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v53/methods/account_deleteAccount.md b/old_docs/API_docs_v53/methods/account_deleteAccount.md index e8b46c24..3a6f4700 100644 --- a/old_docs/API_docs_v53/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v53/methods/account_deleteAccount.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); diff --git a/old_docs/API_docs_v53/methods/account_getAccountTTL.md b/old_docs/API_docs_v53/methods/account_getAccountTTL.md index 0cdd0b98..ab6a6ea1 100644 --- a/old_docs/API_docs_v53/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v53/methods/account_getAccountTTL.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); diff --git a/old_docs/API_docs_v53/methods/account_getAuthorizations.md b/old_docs/API_docs_v53/methods/account_getAuthorizations.md index f92db8fe..303203e4 100644 --- a/old_docs/API_docs_v53/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v53/methods/account_getAuthorizations.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_Authorizations = $MadelineProto->account->getAuthorizations(); diff --git a/old_docs/API_docs_v53/methods/account_getNotifySettings.md b/old_docs/API_docs_v53/methods/account_getNotifySettings.md index f00be12c..ad492f49 100644 --- a/old_docs/API_docs_v53/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v53/methods/account_getNotifySettings.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); diff --git a/old_docs/API_docs_v53/methods/account_getPassword.md b/old_docs/API_docs_v53/methods/account_getPassword.md index c189421d..2692dab1 100644 --- a/old_docs/API_docs_v53/methods/account_getPassword.md +++ b/old_docs/API_docs_v53/methods/account_getPassword.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_Password = $MadelineProto->account->getPassword(); diff --git a/old_docs/API_docs_v53/methods/account_getPasswordSettings.md b/old_docs/API_docs_v53/methods/account_getPasswordSettings.md index 96cb953e..2039d405 100644 --- a/old_docs/API_docs_v53/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v53/methods/account_getPasswordSettings.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PasswordSettings = $MadelineProto->account->getPasswordSettings(['current_password_hash' => 'bytes', ]); diff --git a/old_docs/API_docs_v53/methods/account_getPrivacy.md b/old_docs/API_docs_v53/methods/account_getPrivacy.md index 979bfb94..5480ffbb 100644 --- a/old_docs/API_docs_v53/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v53/methods/account_getPrivacy.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); diff --git a/old_docs/API_docs_v53/methods/account_getWallPapers.md b/old_docs/API_docs_v53/methods/account_getWallPapers.md index 89b281be..7c8bff39 100644 --- a/old_docs/API_docs_v53/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v53/methods/account_getWallPapers.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); diff --git a/old_docs/API_docs_v53/methods/account_registerDevice.md b/old_docs/API_docs_v53/methods/account_registerDevice.md index cd28abcd..4e148a7f 100644 --- a/old_docs/API_docs_v53/methods/account_registerDevice.md +++ b/old_docs/API_docs_v53/methods/account_registerDevice.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', ]); diff --git a/old_docs/API_docs_v53/methods/account_reportPeer.md b/old_docs/API_docs_v53/methods/account_reportPeer.md index a07c87d0..c5fe7073 100644 --- a/old_docs/API_docs_v53/methods/account_reportPeer.md +++ b/old_docs/API_docs_v53/methods/account_reportPeer.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->reportPeer(['peer' => InputPeer, 'reason' => ReportReason, ]); diff --git a/old_docs/API_docs_v53/methods/account_resetAuthorization.md b/old_docs/API_docs_v53/methods/account_resetAuthorization.md index 4155d3c8..543aee08 100644 --- a/old_docs/API_docs_v53/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v53/methods/account_resetAuthorization.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetAuthorization(['hash' => long, ]); diff --git a/old_docs/API_docs_v53/methods/account_resetNotifySettings.md b/old_docs/API_docs_v53/methods/account_resetNotifySettings.md index ccc836a9..557373b0 100644 --- a/old_docs/API_docs_v53/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v53/methods/account_resetNotifySettings.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); diff --git a/old_docs/API_docs_v53/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v53/methods/account_sendChangePhoneCode.md index c9f9c174..bdf7331f 100644 --- a/old_docs/API_docs_v53/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v53/methods/account_sendChangePhoneCode.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendChangePhoneCode(['allow_flashcall' => Bool, 'phone_number' => 'string', 'current_number' => Bool, ]); diff --git a/old_docs/API_docs_v53/methods/account_setAccountTTL.md b/old_docs/API_docs_v53/methods/account_setAccountTTL.md index 5100e62e..bacdd77a 100644 --- a/old_docs/API_docs_v53/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v53/methods/account_setAccountTTL.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); diff --git a/old_docs/API_docs_v53/methods/account_setPrivacy.md b/old_docs/API_docs_v53/methods/account_setPrivacy.md index fbcedae7..6e24ded7 100644 --- a/old_docs/API_docs_v53/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v53/methods/account_setPrivacy.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); diff --git a/old_docs/API_docs_v53/methods/account_unregisterDevice.md b/old_docs/API_docs_v53/methods/account_unregisterDevice.md index 1d2b7670..b666d91a 100644 --- a/old_docs/API_docs_v53/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v53/methods/account_unregisterDevice.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); diff --git a/old_docs/API_docs_v53/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v53/methods/account_updateDeviceLocked.md index ef816501..cd52093a 100644 --- a/old_docs/API_docs_v53/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v53/methods/account_updateDeviceLocked.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); diff --git a/old_docs/API_docs_v53/methods/account_updateNotifySettings.md b/old_docs/API_docs_v53/methods/account_updateNotifySettings.md index 18cbdb75..db020309 100644 --- a/old_docs/API_docs_v53/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v53/methods/account_updateNotifySettings.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); diff --git a/old_docs/API_docs_v53/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v53/methods/account_updatePasswordSettings.md index 0754dd63..8af1e37f 100644 --- a/old_docs/API_docs_v53/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v53/methods/account_updatePasswordSettings.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updatePasswordSettings(['current_password_hash' => 'bytes', 'new_settings' => account_PasswordInputSettings, ]); diff --git a/old_docs/API_docs_v53/methods/account_updateProfile.md b/old_docs/API_docs_v53/methods/account_updateProfile.md index e24ef2f5..59629188 100644 --- a/old_docs/API_docs_v53/methods/account_updateProfile.md +++ b/old_docs/API_docs_v53/methods/account_updateProfile.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', 'about' => 'string', ]); diff --git a/old_docs/API_docs_v53/methods/account_updateStatus.md b/old_docs/API_docs_v53/methods/account_updateStatus.md index 4b049e65..50b99b1e 100644 --- a/old_docs/API_docs_v53/methods/account_updateStatus.md +++ b/old_docs/API_docs_v53/methods/account_updateStatus.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); diff --git a/old_docs/API_docs_v53/methods/account_updateUsername.md b/old_docs/API_docs_v53/methods/account_updateUsername.md index 08d2abe0..7276e2aa 100644 --- a/old_docs/API_docs_v53/methods/account_updateUsername.md +++ b/old_docs/API_docs_v53/methods/account_updateUsername.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v53/methods/api_README.md b/old_docs/API_docs_v53/methods/api_README.md new file mode 100644 index 00000000..d7354643 --- /dev/null +++ b/old_docs/API_docs_v53/methods/api_README.md @@ -0,0 +1,392 @@ +--- +title: Methods +description: List of methods +--- +# Methods +[Back to API documentation index](..) + +[Go to the new description-version method index](index.html) + +$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); + +$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); + +$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); + +$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); + +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); + + +$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); + +$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); + +$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); + +$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); + +$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); + + +$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); + +$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); + +*** +

$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) + +$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) + +$MadelineProto->[account->getAuthorizations](account_getAuthorizations.md)(\[\]) === [$account\_Authorizations](../types/account_Authorizations.md) + +$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) + +$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md) + +$MadelineProto->[account->getPasswordSettings](account_getPasswordSettings.md)(\['current_password_hash' => [bytes](../types/bytes.md), \]) === [$account\_PasswordSettings](../types/account_PasswordSettings.md) + +$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) + +$MadelineProto->[account->registerDevice](account_registerDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->reportPeer](account_reportPeer.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reason' => [ReportReason](../types/ReportReason.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$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) + +$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) + +*** +

$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) + +$MadelineProto->[auth->cancelCode](auth_cancelCode.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) + +$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) + +$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$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) + +$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->recoverPassword](auth_recoverPassword.md)(\['code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->requestPasswordRecovery](auth_requestPasswordRecovery.md)(\[\]) === [$auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) + +$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) + +$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->sendCode](auth_sendCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'phone_number' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), 'api_id' => [int](../types/int.md), 'api_hash' => [string](../types/string.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) + +$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$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) + +*** +

$MadelineProto->[channels->checkUsername](channels_checkUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->deleteChannel](channels_deleteChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->deleteMessages](channels_deleteMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[channels->deleteUserHistory](channels_deleteUserHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[channels->editAbout](channels_editAbout.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'about' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->editPhoto](channels_editPhoto.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->editTitle](channels_editTitle.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->exportInvite](channels_exportInvite.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) + +$MadelineProto->[channels->exportMessageLink](channels_exportMessageLink.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => [int](../types/int.md), \]) === [$ExportedMessageLink](../types/ExportedMessageLink.md) + +$MadelineProto->[channels->getChannels](channels_getChannels.md)(\['id' => \[[InputChannel](../types/InputChannel.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[channels->getFullChannel](channels_getFullChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$MadelineProto->[channels->getMessages](channels_getMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) + +$MadelineProto->[channels->getParticipant](channels_getParticipant.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) + +$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) + +$MadelineProto->[channels->inviteToChannel](channels_inviteToChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'users' => \[[InputUser](../types/InputUser.md)\], \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->joinChannel](channels_joinChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$MadelineProto->[channels->leaveChannel](channels_leaveChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->readHistory](channels_readHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->toggleInvites](channels_toggleInvites.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->toggleSignatures](channels_toggleSignatures.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$MadelineProto->[channels->updateUsername](channels_updateUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) + +$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) + +$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) + +$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [string](../types/string.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) + +$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) + +$MadelineProto->[contacts->getTopPeers](contacts_getTopPeers.md)(\['correspondents' => [Bool](../types/Bool.md), 'bots_pm' => [Bool](../types/Bool.md), 'bots_inline' => [Bool](../types/Bool.md), 'groups' => [Bool](../types/Bool.md), 'channels' => [Bool](../types/Bool.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'hash' => [int](../types/int.md), \]) === [$contacts\_TopPeers](../types/contacts_TopPeers.md) + +$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) + +$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], 'replace' => [Bool](../types/Bool.md), \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) + +$MadelineProto->[contacts->resetTopPeerRating](contacts_resetTopPeerRating.md)(\['category' => [TopPeerCategory](../types/TopPeerCategory.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) + +$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) + +$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[help->getAppChangelog](help_getAppChangelog.md)(\[\]) === [$help\_AppChangelog](../types/help_AppChangelog.md) + +$MadelineProto->[help->getAppUpdate](help_getAppUpdate.md)(\[\]) === [$help\_AppUpdate](../types/help_AppUpdate.md) + +$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) + +$MadelineProto->[help->getInviteText](help_getInviteText.md)(\[\]) === [$help\_InviteText](../types/help_InviteText.md) + +$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) + +$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) + +$MadelineProto->[help->getTermsOfService](help_getTermsOfService.md)(\[\]) === [$help\_TermsOfService](../types/help_TermsOfService.md) + +$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) + +*** +

$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) + +*** +

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeWithoutUpdates](invokeWithoutUpdates.md)(\['query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$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) + +$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) + +$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md) + +$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['just_clear' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$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) + +$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) + +$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->forwardMessages](messages_forwardMessages.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) + +$MadelineProto->[messages->getAllDrafts](messages_getAllDrafts.md)(\[\]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) + +$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) + +$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) + +$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) + +$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) + +$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$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) + +$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) + +$MadelineProto->[messages->getMessageEditData](messages_getMessageEditData.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$messages\_MessageEditData](../types/messages_MessageEditData.md) + +$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) + +$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) + +$MadelineProto->[messages->getPeerDialogs](messages_getPeerDialogs.md)(\['peers' => \[[InputPeer](../types/InputPeer.md)\], \]) === [$messages\_PeerDialogs](../types/messages_PeerDialogs.md) + +$MadelineProto->[messages->getPeerSettings](messages_getPeerSettings.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$PeerSettings](../types/PeerSettings.md) + +$MadelineProto->[messages->getSavedGifs](messages_getSavedGifs.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_SavedGifs](../types/messages_SavedGifs.md) + +$MadelineProto->[messages->getStickerSet](messages_getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +$MadelineProto->[messages->getStickers](messages_getStickers.md)(\['emoticon' => [string](../types/string.md), 'hash' => [string](../types/string.md), \]) === [$messages\_Stickers](../types/messages_Stickers.md) + +$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) === [$MessageMedia](../types/MessageMedia.md) + +$MadelineProto->[messages->hideReportSpam](messages_hideReportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'disabled' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->readHistory](messages_readHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_ReceivedNotifyMessage](../types/ReceivedNotifyMessage.md) + +$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) + +$MadelineProto->[messages->reorderStickerSets](messages_reorderStickerSets.md)(\['order' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->reportSpam](messages_reportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) + +$MadelineProto->[messages->saveDraft](messages_saveDraft.md)(\['no_webpage' => [Bool](../types/Bool.md), 'reply_to_msg_id' => [int](../types/int.md), 'peer' => [InputPeer](../types/InputPeer.md), 'message' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->saveGif](messages_saveGif.md)(\['id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->searchGifs](messages_searchGifs.md)(\['q' => [string](../types/string.md), 'offset' => [int](../types/int.md), \]) === [$messages\_FoundGifs](../types/messages_FoundGifs.md) + +$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) + +$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) + +$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$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) + +$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$MadelineProto->[messages->sendInlineBotResult](messages_sendInlineBotResult.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'query_id' => [long](../types/long.md), 'id' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'media' => [InputMedia](../types/InputMedia.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Updates](../types/Updates.md) + +$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) + +$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) + +$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) + +$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), 'crop' => [InputPhotoCrop](../types/InputPhotoCrop.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) + +$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) + +*** +

$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) + +$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) + +$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) + +*** +

$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) + +$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) + +$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) + +*** +

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) + +$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) + diff --git a/old_docs/API_docs_v53/methods/auth_cancelCode.md b/old_docs/API_docs_v53/methods/auth_cancelCode.md index 2ad15548..52b85d4c 100644 --- a/old_docs/API_docs_v53/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v53/methods/auth_cancelCode.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->cancelCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v53/methods/auth_checkPhone.md b/old_docs/API_docs_v53/methods/auth_checkPhone.md index 291221de..1826ce63 100644 --- a/old_docs/API_docs_v53/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v53/methods/auth_checkPhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); diff --git a/old_docs/API_docs_v53/methods/auth_recoverPassword.md b/old_docs/API_docs_v53/methods/auth_recoverPassword.md index cdc9bd7d..5e37b0f3 100644 --- a/old_docs/API_docs_v53/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v53/methods/auth_recoverPassword.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_Authorization = $MadelineProto->auth->recoverPassword(['code' => 'string', ]); diff --git a/old_docs/API_docs_v53/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v53/methods/auth_requestPasswordRecovery.md index e18c6c93..c69d0c49 100644 --- a/old_docs/API_docs_v53/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v53/methods/auth_requestPasswordRecovery.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_PasswordRecovery = $MadelineProto->auth->requestPasswordRecovery(); diff --git a/old_docs/API_docs_v53/methods/auth_resendCode.md b/old_docs/API_docs_v53/methods/auth_resendCode.md index de437402..253480a3 100644 --- a/old_docs/API_docs_v53/methods/auth_resendCode.md +++ b/old_docs/API_docs_v53/methods/auth_resendCode.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_SentCode = $MadelineProto->auth->resendCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v53/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v53/methods/auth_resetAuthorizations.md index 47feea16..a46c880d 100644 --- a/old_docs/API_docs_v53/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v53/methods/auth_resetAuthorizations.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); diff --git a/old_docs/API_docs_v53/methods/auth_sendInvites.md b/old_docs/API_docs_v53/methods/auth_sendInvites.md index be32fe6b..9b88b4a3 100644 --- a/old_docs/API_docs_v53/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v53/methods/auth_sendInvites.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); diff --git a/old_docs/API_docs_v53/methods/channels_checkUsername.md b/old_docs/API_docs_v53/methods/channels_checkUsername.md index 7bc7c245..7e3d5a89 100644 --- a/old_docs/API_docs_v53/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v53/methods/channels_checkUsername.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->checkUsername(['channel' => InputChannel, 'username' => 'string', ]); diff --git a/old_docs/API_docs_v53/methods/channels_createChannel.md b/old_docs/API_docs_v53/methods/channels_createChannel.md index 1305e4fb..a5ddc379 100644 --- a/old_docs/API_docs_v53/methods/channels_createChannel.md +++ b/old_docs/API_docs_v53/methods/channels_createChannel.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->createChannel(['broadcast' => Bool, 'megagroup' => Bool, 'title' => 'string', 'about' => 'string', ]); diff --git a/old_docs/API_docs_v53/methods/channels_deleteChannel.md b/old_docs/API_docs_v53/methods/channels_deleteChannel.md index e660d25c..69dad9a3 100644 --- a/old_docs/API_docs_v53/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v53/methods/channels_deleteChannel.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->deleteChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v53/methods/channels_deleteMessages.md b/old_docs/API_docs_v53/methods/channels_deleteMessages.md index fb9d3cc2..b12270b3 100644 --- a/old_docs/API_docs_v53/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v53/methods/channels_deleteMessages.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v53/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v53/methods/channels_deleteUserHistory.md index fbe34341..75f531bb 100644 --- a/old_docs/API_docs_v53/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v53/methods/channels_deleteUserHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->channels->deleteUserHistory(['channel' => InputChannel, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v53/methods/channels_editAbout.md b/old_docs/API_docs_v53/methods/channels_editAbout.md index 8908f29e..67521065 100644 --- a/old_docs/API_docs_v53/methods/channels_editAbout.md +++ b/old_docs/API_docs_v53/methods/channels_editAbout.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->editAbout(['channel' => InputChannel, 'about' => 'string', ]); diff --git a/old_docs/API_docs_v53/methods/channels_editAdmin.md b/old_docs/API_docs_v53/methods/channels_editAdmin.md index 01662a1d..7b6cc0f1 100644 --- a/old_docs/API_docs_v53/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v53/methods/channels_editAdmin.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editAdmin(['channel' => InputChannel, 'user_id' => InputUser, 'role' => ChannelParticipantRole, ]); diff --git a/old_docs/API_docs_v53/methods/channels_editPhoto.md b/old_docs/API_docs_v53/methods/channels_editPhoto.md index 9ccd864f..c854c64a 100644 --- a/old_docs/API_docs_v53/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v53/methods/channels_editPhoto.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editPhoto(['channel' => InputChannel, 'photo' => InputChatPhoto, ]); diff --git a/old_docs/API_docs_v53/methods/channels_editTitle.md b/old_docs/API_docs_v53/methods/channels_editTitle.md index b1024faf..9bc6773e 100644 --- a/old_docs/API_docs_v53/methods/channels_editTitle.md +++ b/old_docs/API_docs_v53/methods/channels_editTitle.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editTitle(['channel' => InputChannel, 'title' => 'string', ]); diff --git a/old_docs/API_docs_v53/methods/channels_exportInvite.md b/old_docs/API_docs_v53/methods/channels_exportInvite.md index f0c737d5..ca65dcc8 100644 --- a/old_docs/API_docs_v53/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v53/methods/channels_exportInvite.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedChatInvite = $MadelineProto->channels->exportInvite(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v53/methods/channels_exportMessageLink.md b/old_docs/API_docs_v53/methods/channels_exportMessageLink.md index f910b594..b4a3c645 100644 --- a/old_docs/API_docs_v53/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v53/methods/channels_exportMessageLink.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedMessageLink = $MadelineProto->channels->exportMessageLink(['channel' => InputChannel, 'id' => int, ]); diff --git a/old_docs/API_docs_v53/methods/channels_getChannels.md b/old_docs/API_docs_v53/methods/channels_getChannels.md index 9cd9e798..af22556f 100644 --- a/old_docs/API_docs_v53/methods/channels_getChannels.md +++ b/old_docs/API_docs_v53/methods/channels_getChannels.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel, InputChannel], ]); diff --git a/old_docs/API_docs_v53/methods/channels_getMessages.md b/old_docs/API_docs_v53/methods/channels_getMessages.md index cc944fe5..eda13d0b 100644 --- a/old_docs/API_docs_v53/methods/channels_getMessages.md +++ b/old_docs/API_docs_v53/methods/channels_getMessages.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v53/methods/channels_getParticipant.md b/old_docs/API_docs_v53/methods/channels_getParticipant.md index db9b1fc6..be5fe96a 100644 --- a/old_docs/API_docs_v53/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v53/methods/channels_getParticipant.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $channels_ChannelParticipant = $MadelineProto->channels->getParticipant(['channel' => InputChannel, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v53/methods/channels_getParticipants.md b/old_docs/API_docs_v53/methods/channels_getParticipants.md index 96662466..6a27016b 100644 --- a/old_docs/API_docs_v53/methods/channels_getParticipants.md +++ b/old_docs/API_docs_v53/methods/channels_getParticipants.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $channels_ChannelParticipants = $MadelineProto->channels->getParticipants(['channel' => InputChannel, 'filter' => ChannelParticipantsFilter, 'offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v53/methods/channels_inviteToChannel.md b/old_docs/API_docs_v53/methods/channels_inviteToChannel.md index 676f800c..e7d12db7 100644 --- a/old_docs/API_docs_v53/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v53/methods/channels_inviteToChannel.md @@ -52,12 +52,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v53/methods/channels_joinChannel.md b/old_docs/API_docs_v53/methods/channels_joinChannel.md index 721f707c..3ac2b326 100644 --- a/old_docs/API_docs_v53/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v53/methods/channels_joinChannel.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->joinChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v53/methods/channels_kickFromChannel.md b/old_docs/API_docs_v53/methods/channels_kickFromChannel.md index bf8bb5b8..8f6c92be 100644 --- a/old_docs/API_docs_v53/methods/channels_kickFromChannel.md +++ b/old_docs/API_docs_v53/methods/channels_kickFromChannel.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->kickFromChannel(['channel' => InputChannel, 'user_id' => InputUser, 'kicked' => Bool, ]); diff --git a/old_docs/API_docs_v53/methods/channels_leaveChannel.md b/old_docs/API_docs_v53/methods/channels_leaveChannel.md index 7f02e08c..95b60a90 100644 --- a/old_docs/API_docs_v53/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v53/methods/channels_leaveChannel.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->leaveChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v53/methods/channels_readHistory.md b/old_docs/API_docs_v53/methods/channels_readHistory.md index cca891f0..c6b14541 100644 --- a/old_docs/API_docs_v53/methods/channels_readHistory.md +++ b/old_docs/API_docs_v53/methods/channels_readHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->readHistory(['channel' => InputChannel, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v53/methods/channels_reportSpam.md b/old_docs/API_docs_v53/methods/channels_reportSpam.md index 09af14e0..ca5c28f5 100644 --- a/old_docs/API_docs_v53/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v53/methods/channels_reportSpam.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v53/methods/channels_toggleInvites.md b/old_docs/API_docs_v53/methods/channels_toggleInvites.md index 5b541f67..e9e6450d 100644 --- a/old_docs/API_docs_v53/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v53/methods/channels_toggleInvites.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->toggleInvites(['channel' => InputChannel, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v53/methods/channels_toggleSignatures.md b/old_docs/API_docs_v53/methods/channels_toggleSignatures.md index f233a8e1..36d1eccb 100644 --- a/old_docs/API_docs_v53/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v53/methods/channels_toggleSignatures.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->toggleSignatures(['channel' => InputChannel, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v53/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v53/methods/channels_updatePinnedMessage.md index f06d1f0f..f8d10ece 100644 --- a/old_docs/API_docs_v53/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v53/methods/channels_updatePinnedMessage.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->updatePinnedMessage(['silent' => Bool, 'channel' => InputChannel, 'id' => int, ]); diff --git a/old_docs/API_docs_v53/methods/channels_updateUsername.md b/old_docs/API_docs_v53/methods/channels_updateUsername.md index ad34490a..2093b6ce 100644 --- a/old_docs/API_docs_v53/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v53/methods/channels_updateUsername.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->updateUsername(['channel' => InputChannel, 'username' => 'string', ]); diff --git a/old_docs/API_docs_v53/methods/contacts_block.md b/old_docs/API_docs_v53/methods/contacts_block.md index d0729d30..e592cace 100644 --- a/old_docs/API_docs_v53/methods/contacts_block.md +++ b/old_docs/API_docs_v53/methods/contacts_block.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v53/methods/contacts_deleteContact.md b/old_docs/API_docs_v53/methods/contacts_deleteContact.md index b8c17544..1a3f2a27 100644 --- a/old_docs/API_docs_v53/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v53/methods/contacts_deleteContact.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v53/methods/contacts_deleteContacts.md b/old_docs/API_docs_v53/methods/contacts_deleteContacts.md index 64c69460..f6627599 100644 --- a/old_docs/API_docs_v53/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v53/methods/contacts_deleteContacts.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v53/methods/contacts_exportCard.md b/old_docs/API_docs_v53/methods/contacts_exportCard.md index b05f57ce..1d2129f3 100644 --- a/old_docs/API_docs_v53/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v53/methods/contacts_exportCard.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); diff --git a/old_docs/API_docs_v53/methods/contacts_getBlocked.md b/old_docs/API_docs_v53/methods/contacts_getBlocked.md index d7d8c5cc..44d24aba 100644 --- a/old_docs/API_docs_v53/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v53/methods/contacts_getBlocked.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v53/methods/contacts_getContacts.md b/old_docs/API_docs_v53/methods/contacts_getContacts.md index 1ab8af27..83c4846f 100644 --- a/old_docs/API_docs_v53/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v53/methods/contacts_getContacts.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v53/methods/contacts_getStatuses.md b/old_docs/API_docs_v53/methods/contacts_getStatuses.md index b927a140..5cef3084 100644 --- a/old_docs/API_docs_v53/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v53/methods/contacts_getStatuses.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); diff --git a/old_docs/API_docs_v53/methods/contacts_getTopPeers.md b/old_docs/API_docs_v53/methods/contacts_getTopPeers.md index 2bad9a2a..8d39809c 100644 --- a/old_docs/API_docs_v53/methods/contacts_getTopPeers.md +++ b/old_docs/API_docs_v53/methods/contacts_getTopPeers.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_TopPeers = $MadelineProto->contacts->getTopPeers(['correspondents' => Bool, 'bots_pm' => Bool, 'bots_inline' => Bool, 'groups' => Bool, 'channels' => Bool, 'offset' => int, 'limit' => int, 'hash' => int, ]); diff --git a/old_docs/API_docs_v53/methods/contacts_importCard.md b/old_docs/API_docs_v53/methods/contacts_importCard.md index 81a1e138..89c96657 100644 --- a/old_docs/API_docs_v53/methods/contacts_importCard.md +++ b/old_docs/API_docs_v53/methods/contacts_importCard.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); diff --git a/old_docs/API_docs_v53/methods/contacts_importContacts.md b/old_docs/API_docs_v53/methods/contacts_importContacts.md index 578e5dfd..cd3d6615 100644 --- a/old_docs/API_docs_v53/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v53/methods/contacts_importContacts.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], 'replace' => Bool, ]); diff --git a/old_docs/API_docs_v53/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v53/methods/contacts_resetTopPeerRating.md index 4b485921..4b5e96f1 100644 --- a/old_docs/API_docs_v53/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v53/methods/contacts_resetTopPeerRating.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->resetTopPeerRating(['category' => TopPeerCategory, 'peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v53/methods/contacts_search.md b/old_docs/API_docs_v53/methods/contacts_search.md index 68daecd6..64ff748e 100644 --- a/old_docs/API_docs_v53/methods/contacts_search.md +++ b/old_docs/API_docs_v53/methods/contacts_search.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); diff --git a/old_docs/API_docs_v53/methods/contacts_unblock.md b/old_docs/API_docs_v53/methods/contacts_unblock.md index f7d151b9..ec72ae2d 100644 --- a/old_docs/API_docs_v53/methods/contacts_unblock.md +++ b/old_docs/API_docs_v53/methods/contacts_unblock.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v53/methods/help_getAppChangelog.md b/old_docs/API_docs_v53/methods/help_getAppChangelog.md index 208d3409..58f3858a 100644 --- a/old_docs/API_docs_v53/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v53/methods/help_getAppChangelog.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_AppChangelog = $MadelineProto->help->getAppChangelog(); diff --git a/old_docs/API_docs_v53/methods/help_getAppUpdate.md b/old_docs/API_docs_v53/methods/help_getAppUpdate.md index b88906ae..c6a42922 100644 --- a/old_docs/API_docs_v53/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v53/methods/help_getAppUpdate.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(); diff --git a/old_docs/API_docs_v53/methods/help_getConfig.md b/old_docs/API_docs_v53/methods/help_getConfig.md index 16e25c68..ca4bfc25 100644 --- a/old_docs/API_docs_v53/methods/help_getConfig.md +++ b/old_docs/API_docs_v53/methods/help_getConfig.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); diff --git a/old_docs/API_docs_v53/methods/help_getInviteText.md b/old_docs/API_docs_v53/methods/help_getInviteText.md index 6b226bff..7311b7fb 100644 --- a/old_docs/API_docs_v53/methods/help_getInviteText.md +++ b/old_docs/API_docs_v53/methods/help_getInviteText.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(); diff --git a/old_docs/API_docs_v53/methods/help_getNearestDc.md b/old_docs/API_docs_v53/methods/help_getNearestDc.md index 35a8bf91..458f60ab 100644 --- a/old_docs/API_docs_v53/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v53/methods/help_getNearestDc.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); diff --git a/old_docs/API_docs_v53/methods/help_getSupport.md b/old_docs/API_docs_v53/methods/help_getSupport.md index a5bab0f2..9ee25b00 100644 --- a/old_docs/API_docs_v53/methods/help_getSupport.md +++ b/old_docs/API_docs_v53/methods/help_getSupport.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); diff --git a/old_docs/API_docs_v53/methods/help_getTermsOfService.md b/old_docs/API_docs_v53/methods/help_getTermsOfService.md index 487cd83a..4dea9f79 100644 --- a/old_docs/API_docs_v53/methods/help_getTermsOfService.md +++ b/old_docs/API_docs_v53/methods/help_getTermsOfService.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_TermsOfService = $MadelineProto->help->getTermsOfService(); diff --git a/old_docs/API_docs_v53/methods/help_saveAppLog.md b/old_docs/API_docs_v53/methods/help_saveAppLog.md index 0165b6e3..a7884c47 100644 --- a/old_docs/API_docs_v53/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v53/methods/help_saveAppLog.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); diff --git a/old_docs/API_docs_v53/methods/initConnection.md b/old_docs/API_docs_v53/methods/initConnection.md index 2d3d86ad..73620276 100644 --- a/old_docs/API_docs_v53/methods/initConnection.md +++ b/old_docs/API_docs_v53/methods/initConnection.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->initConnection(['api_id' => int, 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', 'query' => !X, ]); diff --git a/old_docs/API_docs_v53/methods/invokeAfterMsg.md b/old_docs/API_docs_v53/methods/invokeAfterMsg.md index e33a2c93..8e953e78 100644 --- a/old_docs/API_docs_v53/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v53/methods/invokeAfterMsg.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); diff --git a/old_docs/API_docs_v53/methods/invokeAfterMsgs.md b/old_docs/API_docs_v53/methods/invokeAfterMsgs.md index 3150a613..bc8a83b7 100644 --- a/old_docs/API_docs_v53/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v53/methods/invokeAfterMsgs.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); diff --git a/old_docs/API_docs_v53/methods/invokeWithLayer.md b/old_docs/API_docs_v53/methods/invokeWithLayer.md index 71d02abb..8a0c4e79 100644 --- a/old_docs/API_docs_v53/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v53/methods/invokeWithLayer.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); diff --git a/old_docs/API_docs_v53/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v53/methods/invokeWithoutUpdates.md index 2bab236a..2d90a776 100644 --- a/old_docs/API_docs_v53/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v53/methods/invokeWithoutUpdates.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeWithoutUpdates(['query' => !X, ]); diff --git a/old_docs/API_docs_v53/methods/messages_addChatUser.md b/old_docs/API_docs_v53/methods/messages_addChatUser.md index 3e4c5ccc..c6ef275f 100644 --- a/old_docs/API_docs_v53/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v53/methods/messages_addChatUser.md @@ -46,12 +46,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); diff --git a/old_docs/API_docs_v53/methods/messages_checkChatInvite.md b/old_docs/API_docs_v53/methods/messages_checkChatInvite.md index de1d9ff4..cea63313 100644 --- a/old_docs/API_docs_v53/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v53/methods/messages_checkChatInvite.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ChatInvite = $MadelineProto->messages->checkChatInvite(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v53/methods/messages_createChat.md b/old_docs/API_docs_v53/methods/messages_createChat.md index 68c0263a..966f58dc 100644 --- a/old_docs/API_docs_v53/methods/messages_createChat.md +++ b/old_docs/API_docs_v53/methods/messages_createChat.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); diff --git a/old_docs/API_docs_v53/methods/messages_deleteChatUser.md b/old_docs/API_docs_v53/methods/messages_deleteChatUser.md index 0a6830de..9a9227ba 100644 --- a/old_docs/API_docs_v53/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v53/methods/messages_deleteChatUser.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v53/methods/messages_deleteHistory.md b/old_docs/API_docs_v53/methods/messages_deleteHistory.md index e44433c1..45e9890d 100644 --- a/old_docs/API_docs_v53/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v53/methods/messages_deleteHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['just_clear' => Bool, 'peer' => InputPeer, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v53/methods/messages_deleteMessages.md b/old_docs/API_docs_v53/methods/messages_deleteMessages.md index 41570996..fa043e1c 100644 --- a/old_docs/API_docs_v53/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v53/methods/messages_deleteMessages.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v53/methods/messages_editChatAdmin.md b/old_docs/API_docs_v53/methods/messages_editChatAdmin.md index 7916f8b1..5bba0559 100644 --- a/old_docs/API_docs_v53/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v53/methods/messages_editChatAdmin.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]); diff --git a/old_docs/API_docs_v53/methods/messages_editChatPhoto.md b/old_docs/API_docs_v53/methods/messages_editChatPhoto.md index 122913c4..5827a5cc 100644 --- a/old_docs/API_docs_v53/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v53/methods/messages_editChatPhoto.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); diff --git a/old_docs/API_docs_v53/methods/messages_editChatTitle.md b/old_docs/API_docs_v53/methods/messages_editChatTitle.md index 3a1e974b..2e69d790 100644 --- a/old_docs/API_docs_v53/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v53/methods/messages_editChatTitle.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); diff --git a/old_docs/API_docs_v53/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v53/methods/messages_editInlineBotMessage.md index 2237fb20..73c8a2c4 100644 --- a/old_docs/API_docs_v53/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v53/methods/messages_editInlineBotMessage.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->editInlineBotMessage(['no_webpage' => Bool, 'id' => InputBotInlineMessageID, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v53/methods/messages_editMessage.md b/old_docs/API_docs_v53/methods/messages_editMessage.md index 177438a5..ad639325 100644 --- a/old_docs/API_docs_v53/methods/messages_editMessage.md +++ b/old_docs/API_docs_v53/methods/messages_editMessage.md @@ -51,12 +51,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editMessage(['no_webpage' => Bool, 'peer' => InputPeer, 'id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v53/methods/messages_exportChatInvite.md b/old_docs/API_docs_v53/methods/messages_exportChatInvite.md index 98685d96..ec80e207 100644 --- a/old_docs/API_docs_v53/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v53/methods/messages_exportChatInvite.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]); diff --git a/old_docs/API_docs_v53/methods/messages_forwardMessage.md b/old_docs/API_docs_v53/methods/messages_forwardMessage.md index 45b7a07f..d6916437 100644 --- a/old_docs/API_docs_v53/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v53/methods/messages_forwardMessage.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); diff --git a/old_docs/API_docs_v53/methods/messages_forwardMessages.md b/old_docs/API_docs_v53/methods/messages_forwardMessages.md index 88893539..8922a1ea 100644 --- a/old_docs/API_docs_v53/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v53/methods/messages_forwardMessages.md @@ -61,12 +61,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessages(['silent' => Bool, 'background' => Bool, 'from_peer' => InputPeer, 'id' => [int, int], 'to_peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v53/methods/messages_getAllDrafts.md b/old_docs/API_docs_v53/methods/messages_getAllDrafts.md index 2c0ecd42..43a95bb2 100644 --- a/old_docs/API_docs_v53/methods/messages_getAllDrafts.md +++ b/old_docs/API_docs_v53/methods/messages_getAllDrafts.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->getAllDrafts(); diff --git a/old_docs/API_docs_v53/methods/messages_getAllStickers.md b/old_docs/API_docs_v53/methods/messages_getAllStickers.md index 16fdba6c..2ba37a91 100644 --- a/old_docs/API_docs_v53/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v53/methods/messages_getAllStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => int, ]); diff --git a/old_docs/API_docs_v53/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v53/methods/messages_getBotCallbackAnswer.md index bd83feb0..01ae3ac9 100644 --- a/old_docs/API_docs_v53/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v53/methods/messages_getBotCallbackAnswer.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_BotCallbackAnswer = $MadelineProto->messages->getBotCallbackAnswer(['peer' => InputPeer, 'msg_id' => int, 'data' => 'bytes', ]); diff --git a/old_docs/API_docs_v53/methods/messages_getChats.md b/old_docs/API_docs_v53/methods/messages_getChats.md index 290438a1..e84c7193 100644 --- a/old_docs/API_docs_v53/methods/messages_getChats.md +++ b/old_docs/API_docs_v53/methods/messages_getChats.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v53/methods/messages_getDialogs.md b/old_docs/API_docs_v53/methods/messages_getDialogs.md index 7a28bd83..bd3ef681 100644 --- a/old_docs/API_docs_v53/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v53/methods/messages_getDialogs.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['offset_date' => int, 'offset_id' => int, 'offset_peer' => InputPeer, 'limit' => int, ]); diff --git a/old_docs/API_docs_v53/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v53/methods/messages_getDocumentByHash.md index 1af5bad4..ad8e22be 100644 --- a/old_docs/API_docs_v53/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v53/methods/messages_getDocumentByHash.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Document = $MadelineProto->messages->getDocumentByHash(['sha256' => 'bytes', 'size' => int, 'mime_type' => 'string', ]); diff --git a/old_docs/API_docs_v53/methods/messages_getHistory.md b/old_docs/API_docs_v53/methods/messages_getHistory.md index dfae66e6..851d2680 100644 --- a/old_docs/API_docs_v53/methods/messages_getHistory.md +++ b/old_docs/API_docs_v53/methods/messages_getHistory.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getHistory(['peer' => InputPeer, 'offset_id' => int, 'offset_date' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); diff --git a/old_docs/API_docs_v53/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v53/methods/messages_getInlineBotResults.md index 8ab5bf78..4d86caf5 100644 --- a/old_docs/API_docs_v53/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v53/methods/messages_getInlineBotResults.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_BotResults = $MadelineProto->messages->getInlineBotResults(['bot' => InputUser, 'peer' => InputPeer, 'geo_point' => InputGeoPoint, 'query' => 'string', 'offset' => 'string', ]); diff --git a/old_docs/API_docs_v53/methods/messages_getMessageEditData.md b/old_docs/API_docs_v53/methods/messages_getMessageEditData.md index 12e71bee..34f8534f 100644 --- a/old_docs/API_docs_v53/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v53/methods/messages_getMessageEditData.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_MessageEditData = $MadelineProto->messages->getMessageEditData(['peer' => InputPeer, 'id' => int, ]); diff --git a/old_docs/API_docs_v53/methods/messages_getMessages.md b/old_docs/API_docs_v53/methods/messages_getMessages.md index 86d1da8a..d538cb5f 100644 --- a/old_docs/API_docs_v53/methods/messages_getMessages.md +++ b/old_docs/API_docs_v53/methods/messages_getMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v53/methods/messages_getMessagesViews.md b/old_docs/API_docs_v53/methods/messages_getMessagesViews.md index b8d78c85..934adc16 100644 --- a/old_docs/API_docs_v53/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v53/methods/messages_getMessagesViews.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int, int], 'increment' => Bool, ]); diff --git a/old_docs/API_docs_v53/methods/messages_getPeerDialogs.md b/old_docs/API_docs_v53/methods/messages_getPeerDialogs.md index da82cfc6..063b6e7d 100644 --- a/old_docs/API_docs_v53/methods/messages_getPeerDialogs.md +++ b/old_docs/API_docs_v53/methods/messages_getPeerDialogs.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_PeerDialogs = $MadelineProto->messages->getPeerDialogs(['peers' => [InputPeer, InputPeer], ]); diff --git a/old_docs/API_docs_v53/methods/messages_getPeerSettings.md b/old_docs/API_docs_v53/methods/messages_getPeerSettings.md index f1f2a3bb..a18126f0 100644 --- a/old_docs/API_docs_v53/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v53/methods/messages_getPeerSettings.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $PeerSettings = $MadelineProto->messages->getPeerSettings(['peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v53/methods/messages_getSavedGifs.md b/old_docs/API_docs_v53/methods/messages_getSavedGifs.md index f61348ce..38585538 100644 --- a/old_docs/API_docs_v53/methods/messages_getSavedGifs.md +++ b/old_docs/API_docs_v53/methods/messages_getSavedGifs.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => int, ]); diff --git a/old_docs/API_docs_v53/methods/messages_getStickerSet.md b/old_docs/API_docs_v53/methods/messages_getStickerSet.md index c86807e4..c9140ab2 100644 --- a/old_docs/API_docs_v53/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v53/methods/messages_getStickerSet.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSet = $MadelineProto->messages->getStickerSet(['stickerset' => InputStickerSet, ]); diff --git a/old_docs/API_docs_v53/methods/messages_getStickers.md b/old_docs/API_docs_v53/methods/messages_getStickers.md index 4854696d..d2ea57cf 100644 --- a/old_docs/API_docs_v53/methods/messages_getStickers.md +++ b/old_docs/API_docs_v53/methods/messages_getStickers.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Stickers = $MadelineProto->messages->getStickers(['emoticon' => 'string', 'hash' => 'string', ]); diff --git a/old_docs/API_docs_v53/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v53/methods/messages_getWebPagePreview.md index d01bdd32..e8b20c5d 100644 --- a/old_docs/API_docs_v53/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v53/methods/messages_getWebPagePreview.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $MessageMedia = $MadelineProto->messages->getWebPagePreview(['message' => 'string', ]); diff --git a/old_docs/API_docs_v53/methods/messages_hideReportSpam.md b/old_docs/API_docs_v53/methods/messages_hideReportSpam.md index 856770cb..30523f2a 100644 --- a/old_docs/API_docs_v53/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v53/methods/messages_hideReportSpam.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->hideReportSpam(['peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v53/methods/messages_importChatInvite.md b/old_docs/API_docs_v53/methods/messages_importChatInvite.md index 0d6cd7c8..b1830a9b 100644 --- a/old_docs/API_docs_v53/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v53/methods/messages_importChatInvite.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->importChatInvite(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v53/methods/messages_installStickerSet.md b/old_docs/API_docs_v53/methods/messages_installStickerSet.md index 04b693cd..77c5a2a5 100644 --- a/old_docs/API_docs_v53/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v53/methods/messages_installStickerSet.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->installStickerSet(['stickerset' => InputStickerSet, 'disabled' => Bool, ]); diff --git a/old_docs/API_docs_v53/methods/messages_migrateChat.md b/old_docs/API_docs_v53/methods/messages_migrateChat.md index db57adfa..22ccfcc1 100644 --- a/old_docs/API_docs_v53/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v53/methods/messages_migrateChat.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]); diff --git a/old_docs/API_docs_v53/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v53/methods/messages_readEncryptedHistory.md index 39b110e3..2ba4cca4 100644 --- a/old_docs/API_docs_v53/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v53/methods/messages_readEncryptedHistory.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); diff --git a/old_docs/API_docs_v53/methods/messages_readHistory.md b/old_docs/API_docs_v53/methods/messages_readHistory.md index 3de17061..26b608af 100644 --- a/old_docs/API_docs_v53/methods/messages_readHistory.md +++ b/old_docs/API_docs_v53/methods/messages_readHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v53/methods/messages_readMessageContents.md b/old_docs/API_docs_v53/methods/messages_readMessageContents.md index 9bb1bee8..a09cb63e 100644 --- a/old_docs/API_docs_v53/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v53/methods/messages_readMessageContents.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v53/methods/messages_receivedMessages.md b/old_docs/API_docs_v53/methods/messages_receivedMessages.md index 7aab635f..b5e87992 100644 --- a/old_docs/API_docs_v53/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v53/methods/messages_receivedMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_ReceivedNotifyMessage = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); diff --git a/old_docs/API_docs_v53/methods/messages_reorderStickerSets.md b/old_docs/API_docs_v53/methods/messages_reorderStickerSets.md index b2cbe4c1..90913e5d 100644 --- a/old_docs/API_docs_v53/methods/messages_reorderStickerSets.md +++ b/old_docs/API_docs_v53/methods/messages_reorderStickerSets.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reorderStickerSets(['order' => [long, long], ]); diff --git a/old_docs/API_docs_v53/methods/messages_reportSpam.md b/old_docs/API_docs_v53/methods/messages_reportSpam.md index 2e2b1177..09c1e63b 100644 --- a/old_docs/API_docs_v53/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v53/methods/messages_reportSpam.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reportSpam(['peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v53/methods/messages_saveDraft.md b/old_docs/API_docs_v53/methods/messages_saveDraft.md index bbeed707..59b33b03 100644 --- a/old_docs/API_docs_v53/methods/messages_saveDraft.md +++ b/old_docs/API_docs_v53/methods/messages_saveDraft.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->saveDraft(['no_webpage' => Bool, 'reply_to_msg_id' => int, 'peer' => InputPeer, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v53/methods/messages_saveGif.md b/old_docs/API_docs_v53/methods/messages_saveGif.md index 6f608c4c..145039e7 100644 --- a/old_docs/API_docs_v53/methods/messages_saveGif.md +++ b/old_docs/API_docs_v53/methods/messages_saveGif.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->saveGif(['id' => InputDocument, 'unsave' => Bool, ]); diff --git a/old_docs/API_docs_v53/methods/messages_search.md b/old_docs/API_docs_v53/methods/messages_search.md index 7821d2b7..735ddf47 100644 --- a/old_docs/API_docs_v53/methods/messages_search.md +++ b/old_docs/API_docs_v53/methods/messages_search.md @@ -49,12 +49,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->search(['peer' => InputPeer, 'q' => 'string', 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v53/methods/messages_searchGifs.md b/old_docs/API_docs_v53/methods/messages_searchGifs.md index 103ebfeb..9677bf24 100644 --- a/old_docs/API_docs_v53/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v53/methods/messages_searchGifs.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_FoundGifs = $MadelineProto->messages->searchGifs(['q' => 'string', 'offset' => int, ]); diff --git a/old_docs/API_docs_v53/methods/messages_searchGlobal.md b/old_docs/API_docs_v53/methods/messages_searchGlobal.md index 0edd1e40..6ad4aec0 100644 --- a/old_docs/API_docs_v53/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v53/methods/messages_searchGlobal.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->searchGlobal(['q' => 'string', 'offset_date' => int, 'offset_peer' => InputPeer, 'offset_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v53/methods/messages_sendBroadcast.md b/old_docs/API_docs_v53/methods/messages_sendBroadcast.md index 28e248a9..6cff8b29 100644 --- a/old_docs/API_docs_v53/methods/messages_sendBroadcast.md +++ b/old_docs/API_docs_v53/methods/messages_sendBroadcast.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendBroadcast(['contacts' => [InputUser, InputUser], 'message' => 'string', 'media' => InputMedia, ]); diff --git a/old_docs/API_docs_v53/methods/messages_sendEncrypted.md b/old_docs/API_docs_v53/methods/messages_sendEncrypted.md index d48f88d7..76305f32 100644 --- a/old_docs/API_docs_v53/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v53/methods/messages_sendEncrypted.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v53/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v53/methods/messages_sendEncryptedFile.md index 4fd0648e..8db2ead9 100644 --- a/old_docs/API_docs_v53/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v53/methods/messages_sendEncryptedFile.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); diff --git a/old_docs/API_docs_v53/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v53/methods/messages_sendEncryptedService.md index d66894bf..c7836c94 100644 --- a/old_docs/API_docs_v53/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v53/methods/messages_sendEncryptedService.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v53/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v53/methods/messages_sendInlineBotResult.md index 386ac7e3..1a12322c 100644 --- a/old_docs/API_docs_v53/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v53/methods/messages_sendInlineBotResult.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendInlineBotResult(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'query_id' => long, 'id' => 'string', ]); diff --git a/old_docs/API_docs_v53/methods/messages_sendMedia.md b/old_docs/API_docs_v53/methods/messages_sendMedia.md index 0b5cf9b6..770d1b65 100644 --- a/old_docs/API_docs_v53/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v53/methods/messages_sendMedia.md @@ -63,12 +63,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendMedia(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, 'reply_markup' => ReplyMarkup, ]); diff --git a/old_docs/API_docs_v53/methods/messages_sendMessage.md b/old_docs/API_docs_v53/methods/messages_sendMessage.md index c4dc8894..83dc6c8b 100644 --- a/old_docs/API_docs_v53/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v53/methods/messages_sendMessage.md @@ -65,12 +65,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendMessage(['no_webpage' => Bool, 'silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v53/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v53/methods/messages_setBotCallbackAnswer.md index 06a7fb44..f15699a0 100644 --- a/old_docs/API_docs_v53/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v53/methods/messages_setBotCallbackAnswer.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setBotCallbackAnswer(['alert' => Bool, 'query_id' => long, 'message' => 'string', ]); diff --git a/old_docs/API_docs_v53/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v53/methods/messages_setEncryptedTyping.md index e9afe99c..4e7450eb 100644 --- a/old_docs/API_docs_v53/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v53/methods/messages_setEncryptedTyping.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); diff --git a/old_docs/API_docs_v53/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v53/methods/messages_setInlineBotResults.md index 79493009..d4ba6e65 100644 --- a/old_docs/API_docs_v53/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v53/methods/messages_setInlineBotResults.md @@ -52,12 +52,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setInlineBotResults(['gallery' => Bool, 'private' => Bool, 'query_id' => long, 'results' => [InputBotInlineResult, InputBotInlineResult], 'cache_time' => int, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, ]); diff --git a/old_docs/API_docs_v53/methods/messages_setTyping.md b/old_docs/API_docs_v53/methods/messages_setTyping.md index bea4982b..a2b94823 100644 --- a/old_docs/API_docs_v53/methods/messages_setTyping.md +++ b/old_docs/API_docs_v53/methods/messages_setTyping.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); diff --git a/old_docs/API_docs_v53/methods/messages_startBot.md b/old_docs/API_docs_v53/methods/messages_startBot.md index 94a4d86a..50d6f475 100644 --- a/old_docs/API_docs_v53/methods/messages_startBot.md +++ b/old_docs/API_docs_v53/methods/messages_startBot.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'peer' => InputPeer, 'start_param' => 'string', ]); diff --git a/old_docs/API_docs_v53/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v53/methods/messages_toggleChatAdmins.md index ab591fd9..349ea0e6 100644 --- a/old_docs/API_docs_v53/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v53/methods/messages_toggleChatAdmins.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => InputPeer, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v53/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v53/methods/messages_uninstallStickerSet.md index 6d04e847..26b2fbb3 100644 --- a/old_docs/API_docs_v53/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v53/methods/messages_uninstallStickerSet.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->uninstallStickerSet(['stickerset' => InputStickerSet, ]); diff --git a/old_docs/API_docs_v53/methods/photos_deletePhotos.md b/old_docs/API_docs_v53/methods/photos_deletePhotos.md index b9daca10..937aadd5 100644 --- a/old_docs/API_docs_v53/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v53/methods/photos_deletePhotos.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); diff --git a/old_docs/API_docs_v53/methods/photos_getUserPhotos.md b/old_docs/API_docs_v53/methods/photos_getUserPhotos.md index ea27a44f..d1c15e90 100644 --- a/old_docs/API_docs_v53/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v53/methods/photos_getUserPhotos.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => long, 'limit' => int, ]); diff --git a/old_docs/API_docs_v53/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v53/methods/photos_updateProfilePhoto.md index 2d1e1e76..4c5c517f 100644 --- a/old_docs/API_docs_v53/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v53/methods/photos_updateProfilePhoto.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, 'crop' => InputPhotoCrop, ]); diff --git a/old_docs/API_docs_v53/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v53/methods/photos_uploadProfilePhoto.md index 6ff4ddf5..3d7d301b 100644 --- a/old_docs/API_docs_v53/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v53/methods/photos_uploadProfilePhoto.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, 'caption' => 'string', 'geo_point' => InputGeoPoint, 'crop' => InputPhotoCrop, ]); diff --git a/old_docs/API_docs_v53/methods/users_getUsers.md b/old_docs/API_docs_v53/methods/users_getUsers.md index ef1c7fd8..bce13ee6 100644 --- a/old_docs/API_docs_v53/methods/users_getUsers.md +++ b/old_docs/API_docs_v53/methods/users_getUsers.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v55/README.md b/old_docs/API_docs_v55/README.md index 43617478..3a3920db 100644 --- a/old_docs/API_docs_v55/README.md +++ b/old_docs/API_docs_v55/README.md @@ -4,11 +4,11 @@ description: MadelineProto API documentation (layer v55) --- # MadelineProto API documentation (layer v55) +[Back to main documentation](..) + + [Methods](methods/) [Constructors](constructors/) -[Types](types/) - - -[Back to main documentation](..) +[Types](types/) \ No newline at end of file diff --git a/old_docs/API_docs_v55/methods/README.md b/old_docs/API_docs_v55/methods/README.md index 9857704e..679c6d45 100644 --- a/old_docs/API_docs_v55/methods/README.md +++ b/old_docs/API_docs_v55/methods/README.md @@ -1,409 +1,404 @@ --- title: Methods -description: List of methods +description: What do you want to do? --- -# Methods -[Back to API documentation index](..) +# What do you want to do? +[Go back to API documentation index](..) +[Go to the old code-version method index](api_index.html) -$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); +* [Logout](https://docs.madelineproto.xyz/logout.html) -$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); +* [Login](https://docs.madelineproto.xyz/docs/LOGIN.html) -$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); +* [Get all chats, broadcast a message to all chats](https://docs.madelineproto.xyz/docs/DIALOGS.html) -$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); +* [Get the full participant list of a channel/group/supergroup](https://docs.madelineproto.xyz/get_pwr_chat.html) -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); +* [Get full info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_full_info.html) +* [Get info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_info.html) -$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); +* [Get info about the currently logged-in user](https://docs.madelineproto.xyz/get_self.html) -$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); +* [Upload or download files up to 1.5 GB](https://docs.madelineproto.xyz/docs/FILES.html) -$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); +* [Make a phone call and play a song](https://docs.madelineproto.xyz/docs/CALLS.html) -$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); - -$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); - - -$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); - -$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); +* [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) *** -

$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) +

* Change the phone number associated to this account -$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Check if this username is available -$MadelineProto->[account->confirmPhone](account_confirmPhone.md)(\['phone_code_hash' => [string](../types/string.md), 'phone_code' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode -$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Delete this account -$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) +* Get account TTL -$MadelineProto->[account->getAuthorizations](account_getAuthorizations.md)(\[\]) === [$account\_Authorizations](../types/account_Authorizations.md) +* Get all logged-in authorizations -$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) +* Get notification settings -$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md) +* Get the current password -$MadelineProto->[account->getPasswordSettings](account_getPasswordSettings.md)(\['current_password_hash' => [bytes](../types/bytes.md), \]) === [$account\_PasswordSettings](../types/account_PasswordSettings.md) +* Get the current 2FA settings -$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Get privacy settings -$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) +* Returns a list of available wallpapers. -$MadelineProto->[account->registerDevice](account_registerDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Register device for push notifications -$MadelineProto->[account->reportPeer](account_reportPeer.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reason' => [ReportReason](../types/ReportReason.md), \]) === [$Bool](../types/Bool.md) +* Report for spam -$MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) +* Delete a certain session -$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) +* Reset all notification settings -$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) +* Change the phone number -$MadelineProto->[account->sendConfirmPhoneCode](account_sendConfirmPhoneCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'hash' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) +* Send confirmation phone code -$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) +* Set account TTL -$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Set privacy settings -$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Stop sending PUSH notifications to app -$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Disable all notifications for a certain period -$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) +* Change notification settings -$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) +* Update the 2FA password settings -$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) +* Update profile info -$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Update online status -$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) +* Update this user's username *** -

$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) +

* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info -$MadelineProto->[auth->cancelCode](auth_cancelCode.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Invalidate sent phone code -$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) +* Check if this phone number is registered on telegram -$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) +* You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$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) +* You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->recoverPassword](auth_recoverPassword.md)(\['code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account -$MadelineProto->[auth->requestPasswordRecovery](auth_requestPasswordRecovery.md)(\[\]) === [$auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) +* Send an email to recover the 2FA password -$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) +* Resend the SMS verification code -$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) +* Delete all logged-in sessions. -$MadelineProto->[auth->sendCode](auth_sendCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'phone_number' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), 'api_id' => [int](../types/int.md), 'api_hash' => [string](../types/string.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) +* Use phone_login instead -$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Invite friends to telegram! -$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) +* You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) -$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) +* You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) *** -

$MadelineProto->[channels->checkUsername](channels_checkUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +

* Check if this username is free and can be assigned to a channel/supergroup -$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) +* Create channel/supergroup -$MadelineProto->[channels->deleteChannel](channels_deleteChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Delete a channel/supergroup -$MadelineProto->[channels->deleteMessages](channels_deleteMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Delete channel/supergroup messages -$MadelineProto->[channels->deleteUserHistory](channels_deleteUserHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Delete all messages of a user in a channel/supergroup -$MadelineProto->[channels->editAbout](channels_editAbout.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'about' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Edit the about text of a channel/supergroup -$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) +* Edit admin permissions of a user in a channel/supergroup -$MadelineProto->[channels->editPhoto](channels_editPhoto.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) +* Edit the photo of a supergroup/channel -$MadelineProto->[channels->editTitle](channels_editTitle.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Edit the title of a supergroup/channel -$MadelineProto->[channels->exportInvite](channels_exportInvite.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) +* Export the invite link of a channel -$MadelineProto->[channels->exportMessageLink](channels_exportMessageLink.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => [int](../types/int.md), \]) === [$ExportedMessageLink](../types/ExportedMessageLink.md) +* Get the link of a message in a channel -$MadelineProto->[channels->getChannels](channels_getChannels.md)(\['id' => \[[InputChannel](../types/InputChannel.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get info about multiple channels/supergroups -$MadelineProto->[channels->getFullChannel](channels_getFullChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) +* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[channels->getMessages](channels_getMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get channel/supergroup messages -$MadelineProto->[channels->getParticipant](channels_getParticipant.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) +* Get info about a certain channel/supergroup participant -$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) +* Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead) -$MadelineProto->[channels->inviteToChannel](channels_inviteToChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'users' => \[[InputUser](../types/InputUser.md)\], \]) === [$Updates](../types/Updates.md) +* Add users to channel/supergroup -$MadelineProto->[channels->joinChannel](channels_joinChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Join a channel/supergroup -$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) +* Kick user from channel -$MadelineProto->[channels->leaveChannel](channels_leaveChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Leave a channel/supergroup -$MadelineProto->[channels->readHistory](channels_readHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Mark channel/supergroup history as read -$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) +* Report a supergroup/channel for spam -$MadelineProto->[channels->toggleInvites](channels_toggleInvites.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Allow or disallow any user to invite users to this channel/supergroup -$MadelineProto->[channels->toggleSignatures](channels_toggleSignatures.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Toggle channel signatures -$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) +* Set the pinned message of a channel/supergroup -$MadelineProto->[channels->updateUsername](channels_updateUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Update the username of a supergroup/channel *** -

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +

* Block a user -$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) +* Delete a contact -$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) +* Delete multiple contacts -$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) +* Export contact as card -$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) +* Get blocked users -$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [string](../types/string.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) +* Get info about a certain contact -$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) +* Get online status of all users -$MadelineProto->[contacts->getTopPeers](contacts_getTopPeers.md)(\['correspondents' => [Bool](../types/Bool.md), 'bots_pm' => [Bool](../types/Bool.md), 'bots_inline' => [Bool](../types/Bool.md), 'groups' => [Bool](../types/Bool.md), 'channels' => [Bool](../types/Bool.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'hash' => [int](../types/int.md), \]) === [$contacts\_TopPeers](../types/contacts_TopPeers.md) +* Get most used chats -$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) +* Import card as contact -$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], 'replace' => [Bool](../types/Bool.md), \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) +* Add phone number as contact -$MadelineProto->[contacts->resetTopPeerRating](contacts_resetTopPeerRating.md)(\['category' => [TopPeerCategory](../types/TopPeerCategory.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Reset top peer rating for a certain category/peer -$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) +* You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) +* Search contacts -$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +* Unblock a user *** -

$MadelineProto->[help->getAppChangelog](help_getAppChangelog.md)(\[\]) === [$help\_AppChangelog](../types/help_AppChangelog.md) +

* Get the changelog of this app -$MadelineProto->[help->getAppUpdate](help_getAppUpdate.md)(\[\]) === [$help\_AppUpdate](../types/help_AppUpdate.md) +* Get info about app updates -$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) +* Get server configuration -$MadelineProto->[help->getInviteText](help_getInviteText.md)(\[\]) === [$help\_InviteText](../types/help_InviteText.md) +* Get invitation text -$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) +* Get nearest datacenter -$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) +* Get info of support user -$MadelineProto->[help->getTermsOfService](help_getTermsOfService.md)(\[\]) === [$help\_TermsOfService](../types/help_TermsOfService.md) +* Get terms of service -$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) +* Log data for developer of this app *** -

$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) +

* Initializes connection and save information on the user's device and application. *** -

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invokes a query after successfull completion of one of the previous queries. *** -

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Result type returned by a current query. *** -

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invoke this method with layer X *** -

$MadelineProto->[invokeWithoutUpdates](invokeWithoutUpdates.md)(\['query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invoke with method without returning updates in the socket *** -

$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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Add a user to a normal chat (use channels->inviteToChannel for supergroups) -$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md) +* Check if an invitation link is valid -$MadelineProto->[messages->clearRecentStickers](messages_clearRecentStickers.md)(\[\]) === [$Bool](../types/Bool.md) +* Clear all recent stickers -$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Create a chat (not supergroup) -$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md) +* Delete a user from a chat (not supergroup) -$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['just_clear' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Delete chat history -$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Delete messages -$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Edit admin permissions -$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) +* Edit the photo of a normal chat (not supergroup) -$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Edit the title of a normal chat (not supergroup) -$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) +* Edit a sent inline message -$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) +* Edit a message -$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) +* Export chat invite -$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) +* Forward message -$MadelineProto->[messages->forwardMessages](messages_forwardMessages.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) +* Forward messages -$MadelineProto->[messages->getAllDrafts](messages_getAllDrafts.md)(\[\]) === [$Updates](../types/Updates.md) +* Get all message drafts -$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) +* Get all stickerpacks -$MadelineProto->[messages->getArchivedStickers](messages_getArchivedStickers.md)(\['offset_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), \]) === [$messages\_ArchivedStickers](../types/messages_ArchivedStickers.md) +* Get all archived stickers -$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) +* Get the callback answer of a bot (after clicking a button) -$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get info about chats -$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) +* You cannot use this method directly, instead use $MadelineProto->get_dh_config(); -$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) +* Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html -$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) +* Get document by SHA256 hash -$MadelineProto->[messages->getFeaturedStickers](messages_getFeaturedStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_FeaturedStickers](../types/messages_FeaturedStickers.md) +* Get featured stickers -$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) +* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$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) +* Get previous messages of a group -$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) +* Call inline bot -$MadelineProto->[messages->getMessageEditData](messages_getMessageEditData.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$messages\_MessageEditData](../types/messages_MessageEditData.md) +* Check if about to edit a message or a media caption -$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get messages -$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) +* Get and increase message views -$MadelineProto->[messages->getPeerDialogs](messages_getPeerDialogs.md)(\['peers' => \[[InputPeer](../types/InputPeer.md)\], \]) === [$messages\_PeerDialogs](../types/messages_PeerDialogs.md) +* Get dialog info of peers -$MadelineProto->[messages->getPeerSettings](messages_getPeerSettings.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$PeerSettings](../types/PeerSettings.md) +* Get the settings of apeer -$MadelineProto->[messages->getRecentStickers](messages_getRecentStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_RecentStickers](../types/messages_RecentStickers.md) +* Get recent stickers -$MadelineProto->[messages->getSavedGifs](messages_getSavedGifs.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_SavedGifs](../types/messages_SavedGifs.md) +* Get saved gifs -$MadelineProto->[messages->getStickerSet](messages_getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) +* Get a stickerset -$MadelineProto->[messages->getStickers](messages_getStickers.md)(\['emoticon' => [string](../types/string.md), 'hash' => [string](../types/string.md), \]) === [$messages\_Stickers](../types/messages_Stickers.md) +* Get stickers -$MadelineProto->[messages->getUnusedStickers](messages_getUnusedStickers.md)(\['limit' => [int](../types/int.md), \]) === [$Vector\_of\_StickerSetCovered](../types/StickerSetCovered.md) +* Get unused stickers -$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) === [$MessageMedia](../types/MessageMedia.md) +* Get webpage preview -$MadelineProto->[messages->hideReportSpam](messages_hideReportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Hide report spam popup -$MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Import chat invite -$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'archived' => [Bool](../types/Bool.md), \]) === [$messages\_StickerSetInstallResult](../types/messages_StickerSetInstallResult.md) +* Add a sticker set -$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) +* Convert chat to supergroup -$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Mark messages as read in secret chats -$MadelineProto->[messages->readFeaturedStickers](messages_readFeaturedStickers.md)(\[\]) === [$Bool](../types/Bool.md) +* Mark new featured stickers as read -$MadelineProto->[messages->readHistory](messages_readHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Mark messages as read -$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Mark message as read -$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_ReceivedNotifyMessage](../types/ReceivedNotifyMessage.md) +* Mark messages as read -$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) +* You cannot use this method directly -$MadelineProto->[messages->reorderStickerSets](messages_reorderStickerSets.md)(\['order' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) +* Reorder sticker sets -$MadelineProto->[messages->reportSpam](messages_reportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Report a peer for spam -$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$MadelineProto->[messages->saveDraft](messages_saveDraft.md)(\['no_webpage' => [Bool](../types/Bool.md), 'reply_to_msg_id' => [int](../types/int.md), 'peer' => [InputPeer](../types/InputPeer.md), 'message' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Bool](../types/Bool.md) +* Save a message draft -$MadelineProto->[messages->saveGif](messages_saveGif.md)(\['id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Save a GIF -$MadelineProto->[messages->saveRecentSticker](messages_saveRecentSticker.md)(\['id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Add a sticker to recent stickers -$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) +* Search peers or messages -$MadelineProto->[messages->searchGifs](messages_searchGifs.md)(\['q' => [string](../types/string.md), 'offset' => [int](../types/int.md), \]) === [$messages\_FoundGifs](../types/messages_FoundGifs.md) +* Search gifs -$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) +* Global message search -$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) +* Send a message to all users in the chat list -$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send message to secret chat -$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) +* Send a file to a secret chat -$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send a service message to a secret chat -$MadelineProto->[messages->sendInlineBotResult](messages_sendInlineBotResult.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'query_id' => [long](../types/long.md), 'id' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Send a received bot result to the chat -$MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'media' => [InputMedia](../types/InputMedia.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \]) === [$Updates](../types/Updates.md) +* Send a media -$MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Updates](../types/Updates.md) +* Send a message -$MadelineProto->[messages->setBotCallbackAnswer](messages_setBotCallbackAnswer.md)(\['alert' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'message' => [string](../types/string.md), 'url' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Bots only: set the callback answer (after a button was clicked) -$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Send typing notification to secret chat -$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) +* Bots only: set the results of an inline query -$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) +* Change typing status -$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) +* Start a bot -$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Enable all users are admins in normal groups (not supergroups) -$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) +* Remove a sticker set *** -

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) +

* Delete profile photos -$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) +* Get the profile photos of a user -$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), 'crop' => [InputPhotoCrop](../types/InputPhotoCrop.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) +* Update the profile photo (use photos->uploadProfilePhoto to upload the photo) -$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) +* Upload profile photo *** -

$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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates -$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) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates -$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates *** -

$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) +

* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info *** -

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) +

* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) +* Get info about users diff --git a/old_docs/API_docs_v55/methods/account_changePhone.md b/old_docs/API_docs_v55/methods/account_changePhone.md index aeb5c4bc..65f0b0d0 100644 --- a/old_docs/API_docs_v55/methods/account_changePhone.md +++ b/old_docs/API_docs_v55/methods/account_changePhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); diff --git a/old_docs/API_docs_v55/methods/account_checkUsername.md b/old_docs/API_docs_v55/methods/account_checkUsername.md index 0124bb38..08107762 100644 --- a/old_docs/API_docs_v55/methods/account_checkUsername.md +++ b/old_docs/API_docs_v55/methods/account_checkUsername.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v55/methods/account_confirmPhone.md b/old_docs/API_docs_v55/methods/account_confirmPhone.md index c6a1dba6..68490f35 100644 --- a/old_docs/API_docs_v55/methods/account_confirmPhone.md +++ b/old_docs/API_docs_v55/methods/account_confirmPhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->confirmPhone(['phone_code_hash' => 'string', 'phone_code' => 'string', ]); diff --git a/old_docs/API_docs_v55/methods/account_deleteAccount.md b/old_docs/API_docs_v55/methods/account_deleteAccount.md index e8b46c24..3a6f4700 100644 --- a/old_docs/API_docs_v55/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v55/methods/account_deleteAccount.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); diff --git a/old_docs/API_docs_v55/methods/account_getAccountTTL.md b/old_docs/API_docs_v55/methods/account_getAccountTTL.md index 0cdd0b98..ab6a6ea1 100644 --- a/old_docs/API_docs_v55/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v55/methods/account_getAccountTTL.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); diff --git a/old_docs/API_docs_v55/methods/account_getAuthorizations.md b/old_docs/API_docs_v55/methods/account_getAuthorizations.md index f92db8fe..303203e4 100644 --- a/old_docs/API_docs_v55/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v55/methods/account_getAuthorizations.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_Authorizations = $MadelineProto->account->getAuthorizations(); diff --git a/old_docs/API_docs_v55/methods/account_getNotifySettings.md b/old_docs/API_docs_v55/methods/account_getNotifySettings.md index f00be12c..ad492f49 100644 --- a/old_docs/API_docs_v55/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v55/methods/account_getNotifySettings.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); diff --git a/old_docs/API_docs_v55/methods/account_getPassword.md b/old_docs/API_docs_v55/methods/account_getPassword.md index c189421d..2692dab1 100644 --- a/old_docs/API_docs_v55/methods/account_getPassword.md +++ b/old_docs/API_docs_v55/methods/account_getPassword.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_Password = $MadelineProto->account->getPassword(); diff --git a/old_docs/API_docs_v55/methods/account_getPasswordSettings.md b/old_docs/API_docs_v55/methods/account_getPasswordSettings.md index 96cb953e..2039d405 100644 --- a/old_docs/API_docs_v55/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v55/methods/account_getPasswordSettings.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PasswordSettings = $MadelineProto->account->getPasswordSettings(['current_password_hash' => 'bytes', ]); diff --git a/old_docs/API_docs_v55/methods/account_getPrivacy.md b/old_docs/API_docs_v55/methods/account_getPrivacy.md index 979bfb94..5480ffbb 100644 --- a/old_docs/API_docs_v55/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v55/methods/account_getPrivacy.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); diff --git a/old_docs/API_docs_v55/methods/account_getWallPapers.md b/old_docs/API_docs_v55/methods/account_getWallPapers.md index 89b281be..7c8bff39 100644 --- a/old_docs/API_docs_v55/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v55/methods/account_getWallPapers.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); diff --git a/old_docs/API_docs_v55/methods/account_registerDevice.md b/old_docs/API_docs_v55/methods/account_registerDevice.md index cd28abcd..4e148a7f 100644 --- a/old_docs/API_docs_v55/methods/account_registerDevice.md +++ b/old_docs/API_docs_v55/methods/account_registerDevice.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', ]); diff --git a/old_docs/API_docs_v55/methods/account_reportPeer.md b/old_docs/API_docs_v55/methods/account_reportPeer.md index a07c87d0..c5fe7073 100644 --- a/old_docs/API_docs_v55/methods/account_reportPeer.md +++ b/old_docs/API_docs_v55/methods/account_reportPeer.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->reportPeer(['peer' => InputPeer, 'reason' => ReportReason, ]); diff --git a/old_docs/API_docs_v55/methods/account_resetAuthorization.md b/old_docs/API_docs_v55/methods/account_resetAuthorization.md index 4155d3c8..543aee08 100644 --- a/old_docs/API_docs_v55/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v55/methods/account_resetAuthorization.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetAuthorization(['hash' => long, ]); diff --git a/old_docs/API_docs_v55/methods/account_resetNotifySettings.md b/old_docs/API_docs_v55/methods/account_resetNotifySettings.md index ccc836a9..557373b0 100644 --- a/old_docs/API_docs_v55/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v55/methods/account_resetNotifySettings.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); diff --git a/old_docs/API_docs_v55/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v55/methods/account_sendChangePhoneCode.md index c9f9c174..bdf7331f 100644 --- a/old_docs/API_docs_v55/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v55/methods/account_sendChangePhoneCode.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendChangePhoneCode(['allow_flashcall' => Bool, 'phone_number' => 'string', 'current_number' => Bool, ]); diff --git a/old_docs/API_docs_v55/methods/account_sendConfirmPhoneCode.md b/old_docs/API_docs_v55/methods/account_sendConfirmPhoneCode.md index 3785ba75..86035d19 100644 --- a/old_docs/API_docs_v55/methods/account_sendConfirmPhoneCode.md +++ b/old_docs/API_docs_v55/methods/account_sendConfirmPhoneCode.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendConfirmPhoneCode(['allow_flashcall' => Bool, 'hash' => 'string', 'current_number' => Bool, ]); diff --git a/old_docs/API_docs_v55/methods/account_setAccountTTL.md b/old_docs/API_docs_v55/methods/account_setAccountTTL.md index 5100e62e..bacdd77a 100644 --- a/old_docs/API_docs_v55/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v55/methods/account_setAccountTTL.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); diff --git a/old_docs/API_docs_v55/methods/account_setPrivacy.md b/old_docs/API_docs_v55/methods/account_setPrivacy.md index fbcedae7..6e24ded7 100644 --- a/old_docs/API_docs_v55/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v55/methods/account_setPrivacy.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); diff --git a/old_docs/API_docs_v55/methods/account_unregisterDevice.md b/old_docs/API_docs_v55/methods/account_unregisterDevice.md index 1d2b7670..b666d91a 100644 --- a/old_docs/API_docs_v55/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v55/methods/account_unregisterDevice.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); diff --git a/old_docs/API_docs_v55/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v55/methods/account_updateDeviceLocked.md index ef816501..cd52093a 100644 --- a/old_docs/API_docs_v55/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v55/methods/account_updateDeviceLocked.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); diff --git a/old_docs/API_docs_v55/methods/account_updateNotifySettings.md b/old_docs/API_docs_v55/methods/account_updateNotifySettings.md index 18cbdb75..db020309 100644 --- a/old_docs/API_docs_v55/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v55/methods/account_updateNotifySettings.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); diff --git a/old_docs/API_docs_v55/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v55/methods/account_updatePasswordSettings.md index 0754dd63..8af1e37f 100644 --- a/old_docs/API_docs_v55/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v55/methods/account_updatePasswordSettings.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updatePasswordSettings(['current_password_hash' => 'bytes', 'new_settings' => account_PasswordInputSettings, ]); diff --git a/old_docs/API_docs_v55/methods/account_updateProfile.md b/old_docs/API_docs_v55/methods/account_updateProfile.md index e24ef2f5..59629188 100644 --- a/old_docs/API_docs_v55/methods/account_updateProfile.md +++ b/old_docs/API_docs_v55/methods/account_updateProfile.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', 'about' => 'string', ]); diff --git a/old_docs/API_docs_v55/methods/account_updateStatus.md b/old_docs/API_docs_v55/methods/account_updateStatus.md index 4b049e65..50b99b1e 100644 --- a/old_docs/API_docs_v55/methods/account_updateStatus.md +++ b/old_docs/API_docs_v55/methods/account_updateStatus.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); diff --git a/old_docs/API_docs_v55/methods/account_updateUsername.md b/old_docs/API_docs_v55/methods/account_updateUsername.md index 08d2abe0..7276e2aa 100644 --- a/old_docs/API_docs_v55/methods/account_updateUsername.md +++ b/old_docs/API_docs_v55/methods/account_updateUsername.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v55/methods/api_README.md b/old_docs/API_docs_v55/methods/api_README.md new file mode 100644 index 00000000..0af81be3 --- /dev/null +++ b/old_docs/API_docs_v55/methods/api_README.md @@ -0,0 +1,410 @@ +--- +title: Methods +description: List of methods +--- +# Methods +[Back to API documentation index](..) + +[Go to the new description-version method index](index.html) + +$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); + +$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); + +$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); + +$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); + +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); + + +$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); + +$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); + +$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); + +$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); + +$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); + + +$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); + +$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); + +*** +

$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) + +$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->confirmPhone](account_confirmPhone.md)(\['phone_code_hash' => [string](../types/string.md), 'phone_code' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) + +$MadelineProto->[account->getAuthorizations](account_getAuthorizations.md)(\[\]) === [$account\_Authorizations](../types/account_Authorizations.md) + +$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) + +$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md) + +$MadelineProto->[account->getPasswordSettings](account_getPasswordSettings.md)(\['current_password_hash' => [bytes](../types/bytes.md), \]) === [$account\_PasswordSettings](../types/account_PasswordSettings.md) + +$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) + +$MadelineProto->[account->registerDevice](account_registerDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->reportPeer](account_reportPeer.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reason' => [ReportReason](../types/ReportReason.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[account->sendConfirmPhoneCode](account_sendConfirmPhoneCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'hash' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) + +$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$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) + +$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) + +*** +

$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) + +$MadelineProto->[auth->cancelCode](auth_cancelCode.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) + +$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) + +$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$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) + +$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->recoverPassword](auth_recoverPassword.md)(\['code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->requestPasswordRecovery](auth_requestPasswordRecovery.md)(\[\]) === [$auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) + +$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) + +$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->sendCode](auth_sendCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'phone_number' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), 'api_id' => [int](../types/int.md), 'api_hash' => [string](../types/string.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) + +$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$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) + +*** +

$MadelineProto->[channels->checkUsername](channels_checkUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->deleteChannel](channels_deleteChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->deleteMessages](channels_deleteMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[channels->deleteUserHistory](channels_deleteUserHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[channels->editAbout](channels_editAbout.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'about' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->editPhoto](channels_editPhoto.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->editTitle](channels_editTitle.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->exportInvite](channels_exportInvite.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) + +$MadelineProto->[channels->exportMessageLink](channels_exportMessageLink.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => [int](../types/int.md), \]) === [$ExportedMessageLink](../types/ExportedMessageLink.md) + +$MadelineProto->[channels->getChannels](channels_getChannels.md)(\['id' => \[[InputChannel](../types/InputChannel.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[channels->getFullChannel](channels_getFullChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$MadelineProto->[channels->getMessages](channels_getMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) + +$MadelineProto->[channels->getParticipant](channels_getParticipant.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) + +$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) + +$MadelineProto->[channels->inviteToChannel](channels_inviteToChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'users' => \[[InputUser](../types/InputUser.md)\], \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->joinChannel](channels_joinChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$MadelineProto->[channels->leaveChannel](channels_leaveChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->readHistory](channels_readHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->toggleInvites](channels_toggleInvites.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->toggleSignatures](channels_toggleSignatures.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$MadelineProto->[channels->updateUsername](channels_updateUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) + +$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) + +$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) + +$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [string](../types/string.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) + +$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) + +$MadelineProto->[contacts->getTopPeers](contacts_getTopPeers.md)(\['correspondents' => [Bool](../types/Bool.md), 'bots_pm' => [Bool](../types/Bool.md), 'bots_inline' => [Bool](../types/Bool.md), 'groups' => [Bool](../types/Bool.md), 'channels' => [Bool](../types/Bool.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'hash' => [int](../types/int.md), \]) === [$contacts\_TopPeers](../types/contacts_TopPeers.md) + +$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) + +$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], 'replace' => [Bool](../types/Bool.md), \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) + +$MadelineProto->[contacts->resetTopPeerRating](contacts_resetTopPeerRating.md)(\['category' => [TopPeerCategory](../types/TopPeerCategory.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) + +$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) + +$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[help->getAppChangelog](help_getAppChangelog.md)(\[\]) === [$help\_AppChangelog](../types/help_AppChangelog.md) + +$MadelineProto->[help->getAppUpdate](help_getAppUpdate.md)(\[\]) === [$help\_AppUpdate](../types/help_AppUpdate.md) + +$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) + +$MadelineProto->[help->getInviteText](help_getInviteText.md)(\[\]) === [$help\_InviteText](../types/help_InviteText.md) + +$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) + +$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) + +$MadelineProto->[help->getTermsOfService](help_getTermsOfService.md)(\[\]) === [$help\_TermsOfService](../types/help_TermsOfService.md) + +$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) + +*** +

$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) + +*** +

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeWithoutUpdates](invokeWithoutUpdates.md)(\['query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$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) + +$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) + +$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md) + +$MadelineProto->[messages->clearRecentStickers](messages_clearRecentStickers.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['just_clear' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$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) + +$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) + +$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->forwardMessages](messages_forwardMessages.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) + +$MadelineProto->[messages->getAllDrafts](messages_getAllDrafts.md)(\[\]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) + +$MadelineProto->[messages->getArchivedStickers](messages_getArchivedStickers.md)(\['offset_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), \]) === [$messages\_ArchivedStickers](../types/messages_ArchivedStickers.md) + +$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) + +$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) + +$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) + +$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) + +$MadelineProto->[messages->getFeaturedStickers](messages_getFeaturedStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_FeaturedStickers](../types/messages_FeaturedStickers.md) + +$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$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) + +$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) + +$MadelineProto->[messages->getMessageEditData](messages_getMessageEditData.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$messages\_MessageEditData](../types/messages_MessageEditData.md) + +$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) + +$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) + +$MadelineProto->[messages->getPeerDialogs](messages_getPeerDialogs.md)(\['peers' => \[[InputPeer](../types/InputPeer.md)\], \]) === [$messages\_PeerDialogs](../types/messages_PeerDialogs.md) + +$MadelineProto->[messages->getPeerSettings](messages_getPeerSettings.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$PeerSettings](../types/PeerSettings.md) + +$MadelineProto->[messages->getRecentStickers](messages_getRecentStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_RecentStickers](../types/messages_RecentStickers.md) + +$MadelineProto->[messages->getSavedGifs](messages_getSavedGifs.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_SavedGifs](../types/messages_SavedGifs.md) + +$MadelineProto->[messages->getStickerSet](messages_getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +$MadelineProto->[messages->getStickers](messages_getStickers.md)(\['emoticon' => [string](../types/string.md), 'hash' => [string](../types/string.md), \]) === [$messages\_Stickers](../types/messages_Stickers.md) + +$MadelineProto->[messages->getUnusedStickers](messages_getUnusedStickers.md)(\['limit' => [int](../types/int.md), \]) === [$Vector\_of\_StickerSetCovered](../types/StickerSetCovered.md) + +$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) === [$MessageMedia](../types/MessageMedia.md) + +$MadelineProto->[messages->hideReportSpam](messages_hideReportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'archived' => [Bool](../types/Bool.md), \]) === [$messages\_StickerSetInstallResult](../types/messages_StickerSetInstallResult.md) + +$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->readFeaturedStickers](messages_readFeaturedStickers.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->readHistory](messages_readHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_ReceivedNotifyMessage](../types/ReceivedNotifyMessage.md) + +$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) + +$MadelineProto->[messages->reorderStickerSets](messages_reorderStickerSets.md)(\['order' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->reportSpam](messages_reportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) + +$MadelineProto->[messages->saveDraft](messages_saveDraft.md)(\['no_webpage' => [Bool](../types/Bool.md), 'reply_to_msg_id' => [int](../types/int.md), 'peer' => [InputPeer](../types/InputPeer.md), 'message' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->saveGif](messages_saveGif.md)(\['id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->saveRecentSticker](messages_saveRecentSticker.md)(\['id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->searchGifs](messages_searchGifs.md)(\['q' => [string](../types/string.md), 'offset' => [int](../types/int.md), \]) === [$messages\_FoundGifs](../types/messages_FoundGifs.md) + +$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) + +$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) + +$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$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) + +$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$MadelineProto->[messages->sendInlineBotResult](messages_sendInlineBotResult.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'query_id' => [long](../types/long.md), 'id' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'media' => [InputMedia](../types/InputMedia.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->setBotCallbackAnswer](messages_setBotCallbackAnswer.md)(\['alert' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'message' => [string](../types/string.md), 'url' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) + +$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) + +$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), 'crop' => [InputPhotoCrop](../types/InputPhotoCrop.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) + +$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) + +*** +

$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) + +$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) + +$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) + +*** +

$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) + +$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) + +$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) + +*** +

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) + +$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) + diff --git a/old_docs/API_docs_v55/methods/auth_cancelCode.md b/old_docs/API_docs_v55/methods/auth_cancelCode.md index 2ad15548..52b85d4c 100644 --- a/old_docs/API_docs_v55/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v55/methods/auth_cancelCode.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->cancelCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v55/methods/auth_checkPhone.md b/old_docs/API_docs_v55/methods/auth_checkPhone.md index 291221de..1826ce63 100644 --- a/old_docs/API_docs_v55/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v55/methods/auth_checkPhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); diff --git a/old_docs/API_docs_v55/methods/auth_recoverPassword.md b/old_docs/API_docs_v55/methods/auth_recoverPassword.md index cdc9bd7d..5e37b0f3 100644 --- a/old_docs/API_docs_v55/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v55/methods/auth_recoverPassword.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_Authorization = $MadelineProto->auth->recoverPassword(['code' => 'string', ]); diff --git a/old_docs/API_docs_v55/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v55/methods/auth_requestPasswordRecovery.md index e18c6c93..c69d0c49 100644 --- a/old_docs/API_docs_v55/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v55/methods/auth_requestPasswordRecovery.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_PasswordRecovery = $MadelineProto->auth->requestPasswordRecovery(); diff --git a/old_docs/API_docs_v55/methods/auth_resendCode.md b/old_docs/API_docs_v55/methods/auth_resendCode.md index de437402..253480a3 100644 --- a/old_docs/API_docs_v55/methods/auth_resendCode.md +++ b/old_docs/API_docs_v55/methods/auth_resendCode.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_SentCode = $MadelineProto->auth->resendCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v55/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v55/methods/auth_resetAuthorizations.md index 47feea16..a46c880d 100644 --- a/old_docs/API_docs_v55/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v55/methods/auth_resetAuthorizations.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); diff --git a/old_docs/API_docs_v55/methods/auth_sendInvites.md b/old_docs/API_docs_v55/methods/auth_sendInvites.md index be32fe6b..9b88b4a3 100644 --- a/old_docs/API_docs_v55/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v55/methods/auth_sendInvites.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); diff --git a/old_docs/API_docs_v55/methods/channels_checkUsername.md b/old_docs/API_docs_v55/methods/channels_checkUsername.md index 7bc7c245..7e3d5a89 100644 --- a/old_docs/API_docs_v55/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v55/methods/channels_checkUsername.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->checkUsername(['channel' => InputChannel, 'username' => 'string', ]); diff --git a/old_docs/API_docs_v55/methods/channels_createChannel.md b/old_docs/API_docs_v55/methods/channels_createChannel.md index 1305e4fb..a5ddc379 100644 --- a/old_docs/API_docs_v55/methods/channels_createChannel.md +++ b/old_docs/API_docs_v55/methods/channels_createChannel.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->createChannel(['broadcast' => Bool, 'megagroup' => Bool, 'title' => 'string', 'about' => 'string', ]); diff --git a/old_docs/API_docs_v55/methods/channels_deleteChannel.md b/old_docs/API_docs_v55/methods/channels_deleteChannel.md index e660d25c..69dad9a3 100644 --- a/old_docs/API_docs_v55/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v55/methods/channels_deleteChannel.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->deleteChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v55/methods/channels_deleteMessages.md b/old_docs/API_docs_v55/methods/channels_deleteMessages.md index fb9d3cc2..b12270b3 100644 --- a/old_docs/API_docs_v55/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v55/methods/channels_deleteMessages.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v55/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v55/methods/channels_deleteUserHistory.md index fbe34341..75f531bb 100644 --- a/old_docs/API_docs_v55/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v55/methods/channels_deleteUserHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->channels->deleteUserHistory(['channel' => InputChannel, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v55/methods/channels_editAbout.md b/old_docs/API_docs_v55/methods/channels_editAbout.md index 8908f29e..67521065 100644 --- a/old_docs/API_docs_v55/methods/channels_editAbout.md +++ b/old_docs/API_docs_v55/methods/channels_editAbout.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->editAbout(['channel' => InputChannel, 'about' => 'string', ]); diff --git a/old_docs/API_docs_v55/methods/channels_editAdmin.md b/old_docs/API_docs_v55/methods/channels_editAdmin.md index 01662a1d..7b6cc0f1 100644 --- a/old_docs/API_docs_v55/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v55/methods/channels_editAdmin.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editAdmin(['channel' => InputChannel, 'user_id' => InputUser, 'role' => ChannelParticipantRole, ]); diff --git a/old_docs/API_docs_v55/methods/channels_editPhoto.md b/old_docs/API_docs_v55/methods/channels_editPhoto.md index 9ccd864f..c854c64a 100644 --- a/old_docs/API_docs_v55/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v55/methods/channels_editPhoto.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editPhoto(['channel' => InputChannel, 'photo' => InputChatPhoto, ]); diff --git a/old_docs/API_docs_v55/methods/channels_editTitle.md b/old_docs/API_docs_v55/methods/channels_editTitle.md index b1024faf..9bc6773e 100644 --- a/old_docs/API_docs_v55/methods/channels_editTitle.md +++ b/old_docs/API_docs_v55/methods/channels_editTitle.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editTitle(['channel' => InputChannel, 'title' => 'string', ]); diff --git a/old_docs/API_docs_v55/methods/channels_exportInvite.md b/old_docs/API_docs_v55/methods/channels_exportInvite.md index f0c737d5..ca65dcc8 100644 --- a/old_docs/API_docs_v55/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v55/methods/channels_exportInvite.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedChatInvite = $MadelineProto->channels->exportInvite(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v55/methods/channels_exportMessageLink.md b/old_docs/API_docs_v55/methods/channels_exportMessageLink.md index f910b594..b4a3c645 100644 --- a/old_docs/API_docs_v55/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v55/methods/channels_exportMessageLink.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedMessageLink = $MadelineProto->channels->exportMessageLink(['channel' => InputChannel, 'id' => int, ]); diff --git a/old_docs/API_docs_v55/methods/channels_getChannels.md b/old_docs/API_docs_v55/methods/channels_getChannels.md index 9cd9e798..af22556f 100644 --- a/old_docs/API_docs_v55/methods/channels_getChannels.md +++ b/old_docs/API_docs_v55/methods/channels_getChannels.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel, InputChannel], ]); diff --git a/old_docs/API_docs_v55/methods/channels_getMessages.md b/old_docs/API_docs_v55/methods/channels_getMessages.md index cc944fe5..eda13d0b 100644 --- a/old_docs/API_docs_v55/methods/channels_getMessages.md +++ b/old_docs/API_docs_v55/methods/channels_getMessages.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v55/methods/channels_getParticipant.md b/old_docs/API_docs_v55/methods/channels_getParticipant.md index db9b1fc6..be5fe96a 100644 --- a/old_docs/API_docs_v55/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v55/methods/channels_getParticipant.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $channels_ChannelParticipant = $MadelineProto->channels->getParticipant(['channel' => InputChannel, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v55/methods/channels_getParticipants.md b/old_docs/API_docs_v55/methods/channels_getParticipants.md index 96662466..6a27016b 100644 --- a/old_docs/API_docs_v55/methods/channels_getParticipants.md +++ b/old_docs/API_docs_v55/methods/channels_getParticipants.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $channels_ChannelParticipants = $MadelineProto->channels->getParticipants(['channel' => InputChannel, 'filter' => ChannelParticipantsFilter, 'offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v55/methods/channels_inviteToChannel.md b/old_docs/API_docs_v55/methods/channels_inviteToChannel.md index 676f800c..e7d12db7 100644 --- a/old_docs/API_docs_v55/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v55/methods/channels_inviteToChannel.md @@ -52,12 +52,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v55/methods/channels_joinChannel.md b/old_docs/API_docs_v55/methods/channels_joinChannel.md index 721f707c..3ac2b326 100644 --- a/old_docs/API_docs_v55/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v55/methods/channels_joinChannel.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->joinChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v55/methods/channels_kickFromChannel.md b/old_docs/API_docs_v55/methods/channels_kickFromChannel.md index bf8bb5b8..8f6c92be 100644 --- a/old_docs/API_docs_v55/methods/channels_kickFromChannel.md +++ b/old_docs/API_docs_v55/methods/channels_kickFromChannel.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->kickFromChannel(['channel' => InputChannel, 'user_id' => InputUser, 'kicked' => Bool, ]); diff --git a/old_docs/API_docs_v55/methods/channels_leaveChannel.md b/old_docs/API_docs_v55/methods/channels_leaveChannel.md index 7f02e08c..95b60a90 100644 --- a/old_docs/API_docs_v55/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v55/methods/channels_leaveChannel.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->leaveChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v55/methods/channels_readHistory.md b/old_docs/API_docs_v55/methods/channels_readHistory.md index cca891f0..c6b14541 100644 --- a/old_docs/API_docs_v55/methods/channels_readHistory.md +++ b/old_docs/API_docs_v55/methods/channels_readHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->readHistory(['channel' => InputChannel, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v55/methods/channels_reportSpam.md b/old_docs/API_docs_v55/methods/channels_reportSpam.md index 09af14e0..ca5c28f5 100644 --- a/old_docs/API_docs_v55/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v55/methods/channels_reportSpam.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v55/methods/channels_toggleInvites.md b/old_docs/API_docs_v55/methods/channels_toggleInvites.md index 5b541f67..e9e6450d 100644 --- a/old_docs/API_docs_v55/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v55/methods/channels_toggleInvites.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->toggleInvites(['channel' => InputChannel, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v55/methods/channels_toggleSignatures.md b/old_docs/API_docs_v55/methods/channels_toggleSignatures.md index f233a8e1..36d1eccb 100644 --- a/old_docs/API_docs_v55/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v55/methods/channels_toggleSignatures.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->toggleSignatures(['channel' => InputChannel, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v55/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v55/methods/channels_updatePinnedMessage.md index f06d1f0f..f8d10ece 100644 --- a/old_docs/API_docs_v55/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v55/methods/channels_updatePinnedMessage.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->updatePinnedMessage(['silent' => Bool, 'channel' => InputChannel, 'id' => int, ]); diff --git a/old_docs/API_docs_v55/methods/channels_updateUsername.md b/old_docs/API_docs_v55/methods/channels_updateUsername.md index ad34490a..2093b6ce 100644 --- a/old_docs/API_docs_v55/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v55/methods/channels_updateUsername.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->updateUsername(['channel' => InputChannel, 'username' => 'string', ]); diff --git a/old_docs/API_docs_v55/methods/contacts_block.md b/old_docs/API_docs_v55/methods/contacts_block.md index d0729d30..e592cace 100644 --- a/old_docs/API_docs_v55/methods/contacts_block.md +++ b/old_docs/API_docs_v55/methods/contacts_block.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v55/methods/contacts_deleteContact.md b/old_docs/API_docs_v55/methods/contacts_deleteContact.md index b8c17544..1a3f2a27 100644 --- a/old_docs/API_docs_v55/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v55/methods/contacts_deleteContact.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v55/methods/contacts_deleteContacts.md b/old_docs/API_docs_v55/methods/contacts_deleteContacts.md index 64c69460..f6627599 100644 --- a/old_docs/API_docs_v55/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v55/methods/contacts_deleteContacts.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v55/methods/contacts_exportCard.md b/old_docs/API_docs_v55/methods/contacts_exportCard.md index b05f57ce..1d2129f3 100644 --- a/old_docs/API_docs_v55/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v55/methods/contacts_exportCard.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); diff --git a/old_docs/API_docs_v55/methods/contacts_getBlocked.md b/old_docs/API_docs_v55/methods/contacts_getBlocked.md index d7d8c5cc..44d24aba 100644 --- a/old_docs/API_docs_v55/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v55/methods/contacts_getBlocked.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v55/methods/contacts_getContacts.md b/old_docs/API_docs_v55/methods/contacts_getContacts.md index 1ab8af27..83c4846f 100644 --- a/old_docs/API_docs_v55/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v55/methods/contacts_getContacts.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v55/methods/contacts_getStatuses.md b/old_docs/API_docs_v55/methods/contacts_getStatuses.md index b927a140..5cef3084 100644 --- a/old_docs/API_docs_v55/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v55/methods/contacts_getStatuses.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); diff --git a/old_docs/API_docs_v55/methods/contacts_getTopPeers.md b/old_docs/API_docs_v55/methods/contacts_getTopPeers.md index 2bad9a2a..8d39809c 100644 --- a/old_docs/API_docs_v55/methods/contacts_getTopPeers.md +++ b/old_docs/API_docs_v55/methods/contacts_getTopPeers.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_TopPeers = $MadelineProto->contacts->getTopPeers(['correspondents' => Bool, 'bots_pm' => Bool, 'bots_inline' => Bool, 'groups' => Bool, 'channels' => Bool, 'offset' => int, 'limit' => int, 'hash' => int, ]); diff --git a/old_docs/API_docs_v55/methods/contacts_importCard.md b/old_docs/API_docs_v55/methods/contacts_importCard.md index 81a1e138..89c96657 100644 --- a/old_docs/API_docs_v55/methods/contacts_importCard.md +++ b/old_docs/API_docs_v55/methods/contacts_importCard.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); diff --git a/old_docs/API_docs_v55/methods/contacts_importContacts.md b/old_docs/API_docs_v55/methods/contacts_importContacts.md index 578e5dfd..cd3d6615 100644 --- a/old_docs/API_docs_v55/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v55/methods/contacts_importContacts.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], 'replace' => Bool, ]); diff --git a/old_docs/API_docs_v55/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v55/methods/contacts_resetTopPeerRating.md index 4b485921..4b5e96f1 100644 --- a/old_docs/API_docs_v55/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v55/methods/contacts_resetTopPeerRating.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->resetTopPeerRating(['category' => TopPeerCategory, 'peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v55/methods/contacts_search.md b/old_docs/API_docs_v55/methods/contacts_search.md index 68daecd6..64ff748e 100644 --- a/old_docs/API_docs_v55/methods/contacts_search.md +++ b/old_docs/API_docs_v55/methods/contacts_search.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); diff --git a/old_docs/API_docs_v55/methods/contacts_unblock.md b/old_docs/API_docs_v55/methods/contacts_unblock.md index f7d151b9..ec72ae2d 100644 --- a/old_docs/API_docs_v55/methods/contacts_unblock.md +++ b/old_docs/API_docs_v55/methods/contacts_unblock.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v55/methods/help_getAppChangelog.md b/old_docs/API_docs_v55/methods/help_getAppChangelog.md index 208d3409..58f3858a 100644 --- a/old_docs/API_docs_v55/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v55/methods/help_getAppChangelog.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_AppChangelog = $MadelineProto->help->getAppChangelog(); diff --git a/old_docs/API_docs_v55/methods/help_getAppUpdate.md b/old_docs/API_docs_v55/methods/help_getAppUpdate.md index b88906ae..c6a42922 100644 --- a/old_docs/API_docs_v55/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v55/methods/help_getAppUpdate.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(); diff --git a/old_docs/API_docs_v55/methods/help_getConfig.md b/old_docs/API_docs_v55/methods/help_getConfig.md index 16e25c68..ca4bfc25 100644 --- a/old_docs/API_docs_v55/methods/help_getConfig.md +++ b/old_docs/API_docs_v55/methods/help_getConfig.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); diff --git a/old_docs/API_docs_v55/methods/help_getInviteText.md b/old_docs/API_docs_v55/methods/help_getInviteText.md index 6b226bff..7311b7fb 100644 --- a/old_docs/API_docs_v55/methods/help_getInviteText.md +++ b/old_docs/API_docs_v55/methods/help_getInviteText.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(); diff --git a/old_docs/API_docs_v55/methods/help_getNearestDc.md b/old_docs/API_docs_v55/methods/help_getNearestDc.md index 35a8bf91..458f60ab 100644 --- a/old_docs/API_docs_v55/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v55/methods/help_getNearestDc.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); diff --git a/old_docs/API_docs_v55/methods/help_getSupport.md b/old_docs/API_docs_v55/methods/help_getSupport.md index a5bab0f2..9ee25b00 100644 --- a/old_docs/API_docs_v55/methods/help_getSupport.md +++ b/old_docs/API_docs_v55/methods/help_getSupport.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); diff --git a/old_docs/API_docs_v55/methods/help_getTermsOfService.md b/old_docs/API_docs_v55/methods/help_getTermsOfService.md index 487cd83a..4dea9f79 100644 --- a/old_docs/API_docs_v55/methods/help_getTermsOfService.md +++ b/old_docs/API_docs_v55/methods/help_getTermsOfService.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_TermsOfService = $MadelineProto->help->getTermsOfService(); diff --git a/old_docs/API_docs_v55/methods/help_saveAppLog.md b/old_docs/API_docs_v55/methods/help_saveAppLog.md index 0165b6e3..a7884c47 100644 --- a/old_docs/API_docs_v55/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v55/methods/help_saveAppLog.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); diff --git a/old_docs/API_docs_v55/methods/initConnection.md b/old_docs/API_docs_v55/methods/initConnection.md index 2d3d86ad..73620276 100644 --- a/old_docs/API_docs_v55/methods/initConnection.md +++ b/old_docs/API_docs_v55/methods/initConnection.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->initConnection(['api_id' => int, 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', 'query' => !X, ]); diff --git a/old_docs/API_docs_v55/methods/invokeAfterMsg.md b/old_docs/API_docs_v55/methods/invokeAfterMsg.md index e33a2c93..8e953e78 100644 --- a/old_docs/API_docs_v55/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v55/methods/invokeAfterMsg.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); diff --git a/old_docs/API_docs_v55/methods/invokeAfterMsgs.md b/old_docs/API_docs_v55/methods/invokeAfterMsgs.md index 3150a613..bc8a83b7 100644 --- a/old_docs/API_docs_v55/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v55/methods/invokeAfterMsgs.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); diff --git a/old_docs/API_docs_v55/methods/invokeWithLayer.md b/old_docs/API_docs_v55/methods/invokeWithLayer.md index 71d02abb..8a0c4e79 100644 --- a/old_docs/API_docs_v55/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v55/methods/invokeWithLayer.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); diff --git a/old_docs/API_docs_v55/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v55/methods/invokeWithoutUpdates.md index 2bab236a..2d90a776 100644 --- a/old_docs/API_docs_v55/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v55/methods/invokeWithoutUpdates.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeWithoutUpdates(['query' => !X, ]); diff --git a/old_docs/API_docs_v55/methods/messages_addChatUser.md b/old_docs/API_docs_v55/methods/messages_addChatUser.md index 3e4c5ccc..c6ef275f 100644 --- a/old_docs/API_docs_v55/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v55/methods/messages_addChatUser.md @@ -46,12 +46,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); diff --git a/old_docs/API_docs_v55/methods/messages_checkChatInvite.md b/old_docs/API_docs_v55/methods/messages_checkChatInvite.md index de1d9ff4..cea63313 100644 --- a/old_docs/API_docs_v55/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v55/methods/messages_checkChatInvite.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ChatInvite = $MadelineProto->messages->checkChatInvite(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v55/methods/messages_clearRecentStickers.md b/old_docs/API_docs_v55/methods/messages_clearRecentStickers.md index 19e1f2dc..aed3a5b3 100644 --- a/old_docs/API_docs_v55/methods/messages_clearRecentStickers.md +++ b/old_docs/API_docs_v55/methods/messages_clearRecentStickers.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->clearRecentStickers(); diff --git a/old_docs/API_docs_v55/methods/messages_createChat.md b/old_docs/API_docs_v55/methods/messages_createChat.md index 68c0263a..966f58dc 100644 --- a/old_docs/API_docs_v55/methods/messages_createChat.md +++ b/old_docs/API_docs_v55/methods/messages_createChat.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); diff --git a/old_docs/API_docs_v55/methods/messages_deleteChatUser.md b/old_docs/API_docs_v55/methods/messages_deleteChatUser.md index 0a6830de..9a9227ba 100644 --- a/old_docs/API_docs_v55/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v55/methods/messages_deleteChatUser.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v55/methods/messages_deleteHistory.md b/old_docs/API_docs_v55/methods/messages_deleteHistory.md index e44433c1..45e9890d 100644 --- a/old_docs/API_docs_v55/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v55/methods/messages_deleteHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['just_clear' => Bool, 'peer' => InputPeer, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v55/methods/messages_deleteMessages.md b/old_docs/API_docs_v55/methods/messages_deleteMessages.md index 41570996..fa043e1c 100644 --- a/old_docs/API_docs_v55/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v55/methods/messages_deleteMessages.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v55/methods/messages_editChatAdmin.md b/old_docs/API_docs_v55/methods/messages_editChatAdmin.md index 7916f8b1..5bba0559 100644 --- a/old_docs/API_docs_v55/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v55/methods/messages_editChatAdmin.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]); diff --git a/old_docs/API_docs_v55/methods/messages_editChatPhoto.md b/old_docs/API_docs_v55/methods/messages_editChatPhoto.md index 122913c4..5827a5cc 100644 --- a/old_docs/API_docs_v55/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v55/methods/messages_editChatPhoto.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); diff --git a/old_docs/API_docs_v55/methods/messages_editChatTitle.md b/old_docs/API_docs_v55/methods/messages_editChatTitle.md index 3a1e974b..2e69d790 100644 --- a/old_docs/API_docs_v55/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v55/methods/messages_editChatTitle.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); diff --git a/old_docs/API_docs_v55/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v55/methods/messages_editInlineBotMessage.md index 2237fb20..73c8a2c4 100644 --- a/old_docs/API_docs_v55/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v55/methods/messages_editInlineBotMessage.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->editInlineBotMessage(['no_webpage' => Bool, 'id' => InputBotInlineMessageID, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v55/methods/messages_editMessage.md b/old_docs/API_docs_v55/methods/messages_editMessage.md index 177438a5..ad639325 100644 --- a/old_docs/API_docs_v55/methods/messages_editMessage.md +++ b/old_docs/API_docs_v55/methods/messages_editMessage.md @@ -51,12 +51,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editMessage(['no_webpage' => Bool, 'peer' => InputPeer, 'id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v55/methods/messages_exportChatInvite.md b/old_docs/API_docs_v55/methods/messages_exportChatInvite.md index 98685d96..ec80e207 100644 --- a/old_docs/API_docs_v55/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v55/methods/messages_exportChatInvite.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]); diff --git a/old_docs/API_docs_v55/methods/messages_forwardMessage.md b/old_docs/API_docs_v55/methods/messages_forwardMessage.md index 45b7a07f..d6916437 100644 --- a/old_docs/API_docs_v55/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v55/methods/messages_forwardMessage.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); diff --git a/old_docs/API_docs_v55/methods/messages_forwardMessages.md b/old_docs/API_docs_v55/methods/messages_forwardMessages.md index 88893539..8922a1ea 100644 --- a/old_docs/API_docs_v55/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v55/methods/messages_forwardMessages.md @@ -61,12 +61,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessages(['silent' => Bool, 'background' => Bool, 'from_peer' => InputPeer, 'id' => [int, int], 'to_peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v55/methods/messages_getAllDrafts.md b/old_docs/API_docs_v55/methods/messages_getAllDrafts.md index 2c0ecd42..43a95bb2 100644 --- a/old_docs/API_docs_v55/methods/messages_getAllDrafts.md +++ b/old_docs/API_docs_v55/methods/messages_getAllDrafts.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->getAllDrafts(); diff --git a/old_docs/API_docs_v55/methods/messages_getAllStickers.md b/old_docs/API_docs_v55/methods/messages_getAllStickers.md index 16fdba6c..2ba37a91 100644 --- a/old_docs/API_docs_v55/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v55/methods/messages_getAllStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => int, ]); diff --git a/old_docs/API_docs_v55/methods/messages_getArchivedStickers.md b/old_docs/API_docs_v55/methods/messages_getArchivedStickers.md index ad6e894d..3dfe8f2c 100644 --- a/old_docs/API_docs_v55/methods/messages_getArchivedStickers.md +++ b/old_docs/API_docs_v55/methods/messages_getArchivedStickers.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_ArchivedStickers = $MadelineProto->messages->getArchivedStickers(['offset_id' => long, 'limit' => int, ]); diff --git a/old_docs/API_docs_v55/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v55/methods/messages_getBotCallbackAnswer.md index bd83feb0..01ae3ac9 100644 --- a/old_docs/API_docs_v55/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v55/methods/messages_getBotCallbackAnswer.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_BotCallbackAnswer = $MadelineProto->messages->getBotCallbackAnswer(['peer' => InputPeer, 'msg_id' => int, 'data' => 'bytes', ]); diff --git a/old_docs/API_docs_v55/methods/messages_getChats.md b/old_docs/API_docs_v55/methods/messages_getChats.md index 290438a1..e84c7193 100644 --- a/old_docs/API_docs_v55/methods/messages_getChats.md +++ b/old_docs/API_docs_v55/methods/messages_getChats.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v55/methods/messages_getDialogs.md b/old_docs/API_docs_v55/methods/messages_getDialogs.md index 7a28bd83..bd3ef681 100644 --- a/old_docs/API_docs_v55/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v55/methods/messages_getDialogs.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['offset_date' => int, 'offset_id' => int, 'offset_peer' => InputPeer, 'limit' => int, ]); diff --git a/old_docs/API_docs_v55/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v55/methods/messages_getDocumentByHash.md index 1af5bad4..ad8e22be 100644 --- a/old_docs/API_docs_v55/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v55/methods/messages_getDocumentByHash.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Document = $MadelineProto->messages->getDocumentByHash(['sha256' => 'bytes', 'size' => int, 'mime_type' => 'string', ]); diff --git a/old_docs/API_docs_v55/methods/messages_getFeaturedStickers.md b/old_docs/API_docs_v55/methods/messages_getFeaturedStickers.md index 512f2e85..8e49e1ef 100644 --- a/old_docs/API_docs_v55/methods/messages_getFeaturedStickers.md +++ b/old_docs/API_docs_v55/methods/messages_getFeaturedStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_FeaturedStickers = $MadelineProto->messages->getFeaturedStickers(['hash' => int, ]); diff --git a/old_docs/API_docs_v55/methods/messages_getHistory.md b/old_docs/API_docs_v55/methods/messages_getHistory.md index dfae66e6..851d2680 100644 --- a/old_docs/API_docs_v55/methods/messages_getHistory.md +++ b/old_docs/API_docs_v55/methods/messages_getHistory.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getHistory(['peer' => InputPeer, 'offset_id' => int, 'offset_date' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); diff --git a/old_docs/API_docs_v55/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v55/methods/messages_getInlineBotResults.md index 8ab5bf78..4d86caf5 100644 --- a/old_docs/API_docs_v55/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v55/methods/messages_getInlineBotResults.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_BotResults = $MadelineProto->messages->getInlineBotResults(['bot' => InputUser, 'peer' => InputPeer, 'geo_point' => InputGeoPoint, 'query' => 'string', 'offset' => 'string', ]); diff --git a/old_docs/API_docs_v55/methods/messages_getMessageEditData.md b/old_docs/API_docs_v55/methods/messages_getMessageEditData.md index 12e71bee..34f8534f 100644 --- a/old_docs/API_docs_v55/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v55/methods/messages_getMessageEditData.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_MessageEditData = $MadelineProto->messages->getMessageEditData(['peer' => InputPeer, 'id' => int, ]); diff --git a/old_docs/API_docs_v55/methods/messages_getMessages.md b/old_docs/API_docs_v55/methods/messages_getMessages.md index 86d1da8a..d538cb5f 100644 --- a/old_docs/API_docs_v55/methods/messages_getMessages.md +++ b/old_docs/API_docs_v55/methods/messages_getMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v55/methods/messages_getMessagesViews.md b/old_docs/API_docs_v55/methods/messages_getMessagesViews.md index b8d78c85..934adc16 100644 --- a/old_docs/API_docs_v55/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v55/methods/messages_getMessagesViews.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int, int], 'increment' => Bool, ]); diff --git a/old_docs/API_docs_v55/methods/messages_getPeerDialogs.md b/old_docs/API_docs_v55/methods/messages_getPeerDialogs.md index da82cfc6..063b6e7d 100644 --- a/old_docs/API_docs_v55/methods/messages_getPeerDialogs.md +++ b/old_docs/API_docs_v55/methods/messages_getPeerDialogs.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_PeerDialogs = $MadelineProto->messages->getPeerDialogs(['peers' => [InputPeer, InputPeer], ]); diff --git a/old_docs/API_docs_v55/methods/messages_getPeerSettings.md b/old_docs/API_docs_v55/methods/messages_getPeerSettings.md index f1f2a3bb..a18126f0 100644 --- a/old_docs/API_docs_v55/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v55/methods/messages_getPeerSettings.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $PeerSettings = $MadelineProto->messages->getPeerSettings(['peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v55/methods/messages_getRecentStickers.md b/old_docs/API_docs_v55/methods/messages_getRecentStickers.md index 2fe2cdff..d58efb1b 100644 --- a/old_docs/API_docs_v55/methods/messages_getRecentStickers.md +++ b/old_docs/API_docs_v55/methods/messages_getRecentStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_RecentStickers = $MadelineProto->messages->getRecentStickers(['hash' => int, ]); diff --git a/old_docs/API_docs_v55/methods/messages_getSavedGifs.md b/old_docs/API_docs_v55/methods/messages_getSavedGifs.md index f61348ce..38585538 100644 --- a/old_docs/API_docs_v55/methods/messages_getSavedGifs.md +++ b/old_docs/API_docs_v55/methods/messages_getSavedGifs.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => int, ]); diff --git a/old_docs/API_docs_v55/methods/messages_getStickerSet.md b/old_docs/API_docs_v55/methods/messages_getStickerSet.md index c86807e4..c9140ab2 100644 --- a/old_docs/API_docs_v55/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v55/methods/messages_getStickerSet.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSet = $MadelineProto->messages->getStickerSet(['stickerset' => InputStickerSet, ]); diff --git a/old_docs/API_docs_v55/methods/messages_getStickers.md b/old_docs/API_docs_v55/methods/messages_getStickers.md index 4854696d..d2ea57cf 100644 --- a/old_docs/API_docs_v55/methods/messages_getStickers.md +++ b/old_docs/API_docs_v55/methods/messages_getStickers.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Stickers = $MadelineProto->messages->getStickers(['emoticon' => 'string', 'hash' => 'string', ]); diff --git a/old_docs/API_docs_v55/methods/messages_getUnusedStickers.md b/old_docs/API_docs_v55/methods/messages_getUnusedStickers.md index 4995fb15..6ccf59a4 100644 --- a/old_docs/API_docs_v55/methods/messages_getUnusedStickers.md +++ b/old_docs/API_docs_v55/methods/messages_getUnusedStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_StickerSetCovered = $MadelineProto->messages->getUnusedStickers(['limit' => int, ]); diff --git a/old_docs/API_docs_v55/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v55/methods/messages_getWebPagePreview.md index d01bdd32..e8b20c5d 100644 --- a/old_docs/API_docs_v55/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v55/methods/messages_getWebPagePreview.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $MessageMedia = $MadelineProto->messages->getWebPagePreview(['message' => 'string', ]); diff --git a/old_docs/API_docs_v55/methods/messages_hideReportSpam.md b/old_docs/API_docs_v55/methods/messages_hideReportSpam.md index 856770cb..30523f2a 100644 --- a/old_docs/API_docs_v55/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v55/methods/messages_hideReportSpam.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->hideReportSpam(['peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v55/methods/messages_importChatInvite.md b/old_docs/API_docs_v55/methods/messages_importChatInvite.md index 0d6cd7c8..b1830a9b 100644 --- a/old_docs/API_docs_v55/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v55/methods/messages_importChatInvite.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->importChatInvite(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v55/methods/messages_installStickerSet.md b/old_docs/API_docs_v55/methods/messages_installStickerSet.md index 9f6f098c..20f90b71 100644 --- a/old_docs/API_docs_v55/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v55/methods/messages_installStickerSet.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSetInstallResult = $MadelineProto->messages->installStickerSet(['stickerset' => InputStickerSet, 'archived' => Bool, ]); diff --git a/old_docs/API_docs_v55/methods/messages_migrateChat.md b/old_docs/API_docs_v55/methods/messages_migrateChat.md index db57adfa..22ccfcc1 100644 --- a/old_docs/API_docs_v55/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v55/methods/messages_migrateChat.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]); diff --git a/old_docs/API_docs_v55/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v55/methods/messages_readEncryptedHistory.md index 39b110e3..2ba4cca4 100644 --- a/old_docs/API_docs_v55/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v55/methods/messages_readEncryptedHistory.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); diff --git a/old_docs/API_docs_v55/methods/messages_readFeaturedStickers.md b/old_docs/API_docs_v55/methods/messages_readFeaturedStickers.md index 5958aab7..d32c8c16 100644 --- a/old_docs/API_docs_v55/methods/messages_readFeaturedStickers.md +++ b/old_docs/API_docs_v55/methods/messages_readFeaturedStickers.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->readFeaturedStickers(); diff --git a/old_docs/API_docs_v55/methods/messages_readHistory.md b/old_docs/API_docs_v55/methods/messages_readHistory.md index 3de17061..26b608af 100644 --- a/old_docs/API_docs_v55/methods/messages_readHistory.md +++ b/old_docs/API_docs_v55/methods/messages_readHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v55/methods/messages_readMessageContents.md b/old_docs/API_docs_v55/methods/messages_readMessageContents.md index 9bb1bee8..a09cb63e 100644 --- a/old_docs/API_docs_v55/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v55/methods/messages_readMessageContents.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v55/methods/messages_receivedMessages.md b/old_docs/API_docs_v55/methods/messages_receivedMessages.md index 7aab635f..b5e87992 100644 --- a/old_docs/API_docs_v55/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v55/methods/messages_receivedMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_ReceivedNotifyMessage = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); diff --git a/old_docs/API_docs_v55/methods/messages_reorderStickerSets.md b/old_docs/API_docs_v55/methods/messages_reorderStickerSets.md index b2cbe4c1..90913e5d 100644 --- a/old_docs/API_docs_v55/methods/messages_reorderStickerSets.md +++ b/old_docs/API_docs_v55/methods/messages_reorderStickerSets.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reorderStickerSets(['order' => [long, long], ]); diff --git a/old_docs/API_docs_v55/methods/messages_reportSpam.md b/old_docs/API_docs_v55/methods/messages_reportSpam.md index 2e2b1177..09c1e63b 100644 --- a/old_docs/API_docs_v55/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v55/methods/messages_reportSpam.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reportSpam(['peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v55/methods/messages_saveDraft.md b/old_docs/API_docs_v55/methods/messages_saveDraft.md index bbeed707..59b33b03 100644 --- a/old_docs/API_docs_v55/methods/messages_saveDraft.md +++ b/old_docs/API_docs_v55/methods/messages_saveDraft.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->saveDraft(['no_webpage' => Bool, 'reply_to_msg_id' => int, 'peer' => InputPeer, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v55/methods/messages_saveGif.md b/old_docs/API_docs_v55/methods/messages_saveGif.md index 6f608c4c..145039e7 100644 --- a/old_docs/API_docs_v55/methods/messages_saveGif.md +++ b/old_docs/API_docs_v55/methods/messages_saveGif.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->saveGif(['id' => InputDocument, 'unsave' => Bool, ]); diff --git a/old_docs/API_docs_v55/methods/messages_saveRecentSticker.md b/old_docs/API_docs_v55/methods/messages_saveRecentSticker.md index 57514ad9..e3c5ef54 100644 --- a/old_docs/API_docs_v55/methods/messages_saveRecentSticker.md +++ b/old_docs/API_docs_v55/methods/messages_saveRecentSticker.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->saveRecentSticker(['id' => InputDocument, 'unsave' => Bool, ]); diff --git a/old_docs/API_docs_v55/methods/messages_search.md b/old_docs/API_docs_v55/methods/messages_search.md index 7821d2b7..735ddf47 100644 --- a/old_docs/API_docs_v55/methods/messages_search.md +++ b/old_docs/API_docs_v55/methods/messages_search.md @@ -49,12 +49,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->search(['peer' => InputPeer, 'q' => 'string', 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v55/methods/messages_searchGifs.md b/old_docs/API_docs_v55/methods/messages_searchGifs.md index 103ebfeb..9677bf24 100644 --- a/old_docs/API_docs_v55/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v55/methods/messages_searchGifs.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_FoundGifs = $MadelineProto->messages->searchGifs(['q' => 'string', 'offset' => int, ]); diff --git a/old_docs/API_docs_v55/methods/messages_searchGlobal.md b/old_docs/API_docs_v55/methods/messages_searchGlobal.md index 0edd1e40..6ad4aec0 100644 --- a/old_docs/API_docs_v55/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v55/methods/messages_searchGlobal.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->searchGlobal(['q' => 'string', 'offset_date' => int, 'offset_peer' => InputPeer, 'offset_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v55/methods/messages_sendBroadcast.md b/old_docs/API_docs_v55/methods/messages_sendBroadcast.md index 28e248a9..6cff8b29 100644 --- a/old_docs/API_docs_v55/methods/messages_sendBroadcast.md +++ b/old_docs/API_docs_v55/methods/messages_sendBroadcast.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendBroadcast(['contacts' => [InputUser, InputUser], 'message' => 'string', 'media' => InputMedia, ]); diff --git a/old_docs/API_docs_v55/methods/messages_sendEncrypted.md b/old_docs/API_docs_v55/methods/messages_sendEncrypted.md index d48f88d7..76305f32 100644 --- a/old_docs/API_docs_v55/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v55/methods/messages_sendEncrypted.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v55/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v55/methods/messages_sendEncryptedFile.md index 4fd0648e..8db2ead9 100644 --- a/old_docs/API_docs_v55/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v55/methods/messages_sendEncryptedFile.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); diff --git a/old_docs/API_docs_v55/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v55/methods/messages_sendEncryptedService.md index d66894bf..c7836c94 100644 --- a/old_docs/API_docs_v55/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v55/methods/messages_sendEncryptedService.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v55/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v55/methods/messages_sendInlineBotResult.md index 386ac7e3..1a12322c 100644 --- a/old_docs/API_docs_v55/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v55/methods/messages_sendInlineBotResult.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendInlineBotResult(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'query_id' => long, 'id' => 'string', ]); diff --git a/old_docs/API_docs_v55/methods/messages_sendMedia.md b/old_docs/API_docs_v55/methods/messages_sendMedia.md index 0b5cf9b6..770d1b65 100644 --- a/old_docs/API_docs_v55/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v55/methods/messages_sendMedia.md @@ -63,12 +63,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendMedia(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, 'reply_markup' => ReplyMarkup, ]); diff --git a/old_docs/API_docs_v55/methods/messages_sendMessage.md b/old_docs/API_docs_v55/methods/messages_sendMessage.md index c4dc8894..83dc6c8b 100644 --- a/old_docs/API_docs_v55/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v55/methods/messages_sendMessage.md @@ -65,12 +65,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendMessage(['no_webpage' => Bool, 'silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v55/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v55/methods/messages_setBotCallbackAnswer.md index 9700a1f1..b9993826 100644 --- a/old_docs/API_docs_v55/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v55/methods/messages_setBotCallbackAnswer.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setBotCallbackAnswer(['alert' => Bool, 'query_id' => long, 'message' => 'string', 'url' => 'string', ]); diff --git a/old_docs/API_docs_v55/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v55/methods/messages_setEncryptedTyping.md index e9afe99c..4e7450eb 100644 --- a/old_docs/API_docs_v55/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v55/methods/messages_setEncryptedTyping.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); diff --git a/old_docs/API_docs_v55/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v55/methods/messages_setInlineBotResults.md index 79493009..d4ba6e65 100644 --- a/old_docs/API_docs_v55/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v55/methods/messages_setInlineBotResults.md @@ -52,12 +52,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setInlineBotResults(['gallery' => Bool, 'private' => Bool, 'query_id' => long, 'results' => [InputBotInlineResult, InputBotInlineResult], 'cache_time' => int, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, ]); diff --git a/old_docs/API_docs_v55/methods/messages_setTyping.md b/old_docs/API_docs_v55/methods/messages_setTyping.md index bea4982b..a2b94823 100644 --- a/old_docs/API_docs_v55/methods/messages_setTyping.md +++ b/old_docs/API_docs_v55/methods/messages_setTyping.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); diff --git a/old_docs/API_docs_v55/methods/messages_startBot.md b/old_docs/API_docs_v55/methods/messages_startBot.md index 94a4d86a..50d6f475 100644 --- a/old_docs/API_docs_v55/methods/messages_startBot.md +++ b/old_docs/API_docs_v55/methods/messages_startBot.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'peer' => InputPeer, 'start_param' => 'string', ]); diff --git a/old_docs/API_docs_v55/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v55/methods/messages_toggleChatAdmins.md index ab591fd9..349ea0e6 100644 --- a/old_docs/API_docs_v55/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v55/methods/messages_toggleChatAdmins.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => InputPeer, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v55/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v55/methods/messages_uninstallStickerSet.md index 6d04e847..26b2fbb3 100644 --- a/old_docs/API_docs_v55/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v55/methods/messages_uninstallStickerSet.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->uninstallStickerSet(['stickerset' => InputStickerSet, ]); diff --git a/old_docs/API_docs_v55/methods/photos_deletePhotos.md b/old_docs/API_docs_v55/methods/photos_deletePhotos.md index b9daca10..937aadd5 100644 --- a/old_docs/API_docs_v55/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v55/methods/photos_deletePhotos.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); diff --git a/old_docs/API_docs_v55/methods/photos_getUserPhotos.md b/old_docs/API_docs_v55/methods/photos_getUserPhotos.md index ea27a44f..d1c15e90 100644 --- a/old_docs/API_docs_v55/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v55/methods/photos_getUserPhotos.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => long, 'limit' => int, ]); diff --git a/old_docs/API_docs_v55/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v55/methods/photos_updateProfilePhoto.md index 2d1e1e76..4c5c517f 100644 --- a/old_docs/API_docs_v55/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v55/methods/photos_updateProfilePhoto.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, 'crop' => InputPhotoCrop, ]); diff --git a/old_docs/API_docs_v55/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v55/methods/photos_uploadProfilePhoto.md index 6ff4ddf5..3d7d301b 100644 --- a/old_docs/API_docs_v55/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v55/methods/photos_uploadProfilePhoto.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, 'caption' => 'string', 'geo_point' => InputGeoPoint, 'crop' => InputPhotoCrop, ]); diff --git a/old_docs/API_docs_v55/methods/users_getUsers.md b/old_docs/API_docs_v55/methods/users_getUsers.md index ef1c7fd8..bce13ee6 100644 --- a/old_docs/API_docs_v55/methods/users_getUsers.md +++ b/old_docs/API_docs_v55/methods/users_getUsers.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v57/README.md b/old_docs/API_docs_v57/README.md index 893efbfc..35173195 100644 --- a/old_docs/API_docs_v57/README.md +++ b/old_docs/API_docs_v57/README.md @@ -4,11 +4,11 @@ description: MadelineProto API documentation (layer v57) --- # MadelineProto API documentation (layer v57) +[Back to main documentation](..) + + [Methods](methods/) [Constructors](constructors/) -[Types](types/) - - -[Back to main documentation](..) +[Types](types/) \ No newline at end of file diff --git a/old_docs/API_docs_v57/methods/README.md b/old_docs/API_docs_v57/methods/README.md index 17c3d78d..9bc26e1b 100644 --- a/old_docs/API_docs_v57/methods/README.md +++ b/old_docs/API_docs_v57/methods/README.md @@ -1,419 +1,414 @@ --- title: Methods -description: List of methods +description: What do you want to do? --- -# Methods -[Back to API documentation index](..) +# What do you want to do? +[Go back to API documentation index](..) +[Go to the old code-version method index](api_index.html) -$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); +* [Logout](https://docs.madelineproto.xyz/logout.html) -$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); +* [Login](https://docs.madelineproto.xyz/docs/LOGIN.html) -$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); +* [Get all chats, broadcast a message to all chats](https://docs.madelineproto.xyz/docs/DIALOGS.html) -$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); +* [Get the full participant list of a channel/group/supergroup](https://docs.madelineproto.xyz/get_pwr_chat.html) -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); +* [Get full info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_full_info.html) +* [Get info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_info.html) -$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); +* [Get info about the currently logged-in user](https://docs.madelineproto.xyz/get_self.html) -$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); +* [Upload or download files up to 1.5 GB](https://docs.madelineproto.xyz/docs/FILES.html) -$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); +* [Make a phone call and play a song](https://docs.madelineproto.xyz/docs/CALLS.html) -$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); - -$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); - - -$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); - -$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); +* [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) *** -

$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) +

* Change the phone number associated to this account -$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Check if this username is available -$MadelineProto->[account->confirmPhone](account_confirmPhone.md)(\['phone_code_hash' => [string](../types/string.md), 'phone_code' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode -$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Delete this account -$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) +* Get account TTL -$MadelineProto->[account->getAuthorizations](account_getAuthorizations.md)(\[\]) === [$account\_Authorizations](../types/account_Authorizations.md) +* Get all logged-in authorizations -$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) +* Get notification settings -$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md) +* Get the current password -$MadelineProto->[account->getPasswordSettings](account_getPasswordSettings.md)(\['current_password_hash' => [bytes](../types/bytes.md), \]) === [$account\_PasswordSettings](../types/account_PasswordSettings.md) +* Get the current 2FA settings -$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Get privacy settings -$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) +* Returns a list of available wallpapers. -$MadelineProto->[account->registerDevice](account_registerDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Register device for push notifications -$MadelineProto->[account->reportPeer](account_reportPeer.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reason' => [ReportReason](../types/ReportReason.md), \]) === [$Bool](../types/Bool.md) +* Report for spam -$MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) +* Delete a certain session -$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) +* Reset all notification settings -$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) +* Change the phone number -$MadelineProto->[account->sendConfirmPhoneCode](account_sendConfirmPhoneCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'hash' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) +* Send confirmation phone code -$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) +* Set account TTL -$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Set privacy settings -$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Stop sending PUSH notifications to app -$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Disable all notifications for a certain period -$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) +* Change notification settings -$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) +* Update the 2FA password settings -$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) +* Update profile info -$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Update online status -$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) +* Update this user's username *** -

$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) +

* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info -$MadelineProto->[auth->cancelCode](auth_cancelCode.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Invalidate sent phone code -$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) +* Check if this phone number is registered on telegram -$MadelineProto->[auth->dropTempAuthKeys](auth_dropTempAuthKeys.md)(\['except_auth_keys' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) +* Delete all temporary authorization keys except the ones provided -$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) +* You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$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) +* You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->recoverPassword](auth_recoverPassword.md)(\['code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account -$MadelineProto->[auth->requestPasswordRecovery](auth_requestPasswordRecovery.md)(\[\]) === [$auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) +* Send an email to recover the 2FA password -$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) +* Resend the SMS verification code -$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) +* Delete all logged-in sessions. -$MadelineProto->[auth->sendCode](auth_sendCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'phone_number' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), 'api_id' => [int](../types/int.md), 'api_hash' => [string](../types/string.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) +* Use phone_login instead -$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Invite friends to telegram! -$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) +* You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) -$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) +* You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) *** -

$MadelineProto->[channels->checkUsername](channels_checkUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +

* Check if this username is free and can be assigned to a channel/supergroup -$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) +* Create channel/supergroup -$MadelineProto->[channels->deleteChannel](channels_deleteChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Delete a channel/supergroup -$MadelineProto->[channels->deleteMessages](channels_deleteMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Delete channel/supergroup messages -$MadelineProto->[channels->deleteUserHistory](channels_deleteUserHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Delete all messages of a user in a channel/supergroup -$MadelineProto->[channels->editAbout](channels_editAbout.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'about' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Edit the about text of a channel/supergroup -$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) +* Edit admin permissions of a user in a channel/supergroup -$MadelineProto->[channels->editPhoto](channels_editPhoto.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) +* Edit the photo of a supergroup/channel -$MadelineProto->[channels->editTitle](channels_editTitle.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Edit the title of a supergroup/channel -$MadelineProto->[channels->exportInvite](channels_exportInvite.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) +* Export the invite link of a channel -$MadelineProto->[channels->exportMessageLink](channels_exportMessageLink.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => [int](../types/int.md), \]) === [$ExportedMessageLink](../types/ExportedMessageLink.md) +* Get the link of a message in a channel -$MadelineProto->[channels->getAdminedPublicChannels](channels_getAdminedPublicChannels.md)(\[\]) === [$messages\_Chats](../types/messages_Chats.md) +* Get all supergroups/channels where you're admin -$MadelineProto->[channels->getChannels](channels_getChannels.md)(\['id' => \[[InputChannel](../types/InputChannel.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get info about multiple channels/supergroups -$MadelineProto->[channels->getFullChannel](channels_getFullChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) +* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[channels->getMessages](channels_getMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get channel/supergroup messages -$MadelineProto->[channels->getParticipant](channels_getParticipant.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) +* Get info about a certain channel/supergroup participant -$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) +* Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead) -$MadelineProto->[channels->inviteToChannel](channels_inviteToChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'users' => \[[InputUser](../types/InputUser.md)\], \]) === [$Updates](../types/Updates.md) +* Add users to channel/supergroup -$MadelineProto->[channels->joinChannel](channels_joinChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Join a channel/supergroup -$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) +* Kick user from channel -$MadelineProto->[channels->leaveChannel](channels_leaveChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Leave a channel/supergroup -$MadelineProto->[channels->readHistory](channels_readHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Mark channel/supergroup history as read -$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) +* Report a supergroup/channel for spam -$MadelineProto->[channels->toggleInvites](channels_toggleInvites.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Allow or disallow any user to invite users to this channel/supergroup -$MadelineProto->[channels->toggleSignatures](channels_toggleSignatures.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Toggle channel signatures -$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) +* Set the pinned message of a channel/supergroup -$MadelineProto->[channels->updateUsername](channels_updateUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Update the username of a supergroup/channel *** -

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +

* Block a user -$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) +* Delete a contact -$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) +* Delete multiple contacts -$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) +* Export contact as card -$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) +* Get blocked users -$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [string](../types/string.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) +* Get info about a certain contact -$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) +* Get online status of all users -$MadelineProto->[contacts->getTopPeers](contacts_getTopPeers.md)(\['correspondents' => [Bool](../types/Bool.md), 'bots_pm' => [Bool](../types/Bool.md), 'bots_inline' => [Bool](../types/Bool.md), 'groups' => [Bool](../types/Bool.md), 'channels' => [Bool](../types/Bool.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'hash' => [int](../types/int.md), \]) === [$contacts\_TopPeers](../types/contacts_TopPeers.md) +* Get most used chats -$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) +* Import card as contact -$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], 'replace' => [Bool](../types/Bool.md), \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) +* Add phone number as contact -$MadelineProto->[contacts->resetTopPeerRating](contacts_resetTopPeerRating.md)(\['category' => [TopPeerCategory](../types/TopPeerCategory.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Reset top peer rating for a certain category/peer -$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) +* You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) +* Search contacts -$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +* Unblock a user *** -

$MadelineProto->[help->getAppChangelog](help_getAppChangelog.md)(\[\]) === [$help\_AppChangelog](../types/help_AppChangelog.md) +

* Get the changelog of this app -$MadelineProto->[help->getAppUpdate](help_getAppUpdate.md)(\[\]) === [$help\_AppUpdate](../types/help_AppUpdate.md) +* Get info about app updates -$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) +* Get server configuration -$MadelineProto->[help->getInviteText](help_getInviteText.md)(\[\]) === [$help\_InviteText](../types/help_InviteText.md) +* Get invitation text -$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) +* Get nearest datacenter -$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) +* Get info of support user -$MadelineProto->[help->getTermsOfService](help_getTermsOfService.md)(\[\]) === [$help\_TermsOfService](../types/help_TermsOfService.md) +* Get terms of service -$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) +* Log data for developer of this app *** -

$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) +

* Initializes connection and save information on the user's device and application. *** -

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invokes a query after successfull completion of one of the previous queries. *** -

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Result type returned by a current query. *** -

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invoke this method with layer X *** -

$MadelineProto->[invokeWithoutUpdates](invokeWithoutUpdates.md)(\['query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invoke with method without returning updates in the socket *** -

$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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Add a user to a normal chat (use channels->inviteToChannel for supergroups) -$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md) +* Check if an invitation link is valid -$MadelineProto->[messages->clearRecentStickers](messages_clearRecentStickers.md)(\['attached' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Clear all recent stickers -$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Create a chat (not supergroup) -$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md) +* Delete a user from a chat (not supergroup) -$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['just_clear' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Delete chat history -$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Delete messages -$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Edit admin permissions -$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) +* Edit the photo of a normal chat (not supergroup) -$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Edit the title of a normal chat (not supergroup) -$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) +* Edit a sent inline message -$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) +* Edit a message -$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) +* Export chat invite -$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) +* Forward message -$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'with_my_score' => [Bool](../types/Bool.md), 'from_peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], 'to_peer' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) +* Forward messages -$MadelineProto->[messages->getAllDrafts](messages_getAllDrafts.md)(\[\]) === [$Updates](../types/Updates.md) +* Get all message drafts -$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) +* Get all stickerpacks -$MadelineProto->[messages->getArchivedStickers](messages_getArchivedStickers.md)(\['masks' => [Bool](../types/Bool.md), 'offset_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), \]) === [$messages\_ArchivedStickers](../types/messages_ArchivedStickers.md) +* Get all archived stickers -$MadelineProto->[messages->getAttachedStickers](messages_getAttachedStickers.md)(\['media' => [InputStickeredMedia](../types/InputStickeredMedia.md), \]) === [$Vector\_of\_StickerSetCovered](../types/StickerSetCovered.md) +* Get stickers attachable to images -$MadelineProto->[messages->getBotCallbackAnswer](messages_getBotCallbackAnswer.md)(\['game' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'msg_id' => [int](../types/int.md), 'data' => [bytes](../types/bytes.md), \]) === [$messages\_BotCallbackAnswer](../types/messages_BotCallbackAnswer.md) +* Get the callback answer of a bot (after clicking a button) -$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get info about chats -$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) +* You cannot use this method directly, instead use $MadelineProto->get_dh_config(); -$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) +* Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html -$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) +* Get document by SHA256 hash -$MadelineProto->[messages->getFeaturedStickers](messages_getFeaturedStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_FeaturedStickers](../types/messages_FeaturedStickers.md) +* Get featured stickers -$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) +* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[messages->getGameHighScores](messages_getGameHighScores.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_HighScores](../types/messages_HighScores.md) +* Get high scores of a game -$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) +* Get previous messages of a group -$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) +* Call inline bot -$MadelineProto->[messages->getInlineGameHighScores](messages_getInlineGameHighScores.md)(\['id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_HighScores](../types/messages_HighScores.md) +* Get high scores of a game sent in an inline message -$MadelineProto->[messages->getMaskStickers](messages_getMaskStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) +* Get masks -$MadelineProto->[messages->getMessageEditData](messages_getMessageEditData.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$messages\_MessageEditData](../types/messages_MessageEditData.md) +* Check if about to edit a message or a media caption -$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get messages -$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) +* Get and increase message views -$MadelineProto->[messages->getPeerDialogs](messages_getPeerDialogs.md)(\['peers' => \[[InputPeer](../types/InputPeer.md)\], \]) === [$messages\_PeerDialogs](../types/messages_PeerDialogs.md) +* Get dialog info of peers -$MadelineProto->[messages->getPeerSettings](messages_getPeerSettings.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$PeerSettings](../types/PeerSettings.md) +* Get the settings of apeer -$MadelineProto->[messages->getRecentStickers](messages_getRecentStickers.md)(\['attached' => [Bool](../types/Bool.md), 'hash' => [int](../types/int.md), \]) === [$messages\_RecentStickers](../types/messages_RecentStickers.md) +* Get recent stickers -$MadelineProto->[messages->getSavedGifs](messages_getSavedGifs.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_SavedGifs](../types/messages_SavedGifs.md) +* Get saved gifs -$MadelineProto->[messages->getStickerSet](messages_getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) +* Get a stickerset -$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) === [$MessageMedia](../types/MessageMedia.md) +* Get webpage preview -$MadelineProto->[messages->hideReportSpam](messages_hideReportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Hide report spam popup -$MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Import chat invite -$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'archived' => [Bool](../types/Bool.md), \]) === [$messages\_StickerSetInstallResult](../types/messages_StickerSetInstallResult.md) +* Add a sticker set -$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) +* Convert chat to supergroup -$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Mark messages as read in secret chats -$MadelineProto->[messages->readFeaturedStickers](messages_readFeaturedStickers.md)(\['id' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) +* Mark new featured stickers as read -$MadelineProto->[messages->readHistory](messages_readHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Mark messages as read -$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Mark message as read -$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_ReceivedNotifyMessage](../types/ReceivedNotifyMessage.md) +* Mark messages as read -$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) +* You cannot use this method directly -$MadelineProto->[messages->reorderStickerSets](messages_reorderStickerSets.md)(\['masks' => [Bool](../types/Bool.md), 'order' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) +* Reorder sticker sets -$MadelineProto->[messages->reportSpam](messages_reportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Report a peer for spam -$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$MadelineProto->[messages->saveDraft](messages_saveDraft.md)(\['no_webpage' => [Bool](../types/Bool.md), 'reply_to_msg_id' => [int](../types/int.md), 'peer' => [InputPeer](../types/InputPeer.md), 'message' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Bool](../types/Bool.md) +* Save a message draft -$MadelineProto->[messages->saveGif](messages_saveGif.md)(\['id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Save a GIF -$MadelineProto->[messages->saveRecentSticker](messages_saveRecentSticker.md)(\['attached' => [Bool](../types/Bool.md), 'id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Add a sticker to recent stickers -$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) +* Search peers or messages -$MadelineProto->[messages->searchGifs](messages_searchGifs.md)(\['q' => [string](../types/string.md), 'offset' => [int](../types/int.md), \]) === [$messages\_FoundGifs](../types/messages_FoundGifs.md) +* Search gifs -$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) +* Global message search -$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send message to secret chat -$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) +* Send a file to a secret chat -$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send a service message to a secret chat -$MadelineProto->[messages->sendInlineBotResult](messages_sendInlineBotResult.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'query_id' => [long](../types/long.md), 'id' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Send a received bot result to the chat -$MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'media' => [InputMedia](../types/InputMedia.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \]) === [$Updates](../types/Updates.md) +* Send a media -$MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Updates](../types/Updates.md) +* Send a message -$MadelineProto->[messages->setBotCallbackAnswer](messages_setBotCallbackAnswer.md)(\['alert' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'message' => [string](../types/string.md), 'url' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Bots only: set the callback answer (after a button was clicked) -$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Send typing notification to secret chat -$MadelineProto->[messages->setGameScore](messages_setGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) +* Set the game score -$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) +* Bots only: set the results of an inline query -$MadelineProto->[messages->setInlineGameScore](messages_setInlineGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Set the game score of an inline message -$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) +* Change typing status -$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) +* Start a bot -$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Enable all users are admins in normal groups (not supergroups) -$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) +* Remove a sticker set *** -

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) +

* Delete profile photos -$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) +* Get the profile photos of a user -$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) +* Update the profile photo (use photos->uploadProfilePhoto to upload the photo) -$MadelineProto->[photos->uploadProfilePhoto](photos_uploadProfilePhoto.md)(\['file' => [InputFile](../types/InputFile.md), \]) === [$photos\_Photo](../types/photos_Photo.md) +* Upload profile photo *** -

$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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates -$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) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates -$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates *** -

$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) +

* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info *** -

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) +

* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) +* Get info about users diff --git a/old_docs/API_docs_v57/methods/account_changePhone.md b/old_docs/API_docs_v57/methods/account_changePhone.md index aeb5c4bc..65f0b0d0 100644 --- a/old_docs/API_docs_v57/methods/account_changePhone.md +++ b/old_docs/API_docs_v57/methods/account_changePhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); diff --git a/old_docs/API_docs_v57/methods/account_checkUsername.md b/old_docs/API_docs_v57/methods/account_checkUsername.md index 0124bb38..08107762 100644 --- a/old_docs/API_docs_v57/methods/account_checkUsername.md +++ b/old_docs/API_docs_v57/methods/account_checkUsername.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v57/methods/account_confirmPhone.md b/old_docs/API_docs_v57/methods/account_confirmPhone.md index c6a1dba6..68490f35 100644 --- a/old_docs/API_docs_v57/methods/account_confirmPhone.md +++ b/old_docs/API_docs_v57/methods/account_confirmPhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->confirmPhone(['phone_code_hash' => 'string', 'phone_code' => 'string', ]); diff --git a/old_docs/API_docs_v57/methods/account_deleteAccount.md b/old_docs/API_docs_v57/methods/account_deleteAccount.md index e8b46c24..3a6f4700 100644 --- a/old_docs/API_docs_v57/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v57/methods/account_deleteAccount.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); diff --git a/old_docs/API_docs_v57/methods/account_getAccountTTL.md b/old_docs/API_docs_v57/methods/account_getAccountTTL.md index 0cdd0b98..ab6a6ea1 100644 --- a/old_docs/API_docs_v57/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v57/methods/account_getAccountTTL.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); diff --git a/old_docs/API_docs_v57/methods/account_getAuthorizations.md b/old_docs/API_docs_v57/methods/account_getAuthorizations.md index f92db8fe..303203e4 100644 --- a/old_docs/API_docs_v57/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v57/methods/account_getAuthorizations.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_Authorizations = $MadelineProto->account->getAuthorizations(); diff --git a/old_docs/API_docs_v57/methods/account_getNotifySettings.md b/old_docs/API_docs_v57/methods/account_getNotifySettings.md index f00be12c..ad492f49 100644 --- a/old_docs/API_docs_v57/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v57/methods/account_getNotifySettings.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); diff --git a/old_docs/API_docs_v57/methods/account_getPassword.md b/old_docs/API_docs_v57/methods/account_getPassword.md index c189421d..2692dab1 100644 --- a/old_docs/API_docs_v57/methods/account_getPassword.md +++ b/old_docs/API_docs_v57/methods/account_getPassword.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_Password = $MadelineProto->account->getPassword(); diff --git a/old_docs/API_docs_v57/methods/account_getPasswordSettings.md b/old_docs/API_docs_v57/methods/account_getPasswordSettings.md index 96cb953e..2039d405 100644 --- a/old_docs/API_docs_v57/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v57/methods/account_getPasswordSettings.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PasswordSettings = $MadelineProto->account->getPasswordSettings(['current_password_hash' => 'bytes', ]); diff --git a/old_docs/API_docs_v57/methods/account_getPrivacy.md b/old_docs/API_docs_v57/methods/account_getPrivacy.md index 979bfb94..5480ffbb 100644 --- a/old_docs/API_docs_v57/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v57/methods/account_getPrivacy.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); diff --git a/old_docs/API_docs_v57/methods/account_getWallPapers.md b/old_docs/API_docs_v57/methods/account_getWallPapers.md index 89b281be..7c8bff39 100644 --- a/old_docs/API_docs_v57/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v57/methods/account_getWallPapers.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); diff --git a/old_docs/API_docs_v57/methods/account_registerDevice.md b/old_docs/API_docs_v57/methods/account_registerDevice.md index cd28abcd..4e148a7f 100644 --- a/old_docs/API_docs_v57/methods/account_registerDevice.md +++ b/old_docs/API_docs_v57/methods/account_registerDevice.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', ]); diff --git a/old_docs/API_docs_v57/methods/account_reportPeer.md b/old_docs/API_docs_v57/methods/account_reportPeer.md index a07c87d0..c5fe7073 100644 --- a/old_docs/API_docs_v57/methods/account_reportPeer.md +++ b/old_docs/API_docs_v57/methods/account_reportPeer.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->reportPeer(['peer' => InputPeer, 'reason' => ReportReason, ]); diff --git a/old_docs/API_docs_v57/methods/account_resetAuthorization.md b/old_docs/API_docs_v57/methods/account_resetAuthorization.md index 4155d3c8..543aee08 100644 --- a/old_docs/API_docs_v57/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v57/methods/account_resetAuthorization.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetAuthorization(['hash' => long, ]); diff --git a/old_docs/API_docs_v57/methods/account_resetNotifySettings.md b/old_docs/API_docs_v57/methods/account_resetNotifySettings.md index ccc836a9..557373b0 100644 --- a/old_docs/API_docs_v57/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v57/methods/account_resetNotifySettings.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); diff --git a/old_docs/API_docs_v57/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v57/methods/account_sendChangePhoneCode.md index c9f9c174..bdf7331f 100644 --- a/old_docs/API_docs_v57/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v57/methods/account_sendChangePhoneCode.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendChangePhoneCode(['allow_flashcall' => Bool, 'phone_number' => 'string', 'current_number' => Bool, ]); diff --git a/old_docs/API_docs_v57/methods/account_sendConfirmPhoneCode.md b/old_docs/API_docs_v57/methods/account_sendConfirmPhoneCode.md index 3785ba75..86035d19 100644 --- a/old_docs/API_docs_v57/methods/account_sendConfirmPhoneCode.md +++ b/old_docs/API_docs_v57/methods/account_sendConfirmPhoneCode.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendConfirmPhoneCode(['allow_flashcall' => Bool, 'hash' => 'string', 'current_number' => Bool, ]); diff --git a/old_docs/API_docs_v57/methods/account_setAccountTTL.md b/old_docs/API_docs_v57/methods/account_setAccountTTL.md index 5100e62e..bacdd77a 100644 --- a/old_docs/API_docs_v57/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v57/methods/account_setAccountTTL.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); diff --git a/old_docs/API_docs_v57/methods/account_setPrivacy.md b/old_docs/API_docs_v57/methods/account_setPrivacy.md index fbcedae7..6e24ded7 100644 --- a/old_docs/API_docs_v57/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v57/methods/account_setPrivacy.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); diff --git a/old_docs/API_docs_v57/methods/account_unregisterDevice.md b/old_docs/API_docs_v57/methods/account_unregisterDevice.md index 1d2b7670..b666d91a 100644 --- a/old_docs/API_docs_v57/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v57/methods/account_unregisterDevice.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); diff --git a/old_docs/API_docs_v57/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v57/methods/account_updateDeviceLocked.md index ef816501..cd52093a 100644 --- a/old_docs/API_docs_v57/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v57/methods/account_updateDeviceLocked.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); diff --git a/old_docs/API_docs_v57/methods/account_updateNotifySettings.md b/old_docs/API_docs_v57/methods/account_updateNotifySettings.md index 18cbdb75..db020309 100644 --- a/old_docs/API_docs_v57/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v57/methods/account_updateNotifySettings.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); diff --git a/old_docs/API_docs_v57/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v57/methods/account_updatePasswordSettings.md index 0754dd63..8af1e37f 100644 --- a/old_docs/API_docs_v57/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v57/methods/account_updatePasswordSettings.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updatePasswordSettings(['current_password_hash' => 'bytes', 'new_settings' => account_PasswordInputSettings, ]); diff --git a/old_docs/API_docs_v57/methods/account_updateProfile.md b/old_docs/API_docs_v57/methods/account_updateProfile.md index e24ef2f5..59629188 100644 --- a/old_docs/API_docs_v57/methods/account_updateProfile.md +++ b/old_docs/API_docs_v57/methods/account_updateProfile.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', 'about' => 'string', ]); diff --git a/old_docs/API_docs_v57/methods/account_updateStatus.md b/old_docs/API_docs_v57/methods/account_updateStatus.md index 4b049e65..50b99b1e 100644 --- a/old_docs/API_docs_v57/methods/account_updateStatus.md +++ b/old_docs/API_docs_v57/methods/account_updateStatus.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); diff --git a/old_docs/API_docs_v57/methods/account_updateUsername.md b/old_docs/API_docs_v57/methods/account_updateUsername.md index 08d2abe0..7276e2aa 100644 --- a/old_docs/API_docs_v57/methods/account_updateUsername.md +++ b/old_docs/API_docs_v57/methods/account_updateUsername.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v57/methods/api_README.md b/old_docs/API_docs_v57/methods/api_README.md new file mode 100644 index 00000000..68f38efb --- /dev/null +++ b/old_docs/API_docs_v57/methods/api_README.md @@ -0,0 +1,420 @@ +--- +title: Methods +description: List of methods +--- +# Methods +[Back to API documentation index](..) + +[Go to the new description-version method index](index.html) + +$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); + +$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); + +$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); + +$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); + +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); + + +$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); + +$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); + +$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); + +$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); + +$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); + + +$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); + +$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); + +*** +

$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) + +$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->confirmPhone](account_confirmPhone.md)(\['phone_code_hash' => [string](../types/string.md), 'phone_code' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) + +$MadelineProto->[account->getAuthorizations](account_getAuthorizations.md)(\[\]) === [$account\_Authorizations](../types/account_Authorizations.md) + +$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) + +$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md) + +$MadelineProto->[account->getPasswordSettings](account_getPasswordSettings.md)(\['current_password_hash' => [bytes](../types/bytes.md), \]) === [$account\_PasswordSettings](../types/account_PasswordSettings.md) + +$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) + +$MadelineProto->[account->registerDevice](account_registerDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->reportPeer](account_reportPeer.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reason' => [ReportReason](../types/ReportReason.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[account->sendConfirmPhoneCode](account_sendConfirmPhoneCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'hash' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) + +$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$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) + +$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) + +*** +

$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) + +$MadelineProto->[auth->cancelCode](auth_cancelCode.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) + +$MadelineProto->[auth->dropTempAuthKeys](auth_dropTempAuthKeys.md)(\['except_auth_keys' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) + +$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$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) + +$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->recoverPassword](auth_recoverPassword.md)(\['code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->requestPasswordRecovery](auth_requestPasswordRecovery.md)(\[\]) === [$auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) + +$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) + +$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->sendCode](auth_sendCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'phone_number' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), 'api_id' => [int](../types/int.md), 'api_hash' => [string](../types/string.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) + +$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$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) + +*** +

$MadelineProto->[channels->checkUsername](channels_checkUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->deleteChannel](channels_deleteChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->deleteMessages](channels_deleteMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[channels->deleteUserHistory](channels_deleteUserHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[channels->editAbout](channels_editAbout.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'about' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->editPhoto](channels_editPhoto.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->editTitle](channels_editTitle.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->exportInvite](channels_exportInvite.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) + +$MadelineProto->[channels->exportMessageLink](channels_exportMessageLink.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => [int](../types/int.md), \]) === [$ExportedMessageLink](../types/ExportedMessageLink.md) + +$MadelineProto->[channels->getAdminedPublicChannels](channels_getAdminedPublicChannels.md)(\[\]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[channels->getChannels](channels_getChannels.md)(\['id' => \[[InputChannel](../types/InputChannel.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[channels->getFullChannel](channels_getFullChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$MadelineProto->[channels->getMessages](channels_getMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) + +$MadelineProto->[channels->getParticipant](channels_getParticipant.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) + +$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) + +$MadelineProto->[channels->inviteToChannel](channels_inviteToChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'users' => \[[InputUser](../types/InputUser.md)\], \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->joinChannel](channels_joinChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$MadelineProto->[channels->leaveChannel](channels_leaveChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->readHistory](channels_readHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->toggleInvites](channels_toggleInvites.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->toggleSignatures](channels_toggleSignatures.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$MadelineProto->[channels->updateUsername](channels_updateUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) + +$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) + +$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) + +$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [string](../types/string.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) + +$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) + +$MadelineProto->[contacts->getTopPeers](contacts_getTopPeers.md)(\['correspondents' => [Bool](../types/Bool.md), 'bots_pm' => [Bool](../types/Bool.md), 'bots_inline' => [Bool](../types/Bool.md), 'groups' => [Bool](../types/Bool.md), 'channels' => [Bool](../types/Bool.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'hash' => [int](../types/int.md), \]) === [$contacts\_TopPeers](../types/contacts_TopPeers.md) + +$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) + +$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], 'replace' => [Bool](../types/Bool.md), \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) + +$MadelineProto->[contacts->resetTopPeerRating](contacts_resetTopPeerRating.md)(\['category' => [TopPeerCategory](../types/TopPeerCategory.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) + +$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) + +$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[help->getAppChangelog](help_getAppChangelog.md)(\[\]) === [$help\_AppChangelog](../types/help_AppChangelog.md) + +$MadelineProto->[help->getAppUpdate](help_getAppUpdate.md)(\[\]) === [$help\_AppUpdate](../types/help_AppUpdate.md) + +$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) + +$MadelineProto->[help->getInviteText](help_getInviteText.md)(\[\]) === [$help\_InviteText](../types/help_InviteText.md) + +$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) + +$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) + +$MadelineProto->[help->getTermsOfService](help_getTermsOfService.md)(\[\]) === [$help\_TermsOfService](../types/help_TermsOfService.md) + +$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) + +*** +

$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) + +*** +

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeWithoutUpdates](invokeWithoutUpdates.md)(\['query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$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) + +$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) + +$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md) + +$MadelineProto->[messages->clearRecentStickers](messages_clearRecentStickers.md)(\['attached' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['just_clear' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$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) + +$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) + +$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'with_my_score' => [Bool](../types/Bool.md), 'from_peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], 'to_peer' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->getAllDrafts](messages_getAllDrafts.md)(\[\]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) + +$MadelineProto->[messages->getArchivedStickers](messages_getArchivedStickers.md)(\['masks' => [Bool](../types/Bool.md), 'offset_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), \]) === [$messages\_ArchivedStickers](../types/messages_ArchivedStickers.md) + +$MadelineProto->[messages->getAttachedStickers](messages_getAttachedStickers.md)(\['media' => [InputStickeredMedia](../types/InputStickeredMedia.md), \]) === [$Vector\_of\_StickerSetCovered](../types/StickerSetCovered.md) + +$MadelineProto->[messages->getBotCallbackAnswer](messages_getBotCallbackAnswer.md)(\['game' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'msg_id' => [int](../types/int.md), 'data' => [bytes](../types/bytes.md), \]) === [$messages\_BotCallbackAnswer](../types/messages_BotCallbackAnswer.md) + +$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) + +$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) + +$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) + +$MadelineProto->[messages->getFeaturedStickers](messages_getFeaturedStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_FeaturedStickers](../types/messages_FeaturedStickers.md) + +$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$MadelineProto->[messages->getGameHighScores](messages_getGameHighScores.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_HighScores](../types/messages_HighScores.md) + +$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) + +$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) + +$MadelineProto->[messages->getInlineGameHighScores](messages_getInlineGameHighScores.md)(\['id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_HighScores](../types/messages_HighScores.md) + +$MadelineProto->[messages->getMaskStickers](messages_getMaskStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) + +$MadelineProto->[messages->getMessageEditData](messages_getMessageEditData.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$messages\_MessageEditData](../types/messages_MessageEditData.md) + +$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) + +$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) + +$MadelineProto->[messages->getPeerDialogs](messages_getPeerDialogs.md)(\['peers' => \[[InputPeer](../types/InputPeer.md)\], \]) === [$messages\_PeerDialogs](../types/messages_PeerDialogs.md) + +$MadelineProto->[messages->getPeerSettings](messages_getPeerSettings.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$PeerSettings](../types/PeerSettings.md) + +$MadelineProto->[messages->getRecentStickers](messages_getRecentStickers.md)(\['attached' => [Bool](../types/Bool.md), 'hash' => [int](../types/int.md), \]) === [$messages\_RecentStickers](../types/messages_RecentStickers.md) + +$MadelineProto->[messages->getSavedGifs](messages_getSavedGifs.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_SavedGifs](../types/messages_SavedGifs.md) + +$MadelineProto->[messages->getStickerSet](messages_getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) === [$MessageMedia](../types/MessageMedia.md) + +$MadelineProto->[messages->hideReportSpam](messages_hideReportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'archived' => [Bool](../types/Bool.md), \]) === [$messages\_StickerSetInstallResult](../types/messages_StickerSetInstallResult.md) + +$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->readFeaturedStickers](messages_readFeaturedStickers.md)(\['id' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->readHistory](messages_readHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_ReceivedNotifyMessage](../types/ReceivedNotifyMessage.md) + +$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) + +$MadelineProto->[messages->reorderStickerSets](messages_reorderStickerSets.md)(\['masks' => [Bool](../types/Bool.md), 'order' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->reportSpam](messages_reportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) + +$MadelineProto->[messages->saveDraft](messages_saveDraft.md)(\['no_webpage' => [Bool](../types/Bool.md), 'reply_to_msg_id' => [int](../types/int.md), 'peer' => [InputPeer](../types/InputPeer.md), 'message' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->saveGif](messages_saveGif.md)(\['id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->saveRecentSticker](messages_saveRecentSticker.md)(\['attached' => [Bool](../types/Bool.md), 'id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->searchGifs](messages_searchGifs.md)(\['q' => [string](../types/string.md), 'offset' => [int](../types/int.md), \]) === [$messages\_FoundGifs](../types/messages_FoundGifs.md) + +$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) + +$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$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) + +$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$MadelineProto->[messages->sendInlineBotResult](messages_sendInlineBotResult.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'query_id' => [long](../types/long.md), 'id' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'media' => [InputMedia](../types/InputMedia.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->setBotCallbackAnswer](messages_setBotCallbackAnswer.md)(\['alert' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'message' => [string](../types/string.md), 'url' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setGameScore](messages_setGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$MadelineProto->[messages->setInlineGameScore](messages_setInlineGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) + +$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) + +$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) + +$MadelineProto->[photos->uploadProfilePhoto](photos_uploadProfilePhoto.md)(\['file' => [InputFile](../types/InputFile.md), \]) === [$photos\_Photo](../types/photos_Photo.md) + +*** +

$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) + +$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) + +$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) + +*** +

$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) + +$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) + +$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) + +*** +

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) + +$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) + diff --git a/old_docs/API_docs_v57/methods/auth_cancelCode.md b/old_docs/API_docs_v57/methods/auth_cancelCode.md index 2ad15548..52b85d4c 100644 --- a/old_docs/API_docs_v57/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v57/methods/auth_cancelCode.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->cancelCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v57/methods/auth_checkPhone.md b/old_docs/API_docs_v57/methods/auth_checkPhone.md index 291221de..1826ce63 100644 --- a/old_docs/API_docs_v57/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v57/methods/auth_checkPhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); diff --git a/old_docs/API_docs_v57/methods/auth_dropTempAuthKeys.md b/old_docs/API_docs_v57/methods/auth_dropTempAuthKeys.md index 6474bbb3..5aa98b3b 100644 --- a/old_docs/API_docs_v57/methods/auth_dropTempAuthKeys.md +++ b/old_docs/API_docs_v57/methods/auth_dropTempAuthKeys.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->dropTempAuthKeys(['except_auth_keys' => [long, long], ]); diff --git a/old_docs/API_docs_v57/methods/auth_recoverPassword.md b/old_docs/API_docs_v57/methods/auth_recoverPassword.md index cdc9bd7d..5e37b0f3 100644 --- a/old_docs/API_docs_v57/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v57/methods/auth_recoverPassword.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_Authorization = $MadelineProto->auth->recoverPassword(['code' => 'string', ]); diff --git a/old_docs/API_docs_v57/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v57/methods/auth_requestPasswordRecovery.md index e18c6c93..c69d0c49 100644 --- a/old_docs/API_docs_v57/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v57/methods/auth_requestPasswordRecovery.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_PasswordRecovery = $MadelineProto->auth->requestPasswordRecovery(); diff --git a/old_docs/API_docs_v57/methods/auth_resendCode.md b/old_docs/API_docs_v57/methods/auth_resendCode.md index de437402..253480a3 100644 --- a/old_docs/API_docs_v57/methods/auth_resendCode.md +++ b/old_docs/API_docs_v57/methods/auth_resendCode.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_SentCode = $MadelineProto->auth->resendCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v57/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v57/methods/auth_resetAuthorizations.md index 47feea16..a46c880d 100644 --- a/old_docs/API_docs_v57/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v57/methods/auth_resetAuthorizations.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); diff --git a/old_docs/API_docs_v57/methods/auth_sendInvites.md b/old_docs/API_docs_v57/methods/auth_sendInvites.md index be32fe6b..9b88b4a3 100644 --- a/old_docs/API_docs_v57/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v57/methods/auth_sendInvites.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); diff --git a/old_docs/API_docs_v57/methods/channels_checkUsername.md b/old_docs/API_docs_v57/methods/channels_checkUsername.md index 7bc7c245..7e3d5a89 100644 --- a/old_docs/API_docs_v57/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v57/methods/channels_checkUsername.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->checkUsername(['channel' => InputChannel, 'username' => 'string', ]); diff --git a/old_docs/API_docs_v57/methods/channels_createChannel.md b/old_docs/API_docs_v57/methods/channels_createChannel.md index 1305e4fb..a5ddc379 100644 --- a/old_docs/API_docs_v57/methods/channels_createChannel.md +++ b/old_docs/API_docs_v57/methods/channels_createChannel.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->createChannel(['broadcast' => Bool, 'megagroup' => Bool, 'title' => 'string', 'about' => 'string', ]); diff --git a/old_docs/API_docs_v57/methods/channels_deleteChannel.md b/old_docs/API_docs_v57/methods/channels_deleteChannel.md index e660d25c..69dad9a3 100644 --- a/old_docs/API_docs_v57/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v57/methods/channels_deleteChannel.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->deleteChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v57/methods/channels_deleteMessages.md b/old_docs/API_docs_v57/methods/channels_deleteMessages.md index fb9d3cc2..b12270b3 100644 --- a/old_docs/API_docs_v57/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v57/methods/channels_deleteMessages.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v57/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v57/methods/channels_deleteUserHistory.md index fbe34341..75f531bb 100644 --- a/old_docs/API_docs_v57/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v57/methods/channels_deleteUserHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->channels->deleteUserHistory(['channel' => InputChannel, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v57/methods/channels_editAbout.md b/old_docs/API_docs_v57/methods/channels_editAbout.md index 8908f29e..67521065 100644 --- a/old_docs/API_docs_v57/methods/channels_editAbout.md +++ b/old_docs/API_docs_v57/methods/channels_editAbout.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->editAbout(['channel' => InputChannel, 'about' => 'string', ]); diff --git a/old_docs/API_docs_v57/methods/channels_editAdmin.md b/old_docs/API_docs_v57/methods/channels_editAdmin.md index 01662a1d..7b6cc0f1 100644 --- a/old_docs/API_docs_v57/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v57/methods/channels_editAdmin.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editAdmin(['channel' => InputChannel, 'user_id' => InputUser, 'role' => ChannelParticipantRole, ]); diff --git a/old_docs/API_docs_v57/methods/channels_editPhoto.md b/old_docs/API_docs_v57/methods/channels_editPhoto.md index 9ccd864f..c854c64a 100644 --- a/old_docs/API_docs_v57/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v57/methods/channels_editPhoto.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editPhoto(['channel' => InputChannel, 'photo' => InputChatPhoto, ]); diff --git a/old_docs/API_docs_v57/methods/channels_editTitle.md b/old_docs/API_docs_v57/methods/channels_editTitle.md index b1024faf..9bc6773e 100644 --- a/old_docs/API_docs_v57/methods/channels_editTitle.md +++ b/old_docs/API_docs_v57/methods/channels_editTitle.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editTitle(['channel' => InputChannel, 'title' => 'string', ]); diff --git a/old_docs/API_docs_v57/methods/channels_exportInvite.md b/old_docs/API_docs_v57/methods/channels_exportInvite.md index f0c737d5..ca65dcc8 100644 --- a/old_docs/API_docs_v57/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v57/methods/channels_exportInvite.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedChatInvite = $MadelineProto->channels->exportInvite(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v57/methods/channels_exportMessageLink.md b/old_docs/API_docs_v57/methods/channels_exportMessageLink.md index f910b594..b4a3c645 100644 --- a/old_docs/API_docs_v57/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v57/methods/channels_exportMessageLink.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedMessageLink = $MadelineProto->channels->exportMessageLink(['channel' => InputChannel, 'id' => int, ]); diff --git a/old_docs/API_docs_v57/methods/channels_getAdminedPublicChannels.md b/old_docs/API_docs_v57/methods/channels_getAdminedPublicChannels.md index 9646f529..febc44f9 100644 --- a/old_docs/API_docs_v57/methods/channels_getAdminedPublicChannels.md +++ b/old_docs/API_docs_v57/methods/channels_getAdminedPublicChannels.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->channels->getAdminedPublicChannels(); diff --git a/old_docs/API_docs_v57/methods/channels_getChannels.md b/old_docs/API_docs_v57/methods/channels_getChannels.md index 9cd9e798..af22556f 100644 --- a/old_docs/API_docs_v57/methods/channels_getChannels.md +++ b/old_docs/API_docs_v57/methods/channels_getChannels.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel, InputChannel], ]); diff --git a/old_docs/API_docs_v57/methods/channels_getMessages.md b/old_docs/API_docs_v57/methods/channels_getMessages.md index cc944fe5..eda13d0b 100644 --- a/old_docs/API_docs_v57/methods/channels_getMessages.md +++ b/old_docs/API_docs_v57/methods/channels_getMessages.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v57/methods/channels_getParticipant.md b/old_docs/API_docs_v57/methods/channels_getParticipant.md index db9b1fc6..be5fe96a 100644 --- a/old_docs/API_docs_v57/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v57/methods/channels_getParticipant.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $channels_ChannelParticipant = $MadelineProto->channels->getParticipant(['channel' => InputChannel, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v57/methods/channels_getParticipants.md b/old_docs/API_docs_v57/methods/channels_getParticipants.md index 96662466..6a27016b 100644 --- a/old_docs/API_docs_v57/methods/channels_getParticipants.md +++ b/old_docs/API_docs_v57/methods/channels_getParticipants.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $channels_ChannelParticipants = $MadelineProto->channels->getParticipants(['channel' => InputChannel, 'filter' => ChannelParticipantsFilter, 'offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v57/methods/channels_inviteToChannel.md b/old_docs/API_docs_v57/methods/channels_inviteToChannel.md index 676f800c..e7d12db7 100644 --- a/old_docs/API_docs_v57/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v57/methods/channels_inviteToChannel.md @@ -52,12 +52,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v57/methods/channels_joinChannel.md b/old_docs/API_docs_v57/methods/channels_joinChannel.md index 721f707c..3ac2b326 100644 --- a/old_docs/API_docs_v57/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v57/methods/channels_joinChannel.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->joinChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v57/methods/channels_kickFromChannel.md b/old_docs/API_docs_v57/methods/channels_kickFromChannel.md index bf8bb5b8..8f6c92be 100644 --- a/old_docs/API_docs_v57/methods/channels_kickFromChannel.md +++ b/old_docs/API_docs_v57/methods/channels_kickFromChannel.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->kickFromChannel(['channel' => InputChannel, 'user_id' => InputUser, 'kicked' => Bool, ]); diff --git a/old_docs/API_docs_v57/methods/channels_leaveChannel.md b/old_docs/API_docs_v57/methods/channels_leaveChannel.md index 7f02e08c..95b60a90 100644 --- a/old_docs/API_docs_v57/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v57/methods/channels_leaveChannel.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->leaveChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v57/methods/channels_readHistory.md b/old_docs/API_docs_v57/methods/channels_readHistory.md index cca891f0..c6b14541 100644 --- a/old_docs/API_docs_v57/methods/channels_readHistory.md +++ b/old_docs/API_docs_v57/methods/channels_readHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->readHistory(['channel' => InputChannel, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v57/methods/channels_reportSpam.md b/old_docs/API_docs_v57/methods/channels_reportSpam.md index 09af14e0..ca5c28f5 100644 --- a/old_docs/API_docs_v57/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v57/methods/channels_reportSpam.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v57/methods/channels_toggleInvites.md b/old_docs/API_docs_v57/methods/channels_toggleInvites.md index 5b541f67..e9e6450d 100644 --- a/old_docs/API_docs_v57/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v57/methods/channels_toggleInvites.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->toggleInvites(['channel' => InputChannel, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v57/methods/channels_toggleSignatures.md b/old_docs/API_docs_v57/methods/channels_toggleSignatures.md index f233a8e1..36d1eccb 100644 --- a/old_docs/API_docs_v57/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v57/methods/channels_toggleSignatures.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->toggleSignatures(['channel' => InputChannel, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v57/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v57/methods/channels_updatePinnedMessage.md index f06d1f0f..f8d10ece 100644 --- a/old_docs/API_docs_v57/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v57/methods/channels_updatePinnedMessage.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->updatePinnedMessage(['silent' => Bool, 'channel' => InputChannel, 'id' => int, ]); diff --git a/old_docs/API_docs_v57/methods/channels_updateUsername.md b/old_docs/API_docs_v57/methods/channels_updateUsername.md index ad34490a..2093b6ce 100644 --- a/old_docs/API_docs_v57/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v57/methods/channels_updateUsername.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->updateUsername(['channel' => InputChannel, 'username' => 'string', ]); diff --git a/old_docs/API_docs_v57/methods/contacts_block.md b/old_docs/API_docs_v57/methods/contacts_block.md index d0729d30..e592cace 100644 --- a/old_docs/API_docs_v57/methods/contacts_block.md +++ b/old_docs/API_docs_v57/methods/contacts_block.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v57/methods/contacts_deleteContact.md b/old_docs/API_docs_v57/methods/contacts_deleteContact.md index b8c17544..1a3f2a27 100644 --- a/old_docs/API_docs_v57/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v57/methods/contacts_deleteContact.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v57/methods/contacts_deleteContacts.md b/old_docs/API_docs_v57/methods/contacts_deleteContacts.md index 64c69460..f6627599 100644 --- a/old_docs/API_docs_v57/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v57/methods/contacts_deleteContacts.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v57/methods/contacts_exportCard.md b/old_docs/API_docs_v57/methods/contacts_exportCard.md index b05f57ce..1d2129f3 100644 --- a/old_docs/API_docs_v57/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v57/methods/contacts_exportCard.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); diff --git a/old_docs/API_docs_v57/methods/contacts_getBlocked.md b/old_docs/API_docs_v57/methods/contacts_getBlocked.md index d7d8c5cc..44d24aba 100644 --- a/old_docs/API_docs_v57/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v57/methods/contacts_getBlocked.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v57/methods/contacts_getContacts.md b/old_docs/API_docs_v57/methods/contacts_getContacts.md index 1ab8af27..83c4846f 100644 --- a/old_docs/API_docs_v57/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v57/methods/contacts_getContacts.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v57/methods/contacts_getStatuses.md b/old_docs/API_docs_v57/methods/contacts_getStatuses.md index b927a140..5cef3084 100644 --- a/old_docs/API_docs_v57/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v57/methods/contacts_getStatuses.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); diff --git a/old_docs/API_docs_v57/methods/contacts_getTopPeers.md b/old_docs/API_docs_v57/methods/contacts_getTopPeers.md index 2bad9a2a..8d39809c 100644 --- a/old_docs/API_docs_v57/methods/contacts_getTopPeers.md +++ b/old_docs/API_docs_v57/methods/contacts_getTopPeers.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_TopPeers = $MadelineProto->contacts->getTopPeers(['correspondents' => Bool, 'bots_pm' => Bool, 'bots_inline' => Bool, 'groups' => Bool, 'channels' => Bool, 'offset' => int, 'limit' => int, 'hash' => int, ]); diff --git a/old_docs/API_docs_v57/methods/contacts_importCard.md b/old_docs/API_docs_v57/methods/contacts_importCard.md index 81a1e138..89c96657 100644 --- a/old_docs/API_docs_v57/methods/contacts_importCard.md +++ b/old_docs/API_docs_v57/methods/contacts_importCard.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); diff --git a/old_docs/API_docs_v57/methods/contacts_importContacts.md b/old_docs/API_docs_v57/methods/contacts_importContacts.md index 578e5dfd..cd3d6615 100644 --- a/old_docs/API_docs_v57/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v57/methods/contacts_importContacts.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], 'replace' => Bool, ]); diff --git a/old_docs/API_docs_v57/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v57/methods/contacts_resetTopPeerRating.md index 4b485921..4b5e96f1 100644 --- a/old_docs/API_docs_v57/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v57/methods/contacts_resetTopPeerRating.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->resetTopPeerRating(['category' => TopPeerCategory, 'peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v57/methods/contacts_search.md b/old_docs/API_docs_v57/methods/contacts_search.md index 68daecd6..64ff748e 100644 --- a/old_docs/API_docs_v57/methods/contacts_search.md +++ b/old_docs/API_docs_v57/methods/contacts_search.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); diff --git a/old_docs/API_docs_v57/methods/contacts_unblock.md b/old_docs/API_docs_v57/methods/contacts_unblock.md index f7d151b9..ec72ae2d 100644 --- a/old_docs/API_docs_v57/methods/contacts_unblock.md +++ b/old_docs/API_docs_v57/methods/contacts_unblock.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v57/methods/help_getAppChangelog.md b/old_docs/API_docs_v57/methods/help_getAppChangelog.md index 208d3409..58f3858a 100644 --- a/old_docs/API_docs_v57/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v57/methods/help_getAppChangelog.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_AppChangelog = $MadelineProto->help->getAppChangelog(); diff --git a/old_docs/API_docs_v57/methods/help_getAppUpdate.md b/old_docs/API_docs_v57/methods/help_getAppUpdate.md index b88906ae..c6a42922 100644 --- a/old_docs/API_docs_v57/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v57/methods/help_getAppUpdate.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(); diff --git a/old_docs/API_docs_v57/methods/help_getConfig.md b/old_docs/API_docs_v57/methods/help_getConfig.md index 16e25c68..ca4bfc25 100644 --- a/old_docs/API_docs_v57/methods/help_getConfig.md +++ b/old_docs/API_docs_v57/methods/help_getConfig.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); diff --git a/old_docs/API_docs_v57/methods/help_getInviteText.md b/old_docs/API_docs_v57/methods/help_getInviteText.md index 6b226bff..7311b7fb 100644 --- a/old_docs/API_docs_v57/methods/help_getInviteText.md +++ b/old_docs/API_docs_v57/methods/help_getInviteText.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(); diff --git a/old_docs/API_docs_v57/methods/help_getNearestDc.md b/old_docs/API_docs_v57/methods/help_getNearestDc.md index 35a8bf91..458f60ab 100644 --- a/old_docs/API_docs_v57/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v57/methods/help_getNearestDc.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); diff --git a/old_docs/API_docs_v57/methods/help_getSupport.md b/old_docs/API_docs_v57/methods/help_getSupport.md index a5bab0f2..9ee25b00 100644 --- a/old_docs/API_docs_v57/methods/help_getSupport.md +++ b/old_docs/API_docs_v57/methods/help_getSupport.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); diff --git a/old_docs/API_docs_v57/methods/help_getTermsOfService.md b/old_docs/API_docs_v57/methods/help_getTermsOfService.md index 487cd83a..4dea9f79 100644 --- a/old_docs/API_docs_v57/methods/help_getTermsOfService.md +++ b/old_docs/API_docs_v57/methods/help_getTermsOfService.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_TermsOfService = $MadelineProto->help->getTermsOfService(); diff --git a/old_docs/API_docs_v57/methods/help_saveAppLog.md b/old_docs/API_docs_v57/methods/help_saveAppLog.md index 0165b6e3..a7884c47 100644 --- a/old_docs/API_docs_v57/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v57/methods/help_saveAppLog.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); diff --git a/old_docs/API_docs_v57/methods/initConnection.md b/old_docs/API_docs_v57/methods/initConnection.md index 2d3d86ad..73620276 100644 --- a/old_docs/API_docs_v57/methods/initConnection.md +++ b/old_docs/API_docs_v57/methods/initConnection.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->initConnection(['api_id' => int, 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', 'query' => !X, ]); diff --git a/old_docs/API_docs_v57/methods/invokeAfterMsg.md b/old_docs/API_docs_v57/methods/invokeAfterMsg.md index e33a2c93..8e953e78 100644 --- a/old_docs/API_docs_v57/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v57/methods/invokeAfterMsg.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); diff --git a/old_docs/API_docs_v57/methods/invokeAfterMsgs.md b/old_docs/API_docs_v57/methods/invokeAfterMsgs.md index 3150a613..bc8a83b7 100644 --- a/old_docs/API_docs_v57/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v57/methods/invokeAfterMsgs.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); diff --git a/old_docs/API_docs_v57/methods/invokeWithLayer.md b/old_docs/API_docs_v57/methods/invokeWithLayer.md index 71d02abb..8a0c4e79 100644 --- a/old_docs/API_docs_v57/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v57/methods/invokeWithLayer.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); diff --git a/old_docs/API_docs_v57/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v57/methods/invokeWithoutUpdates.md index 2bab236a..2d90a776 100644 --- a/old_docs/API_docs_v57/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v57/methods/invokeWithoutUpdates.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeWithoutUpdates(['query' => !X, ]); diff --git a/old_docs/API_docs_v57/methods/messages_addChatUser.md b/old_docs/API_docs_v57/methods/messages_addChatUser.md index 3e4c5ccc..c6ef275f 100644 --- a/old_docs/API_docs_v57/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v57/methods/messages_addChatUser.md @@ -46,12 +46,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); diff --git a/old_docs/API_docs_v57/methods/messages_checkChatInvite.md b/old_docs/API_docs_v57/methods/messages_checkChatInvite.md index de1d9ff4..cea63313 100644 --- a/old_docs/API_docs_v57/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v57/methods/messages_checkChatInvite.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ChatInvite = $MadelineProto->messages->checkChatInvite(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v57/methods/messages_clearRecentStickers.md b/old_docs/API_docs_v57/methods/messages_clearRecentStickers.md index 9c1b3754..1d6ec8c9 100644 --- a/old_docs/API_docs_v57/methods/messages_clearRecentStickers.md +++ b/old_docs/API_docs_v57/methods/messages_clearRecentStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->clearRecentStickers(['attached' => Bool, ]); diff --git a/old_docs/API_docs_v57/methods/messages_createChat.md b/old_docs/API_docs_v57/methods/messages_createChat.md index 68c0263a..966f58dc 100644 --- a/old_docs/API_docs_v57/methods/messages_createChat.md +++ b/old_docs/API_docs_v57/methods/messages_createChat.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); diff --git a/old_docs/API_docs_v57/methods/messages_deleteChatUser.md b/old_docs/API_docs_v57/methods/messages_deleteChatUser.md index 0a6830de..9a9227ba 100644 --- a/old_docs/API_docs_v57/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v57/methods/messages_deleteChatUser.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v57/methods/messages_deleteHistory.md b/old_docs/API_docs_v57/methods/messages_deleteHistory.md index e44433c1..45e9890d 100644 --- a/old_docs/API_docs_v57/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v57/methods/messages_deleteHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['just_clear' => Bool, 'peer' => InputPeer, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v57/methods/messages_deleteMessages.md b/old_docs/API_docs_v57/methods/messages_deleteMessages.md index 41570996..fa043e1c 100644 --- a/old_docs/API_docs_v57/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v57/methods/messages_deleteMessages.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v57/methods/messages_editChatAdmin.md b/old_docs/API_docs_v57/methods/messages_editChatAdmin.md index 7916f8b1..5bba0559 100644 --- a/old_docs/API_docs_v57/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v57/methods/messages_editChatAdmin.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]); diff --git a/old_docs/API_docs_v57/methods/messages_editChatPhoto.md b/old_docs/API_docs_v57/methods/messages_editChatPhoto.md index 122913c4..5827a5cc 100644 --- a/old_docs/API_docs_v57/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v57/methods/messages_editChatPhoto.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); diff --git a/old_docs/API_docs_v57/methods/messages_editChatTitle.md b/old_docs/API_docs_v57/methods/messages_editChatTitle.md index 3a1e974b..2e69d790 100644 --- a/old_docs/API_docs_v57/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v57/methods/messages_editChatTitle.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); diff --git a/old_docs/API_docs_v57/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v57/methods/messages_editInlineBotMessage.md index 2237fb20..73c8a2c4 100644 --- a/old_docs/API_docs_v57/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v57/methods/messages_editInlineBotMessage.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->editInlineBotMessage(['no_webpage' => Bool, 'id' => InputBotInlineMessageID, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v57/methods/messages_editMessage.md b/old_docs/API_docs_v57/methods/messages_editMessage.md index 177438a5..ad639325 100644 --- a/old_docs/API_docs_v57/methods/messages_editMessage.md +++ b/old_docs/API_docs_v57/methods/messages_editMessage.md @@ -51,12 +51,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editMessage(['no_webpage' => Bool, 'peer' => InputPeer, 'id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v57/methods/messages_exportChatInvite.md b/old_docs/API_docs_v57/methods/messages_exportChatInvite.md index 98685d96..ec80e207 100644 --- a/old_docs/API_docs_v57/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v57/methods/messages_exportChatInvite.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]); diff --git a/old_docs/API_docs_v57/methods/messages_forwardMessage.md b/old_docs/API_docs_v57/methods/messages_forwardMessage.md index 45b7a07f..d6916437 100644 --- a/old_docs/API_docs_v57/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v57/methods/messages_forwardMessage.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); diff --git a/old_docs/API_docs_v57/methods/messages_forwardMessages.md b/old_docs/API_docs_v57/methods/messages_forwardMessages.md index efe58e67..b99e1d31 100644 --- a/old_docs/API_docs_v57/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v57/methods/messages_forwardMessages.md @@ -62,12 +62,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessages(['silent' => Bool, 'background' => Bool, 'with_my_score' => Bool, 'from_peer' => InputPeer, 'id' => [int, int], 'to_peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v57/methods/messages_getAllDrafts.md b/old_docs/API_docs_v57/methods/messages_getAllDrafts.md index 2c0ecd42..43a95bb2 100644 --- a/old_docs/API_docs_v57/methods/messages_getAllDrafts.md +++ b/old_docs/API_docs_v57/methods/messages_getAllDrafts.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->getAllDrafts(); diff --git a/old_docs/API_docs_v57/methods/messages_getAllStickers.md b/old_docs/API_docs_v57/methods/messages_getAllStickers.md index 16fdba6c..2ba37a91 100644 --- a/old_docs/API_docs_v57/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v57/methods/messages_getAllStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => int, ]); diff --git a/old_docs/API_docs_v57/methods/messages_getArchivedStickers.md b/old_docs/API_docs_v57/methods/messages_getArchivedStickers.md index f037e1bc..ee36b542 100644 --- a/old_docs/API_docs_v57/methods/messages_getArchivedStickers.md +++ b/old_docs/API_docs_v57/methods/messages_getArchivedStickers.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_ArchivedStickers = $MadelineProto->messages->getArchivedStickers(['masks' => Bool, 'offset_id' => long, 'limit' => int, ]); diff --git a/old_docs/API_docs_v57/methods/messages_getAttachedStickers.md b/old_docs/API_docs_v57/methods/messages_getAttachedStickers.md index 890680cd..9f8a66c5 100644 --- a/old_docs/API_docs_v57/methods/messages_getAttachedStickers.md +++ b/old_docs/API_docs_v57/methods/messages_getAttachedStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_StickerSetCovered = $MadelineProto->messages->getAttachedStickers(['media' => InputStickeredMedia, ]); diff --git a/old_docs/API_docs_v57/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v57/methods/messages_getBotCallbackAnswer.md index 09c283f5..0136227f 100644 --- a/old_docs/API_docs_v57/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v57/methods/messages_getBotCallbackAnswer.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_BotCallbackAnswer = $MadelineProto->messages->getBotCallbackAnswer(['game' => Bool, 'peer' => InputPeer, 'msg_id' => int, 'data' => 'bytes', ]); diff --git a/old_docs/API_docs_v57/methods/messages_getChats.md b/old_docs/API_docs_v57/methods/messages_getChats.md index 290438a1..e84c7193 100644 --- a/old_docs/API_docs_v57/methods/messages_getChats.md +++ b/old_docs/API_docs_v57/methods/messages_getChats.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v57/methods/messages_getDialogs.md b/old_docs/API_docs_v57/methods/messages_getDialogs.md index 7a28bd83..bd3ef681 100644 --- a/old_docs/API_docs_v57/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v57/methods/messages_getDialogs.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['offset_date' => int, 'offset_id' => int, 'offset_peer' => InputPeer, 'limit' => int, ]); diff --git a/old_docs/API_docs_v57/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v57/methods/messages_getDocumentByHash.md index 1af5bad4..ad8e22be 100644 --- a/old_docs/API_docs_v57/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v57/methods/messages_getDocumentByHash.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Document = $MadelineProto->messages->getDocumentByHash(['sha256' => 'bytes', 'size' => int, 'mime_type' => 'string', ]); diff --git a/old_docs/API_docs_v57/methods/messages_getFeaturedStickers.md b/old_docs/API_docs_v57/methods/messages_getFeaturedStickers.md index 512f2e85..8e49e1ef 100644 --- a/old_docs/API_docs_v57/methods/messages_getFeaturedStickers.md +++ b/old_docs/API_docs_v57/methods/messages_getFeaturedStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_FeaturedStickers = $MadelineProto->messages->getFeaturedStickers(['hash' => int, ]); diff --git a/old_docs/API_docs_v57/methods/messages_getGameHighScores.md b/old_docs/API_docs_v57/methods/messages_getGameHighScores.md index 5137baea..113e4647 100644 --- a/old_docs/API_docs_v57/methods/messages_getGameHighScores.md +++ b/old_docs/API_docs_v57/methods/messages_getGameHighScores.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_HighScores = $MadelineProto->messages->getGameHighScores(['peer' => InputPeer, 'id' => int, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v57/methods/messages_getHistory.md b/old_docs/API_docs_v57/methods/messages_getHistory.md index dfae66e6..851d2680 100644 --- a/old_docs/API_docs_v57/methods/messages_getHistory.md +++ b/old_docs/API_docs_v57/methods/messages_getHistory.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getHistory(['peer' => InputPeer, 'offset_id' => int, 'offset_date' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); diff --git a/old_docs/API_docs_v57/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v57/methods/messages_getInlineBotResults.md index 8ab5bf78..4d86caf5 100644 --- a/old_docs/API_docs_v57/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v57/methods/messages_getInlineBotResults.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_BotResults = $MadelineProto->messages->getInlineBotResults(['bot' => InputUser, 'peer' => InputPeer, 'geo_point' => InputGeoPoint, 'query' => 'string', 'offset' => 'string', ]); diff --git a/old_docs/API_docs_v57/methods/messages_getInlineGameHighScores.md b/old_docs/API_docs_v57/methods/messages_getInlineGameHighScores.md index 790bfdd9..d5a80005 100644 --- a/old_docs/API_docs_v57/methods/messages_getInlineGameHighScores.md +++ b/old_docs/API_docs_v57/methods/messages_getInlineGameHighScores.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_HighScores = $MadelineProto->messages->getInlineGameHighScores(['id' => InputBotInlineMessageID, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v57/methods/messages_getMaskStickers.md b/old_docs/API_docs_v57/methods/messages_getMaskStickers.md index f4ed9411..70e2e6d4 100644 --- a/old_docs/API_docs_v57/methods/messages_getMaskStickers.md +++ b/old_docs/API_docs_v57/methods/messages_getMaskStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getMaskStickers(['hash' => int, ]); diff --git a/old_docs/API_docs_v57/methods/messages_getMessageEditData.md b/old_docs/API_docs_v57/methods/messages_getMessageEditData.md index 12e71bee..34f8534f 100644 --- a/old_docs/API_docs_v57/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v57/methods/messages_getMessageEditData.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_MessageEditData = $MadelineProto->messages->getMessageEditData(['peer' => InputPeer, 'id' => int, ]); diff --git a/old_docs/API_docs_v57/methods/messages_getMessages.md b/old_docs/API_docs_v57/methods/messages_getMessages.md index 86d1da8a..d538cb5f 100644 --- a/old_docs/API_docs_v57/methods/messages_getMessages.md +++ b/old_docs/API_docs_v57/methods/messages_getMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v57/methods/messages_getMessagesViews.md b/old_docs/API_docs_v57/methods/messages_getMessagesViews.md index b8d78c85..934adc16 100644 --- a/old_docs/API_docs_v57/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v57/methods/messages_getMessagesViews.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int, int], 'increment' => Bool, ]); diff --git a/old_docs/API_docs_v57/methods/messages_getPeerDialogs.md b/old_docs/API_docs_v57/methods/messages_getPeerDialogs.md index da82cfc6..063b6e7d 100644 --- a/old_docs/API_docs_v57/methods/messages_getPeerDialogs.md +++ b/old_docs/API_docs_v57/methods/messages_getPeerDialogs.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_PeerDialogs = $MadelineProto->messages->getPeerDialogs(['peers' => [InputPeer, InputPeer], ]); diff --git a/old_docs/API_docs_v57/methods/messages_getPeerSettings.md b/old_docs/API_docs_v57/methods/messages_getPeerSettings.md index f1f2a3bb..a18126f0 100644 --- a/old_docs/API_docs_v57/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v57/methods/messages_getPeerSettings.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $PeerSettings = $MadelineProto->messages->getPeerSettings(['peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v57/methods/messages_getRecentStickers.md b/old_docs/API_docs_v57/methods/messages_getRecentStickers.md index d76a2160..0c5ae0c6 100644 --- a/old_docs/API_docs_v57/methods/messages_getRecentStickers.md +++ b/old_docs/API_docs_v57/methods/messages_getRecentStickers.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_RecentStickers = $MadelineProto->messages->getRecentStickers(['attached' => Bool, 'hash' => int, ]); diff --git a/old_docs/API_docs_v57/methods/messages_getSavedGifs.md b/old_docs/API_docs_v57/methods/messages_getSavedGifs.md index f61348ce..38585538 100644 --- a/old_docs/API_docs_v57/methods/messages_getSavedGifs.md +++ b/old_docs/API_docs_v57/methods/messages_getSavedGifs.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => int, ]); diff --git a/old_docs/API_docs_v57/methods/messages_getStickerSet.md b/old_docs/API_docs_v57/methods/messages_getStickerSet.md index c86807e4..c9140ab2 100644 --- a/old_docs/API_docs_v57/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v57/methods/messages_getStickerSet.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSet = $MadelineProto->messages->getStickerSet(['stickerset' => InputStickerSet, ]); diff --git a/old_docs/API_docs_v57/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v57/methods/messages_getWebPagePreview.md index d01bdd32..e8b20c5d 100644 --- a/old_docs/API_docs_v57/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v57/methods/messages_getWebPagePreview.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $MessageMedia = $MadelineProto->messages->getWebPagePreview(['message' => 'string', ]); diff --git a/old_docs/API_docs_v57/methods/messages_hideReportSpam.md b/old_docs/API_docs_v57/methods/messages_hideReportSpam.md index 856770cb..30523f2a 100644 --- a/old_docs/API_docs_v57/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v57/methods/messages_hideReportSpam.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->hideReportSpam(['peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v57/methods/messages_importChatInvite.md b/old_docs/API_docs_v57/methods/messages_importChatInvite.md index 0d6cd7c8..b1830a9b 100644 --- a/old_docs/API_docs_v57/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v57/methods/messages_importChatInvite.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->importChatInvite(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v57/methods/messages_installStickerSet.md b/old_docs/API_docs_v57/methods/messages_installStickerSet.md index 9f6f098c..20f90b71 100644 --- a/old_docs/API_docs_v57/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v57/methods/messages_installStickerSet.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSetInstallResult = $MadelineProto->messages->installStickerSet(['stickerset' => InputStickerSet, 'archived' => Bool, ]); diff --git a/old_docs/API_docs_v57/methods/messages_migrateChat.md b/old_docs/API_docs_v57/methods/messages_migrateChat.md index db57adfa..22ccfcc1 100644 --- a/old_docs/API_docs_v57/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v57/methods/messages_migrateChat.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]); diff --git a/old_docs/API_docs_v57/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v57/methods/messages_readEncryptedHistory.md index 39b110e3..2ba4cca4 100644 --- a/old_docs/API_docs_v57/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v57/methods/messages_readEncryptedHistory.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); diff --git a/old_docs/API_docs_v57/methods/messages_readFeaturedStickers.md b/old_docs/API_docs_v57/methods/messages_readFeaturedStickers.md index 4035c76d..050371da 100644 --- a/old_docs/API_docs_v57/methods/messages_readFeaturedStickers.md +++ b/old_docs/API_docs_v57/methods/messages_readFeaturedStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->readFeaturedStickers(['id' => [long, long], ]); diff --git a/old_docs/API_docs_v57/methods/messages_readHistory.md b/old_docs/API_docs_v57/methods/messages_readHistory.md index 3de17061..26b608af 100644 --- a/old_docs/API_docs_v57/methods/messages_readHistory.md +++ b/old_docs/API_docs_v57/methods/messages_readHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v57/methods/messages_readMessageContents.md b/old_docs/API_docs_v57/methods/messages_readMessageContents.md index 9bb1bee8..a09cb63e 100644 --- a/old_docs/API_docs_v57/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v57/methods/messages_readMessageContents.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v57/methods/messages_receivedMessages.md b/old_docs/API_docs_v57/methods/messages_receivedMessages.md index 7aab635f..b5e87992 100644 --- a/old_docs/API_docs_v57/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v57/methods/messages_receivedMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_ReceivedNotifyMessage = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); diff --git a/old_docs/API_docs_v57/methods/messages_reorderStickerSets.md b/old_docs/API_docs_v57/methods/messages_reorderStickerSets.md index ddc78dd0..66f5e682 100644 --- a/old_docs/API_docs_v57/methods/messages_reorderStickerSets.md +++ b/old_docs/API_docs_v57/methods/messages_reorderStickerSets.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reorderStickerSets(['masks' => Bool, 'order' => [long, long], ]); diff --git a/old_docs/API_docs_v57/methods/messages_reportSpam.md b/old_docs/API_docs_v57/methods/messages_reportSpam.md index 2e2b1177..09c1e63b 100644 --- a/old_docs/API_docs_v57/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v57/methods/messages_reportSpam.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reportSpam(['peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v57/methods/messages_saveDraft.md b/old_docs/API_docs_v57/methods/messages_saveDraft.md index bbeed707..59b33b03 100644 --- a/old_docs/API_docs_v57/methods/messages_saveDraft.md +++ b/old_docs/API_docs_v57/methods/messages_saveDraft.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->saveDraft(['no_webpage' => Bool, 'reply_to_msg_id' => int, 'peer' => InputPeer, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v57/methods/messages_saveGif.md b/old_docs/API_docs_v57/methods/messages_saveGif.md index 6f608c4c..145039e7 100644 --- a/old_docs/API_docs_v57/methods/messages_saveGif.md +++ b/old_docs/API_docs_v57/methods/messages_saveGif.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->saveGif(['id' => InputDocument, 'unsave' => Bool, ]); diff --git a/old_docs/API_docs_v57/methods/messages_saveRecentSticker.md b/old_docs/API_docs_v57/methods/messages_saveRecentSticker.md index 81ad5d48..55757080 100644 --- a/old_docs/API_docs_v57/methods/messages_saveRecentSticker.md +++ b/old_docs/API_docs_v57/methods/messages_saveRecentSticker.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->saveRecentSticker(['attached' => Bool, 'id' => InputDocument, 'unsave' => Bool, ]); diff --git a/old_docs/API_docs_v57/methods/messages_search.md b/old_docs/API_docs_v57/methods/messages_search.md index 7821d2b7..735ddf47 100644 --- a/old_docs/API_docs_v57/methods/messages_search.md +++ b/old_docs/API_docs_v57/methods/messages_search.md @@ -49,12 +49,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->search(['peer' => InputPeer, 'q' => 'string', 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v57/methods/messages_searchGifs.md b/old_docs/API_docs_v57/methods/messages_searchGifs.md index 103ebfeb..9677bf24 100644 --- a/old_docs/API_docs_v57/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v57/methods/messages_searchGifs.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_FoundGifs = $MadelineProto->messages->searchGifs(['q' => 'string', 'offset' => int, ]); diff --git a/old_docs/API_docs_v57/methods/messages_searchGlobal.md b/old_docs/API_docs_v57/methods/messages_searchGlobal.md index 0edd1e40..6ad4aec0 100644 --- a/old_docs/API_docs_v57/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v57/methods/messages_searchGlobal.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->searchGlobal(['q' => 'string', 'offset_date' => int, 'offset_peer' => InputPeer, 'offset_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v57/methods/messages_sendEncrypted.md b/old_docs/API_docs_v57/methods/messages_sendEncrypted.md index d48f88d7..76305f32 100644 --- a/old_docs/API_docs_v57/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v57/methods/messages_sendEncrypted.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v57/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v57/methods/messages_sendEncryptedFile.md index 4fd0648e..8db2ead9 100644 --- a/old_docs/API_docs_v57/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v57/methods/messages_sendEncryptedFile.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); diff --git a/old_docs/API_docs_v57/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v57/methods/messages_sendEncryptedService.md index d66894bf..c7836c94 100644 --- a/old_docs/API_docs_v57/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v57/methods/messages_sendEncryptedService.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v57/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v57/methods/messages_sendInlineBotResult.md index 386ac7e3..1a12322c 100644 --- a/old_docs/API_docs_v57/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v57/methods/messages_sendInlineBotResult.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendInlineBotResult(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'query_id' => long, 'id' => 'string', ]); diff --git a/old_docs/API_docs_v57/methods/messages_sendMedia.md b/old_docs/API_docs_v57/methods/messages_sendMedia.md index 0b5cf9b6..770d1b65 100644 --- a/old_docs/API_docs_v57/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v57/methods/messages_sendMedia.md @@ -63,12 +63,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendMedia(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, 'reply_markup' => ReplyMarkup, ]); diff --git a/old_docs/API_docs_v57/methods/messages_sendMessage.md b/old_docs/API_docs_v57/methods/messages_sendMessage.md index c4dc8894..83dc6c8b 100644 --- a/old_docs/API_docs_v57/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v57/methods/messages_sendMessage.md @@ -65,12 +65,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendMessage(['no_webpage' => Bool, 'silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v57/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v57/methods/messages_setBotCallbackAnswer.md index 9700a1f1..b9993826 100644 --- a/old_docs/API_docs_v57/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v57/methods/messages_setBotCallbackAnswer.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setBotCallbackAnswer(['alert' => Bool, 'query_id' => long, 'message' => 'string', 'url' => 'string', ]); diff --git a/old_docs/API_docs_v57/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v57/methods/messages_setEncryptedTyping.md index e9afe99c..4e7450eb 100644 --- a/old_docs/API_docs_v57/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v57/methods/messages_setEncryptedTyping.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); diff --git a/old_docs/API_docs_v57/methods/messages_setGameScore.md b/old_docs/API_docs_v57/methods/messages_setGameScore.md index 53e8eb7f..8d671f1f 100644 --- a/old_docs/API_docs_v57/methods/messages_setGameScore.md +++ b/old_docs/API_docs_v57/methods/messages_setGameScore.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->setGameScore(['edit_message' => Bool, 'peer' => InputPeer, 'id' => int, 'user_id' => InputUser, 'score' => int, ]); diff --git a/old_docs/API_docs_v57/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v57/methods/messages_setInlineBotResults.md index 79493009..d4ba6e65 100644 --- a/old_docs/API_docs_v57/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v57/methods/messages_setInlineBotResults.md @@ -52,12 +52,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setInlineBotResults(['gallery' => Bool, 'private' => Bool, 'query_id' => long, 'results' => [InputBotInlineResult, InputBotInlineResult], 'cache_time' => int, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, ]); diff --git a/old_docs/API_docs_v57/methods/messages_setInlineGameScore.md b/old_docs/API_docs_v57/methods/messages_setInlineGameScore.md index a3f030d3..f16f00bb 100644 --- a/old_docs/API_docs_v57/methods/messages_setInlineGameScore.md +++ b/old_docs/API_docs_v57/methods/messages_setInlineGameScore.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setInlineGameScore(['edit_message' => Bool, 'id' => InputBotInlineMessageID, 'user_id' => InputUser, 'score' => int, ]); diff --git a/old_docs/API_docs_v57/methods/messages_setTyping.md b/old_docs/API_docs_v57/methods/messages_setTyping.md index bea4982b..a2b94823 100644 --- a/old_docs/API_docs_v57/methods/messages_setTyping.md +++ b/old_docs/API_docs_v57/methods/messages_setTyping.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); diff --git a/old_docs/API_docs_v57/methods/messages_startBot.md b/old_docs/API_docs_v57/methods/messages_startBot.md index 94a4d86a..50d6f475 100644 --- a/old_docs/API_docs_v57/methods/messages_startBot.md +++ b/old_docs/API_docs_v57/methods/messages_startBot.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'peer' => InputPeer, 'start_param' => 'string', ]); diff --git a/old_docs/API_docs_v57/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v57/methods/messages_toggleChatAdmins.md index ab591fd9..349ea0e6 100644 --- a/old_docs/API_docs_v57/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v57/methods/messages_toggleChatAdmins.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => InputPeer, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v57/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v57/methods/messages_uninstallStickerSet.md index 6d04e847..26b2fbb3 100644 --- a/old_docs/API_docs_v57/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v57/methods/messages_uninstallStickerSet.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->uninstallStickerSet(['stickerset' => InputStickerSet, ]); diff --git a/old_docs/API_docs_v57/methods/photos_deletePhotos.md b/old_docs/API_docs_v57/methods/photos_deletePhotos.md index b9daca10..937aadd5 100644 --- a/old_docs/API_docs_v57/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v57/methods/photos_deletePhotos.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); diff --git a/old_docs/API_docs_v57/methods/photos_getUserPhotos.md b/old_docs/API_docs_v57/methods/photos_getUserPhotos.md index ea27a44f..d1c15e90 100644 --- a/old_docs/API_docs_v57/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v57/methods/photos_getUserPhotos.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => long, 'limit' => int, ]); diff --git a/old_docs/API_docs_v57/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v57/methods/photos_updateProfilePhoto.md index 7f0a4c69..2ac8b60d 100644 --- a/old_docs/API_docs_v57/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v57/methods/photos_updateProfilePhoto.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, ]); diff --git a/old_docs/API_docs_v57/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v57/methods/photos_uploadProfilePhoto.md index efa08bb0..c7ec3063 100644 --- a/old_docs/API_docs_v57/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v57/methods/photos_uploadProfilePhoto.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, ]); diff --git a/old_docs/API_docs_v57/methods/users_getUsers.md b/old_docs/API_docs_v57/methods/users_getUsers.md index ef1c7fd8..bce13ee6 100644 --- a/old_docs/API_docs_v57/methods/users_getUsers.md +++ b/old_docs/API_docs_v57/methods/users_getUsers.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v62/README.md b/old_docs/API_docs_v62/README.md index 4a8dd3c6..5bfe0ca1 100644 --- a/old_docs/API_docs_v62/README.md +++ b/old_docs/API_docs_v62/README.md @@ -4,11 +4,11 @@ description: MadelineProto API documentation (layer v62) --- # MadelineProto API documentation (layer v62) +[Back to main documentation](..) + + [Methods](methods/) [Constructors](constructors/) -[Types](types/) - - -[Back to main documentation](..) +[Types](types/) \ No newline at end of file diff --git a/old_docs/API_docs_v62/methods/README.md b/old_docs/API_docs_v62/methods/README.md index 6d687d51..5ceb673b 100644 --- a/old_docs/API_docs_v62/methods/README.md +++ b/old_docs/API_docs_v62/methods/README.md @@ -1,447 +1,442 @@ --- title: Methods -description: List of methods +description: What do you want to do? --- -# Methods -[Back to API documentation index](..) +# What do you want to do? +[Go back to API documentation index](..) +[Go to the old code-version method index](api_index.html) -$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); +* [Logout](https://docs.madelineproto.xyz/logout.html) -$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); +* [Login](https://docs.madelineproto.xyz/docs/LOGIN.html) -$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); +* [Get all chats, broadcast a message to all chats](https://docs.madelineproto.xyz/docs/DIALOGS.html) -$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); +* [Get the full participant list of a channel/group/supergroup](https://docs.madelineproto.xyz/get_pwr_chat.html) -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); +* [Get full info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_full_info.html) +* [Get info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_info.html) -$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); +* [Get info about the currently logged-in user](https://docs.madelineproto.xyz/get_self.html) -$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); +* [Upload or download files up to 1.5 GB](https://docs.madelineproto.xyz/docs/FILES.html) -$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); +* [Make a phone call and play a song](https://docs.madelineproto.xyz/docs/CALLS.html) -$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); - -$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); - - -$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); - -$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); +* [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) *** -

$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) +

* Change the phone number associated to this account -$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Check if this username is available -$MadelineProto->[account->confirmPhone](account_confirmPhone.md)(\['phone_code_hash' => [string](../types/string.md), 'phone_code' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode -$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Delete this account -$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) +* Get account TTL -$MadelineProto->[account->getAuthorizations](account_getAuthorizations.md)(\[\]) === [$account\_Authorizations](../types/account_Authorizations.md) +* Get all logged-in authorizations -$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) +* Get notification settings -$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md) +* Get the current password -$MadelineProto->[account->getPasswordSettings](account_getPasswordSettings.md)(\['current_password_hash' => [bytes](../types/bytes.md), \]) === [$account\_PasswordSettings](../types/account_PasswordSettings.md) +* Get the current 2FA settings -$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Get privacy settings -$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) +* Returns a list of available wallpapers. -$MadelineProto->[account->registerDevice](account_registerDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Register device for push notifications -$MadelineProto->[account->reportPeer](account_reportPeer.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reason' => [ReportReason](../types/ReportReason.md), \]) === [$Bool](../types/Bool.md) +* Report for spam -$MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) +* Delete a certain session -$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) +* Reset all notification settings -$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) +* Change the phone number -$MadelineProto->[account->sendConfirmPhoneCode](account_sendConfirmPhoneCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'hash' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) +* Send confirmation phone code -$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) +* Set account TTL -$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Set privacy settings -$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Stop sending PUSH notifications to app -$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Disable all notifications for a certain period -$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) +* Change notification settings -$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) +* Update the 2FA password settings -$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) +* Update profile info -$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Update online status -$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) +* Update this user's username *** -

$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) +

* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info -$MadelineProto->[auth->cancelCode](auth_cancelCode.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Invalidate sent phone code -$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) +* Check if this phone number is registered on telegram -$MadelineProto->[auth->dropTempAuthKeys](auth_dropTempAuthKeys.md)(\['except_auth_keys' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) +* Delete all temporary authorization keys except the ones provided -$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) +* You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$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) +* You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->recoverPassword](auth_recoverPassword.md)(\['code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account -$MadelineProto->[auth->requestPasswordRecovery](auth_requestPasswordRecovery.md)(\[\]) === [$auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) +* Send an email to recover the 2FA password -$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) +* Resend the SMS verification code -$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) +* Delete all logged-in sessions. -$MadelineProto->[auth->sendCode](auth_sendCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'phone_number' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), 'api_id' => [int](../types/int.md), 'api_hash' => [string](../types/string.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) +* Use phone_login instead -$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Invite friends to telegram! -$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) +* You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) -$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) +* You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) *** -

$MadelineProto->[channels->checkUsername](channels_checkUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +

* Check if this username is free and can be assigned to a channel/supergroup -$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) +* Create channel/supergroup -$MadelineProto->[channels->deleteChannel](channels_deleteChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Delete a channel/supergroup -$MadelineProto->[channels->deleteMessages](channels_deleteMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Delete channel/supergroup messages -$MadelineProto->[channels->deleteUserHistory](channels_deleteUserHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Delete all messages of a user in a channel/supergroup -$MadelineProto->[channels->editAbout](channels_editAbout.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'about' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Edit the about text of a channel/supergroup -$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) +* Edit admin permissions of a user in a channel/supergroup -$MadelineProto->[channels->editPhoto](channels_editPhoto.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) +* Edit the photo of a supergroup/channel -$MadelineProto->[channels->editTitle](channels_editTitle.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Edit the title of a supergroup/channel -$MadelineProto->[channels->exportInvite](channels_exportInvite.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) +* Export the invite link of a channel -$MadelineProto->[channels->exportMessageLink](channels_exportMessageLink.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => [int](../types/int.md), \]) === [$ExportedMessageLink](../types/ExportedMessageLink.md) +* Get the link of a message in a channel -$MadelineProto->[channels->getAdminedPublicChannels](channels_getAdminedPublicChannels.md)(\[\]) === [$messages\_Chats](../types/messages_Chats.md) +* Get all supergroups/channels where you're admin -$MadelineProto->[channels->getChannels](channels_getChannels.md)(\['id' => \[[InputChannel](../types/InputChannel.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get info about multiple channels/supergroups -$MadelineProto->[channels->getFullChannel](channels_getFullChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) +* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[channels->getMessages](channels_getMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get channel/supergroup messages -$MadelineProto->[channels->getParticipant](channels_getParticipant.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) +* Get info about a certain channel/supergroup participant -$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) +* Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead) -$MadelineProto->[channels->inviteToChannel](channels_inviteToChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'users' => \[[InputUser](../types/InputUser.md)\], \]) === [$Updates](../types/Updates.md) +* Add users to channel/supergroup -$MadelineProto->[channels->joinChannel](channels_joinChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Join a channel/supergroup -$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) +* Kick user from channel -$MadelineProto->[channels->leaveChannel](channels_leaveChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Leave a channel/supergroup -$MadelineProto->[channels->readHistory](channels_readHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Mark channel/supergroup history as read -$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) +* Report a supergroup/channel for spam -$MadelineProto->[channels->toggleInvites](channels_toggleInvites.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Allow or disallow any user to invite users to this channel/supergroup -$MadelineProto->[channels->toggleSignatures](channels_toggleSignatures.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Toggle channel signatures -$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) +* Set the pinned message of a channel/supergroup -$MadelineProto->[channels->updateUsername](channels_updateUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Update the username of a supergroup/channel *** -

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +

* Block a user -$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) +* Delete a contact -$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) +* Delete multiple contacts -$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) +* Export contact as card -$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) +* Get blocked users -$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [string](../types/string.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) +* Get info about a certain contact -$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) +* Get online status of all users -$MadelineProto->[contacts->getTopPeers](contacts_getTopPeers.md)(\['correspondents' => [Bool](../types/Bool.md), 'bots_pm' => [Bool](../types/Bool.md), 'bots_inline' => [Bool](../types/Bool.md), 'groups' => [Bool](../types/Bool.md), 'channels' => [Bool](../types/Bool.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'hash' => [int](../types/int.md), \]) === [$contacts\_TopPeers](../types/contacts_TopPeers.md) +* Get most used chats -$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) +* Import card as contact -$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], 'replace' => [Bool](../types/Bool.md), \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) +* Add phone number as contact -$MadelineProto->[contacts->resetTopPeerRating](contacts_resetTopPeerRating.md)(\['category' => [TopPeerCategory](../types/TopPeerCategory.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Reset top peer rating for a certain category/peer -$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) +* You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) +* Search contacts -$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +* Unblock a user *** -

$MadelineProto->[destroy_auth_key](destroy_auth_key.md)(\[\]) === [$DestroyAuthKeyRes](../types/DestroyAuthKeyRes.md) +

* Destroy current authorization key *** -

$MadelineProto->[help->getAppChangelog](help_getAppChangelog.md)(\[\]) === [$help\_AppChangelog](../types/help_AppChangelog.md) +

* Get the changelog of this app -$MadelineProto->[help->getAppUpdate](help_getAppUpdate.md)(\[\]) === [$help\_AppUpdate](../types/help_AppUpdate.md) +* Get info about app updates -$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) +* Get server configuration -$MadelineProto->[help->getInviteText](help_getInviteText.md)(\[\]) === [$help\_InviteText](../types/help_InviteText.md) +* Get invitation text -$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) +* Get nearest datacenter -$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) +* Get info of support user -$MadelineProto->[help->getTermsOfService](help_getTermsOfService.md)(\[\]) === [$help\_TermsOfService](../types/help_TermsOfService.md) +* Get terms of service -$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) +* Log data for developer of this app -$MadelineProto->[help->setBotUpdatesStatus](help_setBotUpdatesStatus.md)(\['pending_updates_count' => [int](../types/int.md), 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Set the update status of webhook *** -

$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) +

* Initializes connection and save information on the user's device and application. *** -

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invokes a query after successfull completion of one of the previous queries. *** -

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Result type returned by a current query. *** -

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invoke this method with layer X *** -

$MadelineProto->[invokeWithoutUpdates](invokeWithoutUpdates.md)(\['query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invoke with method without returning updates in the socket *** -

$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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Add a user to a normal chat (use channels->inviteToChannel for supergroups) -$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md) +* Check if an invitation link is valid -$MadelineProto->[messages->clearRecentStickers](messages_clearRecentStickers.md)(\['attached' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Clear all recent stickers -$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Create a chat (not supergroup) -$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md) +* Delete a user from a chat (not supergroup) -$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['just_clear' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Delete chat history -$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['revoke' => [Bool](../types/Bool.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Delete messages -$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Edit admin permissions -$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) +* Edit the photo of a normal chat (not supergroup) -$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Edit the title of a normal chat (not supergroup) -$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) +* Edit a sent inline message -$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) +* Edit a message -$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) +* Export chat invite -$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) +* Forward message -$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'with_my_score' => [Bool](../types/Bool.md), 'from_peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], 'to_peer' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) +* Forward messages -$MadelineProto->[messages->getAllChats](messages_getAllChats.md)(\['except_ids' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get all chats (not supergroups or channels) -$MadelineProto->[messages->getAllDrafts](messages_getAllDrafts.md)(\[\]) === [$Updates](../types/Updates.md) +* Get all message drafts -$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) +* Get all stickerpacks -$MadelineProto->[messages->getArchivedStickers](messages_getArchivedStickers.md)(\['masks' => [Bool](../types/Bool.md), 'offset_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), \]) === [$messages\_ArchivedStickers](../types/messages_ArchivedStickers.md) +* Get all archived stickers -$MadelineProto->[messages->getAttachedStickers](messages_getAttachedStickers.md)(\['media' => [InputStickeredMedia](../types/InputStickeredMedia.md), \]) === [$Vector\_of\_StickerSetCovered](../types/StickerSetCovered.md) +* Get stickers attachable to images -$MadelineProto->[messages->getBotCallbackAnswer](messages_getBotCallbackAnswer.md)(\['game' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'msg_id' => [int](../types/int.md), 'data' => [bytes](../types/bytes.md), \]) === [$messages\_BotCallbackAnswer](../types/messages_BotCallbackAnswer.md) +* Get the callback answer of a bot (after clicking a button) -$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get info about chats -$MadelineProto->[messages->getCommonChats](messages_getCommonChats.md)(\['user_id' => [InputUser](../types/InputUser.md), 'max_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get chats in common with a user -$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) +* You cannot use this method directly, instead use $MadelineProto->get_dh_config(); -$MadelineProto->[messages->getDialogs](messages_getDialogs.md)(\['exclude_pinned' => [Bool](../types/Bool.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) +* Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html -$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) +* Get document by SHA256 hash -$MadelineProto->[messages->getFeaturedStickers](messages_getFeaturedStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_FeaturedStickers](../types/messages_FeaturedStickers.md) +* Get featured stickers -$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) +* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[messages->getGameHighScores](messages_getGameHighScores.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_HighScores](../types/messages_HighScores.md) +* Get high scores of a game -$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) +* Get previous messages of a group -$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) +* Call inline bot -$MadelineProto->[messages->getInlineGameHighScores](messages_getInlineGameHighScores.md)(\['id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_HighScores](../types/messages_HighScores.md) +* Get high scores of a game sent in an inline message -$MadelineProto->[messages->getMaskStickers](messages_getMaskStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) +* Get masks -$MadelineProto->[messages->getMessageEditData](messages_getMessageEditData.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$messages\_MessageEditData](../types/messages_MessageEditData.md) +* Check if about to edit a message or a media caption -$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get messages -$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) +* Get and increase message views -$MadelineProto->[messages->getPeerDialogs](messages_getPeerDialogs.md)(\['peers' => \[[InputPeer](../types/InputPeer.md)\], \]) === [$messages\_PeerDialogs](../types/messages_PeerDialogs.md) +* Get dialog info of peers -$MadelineProto->[messages->getPeerSettings](messages_getPeerSettings.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$PeerSettings](../types/PeerSettings.md) +* Get the settings of apeer -$MadelineProto->[messages->getPinnedDialogs](messages_getPinnedDialogs.md)(\[\]) === [$messages\_PeerDialogs](../types/messages_PeerDialogs.md) +* Get pinned dialogs -$MadelineProto->[messages->getRecentStickers](messages_getRecentStickers.md)(\['attached' => [Bool](../types/Bool.md), 'hash' => [int](../types/int.md), \]) === [$messages\_RecentStickers](../types/messages_RecentStickers.md) +* Get recent stickers -$MadelineProto->[messages->getSavedGifs](messages_getSavedGifs.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_SavedGifs](../types/messages_SavedGifs.md) +* Get saved gifs -$MadelineProto->[messages->getStickerSet](messages_getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) +* Get a stickerset -$MadelineProto->[messages->getWebPage](messages_getWebPage.md)(\['url' => [string](../types/string.md), 'hash' => [int](../types/int.md), \]) === [$WebPage](../types/WebPage.md) +* Get webpage preview -$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) === [$MessageMedia](../types/MessageMedia.md) +* Get webpage preview -$MadelineProto->[messages->hideReportSpam](messages_hideReportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Hide report spam popup -$MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Import chat invite -$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'archived' => [Bool](../types/Bool.md), \]) === [$messages\_StickerSetInstallResult](../types/messages_StickerSetInstallResult.md) +* Add a sticker set -$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) +* Convert chat to supergroup -$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Mark messages as read in secret chats -$MadelineProto->[messages->readFeaturedStickers](messages_readFeaturedStickers.md)(\['id' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) +* Mark new featured stickers as read -$MadelineProto->[messages->readHistory](messages_readHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Mark messages as read -$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Mark message as read -$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_ReceivedNotifyMessage](../types/ReceivedNotifyMessage.md) +* Mark messages as read -$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) +* You cannot use this method directly -$MadelineProto->[messages->reorderPinnedDialogs](messages_reorderPinnedDialogs.md)(\['force' => [Bool](../types/Bool.md), 'order' => \[[InputPeer](../types/InputPeer.md)\], \]) === [$Bool](../types/Bool.md) +* Reorder pinned dialogs -$MadelineProto->[messages->reorderStickerSets](messages_reorderStickerSets.md)(\['masks' => [Bool](../types/Bool.md), 'order' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) +* Reorder sticker sets -$MadelineProto->[messages->reportEncryptedSpam](messages_reportEncryptedSpam.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), \]) === [$Bool](../types/Bool.md) +* Report for spam a secret chat -$MadelineProto->[messages->reportSpam](messages_reportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Report a peer for spam -$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$MadelineProto->[messages->saveDraft](messages_saveDraft.md)(\['no_webpage' => [Bool](../types/Bool.md), 'reply_to_msg_id' => [int](../types/int.md), 'peer' => [InputPeer](../types/InputPeer.md), 'message' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Bool](../types/Bool.md) +* Save a message draft -$MadelineProto->[messages->saveGif](messages_saveGif.md)(\['id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Save a GIF -$MadelineProto->[messages->saveRecentSticker](messages_saveRecentSticker.md)(\['attached' => [Bool](../types/Bool.md), 'id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Add a sticker to recent stickers -$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) +* Search peers or messages -$MadelineProto->[messages->searchGifs](messages_searchGifs.md)(\['q' => [string](../types/string.md), 'offset' => [int](../types/int.md), \]) === [$messages\_FoundGifs](../types/messages_FoundGifs.md) +* Search gifs -$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) +* Global message search -$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send message to secret chat -$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) +* Send a file to a secret chat -$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send a service message to a secret chat -$MadelineProto->[messages->sendInlineBotResult](messages_sendInlineBotResult.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'query_id' => [long](../types/long.md), 'id' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Send a received bot result to the chat -$MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'media' => [InputMedia](../types/InputMedia.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \]) === [$Updates](../types/Updates.md) +* Send a media -$MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Updates](../types/Updates.md) +* Send a message -$MadelineProto->[messages->setBotCallbackAnswer](messages_setBotCallbackAnswer.md)(\['alert' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'message' => [string](../types/string.md), 'url' => [string](../types/string.md), 'cache_time' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Bots only: set the callback answer (after a button was clicked) -$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Send typing notification to secret chat -$MadelineProto->[messages->setGameScore](messages_setGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'force' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) +* Set the game score -$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) +* Bots only: set the results of an inline query -$MadelineProto->[messages->setInlineGameScore](messages_setInlineGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'force' => [Bool](../types/Bool.md), 'id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Set the game score of an inline message -$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) +* Change typing status -$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) +* Start a bot -$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Enable all users are admins in normal groups (not supergroups) -$MadelineProto->[messages->toggleDialogPin](messages_toggleDialogPin.md)(\['pinned' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Pin or unpin dialog -$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) +* Remove a sticker set *** -

$MadelineProto->[phone->acceptCall](phone_acceptCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'g_b' => [bytes](../types/bytes.md), 'key_fingerprint' => [long](../types/long.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) +

* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls -$MadelineProto->[phone->discardCall](phone_discardCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'duration' => [int](../types/int.md), 'reason' => [PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md), 'connection_id' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls -$MadelineProto->[phone->receivedCall](phone_receivedCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), \]) === [$Bool](../types/Bool.md) +* Notify server that you received a call (server will refuse all incoming calls until the current call is over) -$MadelineProto->[phone->requestCall](phone_requestCall.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls *** -

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) +

* Delete profile photos -$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) +* Get the profile photos of a user -$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) +* Update the profile photo (use photos->uploadProfilePhoto to upload the photo) -$MadelineProto->[photos->uploadProfilePhoto](photos_uploadProfilePhoto.md)(\['file' => [InputFile](../types/InputFile.md), \]) === [$photos\_Photo](../types/photos_Photo.md) +* Upload profile photo *** -

$MadelineProto->[updates->getChannelDifference](updates_getChannelDifference.md)(\['force' => [Bool](../types/Bool.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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates -$MadelineProto->[updates->getDifference](updates_getDifference.md)(\['pts' => [int](../types/int.md), 'pts_total_limit' => [int](../types/int.md), 'date' => [int](../types/int.md), 'qts' => [int](../types/int.md), \]) === [$updates\_Difference](../types/updates_Difference.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates -$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates *** -

$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) +

* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info *** -

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) +

* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) +* Get info about users diff --git a/old_docs/API_docs_v62/methods/account_changePhone.md b/old_docs/API_docs_v62/methods/account_changePhone.md index aeb5c4bc..65f0b0d0 100644 --- a/old_docs/API_docs_v62/methods/account_changePhone.md +++ b/old_docs/API_docs_v62/methods/account_changePhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); diff --git a/old_docs/API_docs_v62/methods/account_checkUsername.md b/old_docs/API_docs_v62/methods/account_checkUsername.md index 0124bb38..08107762 100644 --- a/old_docs/API_docs_v62/methods/account_checkUsername.md +++ b/old_docs/API_docs_v62/methods/account_checkUsername.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v62/methods/account_confirmPhone.md b/old_docs/API_docs_v62/methods/account_confirmPhone.md index c6a1dba6..68490f35 100644 --- a/old_docs/API_docs_v62/methods/account_confirmPhone.md +++ b/old_docs/API_docs_v62/methods/account_confirmPhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->confirmPhone(['phone_code_hash' => 'string', 'phone_code' => 'string', ]); diff --git a/old_docs/API_docs_v62/methods/account_deleteAccount.md b/old_docs/API_docs_v62/methods/account_deleteAccount.md index e8b46c24..3a6f4700 100644 --- a/old_docs/API_docs_v62/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v62/methods/account_deleteAccount.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); diff --git a/old_docs/API_docs_v62/methods/account_getAccountTTL.md b/old_docs/API_docs_v62/methods/account_getAccountTTL.md index 0cdd0b98..ab6a6ea1 100644 --- a/old_docs/API_docs_v62/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v62/methods/account_getAccountTTL.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); diff --git a/old_docs/API_docs_v62/methods/account_getAuthorizations.md b/old_docs/API_docs_v62/methods/account_getAuthorizations.md index f92db8fe..303203e4 100644 --- a/old_docs/API_docs_v62/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v62/methods/account_getAuthorizations.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_Authorizations = $MadelineProto->account->getAuthorizations(); diff --git a/old_docs/API_docs_v62/methods/account_getNotifySettings.md b/old_docs/API_docs_v62/methods/account_getNotifySettings.md index f00be12c..ad492f49 100644 --- a/old_docs/API_docs_v62/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v62/methods/account_getNotifySettings.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); diff --git a/old_docs/API_docs_v62/methods/account_getPassword.md b/old_docs/API_docs_v62/methods/account_getPassword.md index c189421d..2692dab1 100644 --- a/old_docs/API_docs_v62/methods/account_getPassword.md +++ b/old_docs/API_docs_v62/methods/account_getPassword.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_Password = $MadelineProto->account->getPassword(); diff --git a/old_docs/API_docs_v62/methods/account_getPasswordSettings.md b/old_docs/API_docs_v62/methods/account_getPasswordSettings.md index 96cb953e..2039d405 100644 --- a/old_docs/API_docs_v62/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v62/methods/account_getPasswordSettings.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PasswordSettings = $MadelineProto->account->getPasswordSettings(['current_password_hash' => 'bytes', ]); diff --git a/old_docs/API_docs_v62/methods/account_getPrivacy.md b/old_docs/API_docs_v62/methods/account_getPrivacy.md index 979bfb94..5480ffbb 100644 --- a/old_docs/API_docs_v62/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v62/methods/account_getPrivacy.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); diff --git a/old_docs/API_docs_v62/methods/account_getWallPapers.md b/old_docs/API_docs_v62/methods/account_getWallPapers.md index 89b281be..7c8bff39 100644 --- a/old_docs/API_docs_v62/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v62/methods/account_getWallPapers.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); diff --git a/old_docs/API_docs_v62/methods/account_registerDevice.md b/old_docs/API_docs_v62/methods/account_registerDevice.md index cd28abcd..4e148a7f 100644 --- a/old_docs/API_docs_v62/methods/account_registerDevice.md +++ b/old_docs/API_docs_v62/methods/account_registerDevice.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', ]); diff --git a/old_docs/API_docs_v62/methods/account_reportPeer.md b/old_docs/API_docs_v62/methods/account_reportPeer.md index a07c87d0..c5fe7073 100644 --- a/old_docs/API_docs_v62/methods/account_reportPeer.md +++ b/old_docs/API_docs_v62/methods/account_reportPeer.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->reportPeer(['peer' => InputPeer, 'reason' => ReportReason, ]); diff --git a/old_docs/API_docs_v62/methods/account_resetAuthorization.md b/old_docs/API_docs_v62/methods/account_resetAuthorization.md index 4155d3c8..543aee08 100644 --- a/old_docs/API_docs_v62/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v62/methods/account_resetAuthorization.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetAuthorization(['hash' => long, ]); diff --git a/old_docs/API_docs_v62/methods/account_resetNotifySettings.md b/old_docs/API_docs_v62/methods/account_resetNotifySettings.md index ccc836a9..557373b0 100644 --- a/old_docs/API_docs_v62/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v62/methods/account_resetNotifySettings.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); diff --git a/old_docs/API_docs_v62/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v62/methods/account_sendChangePhoneCode.md index c9f9c174..bdf7331f 100644 --- a/old_docs/API_docs_v62/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v62/methods/account_sendChangePhoneCode.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendChangePhoneCode(['allow_flashcall' => Bool, 'phone_number' => 'string', 'current_number' => Bool, ]); diff --git a/old_docs/API_docs_v62/methods/account_sendConfirmPhoneCode.md b/old_docs/API_docs_v62/methods/account_sendConfirmPhoneCode.md index 3785ba75..86035d19 100644 --- a/old_docs/API_docs_v62/methods/account_sendConfirmPhoneCode.md +++ b/old_docs/API_docs_v62/methods/account_sendConfirmPhoneCode.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendConfirmPhoneCode(['allow_flashcall' => Bool, 'hash' => 'string', 'current_number' => Bool, ]); diff --git a/old_docs/API_docs_v62/methods/account_setAccountTTL.md b/old_docs/API_docs_v62/methods/account_setAccountTTL.md index 5100e62e..bacdd77a 100644 --- a/old_docs/API_docs_v62/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v62/methods/account_setAccountTTL.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); diff --git a/old_docs/API_docs_v62/methods/account_setPrivacy.md b/old_docs/API_docs_v62/methods/account_setPrivacy.md index fbcedae7..6e24ded7 100644 --- a/old_docs/API_docs_v62/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v62/methods/account_setPrivacy.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); diff --git a/old_docs/API_docs_v62/methods/account_unregisterDevice.md b/old_docs/API_docs_v62/methods/account_unregisterDevice.md index 1d2b7670..b666d91a 100644 --- a/old_docs/API_docs_v62/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v62/methods/account_unregisterDevice.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); diff --git a/old_docs/API_docs_v62/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v62/methods/account_updateDeviceLocked.md index ef816501..cd52093a 100644 --- a/old_docs/API_docs_v62/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v62/methods/account_updateDeviceLocked.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); diff --git a/old_docs/API_docs_v62/methods/account_updateNotifySettings.md b/old_docs/API_docs_v62/methods/account_updateNotifySettings.md index 18cbdb75..db020309 100644 --- a/old_docs/API_docs_v62/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v62/methods/account_updateNotifySettings.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); diff --git a/old_docs/API_docs_v62/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v62/methods/account_updatePasswordSettings.md index 0754dd63..8af1e37f 100644 --- a/old_docs/API_docs_v62/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v62/methods/account_updatePasswordSettings.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updatePasswordSettings(['current_password_hash' => 'bytes', 'new_settings' => account_PasswordInputSettings, ]); diff --git a/old_docs/API_docs_v62/methods/account_updateProfile.md b/old_docs/API_docs_v62/methods/account_updateProfile.md index e24ef2f5..59629188 100644 --- a/old_docs/API_docs_v62/methods/account_updateProfile.md +++ b/old_docs/API_docs_v62/methods/account_updateProfile.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', 'about' => 'string', ]); diff --git a/old_docs/API_docs_v62/methods/account_updateStatus.md b/old_docs/API_docs_v62/methods/account_updateStatus.md index 4b049e65..50b99b1e 100644 --- a/old_docs/API_docs_v62/methods/account_updateStatus.md +++ b/old_docs/API_docs_v62/methods/account_updateStatus.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); diff --git a/old_docs/API_docs_v62/methods/account_updateUsername.md b/old_docs/API_docs_v62/methods/account_updateUsername.md index 08d2abe0..7276e2aa 100644 --- a/old_docs/API_docs_v62/methods/account_updateUsername.md +++ b/old_docs/API_docs_v62/methods/account_updateUsername.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v62/methods/api_README.md b/old_docs/API_docs_v62/methods/api_README.md new file mode 100644 index 00000000..a95f2ceb --- /dev/null +++ b/old_docs/API_docs_v62/methods/api_README.md @@ -0,0 +1,448 @@ +--- +title: Methods +description: List of methods +--- +# Methods +[Back to API documentation index](..) + +[Go to the new description-version method index](index.html) + +$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); + +$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); + +$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); + +$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); + +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); + + +$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); + +$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); + +$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); + +$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); + +$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); + + +$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); + +$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); + +*** +

$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) + +$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->confirmPhone](account_confirmPhone.md)(\['phone_code_hash' => [string](../types/string.md), 'phone_code' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) + +$MadelineProto->[account->getAuthorizations](account_getAuthorizations.md)(\[\]) === [$account\_Authorizations](../types/account_Authorizations.md) + +$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) + +$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md) + +$MadelineProto->[account->getPasswordSettings](account_getPasswordSettings.md)(\['current_password_hash' => [bytes](../types/bytes.md), \]) === [$account\_PasswordSettings](../types/account_PasswordSettings.md) + +$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) + +$MadelineProto->[account->registerDevice](account_registerDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->reportPeer](account_reportPeer.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reason' => [ReportReason](../types/ReportReason.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[account->sendConfirmPhoneCode](account_sendConfirmPhoneCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'hash' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) + +$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$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) + +$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) + +*** +

$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) + +$MadelineProto->[auth->cancelCode](auth_cancelCode.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) + +$MadelineProto->[auth->dropTempAuthKeys](auth_dropTempAuthKeys.md)(\['except_auth_keys' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) + +$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$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) + +$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->recoverPassword](auth_recoverPassword.md)(\['code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->requestPasswordRecovery](auth_requestPasswordRecovery.md)(\[\]) === [$auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) + +$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) + +$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->sendCode](auth_sendCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'phone_number' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), 'api_id' => [int](../types/int.md), 'api_hash' => [string](../types/string.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) + +$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$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) + +*** +

$MadelineProto->[channels->checkUsername](channels_checkUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->deleteChannel](channels_deleteChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->deleteMessages](channels_deleteMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[channels->deleteUserHistory](channels_deleteUserHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[channels->editAbout](channels_editAbout.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'about' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->editPhoto](channels_editPhoto.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->editTitle](channels_editTitle.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->exportInvite](channels_exportInvite.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) + +$MadelineProto->[channels->exportMessageLink](channels_exportMessageLink.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => [int](../types/int.md), \]) === [$ExportedMessageLink](../types/ExportedMessageLink.md) + +$MadelineProto->[channels->getAdminedPublicChannels](channels_getAdminedPublicChannels.md)(\[\]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[channels->getChannels](channels_getChannels.md)(\['id' => \[[InputChannel](../types/InputChannel.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[channels->getFullChannel](channels_getFullChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$MadelineProto->[channels->getMessages](channels_getMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) + +$MadelineProto->[channels->getParticipant](channels_getParticipant.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) + +$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) + +$MadelineProto->[channels->inviteToChannel](channels_inviteToChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'users' => \[[InputUser](../types/InputUser.md)\], \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->joinChannel](channels_joinChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$MadelineProto->[channels->leaveChannel](channels_leaveChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->readHistory](channels_readHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->toggleInvites](channels_toggleInvites.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->toggleSignatures](channels_toggleSignatures.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$MadelineProto->[channels->updateUsername](channels_updateUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) + +$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) + +$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) + +$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [string](../types/string.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) + +$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) + +$MadelineProto->[contacts->getTopPeers](contacts_getTopPeers.md)(\['correspondents' => [Bool](../types/Bool.md), 'bots_pm' => [Bool](../types/Bool.md), 'bots_inline' => [Bool](../types/Bool.md), 'groups' => [Bool](../types/Bool.md), 'channels' => [Bool](../types/Bool.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'hash' => [int](../types/int.md), \]) === [$contacts\_TopPeers](../types/contacts_TopPeers.md) + +$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) + +$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], 'replace' => [Bool](../types/Bool.md), \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) + +$MadelineProto->[contacts->resetTopPeerRating](contacts_resetTopPeerRating.md)(\['category' => [TopPeerCategory](../types/TopPeerCategory.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) + +$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) + +$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[destroy_auth_key](destroy_auth_key.md)(\[\]) === [$DestroyAuthKeyRes](../types/DestroyAuthKeyRes.md) + +*** +

$MadelineProto->[help->getAppChangelog](help_getAppChangelog.md)(\[\]) === [$help\_AppChangelog](../types/help_AppChangelog.md) + +$MadelineProto->[help->getAppUpdate](help_getAppUpdate.md)(\[\]) === [$help\_AppUpdate](../types/help_AppUpdate.md) + +$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) + +$MadelineProto->[help->getInviteText](help_getInviteText.md)(\[\]) === [$help\_InviteText](../types/help_InviteText.md) + +$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) + +$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) + +$MadelineProto->[help->getTermsOfService](help_getTermsOfService.md)(\[\]) === [$help\_TermsOfService](../types/help_TermsOfService.md) + +$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[help->setBotUpdatesStatus](help_setBotUpdatesStatus.md)(\['pending_updates_count' => [int](../types/int.md), 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +*** +

$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) + +*** +

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeWithoutUpdates](invokeWithoutUpdates.md)(\['query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$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) + +$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) + +$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md) + +$MadelineProto->[messages->clearRecentStickers](messages_clearRecentStickers.md)(\['attached' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['just_clear' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['revoke' => [Bool](../types/Bool.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$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) + +$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) + +$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'with_my_score' => [Bool](../types/Bool.md), 'from_peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], 'to_peer' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->getAllChats](messages_getAllChats.md)(\['except_ids' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[messages->getAllDrafts](messages_getAllDrafts.md)(\[\]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) + +$MadelineProto->[messages->getArchivedStickers](messages_getArchivedStickers.md)(\['masks' => [Bool](../types/Bool.md), 'offset_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), \]) === [$messages\_ArchivedStickers](../types/messages_ArchivedStickers.md) + +$MadelineProto->[messages->getAttachedStickers](messages_getAttachedStickers.md)(\['media' => [InputStickeredMedia](../types/InputStickeredMedia.md), \]) === [$Vector\_of\_StickerSetCovered](../types/StickerSetCovered.md) + +$MadelineProto->[messages->getBotCallbackAnswer](messages_getBotCallbackAnswer.md)(\['game' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'msg_id' => [int](../types/int.md), 'data' => [bytes](../types/bytes.md), \]) === [$messages\_BotCallbackAnswer](../types/messages_BotCallbackAnswer.md) + +$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[messages->getCommonChats](messages_getCommonChats.md)(\['user_id' => [InputUser](../types/InputUser.md), 'max_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) + +$MadelineProto->[messages->getDialogs](messages_getDialogs.md)(\['exclude_pinned' => [Bool](../types/Bool.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) + +$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) + +$MadelineProto->[messages->getFeaturedStickers](messages_getFeaturedStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_FeaturedStickers](../types/messages_FeaturedStickers.md) + +$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$MadelineProto->[messages->getGameHighScores](messages_getGameHighScores.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_HighScores](../types/messages_HighScores.md) + +$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) + +$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) + +$MadelineProto->[messages->getInlineGameHighScores](messages_getInlineGameHighScores.md)(\['id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_HighScores](../types/messages_HighScores.md) + +$MadelineProto->[messages->getMaskStickers](messages_getMaskStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) + +$MadelineProto->[messages->getMessageEditData](messages_getMessageEditData.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$messages\_MessageEditData](../types/messages_MessageEditData.md) + +$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) + +$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) + +$MadelineProto->[messages->getPeerDialogs](messages_getPeerDialogs.md)(\['peers' => \[[InputPeer](../types/InputPeer.md)\], \]) === [$messages\_PeerDialogs](../types/messages_PeerDialogs.md) + +$MadelineProto->[messages->getPeerSettings](messages_getPeerSettings.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$PeerSettings](../types/PeerSettings.md) + +$MadelineProto->[messages->getPinnedDialogs](messages_getPinnedDialogs.md)(\[\]) === [$messages\_PeerDialogs](../types/messages_PeerDialogs.md) + +$MadelineProto->[messages->getRecentStickers](messages_getRecentStickers.md)(\['attached' => [Bool](../types/Bool.md), 'hash' => [int](../types/int.md), \]) === [$messages\_RecentStickers](../types/messages_RecentStickers.md) + +$MadelineProto->[messages->getSavedGifs](messages_getSavedGifs.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_SavedGifs](../types/messages_SavedGifs.md) + +$MadelineProto->[messages->getStickerSet](messages_getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +$MadelineProto->[messages->getWebPage](messages_getWebPage.md)(\['url' => [string](../types/string.md), 'hash' => [int](../types/int.md), \]) === [$WebPage](../types/WebPage.md) + +$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) === [$MessageMedia](../types/MessageMedia.md) + +$MadelineProto->[messages->hideReportSpam](messages_hideReportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'archived' => [Bool](../types/Bool.md), \]) === [$messages\_StickerSetInstallResult](../types/messages_StickerSetInstallResult.md) + +$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->readFeaturedStickers](messages_readFeaturedStickers.md)(\['id' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->readHistory](messages_readHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_ReceivedNotifyMessage](../types/ReceivedNotifyMessage.md) + +$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) + +$MadelineProto->[messages->reorderPinnedDialogs](messages_reorderPinnedDialogs.md)(\['force' => [Bool](../types/Bool.md), 'order' => \[[InputPeer](../types/InputPeer.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->reorderStickerSets](messages_reorderStickerSets.md)(\['masks' => [Bool](../types/Bool.md), 'order' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->reportEncryptedSpam](messages_reportEncryptedSpam.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->reportSpam](messages_reportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) + +$MadelineProto->[messages->saveDraft](messages_saveDraft.md)(\['no_webpage' => [Bool](../types/Bool.md), 'reply_to_msg_id' => [int](../types/int.md), 'peer' => [InputPeer](../types/InputPeer.md), 'message' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->saveGif](messages_saveGif.md)(\['id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->saveRecentSticker](messages_saveRecentSticker.md)(\['attached' => [Bool](../types/Bool.md), 'id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->searchGifs](messages_searchGifs.md)(\['q' => [string](../types/string.md), 'offset' => [int](../types/int.md), \]) === [$messages\_FoundGifs](../types/messages_FoundGifs.md) + +$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) + +$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$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) + +$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$MadelineProto->[messages->sendInlineBotResult](messages_sendInlineBotResult.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'query_id' => [long](../types/long.md), 'id' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'media' => [InputMedia](../types/InputMedia.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->setBotCallbackAnswer](messages_setBotCallbackAnswer.md)(\['alert' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'message' => [string](../types/string.md), 'url' => [string](../types/string.md), 'cache_time' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setGameScore](messages_setGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'force' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$MadelineProto->[messages->setInlineGameScore](messages_setInlineGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'force' => [Bool](../types/Bool.md), 'id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->toggleDialogPin](messages_toggleDialogPin.md)(\['pinned' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[phone->acceptCall](phone_acceptCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'g_b' => [bytes](../types/bytes.md), 'key_fingerprint' => [long](../types/long.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) + +$MadelineProto->[phone->discardCall](phone_discardCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'duration' => [int](../types/int.md), 'reason' => [PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md), 'connection_id' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[phone->receivedCall](phone_receivedCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[phone->requestCall](phone_requestCall.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) + +*** +

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) + +$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) + +$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) + +$MadelineProto->[photos->uploadProfilePhoto](photos_uploadProfilePhoto.md)(\['file' => [InputFile](../types/InputFile.md), \]) === [$photos\_Photo](../types/photos_Photo.md) + +*** +

$MadelineProto->[updates->getChannelDifference](updates_getChannelDifference.md)(\['force' => [Bool](../types/Bool.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) + +$MadelineProto->[updates->getDifference](updates_getDifference.md)(\['pts' => [int](../types/int.md), 'pts_total_limit' => [int](../types/int.md), 'date' => [int](../types/int.md), 'qts' => [int](../types/int.md), \]) === [$updates\_Difference](../types/updates_Difference.md) + +$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) + +*** +

$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) + +$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) + +$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) + +*** +

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) + +$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) + diff --git a/old_docs/API_docs_v62/methods/auth_cancelCode.md b/old_docs/API_docs_v62/methods/auth_cancelCode.md index 2ad15548..52b85d4c 100644 --- a/old_docs/API_docs_v62/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v62/methods/auth_cancelCode.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->cancelCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v62/methods/auth_checkPhone.md b/old_docs/API_docs_v62/methods/auth_checkPhone.md index 291221de..1826ce63 100644 --- a/old_docs/API_docs_v62/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v62/methods/auth_checkPhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); diff --git a/old_docs/API_docs_v62/methods/auth_dropTempAuthKeys.md b/old_docs/API_docs_v62/methods/auth_dropTempAuthKeys.md index 6474bbb3..5aa98b3b 100644 --- a/old_docs/API_docs_v62/methods/auth_dropTempAuthKeys.md +++ b/old_docs/API_docs_v62/methods/auth_dropTempAuthKeys.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->dropTempAuthKeys(['except_auth_keys' => [long, long], ]); diff --git a/old_docs/API_docs_v62/methods/auth_recoverPassword.md b/old_docs/API_docs_v62/methods/auth_recoverPassword.md index cdc9bd7d..5e37b0f3 100644 --- a/old_docs/API_docs_v62/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v62/methods/auth_recoverPassword.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_Authorization = $MadelineProto->auth->recoverPassword(['code' => 'string', ]); diff --git a/old_docs/API_docs_v62/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v62/methods/auth_requestPasswordRecovery.md index e18c6c93..c69d0c49 100644 --- a/old_docs/API_docs_v62/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v62/methods/auth_requestPasswordRecovery.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_PasswordRecovery = $MadelineProto->auth->requestPasswordRecovery(); diff --git a/old_docs/API_docs_v62/methods/auth_resendCode.md b/old_docs/API_docs_v62/methods/auth_resendCode.md index de437402..253480a3 100644 --- a/old_docs/API_docs_v62/methods/auth_resendCode.md +++ b/old_docs/API_docs_v62/methods/auth_resendCode.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_SentCode = $MadelineProto->auth->resendCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v62/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v62/methods/auth_resetAuthorizations.md index 47feea16..a46c880d 100644 --- a/old_docs/API_docs_v62/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v62/methods/auth_resetAuthorizations.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); diff --git a/old_docs/API_docs_v62/methods/auth_sendInvites.md b/old_docs/API_docs_v62/methods/auth_sendInvites.md index be32fe6b..9b88b4a3 100644 --- a/old_docs/API_docs_v62/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v62/methods/auth_sendInvites.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); diff --git a/old_docs/API_docs_v62/methods/channels_checkUsername.md b/old_docs/API_docs_v62/methods/channels_checkUsername.md index 7bc7c245..7e3d5a89 100644 --- a/old_docs/API_docs_v62/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v62/methods/channels_checkUsername.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->checkUsername(['channel' => InputChannel, 'username' => 'string', ]); diff --git a/old_docs/API_docs_v62/methods/channels_createChannel.md b/old_docs/API_docs_v62/methods/channels_createChannel.md index 1305e4fb..a5ddc379 100644 --- a/old_docs/API_docs_v62/methods/channels_createChannel.md +++ b/old_docs/API_docs_v62/methods/channels_createChannel.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->createChannel(['broadcast' => Bool, 'megagroup' => Bool, 'title' => 'string', 'about' => 'string', ]); diff --git a/old_docs/API_docs_v62/methods/channels_deleteChannel.md b/old_docs/API_docs_v62/methods/channels_deleteChannel.md index e660d25c..69dad9a3 100644 --- a/old_docs/API_docs_v62/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v62/methods/channels_deleteChannel.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->deleteChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v62/methods/channels_deleteMessages.md b/old_docs/API_docs_v62/methods/channels_deleteMessages.md index fb9d3cc2..b12270b3 100644 --- a/old_docs/API_docs_v62/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v62/methods/channels_deleteMessages.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v62/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v62/methods/channels_deleteUserHistory.md index fbe34341..75f531bb 100644 --- a/old_docs/API_docs_v62/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v62/methods/channels_deleteUserHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->channels->deleteUserHistory(['channel' => InputChannel, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v62/methods/channels_editAbout.md b/old_docs/API_docs_v62/methods/channels_editAbout.md index 8908f29e..67521065 100644 --- a/old_docs/API_docs_v62/methods/channels_editAbout.md +++ b/old_docs/API_docs_v62/methods/channels_editAbout.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->editAbout(['channel' => InputChannel, 'about' => 'string', ]); diff --git a/old_docs/API_docs_v62/methods/channels_editAdmin.md b/old_docs/API_docs_v62/methods/channels_editAdmin.md index 01662a1d..7b6cc0f1 100644 --- a/old_docs/API_docs_v62/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v62/methods/channels_editAdmin.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editAdmin(['channel' => InputChannel, 'user_id' => InputUser, 'role' => ChannelParticipantRole, ]); diff --git a/old_docs/API_docs_v62/methods/channels_editPhoto.md b/old_docs/API_docs_v62/methods/channels_editPhoto.md index 9ccd864f..c854c64a 100644 --- a/old_docs/API_docs_v62/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v62/methods/channels_editPhoto.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editPhoto(['channel' => InputChannel, 'photo' => InputChatPhoto, ]); diff --git a/old_docs/API_docs_v62/methods/channels_editTitle.md b/old_docs/API_docs_v62/methods/channels_editTitle.md index b1024faf..9bc6773e 100644 --- a/old_docs/API_docs_v62/methods/channels_editTitle.md +++ b/old_docs/API_docs_v62/methods/channels_editTitle.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editTitle(['channel' => InputChannel, 'title' => 'string', ]); diff --git a/old_docs/API_docs_v62/methods/channels_exportInvite.md b/old_docs/API_docs_v62/methods/channels_exportInvite.md index f0c737d5..ca65dcc8 100644 --- a/old_docs/API_docs_v62/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v62/methods/channels_exportInvite.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedChatInvite = $MadelineProto->channels->exportInvite(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v62/methods/channels_exportMessageLink.md b/old_docs/API_docs_v62/methods/channels_exportMessageLink.md index f910b594..b4a3c645 100644 --- a/old_docs/API_docs_v62/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v62/methods/channels_exportMessageLink.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedMessageLink = $MadelineProto->channels->exportMessageLink(['channel' => InputChannel, 'id' => int, ]); diff --git a/old_docs/API_docs_v62/methods/channels_getAdminedPublicChannels.md b/old_docs/API_docs_v62/methods/channels_getAdminedPublicChannels.md index 9646f529..febc44f9 100644 --- a/old_docs/API_docs_v62/methods/channels_getAdminedPublicChannels.md +++ b/old_docs/API_docs_v62/methods/channels_getAdminedPublicChannels.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->channels->getAdminedPublicChannels(); diff --git a/old_docs/API_docs_v62/methods/channels_getChannels.md b/old_docs/API_docs_v62/methods/channels_getChannels.md index 9cd9e798..af22556f 100644 --- a/old_docs/API_docs_v62/methods/channels_getChannels.md +++ b/old_docs/API_docs_v62/methods/channels_getChannels.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel, InputChannel], ]); diff --git a/old_docs/API_docs_v62/methods/channels_getMessages.md b/old_docs/API_docs_v62/methods/channels_getMessages.md index cc944fe5..eda13d0b 100644 --- a/old_docs/API_docs_v62/methods/channels_getMessages.md +++ b/old_docs/API_docs_v62/methods/channels_getMessages.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v62/methods/channels_getParticipant.md b/old_docs/API_docs_v62/methods/channels_getParticipant.md index db9b1fc6..be5fe96a 100644 --- a/old_docs/API_docs_v62/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v62/methods/channels_getParticipant.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $channels_ChannelParticipant = $MadelineProto->channels->getParticipant(['channel' => InputChannel, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v62/methods/channels_getParticipants.md b/old_docs/API_docs_v62/methods/channels_getParticipants.md index 96662466..6a27016b 100644 --- a/old_docs/API_docs_v62/methods/channels_getParticipants.md +++ b/old_docs/API_docs_v62/methods/channels_getParticipants.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $channels_ChannelParticipants = $MadelineProto->channels->getParticipants(['channel' => InputChannel, 'filter' => ChannelParticipantsFilter, 'offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v62/methods/channels_inviteToChannel.md b/old_docs/API_docs_v62/methods/channels_inviteToChannel.md index 676f800c..e7d12db7 100644 --- a/old_docs/API_docs_v62/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v62/methods/channels_inviteToChannel.md @@ -52,12 +52,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v62/methods/channels_joinChannel.md b/old_docs/API_docs_v62/methods/channels_joinChannel.md index 721f707c..3ac2b326 100644 --- a/old_docs/API_docs_v62/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v62/methods/channels_joinChannel.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->joinChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v62/methods/channels_kickFromChannel.md b/old_docs/API_docs_v62/methods/channels_kickFromChannel.md index bf8bb5b8..8f6c92be 100644 --- a/old_docs/API_docs_v62/methods/channels_kickFromChannel.md +++ b/old_docs/API_docs_v62/methods/channels_kickFromChannel.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->kickFromChannel(['channel' => InputChannel, 'user_id' => InputUser, 'kicked' => Bool, ]); diff --git a/old_docs/API_docs_v62/methods/channels_leaveChannel.md b/old_docs/API_docs_v62/methods/channels_leaveChannel.md index 7f02e08c..95b60a90 100644 --- a/old_docs/API_docs_v62/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v62/methods/channels_leaveChannel.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->leaveChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v62/methods/channels_readHistory.md b/old_docs/API_docs_v62/methods/channels_readHistory.md index cca891f0..c6b14541 100644 --- a/old_docs/API_docs_v62/methods/channels_readHistory.md +++ b/old_docs/API_docs_v62/methods/channels_readHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->readHistory(['channel' => InputChannel, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v62/methods/channels_reportSpam.md b/old_docs/API_docs_v62/methods/channels_reportSpam.md index 09af14e0..ca5c28f5 100644 --- a/old_docs/API_docs_v62/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v62/methods/channels_reportSpam.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v62/methods/channels_toggleInvites.md b/old_docs/API_docs_v62/methods/channels_toggleInvites.md index 5b541f67..e9e6450d 100644 --- a/old_docs/API_docs_v62/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v62/methods/channels_toggleInvites.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->toggleInvites(['channel' => InputChannel, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v62/methods/channels_toggleSignatures.md b/old_docs/API_docs_v62/methods/channels_toggleSignatures.md index f233a8e1..36d1eccb 100644 --- a/old_docs/API_docs_v62/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v62/methods/channels_toggleSignatures.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->toggleSignatures(['channel' => InputChannel, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v62/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v62/methods/channels_updatePinnedMessage.md index f06d1f0f..f8d10ece 100644 --- a/old_docs/API_docs_v62/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v62/methods/channels_updatePinnedMessage.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->updatePinnedMessage(['silent' => Bool, 'channel' => InputChannel, 'id' => int, ]); diff --git a/old_docs/API_docs_v62/methods/channels_updateUsername.md b/old_docs/API_docs_v62/methods/channels_updateUsername.md index ad34490a..2093b6ce 100644 --- a/old_docs/API_docs_v62/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v62/methods/channels_updateUsername.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->updateUsername(['channel' => InputChannel, 'username' => 'string', ]); diff --git a/old_docs/API_docs_v62/methods/contacts_block.md b/old_docs/API_docs_v62/methods/contacts_block.md index d0729d30..e592cace 100644 --- a/old_docs/API_docs_v62/methods/contacts_block.md +++ b/old_docs/API_docs_v62/methods/contacts_block.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v62/methods/contacts_deleteContact.md b/old_docs/API_docs_v62/methods/contacts_deleteContact.md index b8c17544..1a3f2a27 100644 --- a/old_docs/API_docs_v62/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v62/methods/contacts_deleteContact.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v62/methods/contacts_deleteContacts.md b/old_docs/API_docs_v62/methods/contacts_deleteContacts.md index 64c69460..f6627599 100644 --- a/old_docs/API_docs_v62/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v62/methods/contacts_deleteContacts.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v62/methods/contacts_exportCard.md b/old_docs/API_docs_v62/methods/contacts_exportCard.md index b05f57ce..1d2129f3 100644 --- a/old_docs/API_docs_v62/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v62/methods/contacts_exportCard.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); diff --git a/old_docs/API_docs_v62/methods/contacts_getBlocked.md b/old_docs/API_docs_v62/methods/contacts_getBlocked.md index d7d8c5cc..44d24aba 100644 --- a/old_docs/API_docs_v62/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v62/methods/contacts_getBlocked.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v62/methods/contacts_getContacts.md b/old_docs/API_docs_v62/methods/contacts_getContacts.md index 1ab8af27..83c4846f 100644 --- a/old_docs/API_docs_v62/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v62/methods/contacts_getContacts.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v62/methods/contacts_getStatuses.md b/old_docs/API_docs_v62/methods/contacts_getStatuses.md index b927a140..5cef3084 100644 --- a/old_docs/API_docs_v62/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v62/methods/contacts_getStatuses.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); diff --git a/old_docs/API_docs_v62/methods/contacts_getTopPeers.md b/old_docs/API_docs_v62/methods/contacts_getTopPeers.md index 2bad9a2a..8d39809c 100644 --- a/old_docs/API_docs_v62/methods/contacts_getTopPeers.md +++ b/old_docs/API_docs_v62/methods/contacts_getTopPeers.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_TopPeers = $MadelineProto->contacts->getTopPeers(['correspondents' => Bool, 'bots_pm' => Bool, 'bots_inline' => Bool, 'groups' => Bool, 'channels' => Bool, 'offset' => int, 'limit' => int, 'hash' => int, ]); diff --git a/old_docs/API_docs_v62/methods/contacts_importCard.md b/old_docs/API_docs_v62/methods/contacts_importCard.md index 81a1e138..89c96657 100644 --- a/old_docs/API_docs_v62/methods/contacts_importCard.md +++ b/old_docs/API_docs_v62/methods/contacts_importCard.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); diff --git a/old_docs/API_docs_v62/methods/contacts_importContacts.md b/old_docs/API_docs_v62/methods/contacts_importContacts.md index 578e5dfd..cd3d6615 100644 --- a/old_docs/API_docs_v62/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v62/methods/contacts_importContacts.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], 'replace' => Bool, ]); diff --git a/old_docs/API_docs_v62/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v62/methods/contacts_resetTopPeerRating.md index 4b485921..4b5e96f1 100644 --- a/old_docs/API_docs_v62/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v62/methods/contacts_resetTopPeerRating.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->resetTopPeerRating(['category' => TopPeerCategory, 'peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v62/methods/contacts_search.md b/old_docs/API_docs_v62/methods/contacts_search.md index 68daecd6..64ff748e 100644 --- a/old_docs/API_docs_v62/methods/contacts_search.md +++ b/old_docs/API_docs_v62/methods/contacts_search.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); diff --git a/old_docs/API_docs_v62/methods/contacts_unblock.md b/old_docs/API_docs_v62/methods/contacts_unblock.md index f7d151b9..ec72ae2d 100644 --- a/old_docs/API_docs_v62/methods/contacts_unblock.md +++ b/old_docs/API_docs_v62/methods/contacts_unblock.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v62/methods/destroy_auth_key.md b/old_docs/API_docs_v62/methods/destroy_auth_key.md index eb6ba218..dbcc7b23 100644 --- a/old_docs/API_docs_v62/methods/destroy_auth_key.md +++ b/old_docs/API_docs_v62/methods/destroy_auth_key.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $DestroyAuthKeyRes = $MadelineProto->destroy_auth_key(); diff --git a/old_docs/API_docs_v62/methods/help_getAppChangelog.md b/old_docs/API_docs_v62/methods/help_getAppChangelog.md index 208d3409..58f3858a 100644 --- a/old_docs/API_docs_v62/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v62/methods/help_getAppChangelog.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_AppChangelog = $MadelineProto->help->getAppChangelog(); diff --git a/old_docs/API_docs_v62/methods/help_getAppUpdate.md b/old_docs/API_docs_v62/methods/help_getAppUpdate.md index b88906ae..c6a42922 100644 --- a/old_docs/API_docs_v62/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v62/methods/help_getAppUpdate.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(); diff --git a/old_docs/API_docs_v62/methods/help_getConfig.md b/old_docs/API_docs_v62/methods/help_getConfig.md index 16e25c68..ca4bfc25 100644 --- a/old_docs/API_docs_v62/methods/help_getConfig.md +++ b/old_docs/API_docs_v62/methods/help_getConfig.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); diff --git a/old_docs/API_docs_v62/methods/help_getInviteText.md b/old_docs/API_docs_v62/methods/help_getInviteText.md index 6b226bff..7311b7fb 100644 --- a/old_docs/API_docs_v62/methods/help_getInviteText.md +++ b/old_docs/API_docs_v62/methods/help_getInviteText.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(); diff --git a/old_docs/API_docs_v62/methods/help_getNearestDc.md b/old_docs/API_docs_v62/methods/help_getNearestDc.md index 35a8bf91..458f60ab 100644 --- a/old_docs/API_docs_v62/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v62/methods/help_getNearestDc.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); diff --git a/old_docs/API_docs_v62/methods/help_getSupport.md b/old_docs/API_docs_v62/methods/help_getSupport.md index a5bab0f2..9ee25b00 100644 --- a/old_docs/API_docs_v62/methods/help_getSupport.md +++ b/old_docs/API_docs_v62/methods/help_getSupport.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); diff --git a/old_docs/API_docs_v62/methods/help_getTermsOfService.md b/old_docs/API_docs_v62/methods/help_getTermsOfService.md index 487cd83a..4dea9f79 100644 --- a/old_docs/API_docs_v62/methods/help_getTermsOfService.md +++ b/old_docs/API_docs_v62/methods/help_getTermsOfService.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_TermsOfService = $MadelineProto->help->getTermsOfService(); diff --git a/old_docs/API_docs_v62/methods/help_saveAppLog.md b/old_docs/API_docs_v62/methods/help_saveAppLog.md index 0165b6e3..a7884c47 100644 --- a/old_docs/API_docs_v62/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v62/methods/help_saveAppLog.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); diff --git a/old_docs/API_docs_v62/methods/help_setBotUpdatesStatus.md b/old_docs/API_docs_v62/methods/help_setBotUpdatesStatus.md index ff314b5c..a1a3ab1b 100644 --- a/old_docs/API_docs_v62/methods/help_setBotUpdatesStatus.md +++ b/old_docs/API_docs_v62/methods/help_setBotUpdatesStatus.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->help->setBotUpdatesStatus(['pending_updates_count' => int, 'message' => 'string', ]); diff --git a/old_docs/API_docs_v62/methods/initConnection.md b/old_docs/API_docs_v62/methods/initConnection.md index 2d3d86ad..73620276 100644 --- a/old_docs/API_docs_v62/methods/initConnection.md +++ b/old_docs/API_docs_v62/methods/initConnection.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->initConnection(['api_id' => int, 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', 'query' => !X, ]); diff --git a/old_docs/API_docs_v62/methods/invokeAfterMsg.md b/old_docs/API_docs_v62/methods/invokeAfterMsg.md index e33a2c93..8e953e78 100644 --- a/old_docs/API_docs_v62/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v62/methods/invokeAfterMsg.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); diff --git a/old_docs/API_docs_v62/methods/invokeAfterMsgs.md b/old_docs/API_docs_v62/methods/invokeAfterMsgs.md index 3150a613..bc8a83b7 100644 --- a/old_docs/API_docs_v62/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v62/methods/invokeAfterMsgs.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); diff --git a/old_docs/API_docs_v62/methods/invokeWithLayer.md b/old_docs/API_docs_v62/methods/invokeWithLayer.md index 71d02abb..8a0c4e79 100644 --- a/old_docs/API_docs_v62/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v62/methods/invokeWithLayer.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); diff --git a/old_docs/API_docs_v62/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v62/methods/invokeWithoutUpdates.md index 2bab236a..2d90a776 100644 --- a/old_docs/API_docs_v62/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v62/methods/invokeWithoutUpdates.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeWithoutUpdates(['query' => !X, ]); diff --git a/old_docs/API_docs_v62/methods/messages_addChatUser.md b/old_docs/API_docs_v62/methods/messages_addChatUser.md index 3e4c5ccc..c6ef275f 100644 --- a/old_docs/API_docs_v62/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v62/methods/messages_addChatUser.md @@ -46,12 +46,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); diff --git a/old_docs/API_docs_v62/methods/messages_checkChatInvite.md b/old_docs/API_docs_v62/methods/messages_checkChatInvite.md index de1d9ff4..cea63313 100644 --- a/old_docs/API_docs_v62/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v62/methods/messages_checkChatInvite.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ChatInvite = $MadelineProto->messages->checkChatInvite(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v62/methods/messages_clearRecentStickers.md b/old_docs/API_docs_v62/methods/messages_clearRecentStickers.md index 9c1b3754..1d6ec8c9 100644 --- a/old_docs/API_docs_v62/methods/messages_clearRecentStickers.md +++ b/old_docs/API_docs_v62/methods/messages_clearRecentStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->clearRecentStickers(['attached' => Bool, ]); diff --git a/old_docs/API_docs_v62/methods/messages_createChat.md b/old_docs/API_docs_v62/methods/messages_createChat.md index 68c0263a..966f58dc 100644 --- a/old_docs/API_docs_v62/methods/messages_createChat.md +++ b/old_docs/API_docs_v62/methods/messages_createChat.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); diff --git a/old_docs/API_docs_v62/methods/messages_deleteChatUser.md b/old_docs/API_docs_v62/methods/messages_deleteChatUser.md index 0a6830de..9a9227ba 100644 --- a/old_docs/API_docs_v62/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v62/methods/messages_deleteChatUser.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v62/methods/messages_deleteHistory.md b/old_docs/API_docs_v62/methods/messages_deleteHistory.md index e44433c1..45e9890d 100644 --- a/old_docs/API_docs_v62/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v62/methods/messages_deleteHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['just_clear' => Bool, 'peer' => InputPeer, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v62/methods/messages_deleteMessages.md b/old_docs/API_docs_v62/methods/messages_deleteMessages.md index 0da41180..c8670444 100644 --- a/old_docs/API_docs_v62/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v62/methods/messages_deleteMessages.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['revoke' => Bool, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v62/methods/messages_editChatAdmin.md b/old_docs/API_docs_v62/methods/messages_editChatAdmin.md index 7916f8b1..5bba0559 100644 --- a/old_docs/API_docs_v62/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v62/methods/messages_editChatAdmin.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]); diff --git a/old_docs/API_docs_v62/methods/messages_editChatPhoto.md b/old_docs/API_docs_v62/methods/messages_editChatPhoto.md index 122913c4..5827a5cc 100644 --- a/old_docs/API_docs_v62/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v62/methods/messages_editChatPhoto.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); diff --git a/old_docs/API_docs_v62/methods/messages_editChatTitle.md b/old_docs/API_docs_v62/methods/messages_editChatTitle.md index 3a1e974b..2e69d790 100644 --- a/old_docs/API_docs_v62/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v62/methods/messages_editChatTitle.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); diff --git a/old_docs/API_docs_v62/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v62/methods/messages_editInlineBotMessage.md index 2237fb20..73c8a2c4 100644 --- a/old_docs/API_docs_v62/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v62/methods/messages_editInlineBotMessage.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->editInlineBotMessage(['no_webpage' => Bool, 'id' => InputBotInlineMessageID, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v62/methods/messages_editMessage.md b/old_docs/API_docs_v62/methods/messages_editMessage.md index 177438a5..ad639325 100644 --- a/old_docs/API_docs_v62/methods/messages_editMessage.md +++ b/old_docs/API_docs_v62/methods/messages_editMessage.md @@ -51,12 +51,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editMessage(['no_webpage' => Bool, 'peer' => InputPeer, 'id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v62/methods/messages_exportChatInvite.md b/old_docs/API_docs_v62/methods/messages_exportChatInvite.md index 98685d96..ec80e207 100644 --- a/old_docs/API_docs_v62/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v62/methods/messages_exportChatInvite.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]); diff --git a/old_docs/API_docs_v62/methods/messages_forwardMessage.md b/old_docs/API_docs_v62/methods/messages_forwardMessage.md index 45b7a07f..d6916437 100644 --- a/old_docs/API_docs_v62/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v62/methods/messages_forwardMessage.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); diff --git a/old_docs/API_docs_v62/methods/messages_forwardMessages.md b/old_docs/API_docs_v62/methods/messages_forwardMessages.md index efe58e67..b99e1d31 100644 --- a/old_docs/API_docs_v62/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v62/methods/messages_forwardMessages.md @@ -62,12 +62,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessages(['silent' => Bool, 'background' => Bool, 'with_my_score' => Bool, 'from_peer' => InputPeer, 'id' => [int, int], 'to_peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v62/methods/messages_getAllChats.md b/old_docs/API_docs_v62/methods/messages_getAllChats.md index 127456e4..513fc06f 100644 --- a/old_docs/API_docs_v62/methods/messages_getAllChats.md +++ b/old_docs/API_docs_v62/methods/messages_getAllChats.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getAllChats(['except_ids' => [int, int], ]); diff --git a/old_docs/API_docs_v62/methods/messages_getAllDrafts.md b/old_docs/API_docs_v62/methods/messages_getAllDrafts.md index 2c0ecd42..43a95bb2 100644 --- a/old_docs/API_docs_v62/methods/messages_getAllDrafts.md +++ b/old_docs/API_docs_v62/methods/messages_getAllDrafts.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->getAllDrafts(); diff --git a/old_docs/API_docs_v62/methods/messages_getAllStickers.md b/old_docs/API_docs_v62/methods/messages_getAllStickers.md index 16fdba6c..2ba37a91 100644 --- a/old_docs/API_docs_v62/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v62/methods/messages_getAllStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => int, ]); diff --git a/old_docs/API_docs_v62/methods/messages_getArchivedStickers.md b/old_docs/API_docs_v62/methods/messages_getArchivedStickers.md index f037e1bc..ee36b542 100644 --- a/old_docs/API_docs_v62/methods/messages_getArchivedStickers.md +++ b/old_docs/API_docs_v62/methods/messages_getArchivedStickers.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_ArchivedStickers = $MadelineProto->messages->getArchivedStickers(['masks' => Bool, 'offset_id' => long, 'limit' => int, ]); diff --git a/old_docs/API_docs_v62/methods/messages_getAttachedStickers.md b/old_docs/API_docs_v62/methods/messages_getAttachedStickers.md index 890680cd..9f8a66c5 100644 --- a/old_docs/API_docs_v62/methods/messages_getAttachedStickers.md +++ b/old_docs/API_docs_v62/methods/messages_getAttachedStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_StickerSetCovered = $MadelineProto->messages->getAttachedStickers(['media' => InputStickeredMedia, ]); diff --git a/old_docs/API_docs_v62/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v62/methods/messages_getBotCallbackAnswer.md index 09c283f5..0136227f 100644 --- a/old_docs/API_docs_v62/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v62/methods/messages_getBotCallbackAnswer.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_BotCallbackAnswer = $MadelineProto->messages->getBotCallbackAnswer(['game' => Bool, 'peer' => InputPeer, 'msg_id' => int, 'data' => 'bytes', ]); diff --git a/old_docs/API_docs_v62/methods/messages_getChats.md b/old_docs/API_docs_v62/methods/messages_getChats.md index 290438a1..e84c7193 100644 --- a/old_docs/API_docs_v62/methods/messages_getChats.md +++ b/old_docs/API_docs_v62/methods/messages_getChats.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v62/methods/messages_getCommonChats.md b/old_docs/API_docs_v62/methods/messages_getCommonChats.md index e6eca283..15ed6713 100644 --- a/old_docs/API_docs_v62/methods/messages_getCommonChats.md +++ b/old_docs/API_docs_v62/methods/messages_getCommonChats.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getCommonChats(['user_id' => InputUser, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v62/methods/messages_getDialogs.md b/old_docs/API_docs_v62/methods/messages_getDialogs.md index e100228b..53f9ac62 100644 --- a/old_docs/API_docs_v62/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v62/methods/messages_getDialogs.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['exclude_pinned' => Bool, 'offset_date' => int, 'offset_id' => int, 'offset_peer' => InputPeer, 'limit' => int, ]); diff --git a/old_docs/API_docs_v62/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v62/methods/messages_getDocumentByHash.md index 1af5bad4..ad8e22be 100644 --- a/old_docs/API_docs_v62/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v62/methods/messages_getDocumentByHash.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Document = $MadelineProto->messages->getDocumentByHash(['sha256' => 'bytes', 'size' => int, 'mime_type' => 'string', ]); diff --git a/old_docs/API_docs_v62/methods/messages_getFeaturedStickers.md b/old_docs/API_docs_v62/methods/messages_getFeaturedStickers.md index 512f2e85..8e49e1ef 100644 --- a/old_docs/API_docs_v62/methods/messages_getFeaturedStickers.md +++ b/old_docs/API_docs_v62/methods/messages_getFeaturedStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_FeaturedStickers = $MadelineProto->messages->getFeaturedStickers(['hash' => int, ]); diff --git a/old_docs/API_docs_v62/methods/messages_getGameHighScores.md b/old_docs/API_docs_v62/methods/messages_getGameHighScores.md index 5137baea..113e4647 100644 --- a/old_docs/API_docs_v62/methods/messages_getGameHighScores.md +++ b/old_docs/API_docs_v62/methods/messages_getGameHighScores.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_HighScores = $MadelineProto->messages->getGameHighScores(['peer' => InputPeer, 'id' => int, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v62/methods/messages_getHistory.md b/old_docs/API_docs_v62/methods/messages_getHistory.md index dfae66e6..851d2680 100644 --- a/old_docs/API_docs_v62/methods/messages_getHistory.md +++ b/old_docs/API_docs_v62/methods/messages_getHistory.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getHistory(['peer' => InputPeer, 'offset_id' => int, 'offset_date' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); diff --git a/old_docs/API_docs_v62/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v62/methods/messages_getInlineBotResults.md index 8ab5bf78..4d86caf5 100644 --- a/old_docs/API_docs_v62/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v62/methods/messages_getInlineBotResults.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_BotResults = $MadelineProto->messages->getInlineBotResults(['bot' => InputUser, 'peer' => InputPeer, 'geo_point' => InputGeoPoint, 'query' => 'string', 'offset' => 'string', ]); diff --git a/old_docs/API_docs_v62/methods/messages_getInlineGameHighScores.md b/old_docs/API_docs_v62/methods/messages_getInlineGameHighScores.md index 790bfdd9..d5a80005 100644 --- a/old_docs/API_docs_v62/methods/messages_getInlineGameHighScores.md +++ b/old_docs/API_docs_v62/methods/messages_getInlineGameHighScores.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_HighScores = $MadelineProto->messages->getInlineGameHighScores(['id' => InputBotInlineMessageID, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v62/methods/messages_getMaskStickers.md b/old_docs/API_docs_v62/methods/messages_getMaskStickers.md index f4ed9411..70e2e6d4 100644 --- a/old_docs/API_docs_v62/methods/messages_getMaskStickers.md +++ b/old_docs/API_docs_v62/methods/messages_getMaskStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getMaskStickers(['hash' => int, ]); diff --git a/old_docs/API_docs_v62/methods/messages_getMessageEditData.md b/old_docs/API_docs_v62/methods/messages_getMessageEditData.md index 12e71bee..34f8534f 100644 --- a/old_docs/API_docs_v62/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v62/methods/messages_getMessageEditData.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_MessageEditData = $MadelineProto->messages->getMessageEditData(['peer' => InputPeer, 'id' => int, ]); diff --git a/old_docs/API_docs_v62/methods/messages_getMessages.md b/old_docs/API_docs_v62/methods/messages_getMessages.md index 86d1da8a..d538cb5f 100644 --- a/old_docs/API_docs_v62/methods/messages_getMessages.md +++ b/old_docs/API_docs_v62/methods/messages_getMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v62/methods/messages_getMessagesViews.md b/old_docs/API_docs_v62/methods/messages_getMessagesViews.md index b8d78c85..934adc16 100644 --- a/old_docs/API_docs_v62/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v62/methods/messages_getMessagesViews.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int, int], 'increment' => Bool, ]); diff --git a/old_docs/API_docs_v62/methods/messages_getPeerDialogs.md b/old_docs/API_docs_v62/methods/messages_getPeerDialogs.md index da82cfc6..063b6e7d 100644 --- a/old_docs/API_docs_v62/methods/messages_getPeerDialogs.md +++ b/old_docs/API_docs_v62/methods/messages_getPeerDialogs.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_PeerDialogs = $MadelineProto->messages->getPeerDialogs(['peers' => [InputPeer, InputPeer], ]); diff --git a/old_docs/API_docs_v62/methods/messages_getPeerSettings.md b/old_docs/API_docs_v62/methods/messages_getPeerSettings.md index f1f2a3bb..a18126f0 100644 --- a/old_docs/API_docs_v62/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v62/methods/messages_getPeerSettings.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $PeerSettings = $MadelineProto->messages->getPeerSettings(['peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v62/methods/messages_getPinnedDialogs.md b/old_docs/API_docs_v62/methods/messages_getPinnedDialogs.md index d12779fe..3f49ed75 100644 --- a/old_docs/API_docs_v62/methods/messages_getPinnedDialogs.md +++ b/old_docs/API_docs_v62/methods/messages_getPinnedDialogs.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_PeerDialogs = $MadelineProto->messages->getPinnedDialogs(); diff --git a/old_docs/API_docs_v62/methods/messages_getRecentStickers.md b/old_docs/API_docs_v62/methods/messages_getRecentStickers.md index d76a2160..0c5ae0c6 100644 --- a/old_docs/API_docs_v62/methods/messages_getRecentStickers.md +++ b/old_docs/API_docs_v62/methods/messages_getRecentStickers.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_RecentStickers = $MadelineProto->messages->getRecentStickers(['attached' => Bool, 'hash' => int, ]); diff --git a/old_docs/API_docs_v62/methods/messages_getSavedGifs.md b/old_docs/API_docs_v62/methods/messages_getSavedGifs.md index f61348ce..38585538 100644 --- a/old_docs/API_docs_v62/methods/messages_getSavedGifs.md +++ b/old_docs/API_docs_v62/methods/messages_getSavedGifs.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => int, ]); diff --git a/old_docs/API_docs_v62/methods/messages_getStickerSet.md b/old_docs/API_docs_v62/methods/messages_getStickerSet.md index c86807e4..c9140ab2 100644 --- a/old_docs/API_docs_v62/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v62/methods/messages_getStickerSet.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSet = $MadelineProto->messages->getStickerSet(['stickerset' => InputStickerSet, ]); diff --git a/old_docs/API_docs_v62/methods/messages_getWebPage.md b/old_docs/API_docs_v62/methods/messages_getWebPage.md index 129f8f06..19ca94b9 100644 --- a/old_docs/API_docs_v62/methods/messages_getWebPage.md +++ b/old_docs/API_docs_v62/methods/messages_getWebPage.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $WebPage = $MadelineProto->messages->getWebPage(['url' => 'string', 'hash' => int, ]); diff --git a/old_docs/API_docs_v62/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v62/methods/messages_getWebPagePreview.md index d01bdd32..e8b20c5d 100644 --- a/old_docs/API_docs_v62/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v62/methods/messages_getWebPagePreview.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $MessageMedia = $MadelineProto->messages->getWebPagePreview(['message' => 'string', ]); diff --git a/old_docs/API_docs_v62/methods/messages_hideReportSpam.md b/old_docs/API_docs_v62/methods/messages_hideReportSpam.md index 856770cb..30523f2a 100644 --- a/old_docs/API_docs_v62/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v62/methods/messages_hideReportSpam.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->hideReportSpam(['peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v62/methods/messages_importChatInvite.md b/old_docs/API_docs_v62/methods/messages_importChatInvite.md index 0d6cd7c8..b1830a9b 100644 --- a/old_docs/API_docs_v62/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v62/methods/messages_importChatInvite.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->importChatInvite(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v62/methods/messages_installStickerSet.md b/old_docs/API_docs_v62/methods/messages_installStickerSet.md index 9f6f098c..20f90b71 100644 --- a/old_docs/API_docs_v62/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v62/methods/messages_installStickerSet.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSetInstallResult = $MadelineProto->messages->installStickerSet(['stickerset' => InputStickerSet, 'archived' => Bool, ]); diff --git a/old_docs/API_docs_v62/methods/messages_migrateChat.md b/old_docs/API_docs_v62/methods/messages_migrateChat.md index db57adfa..22ccfcc1 100644 --- a/old_docs/API_docs_v62/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v62/methods/messages_migrateChat.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]); diff --git a/old_docs/API_docs_v62/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v62/methods/messages_readEncryptedHistory.md index 39b110e3..2ba4cca4 100644 --- a/old_docs/API_docs_v62/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v62/methods/messages_readEncryptedHistory.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); diff --git a/old_docs/API_docs_v62/methods/messages_readFeaturedStickers.md b/old_docs/API_docs_v62/methods/messages_readFeaturedStickers.md index 4035c76d..050371da 100644 --- a/old_docs/API_docs_v62/methods/messages_readFeaturedStickers.md +++ b/old_docs/API_docs_v62/methods/messages_readFeaturedStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->readFeaturedStickers(['id' => [long, long], ]); diff --git a/old_docs/API_docs_v62/methods/messages_readHistory.md b/old_docs/API_docs_v62/methods/messages_readHistory.md index 3de17061..26b608af 100644 --- a/old_docs/API_docs_v62/methods/messages_readHistory.md +++ b/old_docs/API_docs_v62/methods/messages_readHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v62/methods/messages_readMessageContents.md b/old_docs/API_docs_v62/methods/messages_readMessageContents.md index 9bb1bee8..a09cb63e 100644 --- a/old_docs/API_docs_v62/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v62/methods/messages_readMessageContents.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v62/methods/messages_receivedMessages.md b/old_docs/API_docs_v62/methods/messages_receivedMessages.md index 7aab635f..b5e87992 100644 --- a/old_docs/API_docs_v62/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v62/methods/messages_receivedMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_ReceivedNotifyMessage = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); diff --git a/old_docs/API_docs_v62/methods/messages_reorderPinnedDialogs.md b/old_docs/API_docs_v62/methods/messages_reorderPinnedDialogs.md index 710caf10..94d3b2d4 100644 --- a/old_docs/API_docs_v62/methods/messages_reorderPinnedDialogs.md +++ b/old_docs/API_docs_v62/methods/messages_reorderPinnedDialogs.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reorderPinnedDialogs(['force' => Bool, 'order' => [InputPeer, InputPeer], ]); diff --git a/old_docs/API_docs_v62/methods/messages_reorderStickerSets.md b/old_docs/API_docs_v62/methods/messages_reorderStickerSets.md index ddc78dd0..66f5e682 100644 --- a/old_docs/API_docs_v62/methods/messages_reorderStickerSets.md +++ b/old_docs/API_docs_v62/methods/messages_reorderStickerSets.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reorderStickerSets(['masks' => Bool, 'order' => [long, long], ]); diff --git a/old_docs/API_docs_v62/methods/messages_reportEncryptedSpam.md b/old_docs/API_docs_v62/methods/messages_reportEncryptedSpam.md index 58b684d1..cd03c35c 100644 --- a/old_docs/API_docs_v62/methods/messages_reportEncryptedSpam.md +++ b/old_docs/API_docs_v62/methods/messages_reportEncryptedSpam.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reportEncryptedSpam(['peer' => InputEncryptedChat, ]); diff --git a/old_docs/API_docs_v62/methods/messages_reportSpam.md b/old_docs/API_docs_v62/methods/messages_reportSpam.md index 2e2b1177..09c1e63b 100644 --- a/old_docs/API_docs_v62/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v62/methods/messages_reportSpam.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reportSpam(['peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v62/methods/messages_saveDraft.md b/old_docs/API_docs_v62/methods/messages_saveDraft.md index bbeed707..59b33b03 100644 --- a/old_docs/API_docs_v62/methods/messages_saveDraft.md +++ b/old_docs/API_docs_v62/methods/messages_saveDraft.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->saveDraft(['no_webpage' => Bool, 'reply_to_msg_id' => int, 'peer' => InputPeer, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v62/methods/messages_saveGif.md b/old_docs/API_docs_v62/methods/messages_saveGif.md index 6f608c4c..145039e7 100644 --- a/old_docs/API_docs_v62/methods/messages_saveGif.md +++ b/old_docs/API_docs_v62/methods/messages_saveGif.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->saveGif(['id' => InputDocument, 'unsave' => Bool, ]); diff --git a/old_docs/API_docs_v62/methods/messages_saveRecentSticker.md b/old_docs/API_docs_v62/methods/messages_saveRecentSticker.md index 81ad5d48..55757080 100644 --- a/old_docs/API_docs_v62/methods/messages_saveRecentSticker.md +++ b/old_docs/API_docs_v62/methods/messages_saveRecentSticker.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->saveRecentSticker(['attached' => Bool, 'id' => InputDocument, 'unsave' => Bool, ]); diff --git a/old_docs/API_docs_v62/methods/messages_search.md b/old_docs/API_docs_v62/methods/messages_search.md index 7821d2b7..735ddf47 100644 --- a/old_docs/API_docs_v62/methods/messages_search.md +++ b/old_docs/API_docs_v62/methods/messages_search.md @@ -49,12 +49,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->search(['peer' => InputPeer, 'q' => 'string', 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v62/methods/messages_searchGifs.md b/old_docs/API_docs_v62/methods/messages_searchGifs.md index 103ebfeb..9677bf24 100644 --- a/old_docs/API_docs_v62/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v62/methods/messages_searchGifs.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_FoundGifs = $MadelineProto->messages->searchGifs(['q' => 'string', 'offset' => int, ]); diff --git a/old_docs/API_docs_v62/methods/messages_searchGlobal.md b/old_docs/API_docs_v62/methods/messages_searchGlobal.md index 0edd1e40..6ad4aec0 100644 --- a/old_docs/API_docs_v62/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v62/methods/messages_searchGlobal.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->searchGlobal(['q' => 'string', 'offset_date' => int, 'offset_peer' => InputPeer, 'offset_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v62/methods/messages_sendEncrypted.md b/old_docs/API_docs_v62/methods/messages_sendEncrypted.md index d48f88d7..76305f32 100644 --- a/old_docs/API_docs_v62/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v62/methods/messages_sendEncrypted.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v62/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v62/methods/messages_sendEncryptedFile.md index 4fd0648e..8db2ead9 100644 --- a/old_docs/API_docs_v62/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v62/methods/messages_sendEncryptedFile.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); diff --git a/old_docs/API_docs_v62/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v62/methods/messages_sendEncryptedService.md index d66894bf..c7836c94 100644 --- a/old_docs/API_docs_v62/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v62/methods/messages_sendEncryptedService.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v62/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v62/methods/messages_sendInlineBotResult.md index 386ac7e3..1a12322c 100644 --- a/old_docs/API_docs_v62/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v62/methods/messages_sendInlineBotResult.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendInlineBotResult(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'query_id' => long, 'id' => 'string', ]); diff --git a/old_docs/API_docs_v62/methods/messages_sendMedia.md b/old_docs/API_docs_v62/methods/messages_sendMedia.md index 0b5cf9b6..770d1b65 100644 --- a/old_docs/API_docs_v62/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v62/methods/messages_sendMedia.md @@ -63,12 +63,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendMedia(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, 'reply_markup' => ReplyMarkup, ]); diff --git a/old_docs/API_docs_v62/methods/messages_sendMessage.md b/old_docs/API_docs_v62/methods/messages_sendMessage.md index c4dc8894..83dc6c8b 100644 --- a/old_docs/API_docs_v62/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v62/methods/messages_sendMessage.md @@ -65,12 +65,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendMessage(['no_webpage' => Bool, 'silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v62/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v62/methods/messages_setBotCallbackAnswer.md index e6dc6b09..e221ccca 100644 --- a/old_docs/API_docs_v62/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v62/methods/messages_setBotCallbackAnswer.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setBotCallbackAnswer(['alert' => Bool, 'query_id' => long, 'message' => 'string', 'url' => 'string', 'cache_time' => int, ]); diff --git a/old_docs/API_docs_v62/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v62/methods/messages_setEncryptedTyping.md index e9afe99c..4e7450eb 100644 --- a/old_docs/API_docs_v62/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v62/methods/messages_setEncryptedTyping.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); diff --git a/old_docs/API_docs_v62/methods/messages_setGameScore.md b/old_docs/API_docs_v62/methods/messages_setGameScore.md index aa1f4f0c..90594a1d 100644 --- a/old_docs/API_docs_v62/methods/messages_setGameScore.md +++ b/old_docs/API_docs_v62/methods/messages_setGameScore.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->setGameScore(['edit_message' => Bool, 'force' => Bool, 'peer' => InputPeer, 'id' => int, 'user_id' => InputUser, 'score' => int, ]); diff --git a/old_docs/API_docs_v62/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v62/methods/messages_setInlineBotResults.md index 79493009..d4ba6e65 100644 --- a/old_docs/API_docs_v62/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v62/methods/messages_setInlineBotResults.md @@ -52,12 +52,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setInlineBotResults(['gallery' => Bool, 'private' => Bool, 'query_id' => long, 'results' => [InputBotInlineResult, InputBotInlineResult], 'cache_time' => int, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, ]); diff --git a/old_docs/API_docs_v62/methods/messages_setInlineGameScore.md b/old_docs/API_docs_v62/methods/messages_setInlineGameScore.md index 385c8308..2b7326f3 100644 --- a/old_docs/API_docs_v62/methods/messages_setInlineGameScore.md +++ b/old_docs/API_docs_v62/methods/messages_setInlineGameScore.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setInlineGameScore(['edit_message' => Bool, 'force' => Bool, 'id' => InputBotInlineMessageID, 'user_id' => InputUser, 'score' => int, ]); diff --git a/old_docs/API_docs_v62/methods/messages_setTyping.md b/old_docs/API_docs_v62/methods/messages_setTyping.md index bea4982b..a2b94823 100644 --- a/old_docs/API_docs_v62/methods/messages_setTyping.md +++ b/old_docs/API_docs_v62/methods/messages_setTyping.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); diff --git a/old_docs/API_docs_v62/methods/messages_startBot.md b/old_docs/API_docs_v62/methods/messages_startBot.md index 94a4d86a..50d6f475 100644 --- a/old_docs/API_docs_v62/methods/messages_startBot.md +++ b/old_docs/API_docs_v62/methods/messages_startBot.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'peer' => InputPeer, 'start_param' => 'string', ]); diff --git a/old_docs/API_docs_v62/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v62/methods/messages_toggleChatAdmins.md index ab591fd9..349ea0e6 100644 --- a/old_docs/API_docs_v62/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v62/methods/messages_toggleChatAdmins.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => InputPeer, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v62/methods/messages_toggleDialogPin.md b/old_docs/API_docs_v62/methods/messages_toggleDialogPin.md index 2bd6a03d..14332533 100644 --- a/old_docs/API_docs_v62/methods/messages_toggleDialogPin.md +++ b/old_docs/API_docs_v62/methods/messages_toggleDialogPin.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->toggleDialogPin(['pinned' => Bool, 'peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v62/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v62/methods/messages_uninstallStickerSet.md index 6d04e847..26b2fbb3 100644 --- a/old_docs/API_docs_v62/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v62/methods/messages_uninstallStickerSet.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->uninstallStickerSet(['stickerset' => InputStickerSet, ]); diff --git a/old_docs/API_docs_v62/methods/phone_receivedCall.md b/old_docs/API_docs_v62/methods/phone_receivedCall.md index 27e3b462..17095622 100644 --- a/old_docs/API_docs_v62/methods/phone_receivedCall.md +++ b/old_docs/API_docs_v62/methods/phone_receivedCall.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->phone->receivedCall(['peer' => InputPhoneCall, ]); diff --git a/old_docs/API_docs_v62/methods/photos_deletePhotos.md b/old_docs/API_docs_v62/methods/photos_deletePhotos.md index b9daca10..937aadd5 100644 --- a/old_docs/API_docs_v62/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v62/methods/photos_deletePhotos.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); diff --git a/old_docs/API_docs_v62/methods/photos_getUserPhotos.md b/old_docs/API_docs_v62/methods/photos_getUserPhotos.md index ea27a44f..d1c15e90 100644 --- a/old_docs/API_docs_v62/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v62/methods/photos_getUserPhotos.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => long, 'limit' => int, ]); diff --git a/old_docs/API_docs_v62/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v62/methods/photos_updateProfilePhoto.md index 7f0a4c69..2ac8b60d 100644 --- a/old_docs/API_docs_v62/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v62/methods/photos_updateProfilePhoto.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, ]); diff --git a/old_docs/API_docs_v62/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v62/methods/photos_uploadProfilePhoto.md index efa08bb0..c7ec3063 100644 --- a/old_docs/API_docs_v62/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v62/methods/photos_uploadProfilePhoto.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, ]); diff --git a/old_docs/API_docs_v62/methods/users_getUsers.md b/old_docs/API_docs_v62/methods/users_getUsers.md index ef1c7fd8..bce13ee6 100644 --- a/old_docs/API_docs_v62/methods/users_getUsers.md +++ b/old_docs/API_docs_v62/methods/users_getUsers.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v65/README.md b/old_docs/API_docs_v65/README.md index afd1d1e1..b3e153f7 100644 --- a/old_docs/API_docs_v65/README.md +++ b/old_docs/API_docs_v65/README.md @@ -4,11 +4,11 @@ description: MadelineProto API documentation (layer v65) --- # MadelineProto API documentation (layer v65) +[Back to main documentation](..) + + [Methods](methods/) [Constructors](constructors/) -[Types](types/) - - -[Back to main documentation](..) +[Types](types/) \ No newline at end of file diff --git a/old_docs/API_docs_v65/methods/README.md b/old_docs/API_docs_v65/methods/README.md index bd61f49d..8d6c9d0a 100644 --- a/old_docs/API_docs_v65/methods/README.md +++ b/old_docs/API_docs_v65/methods/README.md @@ -1,505 +1,500 @@ --- title: Methods -description: List of methods +description: What do you want to do? --- -# Methods -[Back to API documentation index](..) +# What do you want to do? +[Go back to API documentation index](..) +[Go to the old code-version method index](api_index.html) -$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); +* [Logout](https://docs.madelineproto.xyz/logout.html) -$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); +* [Login](https://docs.madelineproto.xyz/docs/LOGIN.html) -$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); +* [Get all chats, broadcast a message to all chats](https://docs.madelineproto.xyz/docs/DIALOGS.html) -$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); +* [Get the full participant list of a channel/group/supergroup](https://docs.madelineproto.xyz/get_pwr_chat.html) -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); +* [Get full info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_full_info.html) +* [Get info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_info.html) -$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); +* [Get info about the currently logged-in user](https://docs.madelineproto.xyz/get_self.html) -$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); +* [Upload or download files up to 1.5 GB](https://docs.madelineproto.xyz/docs/FILES.html) -$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); +* [Make a phone call and play a song](https://docs.madelineproto.xyz/docs/CALLS.html) -$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); - -$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); - - -$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); - -$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); +* [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) *** -

$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) +

* Change the phone number associated to this account -$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Check if this username is available -$MadelineProto->[account->confirmPhone](account_confirmPhone.md)(\['phone_code_hash' => [string](../types/string.md), 'phone_code' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode -$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Delete this account -$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) +* Get account TTL -$MadelineProto->[account->getAuthorizations](account_getAuthorizations.md)(\[\]) === [$account\_Authorizations](../types/account_Authorizations.md) +* Get all logged-in authorizations -$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) +* Get notification settings -$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md) +* Get the current password -$MadelineProto->[account->getPasswordSettings](account_getPasswordSettings.md)(\['current_password_hash' => [bytes](../types/bytes.md), \]) === [$account\_PasswordSettings](../types/account_PasswordSettings.md) +* Get the current 2FA settings -$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Get privacy settings -$MadelineProto->[account->getTmpPassword](account_getTmpPassword.md)(\['password_hash' => [bytes](../types/bytes.md), 'period' => [int](../types/int.md), \]) === [$account\_TmpPassword](../types/account_TmpPassword.md) +* Get temporary password for buying products through bots -$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) +* Returns a list of available wallpapers. -$MadelineProto->[account->registerDevice](account_registerDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Register device for push notifications -$MadelineProto->[account->reportPeer](account_reportPeer.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reason' => [ReportReason](../types/ReportReason.md), \]) === [$Bool](../types/Bool.md) +* Report for spam -$MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) +* Delete a certain session -$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) +* Reset all notification settings -$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) +* Change the phone number -$MadelineProto->[account->sendConfirmPhoneCode](account_sendConfirmPhoneCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'hash' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) +* Send confirmation phone code -$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) +* Set account TTL -$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Set privacy settings -$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Stop sending PUSH notifications to app -$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Disable all notifications for a certain period -$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) +* Change notification settings -$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) +* Update the 2FA password settings -$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) +* Update profile info -$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Update online status -$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) +* Update this user's username *** -

$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) +

* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info -$MadelineProto->[auth->cancelCode](auth_cancelCode.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Invalidate sent phone code -$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) +* Check if this phone number is registered on telegram -$MadelineProto->[auth->dropTempAuthKeys](auth_dropTempAuthKeys.md)(\['except_auth_keys' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) +* Delete all temporary authorization keys except the ones provided -$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) +* You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$MadelineProto->[auth->importBotAuthorization](auth_importBotAuthorization.md)(\['a' => [Bool](../types/Bool.md), 'b' => [Bool](../types/Bool.md), 'c' => [Bool](../types/Bool.md), 'd' => [Bool](../types/Bool.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) +* You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->recoverPassword](auth_recoverPassword.md)(\['code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account -$MadelineProto->[auth->requestPasswordRecovery](auth_requestPasswordRecovery.md)(\[\]) === [$auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) +* Send an email to recover the 2FA password -$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) +* Resend the SMS verification code -$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) +* Delete all logged-in sessions. -$MadelineProto->[auth->sendCode](auth_sendCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'phone_number' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), 'api_id' => [int](../types/int.md), 'api_hash' => [string](../types/string.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) +* Use phone_login instead -$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Invite friends to telegram! -$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) +* You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) -$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) +* You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) *** -

$MadelineProto->[bots->answerWebhookJSONQuery](bots_answerWebhookJSONQuery.md)(\['query_id' => [long](../types/long.md), 'data' => [DataJSON](../types/DataJSON.md), \]) === [$Bool](../types/Bool.md) +

* Send webhook request via bot API -$MadelineProto->[bots->sendCustomRequest](bots_sendCustomRequest.md)(\['custom_method' => [string](../types/string.md), 'params' => [DataJSON](../types/DataJSON.md), \]) === [$DataJSON](../types/DataJSON.md) +* Send a custom request to the bot API *** -

$MadelineProto->[channels->checkUsername](channels_checkUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +

* Check if this username is free and can be assigned to a channel/supergroup -$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) +* Create channel/supergroup -$MadelineProto->[channels->deleteChannel](channels_deleteChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Delete a channel/supergroup -$MadelineProto->[channels->deleteMessages](channels_deleteMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Delete channel/supergroup messages -$MadelineProto->[channels->deleteUserHistory](channels_deleteUserHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Delete all messages of a user in a channel/supergroup -$MadelineProto->[channels->editAbout](channels_editAbout.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'about' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Edit the about text of a channel/supergroup -$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) +* Edit admin permissions of a user in a channel/supergroup -$MadelineProto->[channels->editPhoto](channels_editPhoto.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) +* Edit the photo of a supergroup/channel -$MadelineProto->[channels->editTitle](channels_editTitle.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Edit the title of a supergroup/channel -$MadelineProto->[channels->exportInvite](channels_exportInvite.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) +* Export the invite link of a channel -$MadelineProto->[channels->exportMessageLink](channels_exportMessageLink.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => [int](../types/int.md), \]) === [$ExportedMessageLink](../types/ExportedMessageLink.md) +* Get the link of a message in a channel -$MadelineProto->[channels->getAdminedPublicChannels](channels_getAdminedPublicChannels.md)(\[\]) === [$messages\_Chats](../types/messages_Chats.md) +* Get all supergroups/channels where you're admin -$MadelineProto->[channels->getChannels](channels_getChannels.md)(\['id' => \[[InputChannel](../types/InputChannel.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get info about multiple channels/supergroups -$MadelineProto->[channels->getFullChannel](channels_getFullChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) +* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[channels->getMessages](channels_getMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get channel/supergroup messages -$MadelineProto->[channels->getParticipant](channels_getParticipant.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) +* Get info about a certain channel/supergroup participant -$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) +* Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead) -$MadelineProto->[channels->inviteToChannel](channels_inviteToChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'users' => \[[InputUser](../types/InputUser.md)\], \]) === [$Updates](../types/Updates.md) +* Add users to channel/supergroup -$MadelineProto->[channels->joinChannel](channels_joinChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Join a channel/supergroup -$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) +* Kick user from channel -$MadelineProto->[channels->leaveChannel](channels_leaveChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Leave a channel/supergroup -$MadelineProto->[channels->readHistory](channels_readHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Mark channel/supergroup history as read -$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) +* Report a supergroup/channel for spam -$MadelineProto->[channels->toggleInvites](channels_toggleInvites.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Allow or disallow any user to invite users to this channel/supergroup -$MadelineProto->[channels->toggleSignatures](channels_toggleSignatures.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Toggle channel signatures -$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) +* Set the pinned message of a channel/supergroup -$MadelineProto->[channels->updateUsername](channels_updateUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Update the username of a supergroup/channel *** -

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +

* Block a user -$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) +* Delete a contact -$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) +* Delete multiple contacts -$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) +* Export contact as card -$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) +* Get blocked users -$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [string](../types/string.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) +* Get info about a certain contact -$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) +* Get online status of all users -$MadelineProto->[contacts->getTopPeers](contacts_getTopPeers.md)(\['correspondents' => [Bool](../types/Bool.md), 'bots_pm' => [Bool](../types/Bool.md), 'bots_inline' => [Bool](../types/Bool.md), 'groups' => [Bool](../types/Bool.md), 'channels' => [Bool](../types/Bool.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'hash' => [int](../types/int.md), \]) === [$contacts\_TopPeers](../types/contacts_TopPeers.md) +* Get most used chats -$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) +* Import card as contact -$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], 'replace' => [Bool](../types/Bool.md), \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) +* Add phone number as contact -$MadelineProto->[contacts->resetTopPeerRating](contacts_resetTopPeerRating.md)(\['category' => [TopPeerCategory](../types/TopPeerCategory.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Reset top peer rating for a certain category/peer -$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) +* You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) +* Search contacts -$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +* Unblock a user *** -

$MadelineProto->[contest->saveDeveloperInfo](contest_saveDeveloperInfo.md)(\['vk_id' => [int](../types/int.md), 'name' => [string](../types/string.md), 'phone_number' => [string](../types/string.md), 'age' => [int](../types/int.md), 'city' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +

* Save developer info for telegram contest *** -

$MadelineProto->[destroy_auth_key](destroy_auth_key.md)(\[\]) === [$DestroyAuthKeyRes](../types/DestroyAuthKeyRes.md) +

* Destroy current authorization key -$MadelineProto->[destroy_session](destroy_session.md)(\['session_id' => [long](../types/long.md), \]) === [$DestroySessionRes](../types/DestroySessionRes.md) +* Destroy the current MTProto session *** -

$MadelineProto->[get_future_salts](get_future_salts.md)(\['num' => [int](../types/int.md), \]) === [$FutureSalts](../types/FutureSalts.md) +

* Get future salts *** -

$MadelineProto->[help->getAppChangelog](help_getAppChangelog.md)(\['prev_app_version' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +

* Get the changelog of this app -$MadelineProto->[help->getAppUpdate](help_getAppUpdate.md)(\[\]) === [$help\_AppUpdate](../types/help_AppUpdate.md) +* Get info about app updates -$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) +* Get server configuration -$MadelineProto->[help->getInviteText](help_getInviteText.md)(\[\]) === [$help\_InviteText](../types/help_InviteText.md) +* Get invitation text -$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) +* Get nearest datacenter -$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) +* Get info of support user -$MadelineProto->[help->getTermsOfService](help_getTermsOfService.md)(\[\]) === [$help\_TermsOfService](../types/help_TermsOfService.md) +* Get terms of service -$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) +* Log data for developer of this app -$MadelineProto->[help->setBotUpdatesStatus](help_setBotUpdatesStatus.md)(\['pending_updates_count' => [int](../types/int.md), 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Set the update status of webhook *** -

$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) +

* Initializes connection and save information on the user's device and application. *** -

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invokes a query after successfull completion of one of the previous queries. *** -

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Result type returned by a current query. *** -

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invoke this method with layer X *** -

$MadelineProto->[invokeWithoutUpdates](invokeWithoutUpdates.md)(\['query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invoke with method without returning updates in the socket *** -

$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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Add a user to a normal chat (use channels->inviteToChannel for supergroups) -$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md) +* Check if an invitation link is valid -$MadelineProto->[messages->clearRecentStickers](messages_clearRecentStickers.md)(\['attached' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Clear all recent stickers -$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Create a chat (not supergroup) -$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md) +* Delete a user from a chat (not supergroup) -$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['just_clear' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Delete chat history -$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['revoke' => [Bool](../types/Bool.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Delete messages -$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Edit admin permissions -$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) +* Edit the photo of a normal chat (not supergroup) -$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Edit the title of a normal chat (not supergroup) -$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) +* Edit a sent inline message -$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) +* Edit a message -$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) +* Export chat invite -$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) +* Forward message -$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'with_my_score' => [Bool](../types/Bool.md), 'from_peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], 'to_peer' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) +* Forward messages -$MadelineProto->[messages->getAllChats](messages_getAllChats.md)(\['except_ids' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get all chats (not supergroups or channels) -$MadelineProto->[messages->getAllDrafts](messages_getAllDrafts.md)(\[\]) === [$Updates](../types/Updates.md) +* Get all message drafts -$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) +* Get all stickerpacks -$MadelineProto->[messages->getArchivedStickers](messages_getArchivedStickers.md)(\['masks' => [Bool](../types/Bool.md), 'offset_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), \]) === [$messages\_ArchivedStickers](../types/messages_ArchivedStickers.md) +* Get all archived stickers -$MadelineProto->[messages->getAttachedStickers](messages_getAttachedStickers.md)(\['media' => [InputStickeredMedia](../types/InputStickeredMedia.md), \]) === [$Vector\_of\_StickerSetCovered](../types/StickerSetCovered.md) +* Get stickers attachable to images -$MadelineProto->[messages->getBotCallbackAnswer](messages_getBotCallbackAnswer.md)(\['game' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'msg_id' => [int](../types/int.md), 'data' => [bytes](../types/bytes.md), \]) === [$messages\_BotCallbackAnswer](../types/messages_BotCallbackAnswer.md) +* Get the callback answer of a bot (after clicking a button) -$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get info about chats -$MadelineProto->[messages->getCommonChats](messages_getCommonChats.md)(\['user_id' => [InputUser](../types/InputUser.md), 'max_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get chats in common with a user -$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) +* You cannot use this method directly, instead use $MadelineProto->get_dh_config(); -$MadelineProto->[messages->getDialogs](messages_getDialogs.md)(\['exclude_pinned' => [Bool](../types/Bool.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) +* Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html -$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) +* Get document by SHA256 hash -$MadelineProto->[messages->getFeaturedStickers](messages_getFeaturedStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_FeaturedStickers](../types/messages_FeaturedStickers.md) +* Get featured stickers -$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) +* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[messages->getGameHighScores](messages_getGameHighScores.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_HighScores](../types/messages_HighScores.md) +* Get high scores of a game -$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) +* Get previous messages of a group -$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) +* Call inline bot -$MadelineProto->[messages->getInlineGameHighScores](messages_getInlineGameHighScores.md)(\['id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_HighScores](../types/messages_HighScores.md) +* Get high scores of a game sent in an inline message -$MadelineProto->[messages->getMaskStickers](messages_getMaskStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) +* Get masks -$MadelineProto->[messages->getMessageEditData](messages_getMessageEditData.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$messages\_MessageEditData](../types/messages_MessageEditData.md) +* Check if about to edit a message or a media caption -$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get messages -$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) +* Get and increase message views -$MadelineProto->[messages->getPeerDialogs](messages_getPeerDialogs.md)(\['peers' => \[[InputPeer](../types/InputPeer.md)\], \]) === [$messages\_PeerDialogs](../types/messages_PeerDialogs.md) +* Get dialog info of peers -$MadelineProto->[messages->getPeerSettings](messages_getPeerSettings.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$PeerSettings](../types/PeerSettings.md) +* Get the settings of apeer -$MadelineProto->[messages->getPinnedDialogs](messages_getPinnedDialogs.md)(\[\]) === [$messages\_PeerDialogs](../types/messages_PeerDialogs.md) +* Get pinned dialogs -$MadelineProto->[messages->getRecentStickers](messages_getRecentStickers.md)(\['attached' => [Bool](../types/Bool.md), 'hash' => [int](../types/int.md), \]) === [$messages\_RecentStickers](../types/messages_RecentStickers.md) +* Get recent stickers -$MadelineProto->[messages->getSavedGifs](messages_getSavedGifs.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_SavedGifs](../types/messages_SavedGifs.md) +* Get saved gifs -$MadelineProto->[messages->getStickerSet](messages_getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) +* Get a stickerset -$MadelineProto->[messages->getWebPage](messages_getWebPage.md)(\['url' => [string](../types/string.md), 'hash' => [int](../types/int.md), \]) === [$WebPage](../types/WebPage.md) +* Get webpage preview -$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) === [$MessageMedia](../types/MessageMedia.md) +* Get webpage preview -$MadelineProto->[messages->hideReportSpam](messages_hideReportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Hide report spam popup -$MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Import chat invite -$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'archived' => [Bool](../types/Bool.md), \]) === [$messages\_StickerSetInstallResult](../types/messages_StickerSetInstallResult.md) +* Add a sticker set -$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) +* Convert chat to supergroup -$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Mark messages as read in secret chats -$MadelineProto->[messages->readFeaturedStickers](messages_readFeaturedStickers.md)(\['id' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) +* Mark new featured stickers as read -$MadelineProto->[messages->readHistory](messages_readHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Mark messages as read -$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Mark message as read -$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_ReceivedNotifyMessage](../types/ReceivedNotifyMessage.md) +* Mark messages as read -$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) +* You cannot use this method directly -$MadelineProto->[messages->reorderPinnedDialogs](messages_reorderPinnedDialogs.md)(\['force' => [Bool](../types/Bool.md), 'order' => \[[InputPeer](../types/InputPeer.md)\], \]) === [$Bool](../types/Bool.md) +* Reorder pinned dialogs -$MadelineProto->[messages->reorderStickerSets](messages_reorderStickerSets.md)(\['masks' => [Bool](../types/Bool.md), 'order' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) +* Reorder sticker sets -$MadelineProto->[messages->reportEncryptedSpam](messages_reportEncryptedSpam.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), \]) === [$Bool](../types/Bool.md) +* Report for spam a secret chat -$MadelineProto->[messages->reportSpam](messages_reportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Report a peer for spam -$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$MadelineProto->[messages->saveDraft](messages_saveDraft.md)(\['no_webpage' => [Bool](../types/Bool.md), 'reply_to_msg_id' => [int](../types/int.md), 'peer' => [InputPeer](../types/InputPeer.md), 'message' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Bool](../types/Bool.md) +* Save a message draft -$MadelineProto->[messages->saveGif](messages_saveGif.md)(\['id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Save a GIF -$MadelineProto->[messages->saveRecentSticker](messages_saveRecentSticker.md)(\['attached' => [Bool](../types/Bool.md), 'id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Add a sticker to recent stickers -$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) +* Search peers or messages -$MadelineProto->[messages->searchGifs](messages_searchGifs.md)(\['q' => [string](../types/string.md), 'offset' => [int](../types/int.md), \]) === [$messages\_FoundGifs](../types/messages_FoundGifs.md) +* Search gifs -$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) +* Global message search -$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send message to secret chat -$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) +* Send a file to a secret chat -$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send a service message to a secret chat -$MadelineProto->[messages->sendInlineBotResult](messages_sendInlineBotResult.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'query_id' => [long](../types/long.md), 'id' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Send a received bot result to the chat -$MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'media' => [InputMedia](../types/InputMedia.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \]) === [$Updates](../types/Updates.md) +* Send a media -$MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Updates](../types/Updates.md) +* Send a message -$MadelineProto->[messages->setBotCallbackAnswer](messages_setBotCallbackAnswer.md)(\['alert' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'message' => [string](../types/string.md), 'url' => [string](../types/string.md), 'cache_time' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Bots only: set the callback answer (after a button was clicked) -$MadelineProto->[messages->setBotPrecheckoutResults](messages_setBotPrecheckoutResults.md)(\['success' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'error' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Bots only: set precheckout results -$MadelineProto->[messages->setBotShippingResults](messages_setBotShippingResults.md)(\['query_id' => [long](../types/long.md), 'error' => [string](../types/string.md), 'shipping_options' => \[[ShippingOption](../types/ShippingOption.md)\], \]) === [$Bool](../types/Bool.md) +* Bots only: set shipping results -$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Send typing notification to secret chat -$MadelineProto->[messages->setGameScore](messages_setGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'force' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) +* Set the game score -$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) +* Bots only: set the results of an inline query -$MadelineProto->[messages->setInlineGameScore](messages_setInlineGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'force' => [Bool](../types/Bool.md), 'id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Set the game score of an inline message -$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) +* Change typing status -$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) +* Start a bot -$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Enable all users are admins in normal groups (not supergroups) -$MadelineProto->[messages->toggleDialogPin](messages_toggleDialogPin.md)(\['pinned' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Pin or unpin dialog -$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) +* Remove a sticker set *** -

$MadelineProto->[payments->clearSavedInfo](payments_clearSavedInfo.md)(\['credentials' => [Bool](../types/Bool.md), 'info' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +

* Clear saved payments info -$MadelineProto->[payments->getPaymentForm](payments_getPaymentForm.md)(\['msg_id' => [int](../types/int.md), \]) === [$payments\_PaymentForm](../types/payments_PaymentForm.md) +* Get payment form -$MadelineProto->[payments->getPaymentReceipt](payments_getPaymentReceipt.md)(\['msg_id' => [int](../types/int.md), \]) === [$payments\_PaymentReceipt](../types/payments_PaymentReceipt.md) +* Get payment receipt -$MadelineProto->[payments->getSavedInfo](payments_getSavedInfo.md)(\[\]) === [$payments\_SavedInfo](../types/payments_SavedInfo.md) +* Get saved payments info -$MadelineProto->[payments->sendPaymentForm](payments_sendPaymentForm.md)(\['msg_id' => [int](../types/int.md), 'requested_info_id' => [string](../types/string.md), 'shipping_option_id' => [string](../types/string.md), 'credentials' => [InputPaymentCredentials](../types/InputPaymentCredentials.md), \]) === [$payments\_PaymentResult](../types/payments_PaymentResult.md) +* Bots only: send payment form -$MadelineProto->[payments->validateRequestedInfo](payments_validateRequestedInfo.md)(\['save' => [Bool](../types/Bool.md), 'msg_id' => [int](../types/int.md), 'info' => [PaymentRequestedInfo](../types/PaymentRequestedInfo.md), \]) === [$payments\_ValidatedRequestedInfo](../types/payments_ValidatedRequestedInfo.md) +* Validate requested payment info *** -

$MadelineProto->[phone->acceptCall](phone_acceptCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'g_b' => [bytes](../types/bytes.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) +

* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls -$MadelineProto->[phone->confirmCall](phone_confirmCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'g_a' => [bytes](../types/bytes.md), 'key_fingerprint' => [long](../types/long.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls -$MadelineProto->[phone->discardCall](phone_discardCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'duration' => [int](../types/int.md), 'reason' => [PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md), 'connection_id' => [long](../types/long.md), \]) === [$Updates](../types/Updates.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls -$MadelineProto->[phone->getCallConfig](phone_getCallConfig.md)(\[\]) === [$DataJSON](../types/DataJSON.md) +* Get call configuration -$MadelineProto->[phone->receivedCall](phone_receivedCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), \]) === [$Bool](../types/Bool.md) +* Notify server that you received a call (server will refuse all incoming calls until the current call is over) -$MadelineProto->[phone->requestCall](phone_requestCall.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a_hash' => [bytes](../types/bytes.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls -$MadelineProto->[phone->saveCallDebug](phone_saveCallDebug.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'debug' => [DataJSON](../types/DataJSON.md), \]) === [$Bool](../types/Bool.md) +* Save call debugging info -$MadelineProto->[phone->setCallRating](phone_setCallRating.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'rating' => [int](../types/int.md), 'comment' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Set phone call rating *** -

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) +

* Delete profile photos -$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) +* Get the profile photos of a user -$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) +* Update the profile photo (use photos->uploadProfilePhoto to upload the photo) -$MadelineProto->[photos->uploadProfilePhoto](photos_uploadProfilePhoto.md)(\['file' => [InputFile](../types/InputFile.md), \]) === [$photos\_Photo](../types/photos_Photo.md) +* Upload profile photo *** -

$MadelineProto->[ping](ping.md)(\['ping_id' => [long](../types/long.md), \]) === [$Pong](../types/Pong.md) +

* pings the server -$MadelineProto->[ping_delay_disconnect](ping_delay_disconnect.md)(\['ping_id' => [long](../types/long.md), 'disconnect_delay' => [int](../types/int.md), \]) === [$Pong](../types/Pong.md) +* Pings the server and causes disconection if the same method is not called within ping_disconnect_delay *** -

$MadelineProto->[req_DH_params](req_DH_params.md)(\['nonce' => [int128](../types/int128.md), 'server_nonce' => [int128](../types/int128.md), 'p' => [string](../types/string.md), 'q' => [string](../types/string.md), 'public_key_fingerprint' => [long](../types/long.md), 'encrypted_data' => [string](../types/string.md), \]) === [$Server\_DH\_Params](../types/Server_DH_Params.md) +

* Requests Diffie-hellman parameters for key exchange -$MadelineProto->[req_pq](req_pq.md)(\['nonce' => [int128](../types/int128.md), \]) === [$ResPQ](../types/ResPQ.md) +* Requests PQ for factorization *** -

$MadelineProto->[rpc_drop_answer](rpc_drop_answer.md)(\['req_msg_id' => [long](../types/long.md), \]) === [$RpcDropAnswer](../types/RpcDropAnswer.md) +

* Do not send answer to provided request *** -

$MadelineProto->[set_client_DH_params](set_client_DH_params.md)(\['nonce' => [int128](../types/int128.md), 'server_nonce' => [int128](../types/int128.md), 'encrypted_data' => [string](../types/string.md), \]) === [$Set\_client\_DH\_params\_answer](../types/Set_client_DH_params_answer.md) +

* Sets client diffie-hellman parameters *** -

$MadelineProto->[updates->getChannelDifference](updates_getChannelDifference.md)(\['force' => [Bool](../types/Bool.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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates -$MadelineProto->[updates->getDifference](updates_getDifference.md)(\['pts' => [int](../types/int.md), 'pts_total_limit' => [int](../types/int.md), 'date' => [int](../types/int.md), 'qts' => [int](../types/int.md), \]) === [$updates\_Difference](../types/updates_Difference.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates -$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates *** -

$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) +

* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$MadelineProto->[upload->getWebFile](upload_getWebFile.md)(\['location' => [InputWebFileLocation](../types/InputWebFileLocation.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$upload\_WebFile](../types/upload_WebFile.md) +* Download a file through telegram -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info *** -

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) +

* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) +* Get info about users diff --git a/old_docs/API_docs_v65/methods/account_changePhone.md b/old_docs/API_docs_v65/methods/account_changePhone.md index aeb5c4bc..65f0b0d0 100644 --- a/old_docs/API_docs_v65/methods/account_changePhone.md +++ b/old_docs/API_docs_v65/methods/account_changePhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); diff --git a/old_docs/API_docs_v65/methods/account_checkUsername.md b/old_docs/API_docs_v65/methods/account_checkUsername.md index 0124bb38..08107762 100644 --- a/old_docs/API_docs_v65/methods/account_checkUsername.md +++ b/old_docs/API_docs_v65/methods/account_checkUsername.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v65/methods/account_confirmPhone.md b/old_docs/API_docs_v65/methods/account_confirmPhone.md index c6a1dba6..68490f35 100644 --- a/old_docs/API_docs_v65/methods/account_confirmPhone.md +++ b/old_docs/API_docs_v65/methods/account_confirmPhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->confirmPhone(['phone_code_hash' => 'string', 'phone_code' => 'string', ]); diff --git a/old_docs/API_docs_v65/methods/account_deleteAccount.md b/old_docs/API_docs_v65/methods/account_deleteAccount.md index e8b46c24..3a6f4700 100644 --- a/old_docs/API_docs_v65/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v65/methods/account_deleteAccount.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); diff --git a/old_docs/API_docs_v65/methods/account_getAccountTTL.md b/old_docs/API_docs_v65/methods/account_getAccountTTL.md index 0cdd0b98..ab6a6ea1 100644 --- a/old_docs/API_docs_v65/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v65/methods/account_getAccountTTL.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); diff --git a/old_docs/API_docs_v65/methods/account_getAuthorizations.md b/old_docs/API_docs_v65/methods/account_getAuthorizations.md index f92db8fe..303203e4 100644 --- a/old_docs/API_docs_v65/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v65/methods/account_getAuthorizations.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_Authorizations = $MadelineProto->account->getAuthorizations(); diff --git a/old_docs/API_docs_v65/methods/account_getNotifySettings.md b/old_docs/API_docs_v65/methods/account_getNotifySettings.md index f00be12c..ad492f49 100644 --- a/old_docs/API_docs_v65/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v65/methods/account_getNotifySettings.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); diff --git a/old_docs/API_docs_v65/methods/account_getPassword.md b/old_docs/API_docs_v65/methods/account_getPassword.md index c189421d..2692dab1 100644 --- a/old_docs/API_docs_v65/methods/account_getPassword.md +++ b/old_docs/API_docs_v65/methods/account_getPassword.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_Password = $MadelineProto->account->getPassword(); diff --git a/old_docs/API_docs_v65/methods/account_getPasswordSettings.md b/old_docs/API_docs_v65/methods/account_getPasswordSettings.md index 96cb953e..2039d405 100644 --- a/old_docs/API_docs_v65/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v65/methods/account_getPasswordSettings.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PasswordSettings = $MadelineProto->account->getPasswordSettings(['current_password_hash' => 'bytes', ]); diff --git a/old_docs/API_docs_v65/methods/account_getPrivacy.md b/old_docs/API_docs_v65/methods/account_getPrivacy.md index 979bfb94..5480ffbb 100644 --- a/old_docs/API_docs_v65/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v65/methods/account_getPrivacy.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); diff --git a/old_docs/API_docs_v65/methods/account_getTmpPassword.md b/old_docs/API_docs_v65/methods/account_getTmpPassword.md index a90f9b2b..01b1ebfc 100644 --- a/old_docs/API_docs_v65/methods/account_getTmpPassword.md +++ b/old_docs/API_docs_v65/methods/account_getTmpPassword.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_TmpPassword = $MadelineProto->account->getTmpPassword(['password_hash' => 'bytes', 'period' => int, ]); diff --git a/old_docs/API_docs_v65/methods/account_getWallPapers.md b/old_docs/API_docs_v65/methods/account_getWallPapers.md index 89b281be..7c8bff39 100644 --- a/old_docs/API_docs_v65/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v65/methods/account_getWallPapers.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); diff --git a/old_docs/API_docs_v65/methods/account_registerDevice.md b/old_docs/API_docs_v65/methods/account_registerDevice.md index cd28abcd..4e148a7f 100644 --- a/old_docs/API_docs_v65/methods/account_registerDevice.md +++ b/old_docs/API_docs_v65/methods/account_registerDevice.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', ]); diff --git a/old_docs/API_docs_v65/methods/account_reportPeer.md b/old_docs/API_docs_v65/methods/account_reportPeer.md index a07c87d0..c5fe7073 100644 --- a/old_docs/API_docs_v65/methods/account_reportPeer.md +++ b/old_docs/API_docs_v65/methods/account_reportPeer.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->reportPeer(['peer' => InputPeer, 'reason' => ReportReason, ]); diff --git a/old_docs/API_docs_v65/methods/account_resetAuthorization.md b/old_docs/API_docs_v65/methods/account_resetAuthorization.md index 4155d3c8..543aee08 100644 --- a/old_docs/API_docs_v65/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v65/methods/account_resetAuthorization.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetAuthorization(['hash' => long, ]); diff --git a/old_docs/API_docs_v65/methods/account_resetNotifySettings.md b/old_docs/API_docs_v65/methods/account_resetNotifySettings.md index ccc836a9..557373b0 100644 --- a/old_docs/API_docs_v65/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v65/methods/account_resetNotifySettings.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); diff --git a/old_docs/API_docs_v65/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v65/methods/account_sendChangePhoneCode.md index c9f9c174..bdf7331f 100644 --- a/old_docs/API_docs_v65/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v65/methods/account_sendChangePhoneCode.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendChangePhoneCode(['allow_flashcall' => Bool, 'phone_number' => 'string', 'current_number' => Bool, ]); diff --git a/old_docs/API_docs_v65/methods/account_sendConfirmPhoneCode.md b/old_docs/API_docs_v65/methods/account_sendConfirmPhoneCode.md index 3785ba75..86035d19 100644 --- a/old_docs/API_docs_v65/methods/account_sendConfirmPhoneCode.md +++ b/old_docs/API_docs_v65/methods/account_sendConfirmPhoneCode.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendConfirmPhoneCode(['allow_flashcall' => Bool, 'hash' => 'string', 'current_number' => Bool, ]); diff --git a/old_docs/API_docs_v65/methods/account_setAccountTTL.md b/old_docs/API_docs_v65/methods/account_setAccountTTL.md index 5100e62e..bacdd77a 100644 --- a/old_docs/API_docs_v65/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v65/methods/account_setAccountTTL.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); diff --git a/old_docs/API_docs_v65/methods/account_setPrivacy.md b/old_docs/API_docs_v65/methods/account_setPrivacy.md index fbcedae7..6e24ded7 100644 --- a/old_docs/API_docs_v65/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v65/methods/account_setPrivacy.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); diff --git a/old_docs/API_docs_v65/methods/account_unregisterDevice.md b/old_docs/API_docs_v65/methods/account_unregisterDevice.md index 1d2b7670..b666d91a 100644 --- a/old_docs/API_docs_v65/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v65/methods/account_unregisterDevice.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); diff --git a/old_docs/API_docs_v65/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v65/methods/account_updateDeviceLocked.md index ef816501..cd52093a 100644 --- a/old_docs/API_docs_v65/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v65/methods/account_updateDeviceLocked.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); diff --git a/old_docs/API_docs_v65/methods/account_updateNotifySettings.md b/old_docs/API_docs_v65/methods/account_updateNotifySettings.md index 18cbdb75..db020309 100644 --- a/old_docs/API_docs_v65/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v65/methods/account_updateNotifySettings.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); diff --git a/old_docs/API_docs_v65/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v65/methods/account_updatePasswordSettings.md index 0754dd63..8af1e37f 100644 --- a/old_docs/API_docs_v65/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v65/methods/account_updatePasswordSettings.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updatePasswordSettings(['current_password_hash' => 'bytes', 'new_settings' => account_PasswordInputSettings, ]); diff --git a/old_docs/API_docs_v65/methods/account_updateProfile.md b/old_docs/API_docs_v65/methods/account_updateProfile.md index e24ef2f5..59629188 100644 --- a/old_docs/API_docs_v65/methods/account_updateProfile.md +++ b/old_docs/API_docs_v65/methods/account_updateProfile.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', 'about' => 'string', ]); diff --git a/old_docs/API_docs_v65/methods/account_updateStatus.md b/old_docs/API_docs_v65/methods/account_updateStatus.md index 4b049e65..50b99b1e 100644 --- a/old_docs/API_docs_v65/methods/account_updateStatus.md +++ b/old_docs/API_docs_v65/methods/account_updateStatus.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); diff --git a/old_docs/API_docs_v65/methods/account_updateUsername.md b/old_docs/API_docs_v65/methods/account_updateUsername.md index 08d2abe0..7276e2aa 100644 --- a/old_docs/API_docs_v65/methods/account_updateUsername.md +++ b/old_docs/API_docs_v65/methods/account_updateUsername.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v65/methods/api_README.md b/old_docs/API_docs_v65/methods/api_README.md new file mode 100644 index 00000000..0105ae9d --- /dev/null +++ b/old_docs/API_docs_v65/methods/api_README.md @@ -0,0 +1,506 @@ +--- +title: Methods +description: List of methods +--- +# Methods +[Back to API documentation index](..) + +[Go to the new description-version method index](index.html) + +$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); + +$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); + +$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); + +$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); + +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); + + +$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); + +$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); + +$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); + +$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); + +$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); + + +$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); + +$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); + +*** +

$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) + +$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->confirmPhone](account_confirmPhone.md)(\['phone_code_hash' => [string](../types/string.md), 'phone_code' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) + +$MadelineProto->[account->getAuthorizations](account_getAuthorizations.md)(\[\]) === [$account\_Authorizations](../types/account_Authorizations.md) + +$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) + +$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md) + +$MadelineProto->[account->getPasswordSettings](account_getPasswordSettings.md)(\['current_password_hash' => [bytes](../types/bytes.md), \]) === [$account\_PasswordSettings](../types/account_PasswordSettings.md) + +$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->getTmpPassword](account_getTmpPassword.md)(\['password_hash' => [bytes](../types/bytes.md), 'period' => [int](../types/int.md), \]) === [$account\_TmpPassword](../types/account_TmpPassword.md) + +$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) + +$MadelineProto->[account->registerDevice](account_registerDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->reportPeer](account_reportPeer.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reason' => [ReportReason](../types/ReportReason.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[account->sendConfirmPhoneCode](account_sendConfirmPhoneCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'hash' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) + +$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$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) + +$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) + +*** +

$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) + +$MadelineProto->[auth->cancelCode](auth_cancelCode.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) + +$MadelineProto->[auth->dropTempAuthKeys](auth_dropTempAuthKeys.md)(\['except_auth_keys' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) + +$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->importBotAuthorization](auth_importBotAuthorization.md)(\['a' => [Bool](../types/Bool.md), 'b' => [Bool](../types/Bool.md), 'c' => [Bool](../types/Bool.md), 'd' => [Bool](../types/Bool.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) + +$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->recoverPassword](auth_recoverPassword.md)(\['code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->requestPasswordRecovery](auth_requestPasswordRecovery.md)(\[\]) === [$auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) + +$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) + +$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->sendCode](auth_sendCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'phone_number' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), 'api_id' => [int](../types/int.md), 'api_hash' => [string](../types/string.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) + +$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$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) + +*** +

$MadelineProto->[bots->answerWebhookJSONQuery](bots_answerWebhookJSONQuery.md)(\['query_id' => [long](../types/long.md), 'data' => [DataJSON](../types/DataJSON.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[bots->sendCustomRequest](bots_sendCustomRequest.md)(\['custom_method' => [string](../types/string.md), 'params' => [DataJSON](../types/DataJSON.md), \]) === [$DataJSON](../types/DataJSON.md) + +*** +

$MadelineProto->[channels->checkUsername](channels_checkUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->deleteChannel](channels_deleteChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->deleteMessages](channels_deleteMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[channels->deleteUserHistory](channels_deleteUserHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[channels->editAbout](channels_editAbout.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'about' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->editPhoto](channels_editPhoto.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->editTitle](channels_editTitle.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->exportInvite](channels_exportInvite.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) + +$MadelineProto->[channels->exportMessageLink](channels_exportMessageLink.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => [int](../types/int.md), \]) === [$ExportedMessageLink](../types/ExportedMessageLink.md) + +$MadelineProto->[channels->getAdminedPublicChannels](channels_getAdminedPublicChannels.md)(\[\]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[channels->getChannels](channels_getChannels.md)(\['id' => \[[InputChannel](../types/InputChannel.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[channels->getFullChannel](channels_getFullChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$MadelineProto->[channels->getMessages](channels_getMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) + +$MadelineProto->[channels->getParticipant](channels_getParticipant.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) + +$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) + +$MadelineProto->[channels->inviteToChannel](channels_inviteToChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'users' => \[[InputUser](../types/InputUser.md)\], \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->joinChannel](channels_joinChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$MadelineProto->[channels->leaveChannel](channels_leaveChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->readHistory](channels_readHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->toggleInvites](channels_toggleInvites.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->toggleSignatures](channels_toggleSignatures.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$MadelineProto->[channels->updateUsername](channels_updateUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) + +$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) + +$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) + +$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [string](../types/string.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) + +$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) + +$MadelineProto->[contacts->getTopPeers](contacts_getTopPeers.md)(\['correspondents' => [Bool](../types/Bool.md), 'bots_pm' => [Bool](../types/Bool.md), 'bots_inline' => [Bool](../types/Bool.md), 'groups' => [Bool](../types/Bool.md), 'channels' => [Bool](../types/Bool.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'hash' => [int](../types/int.md), \]) === [$contacts\_TopPeers](../types/contacts_TopPeers.md) + +$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) + +$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], 'replace' => [Bool](../types/Bool.md), \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) + +$MadelineProto->[contacts->resetTopPeerRating](contacts_resetTopPeerRating.md)(\['category' => [TopPeerCategory](../types/TopPeerCategory.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) + +$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) + +$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[contest->saveDeveloperInfo](contest_saveDeveloperInfo.md)(\['vk_id' => [int](../types/int.md), 'name' => [string](../types/string.md), 'phone_number' => [string](../types/string.md), 'age' => [int](../types/int.md), 'city' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[destroy_auth_key](destroy_auth_key.md)(\[\]) === [$DestroyAuthKeyRes](../types/DestroyAuthKeyRes.md) + +$MadelineProto->[destroy_session](destroy_session.md)(\['session_id' => [long](../types/long.md), \]) === [$DestroySessionRes](../types/DestroySessionRes.md) + +*** +

$MadelineProto->[get_future_salts](get_future_salts.md)(\['num' => [int](../types/int.md), \]) === [$FutureSalts](../types/FutureSalts.md) + +*** +

$MadelineProto->[help->getAppChangelog](help_getAppChangelog.md)(\['prev_app_version' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[help->getAppUpdate](help_getAppUpdate.md)(\[\]) === [$help\_AppUpdate](../types/help_AppUpdate.md) + +$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) + +$MadelineProto->[help->getInviteText](help_getInviteText.md)(\[\]) === [$help\_InviteText](../types/help_InviteText.md) + +$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) + +$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) + +$MadelineProto->[help->getTermsOfService](help_getTermsOfService.md)(\[\]) === [$help\_TermsOfService](../types/help_TermsOfService.md) + +$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[help->setBotUpdatesStatus](help_setBotUpdatesStatus.md)(\['pending_updates_count' => [int](../types/int.md), 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +*** +

$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) + +*** +

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeWithoutUpdates](invokeWithoutUpdates.md)(\['query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$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) + +$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) + +$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md) + +$MadelineProto->[messages->clearRecentStickers](messages_clearRecentStickers.md)(\['attached' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['just_clear' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['revoke' => [Bool](../types/Bool.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$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) + +$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) + +$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'with_my_score' => [Bool](../types/Bool.md), 'from_peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], 'to_peer' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->getAllChats](messages_getAllChats.md)(\['except_ids' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[messages->getAllDrafts](messages_getAllDrafts.md)(\[\]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) + +$MadelineProto->[messages->getArchivedStickers](messages_getArchivedStickers.md)(\['masks' => [Bool](../types/Bool.md), 'offset_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), \]) === [$messages\_ArchivedStickers](../types/messages_ArchivedStickers.md) + +$MadelineProto->[messages->getAttachedStickers](messages_getAttachedStickers.md)(\['media' => [InputStickeredMedia](../types/InputStickeredMedia.md), \]) === [$Vector\_of\_StickerSetCovered](../types/StickerSetCovered.md) + +$MadelineProto->[messages->getBotCallbackAnswer](messages_getBotCallbackAnswer.md)(\['game' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'msg_id' => [int](../types/int.md), 'data' => [bytes](../types/bytes.md), \]) === [$messages\_BotCallbackAnswer](../types/messages_BotCallbackAnswer.md) + +$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[messages->getCommonChats](messages_getCommonChats.md)(\['user_id' => [InputUser](../types/InputUser.md), 'max_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) + +$MadelineProto->[messages->getDialogs](messages_getDialogs.md)(\['exclude_pinned' => [Bool](../types/Bool.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) + +$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) + +$MadelineProto->[messages->getFeaturedStickers](messages_getFeaturedStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_FeaturedStickers](../types/messages_FeaturedStickers.md) + +$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$MadelineProto->[messages->getGameHighScores](messages_getGameHighScores.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_HighScores](../types/messages_HighScores.md) + +$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) + +$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) + +$MadelineProto->[messages->getInlineGameHighScores](messages_getInlineGameHighScores.md)(\['id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_HighScores](../types/messages_HighScores.md) + +$MadelineProto->[messages->getMaskStickers](messages_getMaskStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) + +$MadelineProto->[messages->getMessageEditData](messages_getMessageEditData.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$messages\_MessageEditData](../types/messages_MessageEditData.md) + +$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) + +$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) + +$MadelineProto->[messages->getPeerDialogs](messages_getPeerDialogs.md)(\['peers' => \[[InputPeer](../types/InputPeer.md)\], \]) === [$messages\_PeerDialogs](../types/messages_PeerDialogs.md) + +$MadelineProto->[messages->getPeerSettings](messages_getPeerSettings.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$PeerSettings](../types/PeerSettings.md) + +$MadelineProto->[messages->getPinnedDialogs](messages_getPinnedDialogs.md)(\[\]) === [$messages\_PeerDialogs](../types/messages_PeerDialogs.md) + +$MadelineProto->[messages->getRecentStickers](messages_getRecentStickers.md)(\['attached' => [Bool](../types/Bool.md), 'hash' => [int](../types/int.md), \]) === [$messages\_RecentStickers](../types/messages_RecentStickers.md) + +$MadelineProto->[messages->getSavedGifs](messages_getSavedGifs.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_SavedGifs](../types/messages_SavedGifs.md) + +$MadelineProto->[messages->getStickerSet](messages_getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +$MadelineProto->[messages->getWebPage](messages_getWebPage.md)(\['url' => [string](../types/string.md), 'hash' => [int](../types/int.md), \]) === [$WebPage](../types/WebPage.md) + +$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) === [$MessageMedia](../types/MessageMedia.md) + +$MadelineProto->[messages->hideReportSpam](messages_hideReportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'archived' => [Bool](../types/Bool.md), \]) === [$messages\_StickerSetInstallResult](../types/messages_StickerSetInstallResult.md) + +$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->readFeaturedStickers](messages_readFeaturedStickers.md)(\['id' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->readHistory](messages_readHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_ReceivedNotifyMessage](../types/ReceivedNotifyMessage.md) + +$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) + +$MadelineProto->[messages->reorderPinnedDialogs](messages_reorderPinnedDialogs.md)(\['force' => [Bool](../types/Bool.md), 'order' => \[[InputPeer](../types/InputPeer.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->reorderStickerSets](messages_reorderStickerSets.md)(\['masks' => [Bool](../types/Bool.md), 'order' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->reportEncryptedSpam](messages_reportEncryptedSpam.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->reportSpam](messages_reportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) + +$MadelineProto->[messages->saveDraft](messages_saveDraft.md)(\['no_webpage' => [Bool](../types/Bool.md), 'reply_to_msg_id' => [int](../types/int.md), 'peer' => [InputPeer](../types/InputPeer.md), 'message' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->saveGif](messages_saveGif.md)(\['id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->saveRecentSticker](messages_saveRecentSticker.md)(\['attached' => [Bool](../types/Bool.md), 'id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->searchGifs](messages_searchGifs.md)(\['q' => [string](../types/string.md), 'offset' => [int](../types/int.md), \]) === [$messages\_FoundGifs](../types/messages_FoundGifs.md) + +$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) + +$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$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) + +$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$MadelineProto->[messages->sendInlineBotResult](messages_sendInlineBotResult.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'query_id' => [long](../types/long.md), 'id' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'media' => [InputMedia](../types/InputMedia.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->setBotCallbackAnswer](messages_setBotCallbackAnswer.md)(\['alert' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'message' => [string](../types/string.md), 'url' => [string](../types/string.md), 'cache_time' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setBotPrecheckoutResults](messages_setBotPrecheckoutResults.md)(\['success' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'error' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setBotShippingResults](messages_setBotShippingResults.md)(\['query_id' => [long](../types/long.md), 'error' => [string](../types/string.md), 'shipping_options' => \[[ShippingOption](../types/ShippingOption.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setGameScore](messages_setGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'force' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$MadelineProto->[messages->setInlineGameScore](messages_setInlineGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'force' => [Bool](../types/Bool.md), 'id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->toggleDialogPin](messages_toggleDialogPin.md)(\['pinned' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[payments->clearSavedInfo](payments_clearSavedInfo.md)(\['credentials' => [Bool](../types/Bool.md), 'info' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[payments->getPaymentForm](payments_getPaymentForm.md)(\['msg_id' => [int](../types/int.md), \]) === [$payments\_PaymentForm](../types/payments_PaymentForm.md) + +$MadelineProto->[payments->getPaymentReceipt](payments_getPaymentReceipt.md)(\['msg_id' => [int](../types/int.md), \]) === [$payments\_PaymentReceipt](../types/payments_PaymentReceipt.md) + +$MadelineProto->[payments->getSavedInfo](payments_getSavedInfo.md)(\[\]) === [$payments\_SavedInfo](../types/payments_SavedInfo.md) + +$MadelineProto->[payments->sendPaymentForm](payments_sendPaymentForm.md)(\['msg_id' => [int](../types/int.md), 'requested_info_id' => [string](../types/string.md), 'shipping_option_id' => [string](../types/string.md), 'credentials' => [InputPaymentCredentials](../types/InputPaymentCredentials.md), \]) === [$payments\_PaymentResult](../types/payments_PaymentResult.md) + +$MadelineProto->[payments->validateRequestedInfo](payments_validateRequestedInfo.md)(\['save' => [Bool](../types/Bool.md), 'msg_id' => [int](../types/int.md), 'info' => [PaymentRequestedInfo](../types/PaymentRequestedInfo.md), \]) === [$payments\_ValidatedRequestedInfo](../types/payments_ValidatedRequestedInfo.md) + +*** +

$MadelineProto->[phone->acceptCall](phone_acceptCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'g_b' => [bytes](../types/bytes.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) + +$MadelineProto->[phone->confirmCall](phone_confirmCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'g_a' => [bytes](../types/bytes.md), 'key_fingerprint' => [long](../types/long.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) + +$MadelineProto->[phone->discardCall](phone_discardCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'duration' => [int](../types/int.md), 'reason' => [PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md), 'connection_id' => [long](../types/long.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[phone->getCallConfig](phone_getCallConfig.md)(\[\]) === [$DataJSON](../types/DataJSON.md) + +$MadelineProto->[phone->receivedCall](phone_receivedCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[phone->requestCall](phone_requestCall.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a_hash' => [bytes](../types/bytes.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) + +$MadelineProto->[phone->saveCallDebug](phone_saveCallDebug.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'debug' => [DataJSON](../types/DataJSON.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[phone->setCallRating](phone_setCallRating.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'rating' => [int](../types/int.md), 'comment' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +*** +

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) + +$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) + +$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) + +$MadelineProto->[photos->uploadProfilePhoto](photos_uploadProfilePhoto.md)(\['file' => [InputFile](../types/InputFile.md), \]) === [$photos\_Photo](../types/photos_Photo.md) + +*** +

$MadelineProto->[ping](ping.md)(\['ping_id' => [long](../types/long.md), \]) === [$Pong](../types/Pong.md) + +$MadelineProto->[ping_delay_disconnect](ping_delay_disconnect.md)(\['ping_id' => [long](../types/long.md), 'disconnect_delay' => [int](../types/int.md), \]) === [$Pong](../types/Pong.md) + +*** +

$MadelineProto->[req_DH_params](req_DH_params.md)(\['nonce' => [int128](../types/int128.md), 'server_nonce' => [int128](../types/int128.md), 'p' => [string](../types/string.md), 'q' => [string](../types/string.md), 'public_key_fingerprint' => [long](../types/long.md), 'encrypted_data' => [string](../types/string.md), \]) === [$Server\_DH\_Params](../types/Server_DH_Params.md) + +$MadelineProto->[req_pq](req_pq.md)(\['nonce' => [int128](../types/int128.md), \]) === [$ResPQ](../types/ResPQ.md) + +*** +

$MadelineProto->[rpc_drop_answer](rpc_drop_answer.md)(\['req_msg_id' => [long](../types/long.md), \]) === [$RpcDropAnswer](../types/RpcDropAnswer.md) + +*** +

$MadelineProto->[set_client_DH_params](set_client_DH_params.md)(\['nonce' => [int128](../types/int128.md), 'server_nonce' => [int128](../types/int128.md), 'encrypted_data' => [string](../types/string.md), \]) === [$Set\_client\_DH\_params\_answer](../types/Set_client_DH_params_answer.md) + +*** +

$MadelineProto->[updates->getChannelDifference](updates_getChannelDifference.md)(\['force' => [Bool](../types/Bool.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) + +$MadelineProto->[updates->getDifference](updates_getDifference.md)(\['pts' => [int](../types/int.md), 'pts_total_limit' => [int](../types/int.md), 'date' => [int](../types/int.md), 'qts' => [int](../types/int.md), \]) === [$updates\_Difference](../types/updates_Difference.md) + +$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) + +*** +

$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) + +$MadelineProto->[upload->getWebFile](upload_getWebFile.md)(\['location' => [InputWebFileLocation](../types/InputWebFileLocation.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$upload\_WebFile](../types/upload_WebFile.md) + +$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) + +$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) + +*** +

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) + +$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) + diff --git a/old_docs/API_docs_v65/methods/auth_cancelCode.md b/old_docs/API_docs_v65/methods/auth_cancelCode.md index 2ad15548..52b85d4c 100644 --- a/old_docs/API_docs_v65/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v65/methods/auth_cancelCode.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->cancelCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v65/methods/auth_checkPhone.md b/old_docs/API_docs_v65/methods/auth_checkPhone.md index 291221de..1826ce63 100644 --- a/old_docs/API_docs_v65/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v65/methods/auth_checkPhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); diff --git a/old_docs/API_docs_v65/methods/auth_dropTempAuthKeys.md b/old_docs/API_docs_v65/methods/auth_dropTempAuthKeys.md index 6474bbb3..5aa98b3b 100644 --- a/old_docs/API_docs_v65/methods/auth_dropTempAuthKeys.md +++ b/old_docs/API_docs_v65/methods/auth_dropTempAuthKeys.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->dropTempAuthKeys(['except_auth_keys' => [long, long], ]); diff --git a/old_docs/API_docs_v65/methods/auth_recoverPassword.md b/old_docs/API_docs_v65/methods/auth_recoverPassword.md index cdc9bd7d..5e37b0f3 100644 --- a/old_docs/API_docs_v65/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v65/methods/auth_recoverPassword.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_Authorization = $MadelineProto->auth->recoverPassword(['code' => 'string', ]); diff --git a/old_docs/API_docs_v65/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v65/methods/auth_requestPasswordRecovery.md index e18c6c93..c69d0c49 100644 --- a/old_docs/API_docs_v65/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v65/methods/auth_requestPasswordRecovery.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_PasswordRecovery = $MadelineProto->auth->requestPasswordRecovery(); diff --git a/old_docs/API_docs_v65/methods/auth_resendCode.md b/old_docs/API_docs_v65/methods/auth_resendCode.md index de437402..253480a3 100644 --- a/old_docs/API_docs_v65/methods/auth_resendCode.md +++ b/old_docs/API_docs_v65/methods/auth_resendCode.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_SentCode = $MadelineProto->auth->resendCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v65/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v65/methods/auth_resetAuthorizations.md index 47feea16..a46c880d 100644 --- a/old_docs/API_docs_v65/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v65/methods/auth_resetAuthorizations.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); diff --git a/old_docs/API_docs_v65/methods/auth_sendInvites.md b/old_docs/API_docs_v65/methods/auth_sendInvites.md index be32fe6b..9b88b4a3 100644 --- a/old_docs/API_docs_v65/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v65/methods/auth_sendInvites.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); diff --git a/old_docs/API_docs_v65/methods/bots_answerWebhookJSONQuery.md b/old_docs/API_docs_v65/methods/bots_answerWebhookJSONQuery.md index 61056bb4..40cb0477 100644 --- a/old_docs/API_docs_v65/methods/bots_answerWebhookJSONQuery.md +++ b/old_docs/API_docs_v65/methods/bots_answerWebhookJSONQuery.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->bots->answerWebhookJSONQuery(['query_id' => long, 'data' => DataJSON, ]); diff --git a/old_docs/API_docs_v65/methods/bots_sendCustomRequest.md b/old_docs/API_docs_v65/methods/bots_sendCustomRequest.md index fc8e764d..5a7f4e86 100644 --- a/old_docs/API_docs_v65/methods/bots_sendCustomRequest.md +++ b/old_docs/API_docs_v65/methods/bots_sendCustomRequest.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $DataJSON = $MadelineProto->bots->sendCustomRequest(['custom_method' => 'string', 'params' => DataJSON, ]); diff --git a/old_docs/API_docs_v65/methods/channels_checkUsername.md b/old_docs/API_docs_v65/methods/channels_checkUsername.md index 7bc7c245..7e3d5a89 100644 --- a/old_docs/API_docs_v65/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v65/methods/channels_checkUsername.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->checkUsername(['channel' => InputChannel, 'username' => 'string', ]); diff --git a/old_docs/API_docs_v65/methods/channels_createChannel.md b/old_docs/API_docs_v65/methods/channels_createChannel.md index 1305e4fb..a5ddc379 100644 --- a/old_docs/API_docs_v65/methods/channels_createChannel.md +++ b/old_docs/API_docs_v65/methods/channels_createChannel.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->createChannel(['broadcast' => Bool, 'megagroup' => Bool, 'title' => 'string', 'about' => 'string', ]); diff --git a/old_docs/API_docs_v65/methods/channels_deleteChannel.md b/old_docs/API_docs_v65/methods/channels_deleteChannel.md index e660d25c..69dad9a3 100644 --- a/old_docs/API_docs_v65/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v65/methods/channels_deleteChannel.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->deleteChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v65/methods/channels_deleteMessages.md b/old_docs/API_docs_v65/methods/channels_deleteMessages.md index fb9d3cc2..b12270b3 100644 --- a/old_docs/API_docs_v65/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v65/methods/channels_deleteMessages.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v65/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v65/methods/channels_deleteUserHistory.md index fbe34341..75f531bb 100644 --- a/old_docs/API_docs_v65/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v65/methods/channels_deleteUserHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->channels->deleteUserHistory(['channel' => InputChannel, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v65/methods/channels_editAbout.md b/old_docs/API_docs_v65/methods/channels_editAbout.md index 8908f29e..67521065 100644 --- a/old_docs/API_docs_v65/methods/channels_editAbout.md +++ b/old_docs/API_docs_v65/methods/channels_editAbout.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->editAbout(['channel' => InputChannel, 'about' => 'string', ]); diff --git a/old_docs/API_docs_v65/methods/channels_editAdmin.md b/old_docs/API_docs_v65/methods/channels_editAdmin.md index 01662a1d..7b6cc0f1 100644 --- a/old_docs/API_docs_v65/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v65/methods/channels_editAdmin.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editAdmin(['channel' => InputChannel, 'user_id' => InputUser, 'role' => ChannelParticipantRole, ]); diff --git a/old_docs/API_docs_v65/methods/channels_editPhoto.md b/old_docs/API_docs_v65/methods/channels_editPhoto.md index 9ccd864f..c854c64a 100644 --- a/old_docs/API_docs_v65/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v65/methods/channels_editPhoto.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editPhoto(['channel' => InputChannel, 'photo' => InputChatPhoto, ]); diff --git a/old_docs/API_docs_v65/methods/channels_editTitle.md b/old_docs/API_docs_v65/methods/channels_editTitle.md index b1024faf..9bc6773e 100644 --- a/old_docs/API_docs_v65/methods/channels_editTitle.md +++ b/old_docs/API_docs_v65/methods/channels_editTitle.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editTitle(['channel' => InputChannel, 'title' => 'string', ]); diff --git a/old_docs/API_docs_v65/methods/channels_exportInvite.md b/old_docs/API_docs_v65/methods/channels_exportInvite.md index f0c737d5..ca65dcc8 100644 --- a/old_docs/API_docs_v65/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v65/methods/channels_exportInvite.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedChatInvite = $MadelineProto->channels->exportInvite(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v65/methods/channels_exportMessageLink.md b/old_docs/API_docs_v65/methods/channels_exportMessageLink.md index f910b594..b4a3c645 100644 --- a/old_docs/API_docs_v65/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v65/methods/channels_exportMessageLink.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedMessageLink = $MadelineProto->channels->exportMessageLink(['channel' => InputChannel, 'id' => int, ]); diff --git a/old_docs/API_docs_v65/methods/channels_getAdminedPublicChannels.md b/old_docs/API_docs_v65/methods/channels_getAdminedPublicChannels.md index 9646f529..febc44f9 100644 --- a/old_docs/API_docs_v65/methods/channels_getAdminedPublicChannels.md +++ b/old_docs/API_docs_v65/methods/channels_getAdminedPublicChannels.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->channels->getAdminedPublicChannels(); diff --git a/old_docs/API_docs_v65/methods/channels_getChannels.md b/old_docs/API_docs_v65/methods/channels_getChannels.md index 9cd9e798..af22556f 100644 --- a/old_docs/API_docs_v65/methods/channels_getChannels.md +++ b/old_docs/API_docs_v65/methods/channels_getChannels.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel, InputChannel], ]); diff --git a/old_docs/API_docs_v65/methods/channels_getMessages.md b/old_docs/API_docs_v65/methods/channels_getMessages.md index cc944fe5..eda13d0b 100644 --- a/old_docs/API_docs_v65/methods/channels_getMessages.md +++ b/old_docs/API_docs_v65/methods/channels_getMessages.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v65/methods/channels_getParticipant.md b/old_docs/API_docs_v65/methods/channels_getParticipant.md index db9b1fc6..be5fe96a 100644 --- a/old_docs/API_docs_v65/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v65/methods/channels_getParticipant.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $channels_ChannelParticipant = $MadelineProto->channels->getParticipant(['channel' => InputChannel, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v65/methods/channels_getParticipants.md b/old_docs/API_docs_v65/methods/channels_getParticipants.md index 96662466..6a27016b 100644 --- a/old_docs/API_docs_v65/methods/channels_getParticipants.md +++ b/old_docs/API_docs_v65/methods/channels_getParticipants.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $channels_ChannelParticipants = $MadelineProto->channels->getParticipants(['channel' => InputChannel, 'filter' => ChannelParticipantsFilter, 'offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v65/methods/channels_inviteToChannel.md b/old_docs/API_docs_v65/methods/channels_inviteToChannel.md index 676f800c..e7d12db7 100644 --- a/old_docs/API_docs_v65/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v65/methods/channels_inviteToChannel.md @@ -52,12 +52,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v65/methods/channels_joinChannel.md b/old_docs/API_docs_v65/methods/channels_joinChannel.md index 721f707c..3ac2b326 100644 --- a/old_docs/API_docs_v65/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v65/methods/channels_joinChannel.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->joinChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v65/methods/channels_kickFromChannel.md b/old_docs/API_docs_v65/methods/channels_kickFromChannel.md index bf8bb5b8..8f6c92be 100644 --- a/old_docs/API_docs_v65/methods/channels_kickFromChannel.md +++ b/old_docs/API_docs_v65/methods/channels_kickFromChannel.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->kickFromChannel(['channel' => InputChannel, 'user_id' => InputUser, 'kicked' => Bool, ]); diff --git a/old_docs/API_docs_v65/methods/channels_leaveChannel.md b/old_docs/API_docs_v65/methods/channels_leaveChannel.md index 7f02e08c..95b60a90 100644 --- a/old_docs/API_docs_v65/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v65/methods/channels_leaveChannel.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->leaveChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v65/methods/channels_readHistory.md b/old_docs/API_docs_v65/methods/channels_readHistory.md index cca891f0..c6b14541 100644 --- a/old_docs/API_docs_v65/methods/channels_readHistory.md +++ b/old_docs/API_docs_v65/methods/channels_readHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->readHistory(['channel' => InputChannel, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v65/methods/channels_reportSpam.md b/old_docs/API_docs_v65/methods/channels_reportSpam.md index 09af14e0..ca5c28f5 100644 --- a/old_docs/API_docs_v65/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v65/methods/channels_reportSpam.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v65/methods/channels_toggleInvites.md b/old_docs/API_docs_v65/methods/channels_toggleInvites.md index 5b541f67..e9e6450d 100644 --- a/old_docs/API_docs_v65/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v65/methods/channels_toggleInvites.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->toggleInvites(['channel' => InputChannel, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v65/methods/channels_toggleSignatures.md b/old_docs/API_docs_v65/methods/channels_toggleSignatures.md index f233a8e1..36d1eccb 100644 --- a/old_docs/API_docs_v65/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v65/methods/channels_toggleSignatures.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->toggleSignatures(['channel' => InputChannel, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v65/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v65/methods/channels_updatePinnedMessage.md index f06d1f0f..f8d10ece 100644 --- a/old_docs/API_docs_v65/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v65/methods/channels_updatePinnedMessage.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->updatePinnedMessage(['silent' => Bool, 'channel' => InputChannel, 'id' => int, ]); diff --git a/old_docs/API_docs_v65/methods/channels_updateUsername.md b/old_docs/API_docs_v65/methods/channels_updateUsername.md index ad34490a..2093b6ce 100644 --- a/old_docs/API_docs_v65/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v65/methods/channels_updateUsername.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->updateUsername(['channel' => InputChannel, 'username' => 'string', ]); diff --git a/old_docs/API_docs_v65/methods/contacts_block.md b/old_docs/API_docs_v65/methods/contacts_block.md index d0729d30..e592cace 100644 --- a/old_docs/API_docs_v65/methods/contacts_block.md +++ b/old_docs/API_docs_v65/methods/contacts_block.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v65/methods/contacts_deleteContact.md b/old_docs/API_docs_v65/methods/contacts_deleteContact.md index b8c17544..1a3f2a27 100644 --- a/old_docs/API_docs_v65/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v65/methods/contacts_deleteContact.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v65/methods/contacts_deleteContacts.md b/old_docs/API_docs_v65/methods/contacts_deleteContacts.md index 64c69460..f6627599 100644 --- a/old_docs/API_docs_v65/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v65/methods/contacts_deleteContacts.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v65/methods/contacts_exportCard.md b/old_docs/API_docs_v65/methods/contacts_exportCard.md index b05f57ce..1d2129f3 100644 --- a/old_docs/API_docs_v65/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v65/methods/contacts_exportCard.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); diff --git a/old_docs/API_docs_v65/methods/contacts_getBlocked.md b/old_docs/API_docs_v65/methods/contacts_getBlocked.md index d7d8c5cc..44d24aba 100644 --- a/old_docs/API_docs_v65/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v65/methods/contacts_getBlocked.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v65/methods/contacts_getContacts.md b/old_docs/API_docs_v65/methods/contacts_getContacts.md index 1ab8af27..83c4846f 100644 --- a/old_docs/API_docs_v65/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v65/methods/contacts_getContacts.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v65/methods/contacts_getStatuses.md b/old_docs/API_docs_v65/methods/contacts_getStatuses.md index b927a140..5cef3084 100644 --- a/old_docs/API_docs_v65/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v65/methods/contacts_getStatuses.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); diff --git a/old_docs/API_docs_v65/methods/contacts_getTopPeers.md b/old_docs/API_docs_v65/methods/contacts_getTopPeers.md index 2bad9a2a..8d39809c 100644 --- a/old_docs/API_docs_v65/methods/contacts_getTopPeers.md +++ b/old_docs/API_docs_v65/methods/contacts_getTopPeers.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_TopPeers = $MadelineProto->contacts->getTopPeers(['correspondents' => Bool, 'bots_pm' => Bool, 'bots_inline' => Bool, 'groups' => Bool, 'channels' => Bool, 'offset' => int, 'limit' => int, 'hash' => int, ]); diff --git a/old_docs/API_docs_v65/methods/contacts_importCard.md b/old_docs/API_docs_v65/methods/contacts_importCard.md index 81a1e138..89c96657 100644 --- a/old_docs/API_docs_v65/methods/contacts_importCard.md +++ b/old_docs/API_docs_v65/methods/contacts_importCard.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); diff --git a/old_docs/API_docs_v65/methods/contacts_importContacts.md b/old_docs/API_docs_v65/methods/contacts_importContacts.md index 578e5dfd..cd3d6615 100644 --- a/old_docs/API_docs_v65/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v65/methods/contacts_importContacts.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], 'replace' => Bool, ]); diff --git a/old_docs/API_docs_v65/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v65/methods/contacts_resetTopPeerRating.md index 4b485921..4b5e96f1 100644 --- a/old_docs/API_docs_v65/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v65/methods/contacts_resetTopPeerRating.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->resetTopPeerRating(['category' => TopPeerCategory, 'peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v65/methods/contacts_search.md b/old_docs/API_docs_v65/methods/contacts_search.md index 68daecd6..64ff748e 100644 --- a/old_docs/API_docs_v65/methods/contacts_search.md +++ b/old_docs/API_docs_v65/methods/contacts_search.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); diff --git a/old_docs/API_docs_v65/methods/contacts_unblock.md b/old_docs/API_docs_v65/methods/contacts_unblock.md index f7d151b9..ec72ae2d 100644 --- a/old_docs/API_docs_v65/methods/contacts_unblock.md +++ b/old_docs/API_docs_v65/methods/contacts_unblock.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v65/methods/contest_saveDeveloperInfo.md b/old_docs/API_docs_v65/methods/contest_saveDeveloperInfo.md index 3e40c0f3..5d82a4be 100644 --- a/old_docs/API_docs_v65/methods/contest_saveDeveloperInfo.md +++ b/old_docs/API_docs_v65/methods/contest_saveDeveloperInfo.md @@ -33,12 +33,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contest->saveDeveloperInfo(['vk_id' => int, 'name' => 'string', 'phone_number' => 'string', 'age' => int, 'city' => 'string', ]); diff --git a/old_docs/API_docs_v65/methods/destroy_auth_key.md b/old_docs/API_docs_v65/methods/destroy_auth_key.md index eb6ba218..dbcc7b23 100644 --- a/old_docs/API_docs_v65/methods/destroy_auth_key.md +++ b/old_docs/API_docs_v65/methods/destroy_auth_key.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $DestroyAuthKeyRes = $MadelineProto->destroy_auth_key(); diff --git a/old_docs/API_docs_v65/methods/destroy_session.md b/old_docs/API_docs_v65/methods/destroy_session.md index 326e8d8e..b74fbd11 100644 --- a/old_docs/API_docs_v65/methods/destroy_session.md +++ b/old_docs/API_docs_v65/methods/destroy_session.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $DestroySessionRes = $MadelineProto->destroy_session(['session_id' => long, ]); diff --git a/old_docs/API_docs_v65/methods/get_future_salts.md b/old_docs/API_docs_v65/methods/get_future_salts.md index 9d4be95e..e8451015 100644 --- a/old_docs/API_docs_v65/methods/get_future_salts.md +++ b/old_docs/API_docs_v65/methods/get_future_salts.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $FutureSalts = $MadelineProto->get_future_salts(['num' => int, ]); diff --git a/old_docs/API_docs_v65/methods/help_getAppChangelog.md b/old_docs/API_docs_v65/methods/help_getAppChangelog.md index 477df2f8..eda473a6 100644 --- a/old_docs/API_docs_v65/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v65/methods/help_getAppChangelog.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->help->getAppChangelog(['prev_app_version' => 'string', ]); diff --git a/old_docs/API_docs_v65/methods/help_getAppUpdate.md b/old_docs/API_docs_v65/methods/help_getAppUpdate.md index b88906ae..c6a42922 100644 --- a/old_docs/API_docs_v65/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v65/methods/help_getAppUpdate.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(); diff --git a/old_docs/API_docs_v65/methods/help_getConfig.md b/old_docs/API_docs_v65/methods/help_getConfig.md index 16e25c68..ca4bfc25 100644 --- a/old_docs/API_docs_v65/methods/help_getConfig.md +++ b/old_docs/API_docs_v65/methods/help_getConfig.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); diff --git a/old_docs/API_docs_v65/methods/help_getInviteText.md b/old_docs/API_docs_v65/methods/help_getInviteText.md index 6b226bff..7311b7fb 100644 --- a/old_docs/API_docs_v65/methods/help_getInviteText.md +++ b/old_docs/API_docs_v65/methods/help_getInviteText.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(); diff --git a/old_docs/API_docs_v65/methods/help_getNearestDc.md b/old_docs/API_docs_v65/methods/help_getNearestDc.md index 35a8bf91..458f60ab 100644 --- a/old_docs/API_docs_v65/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v65/methods/help_getNearestDc.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); diff --git a/old_docs/API_docs_v65/methods/help_getSupport.md b/old_docs/API_docs_v65/methods/help_getSupport.md index a5bab0f2..9ee25b00 100644 --- a/old_docs/API_docs_v65/methods/help_getSupport.md +++ b/old_docs/API_docs_v65/methods/help_getSupport.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); diff --git a/old_docs/API_docs_v65/methods/help_getTermsOfService.md b/old_docs/API_docs_v65/methods/help_getTermsOfService.md index 487cd83a..4dea9f79 100644 --- a/old_docs/API_docs_v65/methods/help_getTermsOfService.md +++ b/old_docs/API_docs_v65/methods/help_getTermsOfService.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_TermsOfService = $MadelineProto->help->getTermsOfService(); diff --git a/old_docs/API_docs_v65/methods/help_saveAppLog.md b/old_docs/API_docs_v65/methods/help_saveAppLog.md index 0165b6e3..a7884c47 100644 --- a/old_docs/API_docs_v65/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v65/methods/help_saveAppLog.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); diff --git a/old_docs/API_docs_v65/methods/help_setBotUpdatesStatus.md b/old_docs/API_docs_v65/methods/help_setBotUpdatesStatus.md index ff314b5c..a1a3ab1b 100644 --- a/old_docs/API_docs_v65/methods/help_setBotUpdatesStatus.md +++ b/old_docs/API_docs_v65/methods/help_setBotUpdatesStatus.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->help->setBotUpdatesStatus(['pending_updates_count' => int, 'message' => 'string', ]); diff --git a/old_docs/API_docs_v65/methods/initConnection.md b/old_docs/API_docs_v65/methods/initConnection.md index 2d3d86ad..73620276 100644 --- a/old_docs/API_docs_v65/methods/initConnection.md +++ b/old_docs/API_docs_v65/methods/initConnection.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->initConnection(['api_id' => int, 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', 'query' => !X, ]); diff --git a/old_docs/API_docs_v65/methods/invokeAfterMsg.md b/old_docs/API_docs_v65/methods/invokeAfterMsg.md index e33a2c93..8e953e78 100644 --- a/old_docs/API_docs_v65/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v65/methods/invokeAfterMsg.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); diff --git a/old_docs/API_docs_v65/methods/invokeAfterMsgs.md b/old_docs/API_docs_v65/methods/invokeAfterMsgs.md index 3150a613..bc8a83b7 100644 --- a/old_docs/API_docs_v65/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v65/methods/invokeAfterMsgs.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); diff --git a/old_docs/API_docs_v65/methods/invokeWithLayer.md b/old_docs/API_docs_v65/methods/invokeWithLayer.md index 71d02abb..8a0c4e79 100644 --- a/old_docs/API_docs_v65/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v65/methods/invokeWithLayer.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); diff --git a/old_docs/API_docs_v65/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v65/methods/invokeWithoutUpdates.md index 2bab236a..2d90a776 100644 --- a/old_docs/API_docs_v65/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v65/methods/invokeWithoutUpdates.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeWithoutUpdates(['query' => !X, ]); diff --git a/old_docs/API_docs_v65/methods/messages_addChatUser.md b/old_docs/API_docs_v65/methods/messages_addChatUser.md index 3e4c5ccc..c6ef275f 100644 --- a/old_docs/API_docs_v65/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v65/methods/messages_addChatUser.md @@ -46,12 +46,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); diff --git a/old_docs/API_docs_v65/methods/messages_checkChatInvite.md b/old_docs/API_docs_v65/methods/messages_checkChatInvite.md index de1d9ff4..cea63313 100644 --- a/old_docs/API_docs_v65/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v65/methods/messages_checkChatInvite.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ChatInvite = $MadelineProto->messages->checkChatInvite(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v65/methods/messages_clearRecentStickers.md b/old_docs/API_docs_v65/methods/messages_clearRecentStickers.md index 9c1b3754..1d6ec8c9 100644 --- a/old_docs/API_docs_v65/methods/messages_clearRecentStickers.md +++ b/old_docs/API_docs_v65/methods/messages_clearRecentStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->clearRecentStickers(['attached' => Bool, ]); diff --git a/old_docs/API_docs_v65/methods/messages_createChat.md b/old_docs/API_docs_v65/methods/messages_createChat.md index 68c0263a..966f58dc 100644 --- a/old_docs/API_docs_v65/methods/messages_createChat.md +++ b/old_docs/API_docs_v65/methods/messages_createChat.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); diff --git a/old_docs/API_docs_v65/methods/messages_deleteChatUser.md b/old_docs/API_docs_v65/methods/messages_deleteChatUser.md index 0a6830de..9a9227ba 100644 --- a/old_docs/API_docs_v65/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v65/methods/messages_deleteChatUser.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v65/methods/messages_deleteHistory.md b/old_docs/API_docs_v65/methods/messages_deleteHistory.md index e44433c1..45e9890d 100644 --- a/old_docs/API_docs_v65/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v65/methods/messages_deleteHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['just_clear' => Bool, 'peer' => InputPeer, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v65/methods/messages_deleteMessages.md b/old_docs/API_docs_v65/methods/messages_deleteMessages.md index 0da41180..c8670444 100644 --- a/old_docs/API_docs_v65/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v65/methods/messages_deleteMessages.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['revoke' => Bool, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v65/methods/messages_editChatAdmin.md b/old_docs/API_docs_v65/methods/messages_editChatAdmin.md index 7916f8b1..5bba0559 100644 --- a/old_docs/API_docs_v65/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v65/methods/messages_editChatAdmin.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]); diff --git a/old_docs/API_docs_v65/methods/messages_editChatPhoto.md b/old_docs/API_docs_v65/methods/messages_editChatPhoto.md index 122913c4..5827a5cc 100644 --- a/old_docs/API_docs_v65/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v65/methods/messages_editChatPhoto.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); diff --git a/old_docs/API_docs_v65/methods/messages_editChatTitle.md b/old_docs/API_docs_v65/methods/messages_editChatTitle.md index 3a1e974b..2e69d790 100644 --- a/old_docs/API_docs_v65/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v65/methods/messages_editChatTitle.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); diff --git a/old_docs/API_docs_v65/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v65/methods/messages_editInlineBotMessage.md index 2237fb20..73c8a2c4 100644 --- a/old_docs/API_docs_v65/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v65/methods/messages_editInlineBotMessage.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->editInlineBotMessage(['no_webpage' => Bool, 'id' => InputBotInlineMessageID, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v65/methods/messages_editMessage.md b/old_docs/API_docs_v65/methods/messages_editMessage.md index 177438a5..ad639325 100644 --- a/old_docs/API_docs_v65/methods/messages_editMessage.md +++ b/old_docs/API_docs_v65/methods/messages_editMessage.md @@ -51,12 +51,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editMessage(['no_webpage' => Bool, 'peer' => InputPeer, 'id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v65/methods/messages_exportChatInvite.md b/old_docs/API_docs_v65/methods/messages_exportChatInvite.md index 98685d96..ec80e207 100644 --- a/old_docs/API_docs_v65/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v65/methods/messages_exportChatInvite.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]); diff --git a/old_docs/API_docs_v65/methods/messages_forwardMessage.md b/old_docs/API_docs_v65/methods/messages_forwardMessage.md index 45b7a07f..d6916437 100644 --- a/old_docs/API_docs_v65/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v65/methods/messages_forwardMessage.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); diff --git a/old_docs/API_docs_v65/methods/messages_forwardMessages.md b/old_docs/API_docs_v65/methods/messages_forwardMessages.md index efe58e67..b99e1d31 100644 --- a/old_docs/API_docs_v65/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v65/methods/messages_forwardMessages.md @@ -62,12 +62,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessages(['silent' => Bool, 'background' => Bool, 'with_my_score' => Bool, 'from_peer' => InputPeer, 'id' => [int, int], 'to_peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v65/methods/messages_getAllChats.md b/old_docs/API_docs_v65/methods/messages_getAllChats.md index 127456e4..513fc06f 100644 --- a/old_docs/API_docs_v65/methods/messages_getAllChats.md +++ b/old_docs/API_docs_v65/methods/messages_getAllChats.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getAllChats(['except_ids' => [int, int], ]); diff --git a/old_docs/API_docs_v65/methods/messages_getAllDrafts.md b/old_docs/API_docs_v65/methods/messages_getAllDrafts.md index 2c0ecd42..43a95bb2 100644 --- a/old_docs/API_docs_v65/methods/messages_getAllDrafts.md +++ b/old_docs/API_docs_v65/methods/messages_getAllDrafts.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->getAllDrafts(); diff --git a/old_docs/API_docs_v65/methods/messages_getAllStickers.md b/old_docs/API_docs_v65/methods/messages_getAllStickers.md index 16fdba6c..2ba37a91 100644 --- a/old_docs/API_docs_v65/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v65/methods/messages_getAllStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => int, ]); diff --git a/old_docs/API_docs_v65/methods/messages_getArchivedStickers.md b/old_docs/API_docs_v65/methods/messages_getArchivedStickers.md index f037e1bc..ee36b542 100644 --- a/old_docs/API_docs_v65/methods/messages_getArchivedStickers.md +++ b/old_docs/API_docs_v65/methods/messages_getArchivedStickers.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_ArchivedStickers = $MadelineProto->messages->getArchivedStickers(['masks' => Bool, 'offset_id' => long, 'limit' => int, ]); diff --git a/old_docs/API_docs_v65/methods/messages_getAttachedStickers.md b/old_docs/API_docs_v65/methods/messages_getAttachedStickers.md index 890680cd..9f8a66c5 100644 --- a/old_docs/API_docs_v65/methods/messages_getAttachedStickers.md +++ b/old_docs/API_docs_v65/methods/messages_getAttachedStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_StickerSetCovered = $MadelineProto->messages->getAttachedStickers(['media' => InputStickeredMedia, ]); diff --git a/old_docs/API_docs_v65/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v65/methods/messages_getBotCallbackAnswer.md index 09c283f5..0136227f 100644 --- a/old_docs/API_docs_v65/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v65/methods/messages_getBotCallbackAnswer.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_BotCallbackAnswer = $MadelineProto->messages->getBotCallbackAnswer(['game' => Bool, 'peer' => InputPeer, 'msg_id' => int, 'data' => 'bytes', ]); diff --git a/old_docs/API_docs_v65/methods/messages_getChats.md b/old_docs/API_docs_v65/methods/messages_getChats.md index 290438a1..e84c7193 100644 --- a/old_docs/API_docs_v65/methods/messages_getChats.md +++ b/old_docs/API_docs_v65/methods/messages_getChats.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v65/methods/messages_getCommonChats.md b/old_docs/API_docs_v65/methods/messages_getCommonChats.md index e6eca283..15ed6713 100644 --- a/old_docs/API_docs_v65/methods/messages_getCommonChats.md +++ b/old_docs/API_docs_v65/methods/messages_getCommonChats.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getCommonChats(['user_id' => InputUser, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v65/methods/messages_getDialogs.md b/old_docs/API_docs_v65/methods/messages_getDialogs.md index e100228b..53f9ac62 100644 --- a/old_docs/API_docs_v65/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v65/methods/messages_getDialogs.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['exclude_pinned' => Bool, 'offset_date' => int, 'offset_id' => int, 'offset_peer' => InputPeer, 'limit' => int, ]); diff --git a/old_docs/API_docs_v65/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v65/methods/messages_getDocumentByHash.md index 1af5bad4..ad8e22be 100644 --- a/old_docs/API_docs_v65/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v65/methods/messages_getDocumentByHash.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Document = $MadelineProto->messages->getDocumentByHash(['sha256' => 'bytes', 'size' => int, 'mime_type' => 'string', ]); diff --git a/old_docs/API_docs_v65/methods/messages_getFeaturedStickers.md b/old_docs/API_docs_v65/methods/messages_getFeaturedStickers.md index 512f2e85..8e49e1ef 100644 --- a/old_docs/API_docs_v65/methods/messages_getFeaturedStickers.md +++ b/old_docs/API_docs_v65/methods/messages_getFeaturedStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_FeaturedStickers = $MadelineProto->messages->getFeaturedStickers(['hash' => int, ]); diff --git a/old_docs/API_docs_v65/methods/messages_getGameHighScores.md b/old_docs/API_docs_v65/methods/messages_getGameHighScores.md index 5137baea..113e4647 100644 --- a/old_docs/API_docs_v65/methods/messages_getGameHighScores.md +++ b/old_docs/API_docs_v65/methods/messages_getGameHighScores.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_HighScores = $MadelineProto->messages->getGameHighScores(['peer' => InputPeer, 'id' => int, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v65/methods/messages_getHistory.md b/old_docs/API_docs_v65/methods/messages_getHistory.md index dfae66e6..851d2680 100644 --- a/old_docs/API_docs_v65/methods/messages_getHistory.md +++ b/old_docs/API_docs_v65/methods/messages_getHistory.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getHistory(['peer' => InputPeer, 'offset_id' => int, 'offset_date' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); diff --git a/old_docs/API_docs_v65/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v65/methods/messages_getInlineBotResults.md index 8ab5bf78..4d86caf5 100644 --- a/old_docs/API_docs_v65/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v65/methods/messages_getInlineBotResults.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_BotResults = $MadelineProto->messages->getInlineBotResults(['bot' => InputUser, 'peer' => InputPeer, 'geo_point' => InputGeoPoint, 'query' => 'string', 'offset' => 'string', ]); diff --git a/old_docs/API_docs_v65/methods/messages_getInlineGameHighScores.md b/old_docs/API_docs_v65/methods/messages_getInlineGameHighScores.md index 790bfdd9..d5a80005 100644 --- a/old_docs/API_docs_v65/methods/messages_getInlineGameHighScores.md +++ b/old_docs/API_docs_v65/methods/messages_getInlineGameHighScores.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_HighScores = $MadelineProto->messages->getInlineGameHighScores(['id' => InputBotInlineMessageID, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v65/methods/messages_getMaskStickers.md b/old_docs/API_docs_v65/methods/messages_getMaskStickers.md index f4ed9411..70e2e6d4 100644 --- a/old_docs/API_docs_v65/methods/messages_getMaskStickers.md +++ b/old_docs/API_docs_v65/methods/messages_getMaskStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getMaskStickers(['hash' => int, ]); diff --git a/old_docs/API_docs_v65/methods/messages_getMessageEditData.md b/old_docs/API_docs_v65/methods/messages_getMessageEditData.md index 12e71bee..34f8534f 100644 --- a/old_docs/API_docs_v65/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v65/methods/messages_getMessageEditData.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_MessageEditData = $MadelineProto->messages->getMessageEditData(['peer' => InputPeer, 'id' => int, ]); diff --git a/old_docs/API_docs_v65/methods/messages_getMessages.md b/old_docs/API_docs_v65/methods/messages_getMessages.md index 86d1da8a..d538cb5f 100644 --- a/old_docs/API_docs_v65/methods/messages_getMessages.md +++ b/old_docs/API_docs_v65/methods/messages_getMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v65/methods/messages_getMessagesViews.md b/old_docs/API_docs_v65/methods/messages_getMessagesViews.md index b8d78c85..934adc16 100644 --- a/old_docs/API_docs_v65/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v65/methods/messages_getMessagesViews.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int, int], 'increment' => Bool, ]); diff --git a/old_docs/API_docs_v65/methods/messages_getPeerDialogs.md b/old_docs/API_docs_v65/methods/messages_getPeerDialogs.md index da82cfc6..063b6e7d 100644 --- a/old_docs/API_docs_v65/methods/messages_getPeerDialogs.md +++ b/old_docs/API_docs_v65/methods/messages_getPeerDialogs.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_PeerDialogs = $MadelineProto->messages->getPeerDialogs(['peers' => [InputPeer, InputPeer], ]); diff --git a/old_docs/API_docs_v65/methods/messages_getPeerSettings.md b/old_docs/API_docs_v65/methods/messages_getPeerSettings.md index f1f2a3bb..a18126f0 100644 --- a/old_docs/API_docs_v65/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v65/methods/messages_getPeerSettings.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $PeerSettings = $MadelineProto->messages->getPeerSettings(['peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v65/methods/messages_getPinnedDialogs.md b/old_docs/API_docs_v65/methods/messages_getPinnedDialogs.md index d12779fe..3f49ed75 100644 --- a/old_docs/API_docs_v65/methods/messages_getPinnedDialogs.md +++ b/old_docs/API_docs_v65/methods/messages_getPinnedDialogs.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_PeerDialogs = $MadelineProto->messages->getPinnedDialogs(); diff --git a/old_docs/API_docs_v65/methods/messages_getRecentStickers.md b/old_docs/API_docs_v65/methods/messages_getRecentStickers.md index d76a2160..0c5ae0c6 100644 --- a/old_docs/API_docs_v65/methods/messages_getRecentStickers.md +++ b/old_docs/API_docs_v65/methods/messages_getRecentStickers.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_RecentStickers = $MadelineProto->messages->getRecentStickers(['attached' => Bool, 'hash' => int, ]); diff --git a/old_docs/API_docs_v65/methods/messages_getSavedGifs.md b/old_docs/API_docs_v65/methods/messages_getSavedGifs.md index f61348ce..38585538 100644 --- a/old_docs/API_docs_v65/methods/messages_getSavedGifs.md +++ b/old_docs/API_docs_v65/methods/messages_getSavedGifs.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => int, ]); diff --git a/old_docs/API_docs_v65/methods/messages_getStickerSet.md b/old_docs/API_docs_v65/methods/messages_getStickerSet.md index c86807e4..c9140ab2 100644 --- a/old_docs/API_docs_v65/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v65/methods/messages_getStickerSet.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSet = $MadelineProto->messages->getStickerSet(['stickerset' => InputStickerSet, ]); diff --git a/old_docs/API_docs_v65/methods/messages_getWebPage.md b/old_docs/API_docs_v65/methods/messages_getWebPage.md index 129f8f06..19ca94b9 100644 --- a/old_docs/API_docs_v65/methods/messages_getWebPage.md +++ b/old_docs/API_docs_v65/methods/messages_getWebPage.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $WebPage = $MadelineProto->messages->getWebPage(['url' => 'string', 'hash' => int, ]); diff --git a/old_docs/API_docs_v65/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v65/methods/messages_getWebPagePreview.md index d01bdd32..e8b20c5d 100644 --- a/old_docs/API_docs_v65/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v65/methods/messages_getWebPagePreview.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $MessageMedia = $MadelineProto->messages->getWebPagePreview(['message' => 'string', ]); diff --git a/old_docs/API_docs_v65/methods/messages_hideReportSpam.md b/old_docs/API_docs_v65/methods/messages_hideReportSpam.md index 856770cb..30523f2a 100644 --- a/old_docs/API_docs_v65/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v65/methods/messages_hideReportSpam.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->hideReportSpam(['peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v65/methods/messages_importChatInvite.md b/old_docs/API_docs_v65/methods/messages_importChatInvite.md index 0d6cd7c8..b1830a9b 100644 --- a/old_docs/API_docs_v65/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v65/methods/messages_importChatInvite.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->importChatInvite(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v65/methods/messages_installStickerSet.md b/old_docs/API_docs_v65/methods/messages_installStickerSet.md index 9f6f098c..20f90b71 100644 --- a/old_docs/API_docs_v65/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v65/methods/messages_installStickerSet.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSetInstallResult = $MadelineProto->messages->installStickerSet(['stickerset' => InputStickerSet, 'archived' => Bool, ]); diff --git a/old_docs/API_docs_v65/methods/messages_migrateChat.md b/old_docs/API_docs_v65/methods/messages_migrateChat.md index db57adfa..22ccfcc1 100644 --- a/old_docs/API_docs_v65/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v65/methods/messages_migrateChat.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]); diff --git a/old_docs/API_docs_v65/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v65/methods/messages_readEncryptedHistory.md index 39b110e3..2ba4cca4 100644 --- a/old_docs/API_docs_v65/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v65/methods/messages_readEncryptedHistory.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); diff --git a/old_docs/API_docs_v65/methods/messages_readFeaturedStickers.md b/old_docs/API_docs_v65/methods/messages_readFeaturedStickers.md index 4035c76d..050371da 100644 --- a/old_docs/API_docs_v65/methods/messages_readFeaturedStickers.md +++ b/old_docs/API_docs_v65/methods/messages_readFeaturedStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->readFeaturedStickers(['id' => [long, long], ]); diff --git a/old_docs/API_docs_v65/methods/messages_readHistory.md b/old_docs/API_docs_v65/methods/messages_readHistory.md index 3de17061..26b608af 100644 --- a/old_docs/API_docs_v65/methods/messages_readHistory.md +++ b/old_docs/API_docs_v65/methods/messages_readHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v65/methods/messages_readMessageContents.md b/old_docs/API_docs_v65/methods/messages_readMessageContents.md index 9bb1bee8..a09cb63e 100644 --- a/old_docs/API_docs_v65/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v65/methods/messages_readMessageContents.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v65/methods/messages_receivedMessages.md b/old_docs/API_docs_v65/methods/messages_receivedMessages.md index 7aab635f..b5e87992 100644 --- a/old_docs/API_docs_v65/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v65/methods/messages_receivedMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_ReceivedNotifyMessage = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); diff --git a/old_docs/API_docs_v65/methods/messages_reorderPinnedDialogs.md b/old_docs/API_docs_v65/methods/messages_reorderPinnedDialogs.md index 710caf10..94d3b2d4 100644 --- a/old_docs/API_docs_v65/methods/messages_reorderPinnedDialogs.md +++ b/old_docs/API_docs_v65/methods/messages_reorderPinnedDialogs.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reorderPinnedDialogs(['force' => Bool, 'order' => [InputPeer, InputPeer], ]); diff --git a/old_docs/API_docs_v65/methods/messages_reorderStickerSets.md b/old_docs/API_docs_v65/methods/messages_reorderStickerSets.md index ddc78dd0..66f5e682 100644 --- a/old_docs/API_docs_v65/methods/messages_reorderStickerSets.md +++ b/old_docs/API_docs_v65/methods/messages_reorderStickerSets.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reorderStickerSets(['masks' => Bool, 'order' => [long, long], ]); diff --git a/old_docs/API_docs_v65/methods/messages_reportEncryptedSpam.md b/old_docs/API_docs_v65/methods/messages_reportEncryptedSpam.md index 58b684d1..cd03c35c 100644 --- a/old_docs/API_docs_v65/methods/messages_reportEncryptedSpam.md +++ b/old_docs/API_docs_v65/methods/messages_reportEncryptedSpam.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reportEncryptedSpam(['peer' => InputEncryptedChat, ]); diff --git a/old_docs/API_docs_v65/methods/messages_reportSpam.md b/old_docs/API_docs_v65/methods/messages_reportSpam.md index 2e2b1177..09c1e63b 100644 --- a/old_docs/API_docs_v65/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v65/methods/messages_reportSpam.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reportSpam(['peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v65/methods/messages_saveDraft.md b/old_docs/API_docs_v65/methods/messages_saveDraft.md index bbeed707..59b33b03 100644 --- a/old_docs/API_docs_v65/methods/messages_saveDraft.md +++ b/old_docs/API_docs_v65/methods/messages_saveDraft.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->saveDraft(['no_webpage' => Bool, 'reply_to_msg_id' => int, 'peer' => InputPeer, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v65/methods/messages_saveGif.md b/old_docs/API_docs_v65/methods/messages_saveGif.md index 6f608c4c..145039e7 100644 --- a/old_docs/API_docs_v65/methods/messages_saveGif.md +++ b/old_docs/API_docs_v65/methods/messages_saveGif.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->saveGif(['id' => InputDocument, 'unsave' => Bool, ]); diff --git a/old_docs/API_docs_v65/methods/messages_saveRecentSticker.md b/old_docs/API_docs_v65/methods/messages_saveRecentSticker.md index 81ad5d48..55757080 100644 --- a/old_docs/API_docs_v65/methods/messages_saveRecentSticker.md +++ b/old_docs/API_docs_v65/methods/messages_saveRecentSticker.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->saveRecentSticker(['attached' => Bool, 'id' => InputDocument, 'unsave' => Bool, ]); diff --git a/old_docs/API_docs_v65/methods/messages_search.md b/old_docs/API_docs_v65/methods/messages_search.md index 7821d2b7..735ddf47 100644 --- a/old_docs/API_docs_v65/methods/messages_search.md +++ b/old_docs/API_docs_v65/methods/messages_search.md @@ -49,12 +49,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->search(['peer' => InputPeer, 'q' => 'string', 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v65/methods/messages_searchGifs.md b/old_docs/API_docs_v65/methods/messages_searchGifs.md index 103ebfeb..9677bf24 100644 --- a/old_docs/API_docs_v65/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v65/methods/messages_searchGifs.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_FoundGifs = $MadelineProto->messages->searchGifs(['q' => 'string', 'offset' => int, ]); diff --git a/old_docs/API_docs_v65/methods/messages_searchGlobal.md b/old_docs/API_docs_v65/methods/messages_searchGlobal.md index 0edd1e40..6ad4aec0 100644 --- a/old_docs/API_docs_v65/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v65/methods/messages_searchGlobal.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->searchGlobal(['q' => 'string', 'offset_date' => int, 'offset_peer' => InputPeer, 'offset_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v65/methods/messages_sendEncrypted.md b/old_docs/API_docs_v65/methods/messages_sendEncrypted.md index d48f88d7..76305f32 100644 --- a/old_docs/API_docs_v65/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v65/methods/messages_sendEncrypted.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v65/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v65/methods/messages_sendEncryptedFile.md index 4fd0648e..8db2ead9 100644 --- a/old_docs/API_docs_v65/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v65/methods/messages_sendEncryptedFile.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); diff --git a/old_docs/API_docs_v65/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v65/methods/messages_sendEncryptedService.md index d66894bf..c7836c94 100644 --- a/old_docs/API_docs_v65/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v65/methods/messages_sendEncryptedService.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v65/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v65/methods/messages_sendInlineBotResult.md index 386ac7e3..1a12322c 100644 --- a/old_docs/API_docs_v65/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v65/methods/messages_sendInlineBotResult.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendInlineBotResult(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'query_id' => long, 'id' => 'string', ]); diff --git a/old_docs/API_docs_v65/methods/messages_sendMedia.md b/old_docs/API_docs_v65/methods/messages_sendMedia.md index 0b5cf9b6..770d1b65 100644 --- a/old_docs/API_docs_v65/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v65/methods/messages_sendMedia.md @@ -63,12 +63,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendMedia(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, 'reply_markup' => ReplyMarkup, ]); diff --git a/old_docs/API_docs_v65/methods/messages_sendMessage.md b/old_docs/API_docs_v65/methods/messages_sendMessage.md index c4dc8894..83dc6c8b 100644 --- a/old_docs/API_docs_v65/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v65/methods/messages_sendMessage.md @@ -65,12 +65,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendMessage(['no_webpage' => Bool, 'silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v65/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v65/methods/messages_setBotCallbackAnswer.md index e6dc6b09..e221ccca 100644 --- a/old_docs/API_docs_v65/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v65/methods/messages_setBotCallbackAnswer.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setBotCallbackAnswer(['alert' => Bool, 'query_id' => long, 'message' => 'string', 'url' => 'string', 'cache_time' => int, ]); diff --git a/old_docs/API_docs_v65/methods/messages_setBotPrecheckoutResults.md b/old_docs/API_docs_v65/methods/messages_setBotPrecheckoutResults.md index 722bff81..7e3fc3c2 100644 --- a/old_docs/API_docs_v65/methods/messages_setBotPrecheckoutResults.md +++ b/old_docs/API_docs_v65/methods/messages_setBotPrecheckoutResults.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setBotPrecheckoutResults(['success' => Bool, 'query_id' => long, 'error' => 'string', ]); diff --git a/old_docs/API_docs_v65/methods/messages_setBotShippingResults.md b/old_docs/API_docs_v65/methods/messages_setBotShippingResults.md index d364a04d..3d9f0ae2 100644 --- a/old_docs/API_docs_v65/methods/messages_setBotShippingResults.md +++ b/old_docs/API_docs_v65/methods/messages_setBotShippingResults.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setBotShippingResults(['query_id' => long, 'error' => 'string', 'shipping_options' => [ShippingOption, ShippingOption], ]); diff --git a/old_docs/API_docs_v65/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v65/methods/messages_setEncryptedTyping.md index e9afe99c..4e7450eb 100644 --- a/old_docs/API_docs_v65/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v65/methods/messages_setEncryptedTyping.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); diff --git a/old_docs/API_docs_v65/methods/messages_setGameScore.md b/old_docs/API_docs_v65/methods/messages_setGameScore.md index aa1f4f0c..90594a1d 100644 --- a/old_docs/API_docs_v65/methods/messages_setGameScore.md +++ b/old_docs/API_docs_v65/methods/messages_setGameScore.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->setGameScore(['edit_message' => Bool, 'force' => Bool, 'peer' => InputPeer, 'id' => int, 'user_id' => InputUser, 'score' => int, ]); diff --git a/old_docs/API_docs_v65/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v65/methods/messages_setInlineBotResults.md index 79493009..d4ba6e65 100644 --- a/old_docs/API_docs_v65/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v65/methods/messages_setInlineBotResults.md @@ -52,12 +52,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setInlineBotResults(['gallery' => Bool, 'private' => Bool, 'query_id' => long, 'results' => [InputBotInlineResult, InputBotInlineResult], 'cache_time' => int, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, ]); diff --git a/old_docs/API_docs_v65/methods/messages_setInlineGameScore.md b/old_docs/API_docs_v65/methods/messages_setInlineGameScore.md index 385c8308..2b7326f3 100644 --- a/old_docs/API_docs_v65/methods/messages_setInlineGameScore.md +++ b/old_docs/API_docs_v65/methods/messages_setInlineGameScore.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setInlineGameScore(['edit_message' => Bool, 'force' => Bool, 'id' => InputBotInlineMessageID, 'user_id' => InputUser, 'score' => int, ]); diff --git a/old_docs/API_docs_v65/methods/messages_setTyping.md b/old_docs/API_docs_v65/methods/messages_setTyping.md index bea4982b..a2b94823 100644 --- a/old_docs/API_docs_v65/methods/messages_setTyping.md +++ b/old_docs/API_docs_v65/methods/messages_setTyping.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); diff --git a/old_docs/API_docs_v65/methods/messages_startBot.md b/old_docs/API_docs_v65/methods/messages_startBot.md index 94a4d86a..50d6f475 100644 --- a/old_docs/API_docs_v65/methods/messages_startBot.md +++ b/old_docs/API_docs_v65/methods/messages_startBot.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'peer' => InputPeer, 'start_param' => 'string', ]); diff --git a/old_docs/API_docs_v65/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v65/methods/messages_toggleChatAdmins.md index ab591fd9..349ea0e6 100644 --- a/old_docs/API_docs_v65/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v65/methods/messages_toggleChatAdmins.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => InputPeer, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v65/methods/messages_toggleDialogPin.md b/old_docs/API_docs_v65/methods/messages_toggleDialogPin.md index 2bd6a03d..14332533 100644 --- a/old_docs/API_docs_v65/methods/messages_toggleDialogPin.md +++ b/old_docs/API_docs_v65/methods/messages_toggleDialogPin.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->toggleDialogPin(['pinned' => Bool, 'peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v65/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v65/methods/messages_uninstallStickerSet.md index 6d04e847..26b2fbb3 100644 --- a/old_docs/API_docs_v65/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v65/methods/messages_uninstallStickerSet.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->uninstallStickerSet(['stickerset' => InputStickerSet, ]); diff --git a/old_docs/API_docs_v65/methods/payments_clearSavedInfo.md b/old_docs/API_docs_v65/methods/payments_clearSavedInfo.md index 44050dde..8b83266f 100644 --- a/old_docs/API_docs_v65/methods/payments_clearSavedInfo.md +++ b/old_docs/API_docs_v65/methods/payments_clearSavedInfo.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->payments->clearSavedInfo(['credentials' => Bool, 'info' => Bool, ]); diff --git a/old_docs/API_docs_v65/methods/payments_getPaymentForm.md b/old_docs/API_docs_v65/methods/payments_getPaymentForm.md index 16a32d11..3bdb9ff2 100644 --- a/old_docs/API_docs_v65/methods/payments_getPaymentForm.md +++ b/old_docs/API_docs_v65/methods/payments_getPaymentForm.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $payments_PaymentForm = $MadelineProto->payments->getPaymentForm(['msg_id' => int, ]); diff --git a/old_docs/API_docs_v65/methods/payments_getPaymentReceipt.md b/old_docs/API_docs_v65/methods/payments_getPaymentReceipt.md index 857585f6..a881aeb7 100644 --- a/old_docs/API_docs_v65/methods/payments_getPaymentReceipt.md +++ b/old_docs/API_docs_v65/methods/payments_getPaymentReceipt.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $payments_PaymentReceipt = $MadelineProto->payments->getPaymentReceipt(['msg_id' => int, ]); diff --git a/old_docs/API_docs_v65/methods/payments_getSavedInfo.md b/old_docs/API_docs_v65/methods/payments_getSavedInfo.md index 04ac7374..ec1a071b 100644 --- a/old_docs/API_docs_v65/methods/payments_getSavedInfo.md +++ b/old_docs/API_docs_v65/methods/payments_getSavedInfo.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $payments_SavedInfo = $MadelineProto->payments->getSavedInfo(); diff --git a/old_docs/API_docs_v65/methods/payments_sendPaymentForm.md b/old_docs/API_docs_v65/methods/payments_sendPaymentForm.md index 0a9df99f..79758b56 100644 --- a/old_docs/API_docs_v65/methods/payments_sendPaymentForm.md +++ b/old_docs/API_docs_v65/methods/payments_sendPaymentForm.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $payments_PaymentResult = $MadelineProto->payments->sendPaymentForm(['msg_id' => int, 'requested_info_id' => 'string', 'shipping_option_id' => 'string', 'credentials' => InputPaymentCredentials, ]); diff --git a/old_docs/API_docs_v65/methods/payments_validateRequestedInfo.md b/old_docs/API_docs_v65/methods/payments_validateRequestedInfo.md index e36f0e42..d473f97c 100644 --- a/old_docs/API_docs_v65/methods/payments_validateRequestedInfo.md +++ b/old_docs/API_docs_v65/methods/payments_validateRequestedInfo.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $payments_ValidatedRequestedInfo = $MadelineProto->payments->validateRequestedInfo(['save' => Bool, 'msg_id' => int, 'info' => PaymentRequestedInfo, ]); diff --git a/old_docs/API_docs_v65/methods/phone_getCallConfig.md b/old_docs/API_docs_v65/methods/phone_getCallConfig.md index cac622a0..6969c1a3 100644 --- a/old_docs/API_docs_v65/methods/phone_getCallConfig.md +++ b/old_docs/API_docs_v65/methods/phone_getCallConfig.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $DataJSON = $MadelineProto->phone->getCallConfig(); diff --git a/old_docs/API_docs_v65/methods/phone_receivedCall.md b/old_docs/API_docs_v65/methods/phone_receivedCall.md index 27e3b462..17095622 100644 --- a/old_docs/API_docs_v65/methods/phone_receivedCall.md +++ b/old_docs/API_docs_v65/methods/phone_receivedCall.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->phone->receivedCall(['peer' => InputPhoneCall, ]); diff --git a/old_docs/API_docs_v65/methods/phone_saveCallDebug.md b/old_docs/API_docs_v65/methods/phone_saveCallDebug.md index 760ad9d5..0ff049a8 100644 --- a/old_docs/API_docs_v65/methods/phone_saveCallDebug.md +++ b/old_docs/API_docs_v65/methods/phone_saveCallDebug.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->phone->saveCallDebug(['peer' => InputPhoneCall, 'debug' => DataJSON, ]); diff --git a/old_docs/API_docs_v65/methods/phone_setCallRating.md b/old_docs/API_docs_v65/methods/phone_setCallRating.md index b32ba333..d0aab7e0 100644 --- a/old_docs/API_docs_v65/methods/phone_setCallRating.md +++ b/old_docs/API_docs_v65/methods/phone_setCallRating.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->phone->setCallRating(['peer' => InputPhoneCall, 'rating' => int, 'comment' => 'string', ]); diff --git a/old_docs/API_docs_v65/methods/photos_deletePhotos.md b/old_docs/API_docs_v65/methods/photos_deletePhotos.md index b9daca10..937aadd5 100644 --- a/old_docs/API_docs_v65/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v65/methods/photos_deletePhotos.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); diff --git a/old_docs/API_docs_v65/methods/photos_getUserPhotos.md b/old_docs/API_docs_v65/methods/photos_getUserPhotos.md index ea27a44f..d1c15e90 100644 --- a/old_docs/API_docs_v65/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v65/methods/photos_getUserPhotos.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => long, 'limit' => int, ]); diff --git a/old_docs/API_docs_v65/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v65/methods/photos_updateProfilePhoto.md index 7f0a4c69..2ac8b60d 100644 --- a/old_docs/API_docs_v65/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v65/methods/photos_updateProfilePhoto.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, ]); diff --git a/old_docs/API_docs_v65/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v65/methods/photos_uploadProfilePhoto.md index efa08bb0..c7ec3063 100644 --- a/old_docs/API_docs_v65/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v65/methods/photos_uploadProfilePhoto.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, ]); diff --git a/old_docs/API_docs_v65/methods/ping.md b/old_docs/API_docs_v65/methods/ping.md index 4ad52852..f987ae89 100644 --- a/old_docs/API_docs_v65/methods/ping.md +++ b/old_docs/API_docs_v65/methods/ping.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Pong = $MadelineProto->ping(['ping_id' => long, ]); diff --git a/old_docs/API_docs_v65/methods/ping_delay_disconnect.md b/old_docs/API_docs_v65/methods/ping_delay_disconnect.md index b0951488..5b1c115d 100644 --- a/old_docs/API_docs_v65/methods/ping_delay_disconnect.md +++ b/old_docs/API_docs_v65/methods/ping_delay_disconnect.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Pong = $MadelineProto->ping_delay_disconnect(['ping_id' => long, 'disconnect_delay' => int, ]); diff --git a/old_docs/API_docs_v65/methods/req_DH_params.md b/old_docs/API_docs_v65/methods/req_DH_params.md index bb821ef9..f0b45851 100644 --- a/old_docs/API_docs_v65/methods/req_DH_params.md +++ b/old_docs/API_docs_v65/methods/req_DH_params.md @@ -34,12 +34,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Server_DH_Params = $MadelineProto->req_DH_params(['nonce' => int128, 'server_nonce' => int128, 'p' => 'string', 'q' => 'string', 'public_key_fingerprint' => long, 'encrypted_data' => 'string', ]); diff --git a/old_docs/API_docs_v65/methods/req_pq.md b/old_docs/API_docs_v65/methods/req_pq.md index 72a31c0b..0873d9a2 100644 --- a/old_docs/API_docs_v65/methods/req_pq.md +++ b/old_docs/API_docs_v65/methods/req_pq.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ResPQ = $MadelineProto->req_pq(['nonce' => int128, ]); diff --git a/old_docs/API_docs_v65/methods/rpc_drop_answer.md b/old_docs/API_docs_v65/methods/rpc_drop_answer.md index 381d7ee4..27f98bca 100644 --- a/old_docs/API_docs_v65/methods/rpc_drop_answer.md +++ b/old_docs/API_docs_v65/methods/rpc_drop_answer.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $RpcDropAnswer = $MadelineProto->rpc_drop_answer(['req_msg_id' => long, ]); diff --git a/old_docs/API_docs_v65/methods/set_client_DH_params.md b/old_docs/API_docs_v65/methods/set_client_DH_params.md index 6abb9a51..cf8ab321 100644 --- a/old_docs/API_docs_v65/methods/set_client_DH_params.md +++ b/old_docs/API_docs_v65/methods/set_client_DH_params.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Set_client_DH_params_answer = $MadelineProto->set_client_DH_params(['nonce' => int128, 'server_nonce' => int128, 'encrypted_data' => 'string', ]); diff --git a/old_docs/API_docs_v65/methods/upload_getWebFile.md b/old_docs/API_docs_v65/methods/upload_getWebFile.md index e864e4b7..11634633 100644 --- a/old_docs/API_docs_v65/methods/upload_getWebFile.md +++ b/old_docs/API_docs_v65/methods/upload_getWebFile.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $upload_WebFile = $MadelineProto->upload->getWebFile(['location' => InputWebFileLocation, 'offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v65/methods/users_getUsers.md b/old_docs/API_docs_v65/methods/users_getUsers.md index ef1c7fd8..bce13ee6 100644 --- a/old_docs/API_docs_v65/methods/users_getUsers.md +++ b/old_docs/API_docs_v65/methods/users_getUsers.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v66/README.md b/old_docs/API_docs_v66/README.md index 99b9775b..7220e3d2 100644 --- a/old_docs/API_docs_v66/README.md +++ b/old_docs/API_docs_v66/README.md @@ -4,11 +4,11 @@ description: MadelineProto API documentation (layer v66) --- # MadelineProto API documentation (layer v66) +[Back to main documentation](..) + + [Methods](methods/) [Constructors](constructors/) -[Types](types/) - - -[Back to main documentation](..) +[Types](types/) \ No newline at end of file diff --git a/old_docs/API_docs_v66/methods/README.md b/old_docs/API_docs_v66/methods/README.md index 617b6d40..4cdfb1d7 100644 --- a/old_docs/API_docs_v66/methods/README.md +++ b/old_docs/API_docs_v66/methods/README.md @@ -1,511 +1,506 @@ --- title: Methods -description: List of methods +description: What do you want to do? --- -# Methods -[Back to API documentation index](..) +# What do you want to do? +[Go back to API documentation index](..) +[Go to the old code-version method index](api_index.html) -$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); +* [Logout](https://docs.madelineproto.xyz/logout.html) -$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); +* [Login](https://docs.madelineproto.xyz/docs/LOGIN.html) -$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); +* [Get all chats, broadcast a message to all chats](https://docs.madelineproto.xyz/docs/DIALOGS.html) -$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); +* [Get the full participant list of a channel/group/supergroup](https://docs.madelineproto.xyz/get_pwr_chat.html) -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); +* [Get full info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_full_info.html) +* [Get info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_info.html) -$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); +* [Get info about the currently logged-in user](https://docs.madelineproto.xyz/get_self.html) -$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); +* [Upload or download files up to 1.5 GB](https://docs.madelineproto.xyz/docs/FILES.html) -$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); +* [Make a phone call and play a song](https://docs.madelineproto.xyz/docs/CALLS.html) -$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); - -$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); - - -$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); - -$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); +* [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) *** -

$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) +

* Change the phone number associated to this account -$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Check if this username is available -$MadelineProto->[account->confirmPhone](account_confirmPhone.md)(\['phone_code_hash' => [string](../types/string.md), 'phone_code' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode -$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Delete this account -$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) +* Get account TTL -$MadelineProto->[account->getAuthorizations](account_getAuthorizations.md)(\[\]) === [$account\_Authorizations](../types/account_Authorizations.md) +* Get all logged-in authorizations -$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) +* Get notification settings -$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md) +* Get the current password -$MadelineProto->[account->getPasswordSettings](account_getPasswordSettings.md)(\['current_password_hash' => [bytes](../types/bytes.md), \]) === [$account\_PasswordSettings](../types/account_PasswordSettings.md) +* Get the current 2FA settings -$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Get privacy settings -$MadelineProto->[account->getTmpPassword](account_getTmpPassword.md)(\['password_hash' => [bytes](../types/bytes.md), 'period' => [int](../types/int.md), \]) === [$account\_TmpPassword](../types/account_TmpPassword.md) +* Get temporary password for buying products through bots -$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) +* Returns a list of available wallpapers. -$MadelineProto->[account->registerDevice](account_registerDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Register device for push notifications -$MadelineProto->[account->reportPeer](account_reportPeer.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reason' => [ReportReason](../types/ReportReason.md), \]) === [$Bool](../types/Bool.md) +* Report for spam -$MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) +* Delete a certain session -$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) +* Reset all notification settings -$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) +* Change the phone number -$MadelineProto->[account->sendConfirmPhoneCode](account_sendConfirmPhoneCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'hash' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) +* Send confirmation phone code -$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) +* Set account TTL -$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Set privacy settings -$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Stop sending PUSH notifications to app -$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Disable all notifications for a certain period -$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) +* Change notification settings -$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) +* Update the 2FA password settings -$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) +* Update profile info -$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Update online status -$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) +* Update this user's username *** -

$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) +

* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info -$MadelineProto->[auth->cancelCode](auth_cancelCode.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Invalidate sent phone code -$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) +* Check if this phone number is registered on telegram -$MadelineProto->[auth->dropTempAuthKeys](auth_dropTempAuthKeys.md)(\['except_auth_keys' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) +* Delete all temporary authorization keys except the ones provided -$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) +* You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$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) +* You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->recoverPassword](auth_recoverPassword.md)(\['code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account -$MadelineProto->[auth->requestPasswordRecovery](auth_requestPasswordRecovery.md)(\[\]) === [$auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) +* Send an email to recover the 2FA password -$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) +* Resend the SMS verification code -$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) +* Delete all logged-in sessions. -$MadelineProto->[auth->sendCode](auth_sendCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'phone_number' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), 'api_id' => [int](../types/int.md), 'api_hash' => [string](../types/string.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) +* Use phone_login instead -$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Invite friends to telegram! -$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) +* You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) -$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) +* You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) *** -

$MadelineProto->[bots->answerWebhookJSONQuery](bots_answerWebhookJSONQuery.md)(\['query_id' => [long](../types/long.md), 'data' => [DataJSON](../types/DataJSON.md), \]) === [$Bool](../types/Bool.md) +

* Send webhook request via bot API -$MadelineProto->[bots->sendCustomRequest](bots_sendCustomRequest.md)(\['custom_method' => [string](../types/string.md), 'params' => [DataJSON](../types/DataJSON.md), \]) === [$DataJSON](../types/DataJSON.md) +* Send a custom request to the bot API *** -

$MadelineProto->[channels->checkUsername](channels_checkUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +

* Check if this username is free and can be assigned to a channel/supergroup -$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) +* Create channel/supergroup -$MadelineProto->[channels->deleteChannel](channels_deleteChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Delete a channel/supergroup -$MadelineProto->[channels->deleteMessages](channels_deleteMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Delete channel/supergroup messages -$MadelineProto->[channels->deleteUserHistory](channels_deleteUserHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Delete all messages of a user in a channel/supergroup -$MadelineProto->[channels->editAbout](channels_editAbout.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'about' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Edit the about text of a channel/supergroup -$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) +* Edit admin permissions of a user in a channel/supergroup -$MadelineProto->[channels->editPhoto](channels_editPhoto.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) +* Edit the photo of a supergroup/channel -$MadelineProto->[channels->editTitle](channels_editTitle.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Edit the title of a supergroup/channel -$MadelineProto->[channels->exportInvite](channels_exportInvite.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) +* Export the invite link of a channel -$MadelineProto->[channels->exportMessageLink](channels_exportMessageLink.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => [int](../types/int.md), \]) === [$ExportedMessageLink](../types/ExportedMessageLink.md) +* Get the link of a message in a channel -$MadelineProto->[channels->getAdminedPublicChannels](channels_getAdminedPublicChannels.md)(\[\]) === [$messages\_Chats](../types/messages_Chats.md) +* Get all supergroups/channels where you're admin -$MadelineProto->[channels->getChannels](channels_getChannels.md)(\['id' => \[[InputChannel](../types/InputChannel.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get info about multiple channels/supergroups -$MadelineProto->[channels->getFullChannel](channels_getFullChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) +* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[channels->getMessages](channels_getMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get channel/supergroup messages -$MadelineProto->[channels->getParticipant](channels_getParticipant.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) +* Get info about a certain channel/supergroup participant -$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) +* Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead) -$MadelineProto->[channels->inviteToChannel](channels_inviteToChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'users' => \[[InputUser](../types/InputUser.md)\], \]) === [$Updates](../types/Updates.md) +* Add users to channel/supergroup -$MadelineProto->[channels->joinChannel](channels_joinChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Join a channel/supergroup -$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) +* Kick user from channel -$MadelineProto->[channels->leaveChannel](channels_leaveChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Leave a channel/supergroup -$MadelineProto->[channels->readHistory](channels_readHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Mark channel/supergroup history as read -$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) +* Report a supergroup/channel for spam -$MadelineProto->[channels->toggleInvites](channels_toggleInvites.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Allow or disallow any user to invite users to this channel/supergroup -$MadelineProto->[channels->toggleSignatures](channels_toggleSignatures.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Toggle channel signatures -$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) +* Set the pinned message of a channel/supergroup -$MadelineProto->[channels->updateUsername](channels_updateUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Update the username of a supergroup/channel *** -

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +

* Block a user -$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) +* Delete a contact -$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) +* Delete multiple contacts -$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) +* Export contact as card -$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) +* Get blocked users -$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [string](../types/string.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) +* Get info about a certain contact -$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) +* Get online status of all users -$MadelineProto->[contacts->getTopPeers](contacts_getTopPeers.md)(\['correspondents' => [Bool](../types/Bool.md), 'bots_pm' => [Bool](../types/Bool.md), 'bots_inline' => [Bool](../types/Bool.md), 'groups' => [Bool](../types/Bool.md), 'channels' => [Bool](../types/Bool.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'hash' => [int](../types/int.md), \]) === [$contacts\_TopPeers](../types/contacts_TopPeers.md) +* Get most used chats -$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) +* Import card as contact -$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], 'replace' => [Bool](../types/Bool.md), \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) +* Add phone number as contact -$MadelineProto->[contacts->resetTopPeerRating](contacts_resetTopPeerRating.md)(\['category' => [TopPeerCategory](../types/TopPeerCategory.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Reset top peer rating for a certain category/peer -$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) +* You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) +* Search contacts -$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +* Unblock a user *** -

$MadelineProto->[contest->saveDeveloperInfo](contest_saveDeveloperInfo.md)(\['vk_id' => [int](../types/int.md), 'name' => [string](../types/string.md), 'phone_number' => [string](../types/string.md), 'age' => [int](../types/int.md), 'city' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +

* Save developer info for telegram contest *** -

$MadelineProto->[destroy_auth_key](destroy_auth_key.md)(\[\]) === [$DestroyAuthKeyRes](../types/DestroyAuthKeyRes.md) +

* Destroy current authorization key -$MadelineProto->[destroy_session](destroy_session.md)(\['session_id' => [long](../types/long.md), \]) === [$DestroySessionRes](../types/DestroySessionRes.md) +* Destroy the current MTProto session *** -

$MadelineProto->[get_future_salts](get_future_salts.md)(\['num' => [int](../types/int.md), \]) === [$FutureSalts](../types/FutureSalts.md) +

* Get future salts *** -

$MadelineProto->[help->getAppChangelog](help_getAppChangelog.md)(\['prev_app_version' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +

* Get the changelog of this app -$MadelineProto->[help->getAppUpdate](help_getAppUpdate.md)(\[\]) === [$help\_AppUpdate](../types/help_AppUpdate.md) +* Get info about app updates -$MadelineProto->[help->getCdnConfig](help_getCdnConfig.md)(\[\]) === [$CdnConfig](../types/CdnConfig.md) +* Get CDN configuration -$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) +* Get server configuration -$MadelineProto->[help->getInviteText](help_getInviteText.md)(\[\]) === [$help\_InviteText](../types/help_InviteText.md) +* Get invitation text -$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) +* Get nearest datacenter -$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) +* Get info of support user -$MadelineProto->[help->getTermsOfService](help_getTermsOfService.md)(\[\]) === [$help\_TermsOfService](../types/help_TermsOfService.md) +* Get terms of service -$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) +* Log data for developer of this app -$MadelineProto->[help->setBotUpdatesStatus](help_setBotUpdatesStatus.md)(\['pending_updates_count' => [int](../types/int.md), 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Set the update status of webhook *** -

$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) +

* Initializes connection and save information on the user's device and application. *** -

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invokes a query after successfull completion of one of the previous queries. *** -

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Result type returned by a current query. *** -

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invoke this method with layer X *** -

$MadelineProto->[invokeWithoutUpdates](invokeWithoutUpdates.md)(\['query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invoke with method without returning updates in the socket *** -

$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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Add a user to a normal chat (use channels->inviteToChannel for supergroups) -$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md) +* Check if an invitation link is valid -$MadelineProto->[messages->clearRecentStickers](messages_clearRecentStickers.md)(\['attached' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Clear all recent stickers -$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Create a chat (not supergroup) -$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md) +* Delete a user from a chat (not supergroup) -$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['just_clear' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Delete chat history -$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['revoke' => [Bool](../types/Bool.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Delete messages -$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Edit admin permissions -$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) +* Edit the photo of a normal chat (not supergroup) -$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Edit the title of a normal chat (not supergroup) -$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) +* Edit a sent inline message -$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) +* Edit a message -$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) +* Export chat invite -$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) +* Forward message -$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'with_my_score' => [Bool](../types/Bool.md), 'from_peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], 'to_peer' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) +* Forward messages -$MadelineProto->[messages->getAllChats](messages_getAllChats.md)(\['except_ids' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get all chats (not supergroups or channels) -$MadelineProto->[messages->getAllDrafts](messages_getAllDrafts.md)(\[\]) === [$Updates](../types/Updates.md) +* Get all message drafts -$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) +* Get all stickerpacks -$MadelineProto->[messages->getArchivedStickers](messages_getArchivedStickers.md)(\['masks' => [Bool](../types/Bool.md), 'offset_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), \]) === [$messages\_ArchivedStickers](../types/messages_ArchivedStickers.md) +* Get all archived stickers -$MadelineProto->[messages->getAttachedStickers](messages_getAttachedStickers.md)(\['media' => [InputStickeredMedia](../types/InputStickeredMedia.md), \]) === [$Vector\_of\_StickerSetCovered](../types/StickerSetCovered.md) +* Get stickers attachable to images -$MadelineProto->[messages->getBotCallbackAnswer](messages_getBotCallbackAnswer.md)(\['game' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'msg_id' => [int](../types/int.md), 'data' => [bytes](../types/bytes.md), \]) === [$messages\_BotCallbackAnswer](../types/messages_BotCallbackAnswer.md) +* Get the callback answer of a bot (after clicking a button) -$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get info about chats -$MadelineProto->[messages->getCommonChats](messages_getCommonChats.md)(\['user_id' => [InputUser](../types/InputUser.md), 'max_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get chats in common with a user -$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) +* You cannot use this method directly, instead use $MadelineProto->get_dh_config(); -$MadelineProto->[messages->getDialogs](messages_getDialogs.md)(\['exclude_pinned' => [Bool](../types/Bool.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) +* Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html -$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) +* Get document by SHA256 hash -$MadelineProto->[messages->getFeaturedStickers](messages_getFeaturedStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_FeaturedStickers](../types/messages_FeaturedStickers.md) +* Get featured stickers -$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) +* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[messages->getGameHighScores](messages_getGameHighScores.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_HighScores](../types/messages_HighScores.md) +* Get high scores of a game -$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) +* Get previous messages of a group -$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) +* Call inline bot -$MadelineProto->[messages->getInlineGameHighScores](messages_getInlineGameHighScores.md)(\['id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_HighScores](../types/messages_HighScores.md) +* Get high scores of a game sent in an inline message -$MadelineProto->[messages->getMaskStickers](messages_getMaskStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) +* Get masks -$MadelineProto->[messages->getMessageEditData](messages_getMessageEditData.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$messages\_MessageEditData](../types/messages_MessageEditData.md) +* Check if about to edit a message or a media caption -$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get messages -$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) +* Get and increase message views -$MadelineProto->[messages->getPeerDialogs](messages_getPeerDialogs.md)(\['peers' => \[[InputPeer](../types/InputPeer.md)\], \]) === [$messages\_PeerDialogs](../types/messages_PeerDialogs.md) +* Get dialog info of peers -$MadelineProto->[messages->getPeerSettings](messages_getPeerSettings.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$PeerSettings](../types/PeerSettings.md) +* Get the settings of apeer -$MadelineProto->[messages->getPinnedDialogs](messages_getPinnedDialogs.md)(\[\]) === [$messages\_PeerDialogs](../types/messages_PeerDialogs.md) +* Get pinned dialogs -$MadelineProto->[messages->getRecentStickers](messages_getRecentStickers.md)(\['attached' => [Bool](../types/Bool.md), 'hash' => [int](../types/int.md), \]) === [$messages\_RecentStickers](../types/messages_RecentStickers.md) +* Get recent stickers -$MadelineProto->[messages->getSavedGifs](messages_getSavedGifs.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_SavedGifs](../types/messages_SavedGifs.md) +* Get saved gifs -$MadelineProto->[messages->getStickerSet](messages_getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) +* Get a stickerset -$MadelineProto->[messages->getWebPage](messages_getWebPage.md)(\['url' => [string](../types/string.md), 'hash' => [int](../types/int.md), \]) === [$WebPage](../types/WebPage.md) +* Get webpage preview -$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) === [$MessageMedia](../types/MessageMedia.md) +* Get webpage preview -$MadelineProto->[messages->hideReportSpam](messages_hideReportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Hide report spam popup -$MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Import chat invite -$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'archived' => [Bool](../types/Bool.md), \]) === [$messages\_StickerSetInstallResult](../types/messages_StickerSetInstallResult.md) +* Add a sticker set -$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) +* Convert chat to supergroup -$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Mark messages as read in secret chats -$MadelineProto->[messages->readFeaturedStickers](messages_readFeaturedStickers.md)(\['id' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) +* Mark new featured stickers as read -$MadelineProto->[messages->readHistory](messages_readHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Mark messages as read -$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Mark message as read -$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_ReceivedNotifyMessage](../types/ReceivedNotifyMessage.md) +* Mark messages as read -$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) +* You cannot use this method directly -$MadelineProto->[messages->reorderPinnedDialogs](messages_reorderPinnedDialogs.md)(\['force' => [Bool](../types/Bool.md), 'order' => \[[InputPeer](../types/InputPeer.md)\], \]) === [$Bool](../types/Bool.md) +* Reorder pinned dialogs -$MadelineProto->[messages->reorderStickerSets](messages_reorderStickerSets.md)(\['masks' => [Bool](../types/Bool.md), 'order' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) +* Reorder sticker sets -$MadelineProto->[messages->reportEncryptedSpam](messages_reportEncryptedSpam.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), \]) === [$Bool](../types/Bool.md) +* Report for spam a secret chat -$MadelineProto->[messages->reportSpam](messages_reportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Report a peer for spam -$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$MadelineProto->[messages->saveDraft](messages_saveDraft.md)(\['no_webpage' => [Bool](../types/Bool.md), 'reply_to_msg_id' => [int](../types/int.md), 'peer' => [InputPeer](../types/InputPeer.md), 'message' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Bool](../types/Bool.md) +* Save a message draft -$MadelineProto->[messages->saveGif](messages_saveGif.md)(\['id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Save a GIF -$MadelineProto->[messages->saveRecentSticker](messages_saveRecentSticker.md)(\['attached' => [Bool](../types/Bool.md), 'id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Add a sticker to recent stickers -$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) +* Search peers or messages -$MadelineProto->[messages->searchGifs](messages_searchGifs.md)(\['q' => [string](../types/string.md), 'offset' => [int](../types/int.md), \]) === [$messages\_FoundGifs](../types/messages_FoundGifs.md) +* Search gifs -$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) +* Global message search -$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send message to secret chat -$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) +* Send a file to a secret chat -$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send a service message to a secret chat -$MadelineProto->[messages->sendInlineBotResult](messages_sendInlineBotResult.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'query_id' => [long](../types/long.md), 'id' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Send a received bot result to the chat -$MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'media' => [InputMedia](../types/InputMedia.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \]) === [$Updates](../types/Updates.md) +* Send a media -$MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Updates](../types/Updates.md) +* Send a message -$MadelineProto->[messages->setBotCallbackAnswer](messages_setBotCallbackAnswer.md)(\['alert' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'message' => [string](../types/string.md), 'url' => [string](../types/string.md), 'cache_time' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Bots only: set the callback answer (after a button was clicked) -$MadelineProto->[messages->setBotPrecheckoutResults](messages_setBotPrecheckoutResults.md)(\['success' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'error' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Bots only: set precheckout results -$MadelineProto->[messages->setBotShippingResults](messages_setBotShippingResults.md)(\['query_id' => [long](../types/long.md), 'error' => [string](../types/string.md), 'shipping_options' => \[[ShippingOption](../types/ShippingOption.md)\], \]) === [$Bool](../types/Bool.md) +* Bots only: set shipping results -$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Send typing notification to secret chat -$MadelineProto->[messages->setGameScore](messages_setGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'force' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) +* Set the game score -$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) +* Bots only: set the results of an inline query -$MadelineProto->[messages->setInlineGameScore](messages_setInlineGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'force' => [Bool](../types/Bool.md), 'id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Set the game score of an inline message -$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) +* Change typing status -$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) +* Start a bot -$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Enable all users are admins in normal groups (not supergroups) -$MadelineProto->[messages->toggleDialogPin](messages_toggleDialogPin.md)(\['pinned' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Pin or unpin dialog -$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) +* Remove a sticker set *** -

$MadelineProto->[payments->clearSavedInfo](payments_clearSavedInfo.md)(\['credentials' => [Bool](../types/Bool.md), 'info' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +

* Clear saved payments info -$MadelineProto->[payments->getPaymentForm](payments_getPaymentForm.md)(\['msg_id' => [int](../types/int.md), \]) === [$payments\_PaymentForm](../types/payments_PaymentForm.md) +* Get payment form -$MadelineProto->[payments->getPaymentReceipt](payments_getPaymentReceipt.md)(\['msg_id' => [int](../types/int.md), \]) === [$payments\_PaymentReceipt](../types/payments_PaymentReceipt.md) +* Get payment receipt -$MadelineProto->[payments->getSavedInfo](payments_getSavedInfo.md)(\[\]) === [$payments\_SavedInfo](../types/payments_SavedInfo.md) +* Get saved payments info -$MadelineProto->[payments->sendPaymentForm](payments_sendPaymentForm.md)(\['msg_id' => [int](../types/int.md), 'requested_info_id' => [string](../types/string.md), 'shipping_option_id' => [string](../types/string.md), 'credentials' => [InputPaymentCredentials](../types/InputPaymentCredentials.md), \]) === [$payments\_PaymentResult](../types/payments_PaymentResult.md) +* Bots only: send payment form -$MadelineProto->[payments->validateRequestedInfo](payments_validateRequestedInfo.md)(\['save' => [Bool](../types/Bool.md), 'msg_id' => [int](../types/int.md), 'info' => [PaymentRequestedInfo](../types/PaymentRequestedInfo.md), \]) === [$payments\_ValidatedRequestedInfo](../types/payments_ValidatedRequestedInfo.md) +* Validate requested payment info *** -

$MadelineProto->[phone->acceptCall](phone_acceptCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'g_b' => [bytes](../types/bytes.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) +

* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls -$MadelineProto->[phone->confirmCall](phone_confirmCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'g_a' => [bytes](../types/bytes.md), 'key_fingerprint' => [long](../types/long.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls -$MadelineProto->[phone->discardCall](phone_discardCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'duration' => [int](../types/int.md), 'reason' => [PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md), 'connection_id' => [long](../types/long.md), \]) === [$Updates](../types/Updates.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls -$MadelineProto->[phone->getCallConfig](phone_getCallConfig.md)(\[\]) === [$DataJSON](../types/DataJSON.md) +* Get call configuration -$MadelineProto->[phone->receivedCall](phone_receivedCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), \]) === [$Bool](../types/Bool.md) +* Notify server that you received a call (server will refuse all incoming calls until the current call is over) -$MadelineProto->[phone->requestCall](phone_requestCall.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a_hash' => [bytes](../types/bytes.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls -$MadelineProto->[phone->saveCallDebug](phone_saveCallDebug.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'debug' => [DataJSON](../types/DataJSON.md), \]) === [$Bool](../types/Bool.md) +* Save call debugging info -$MadelineProto->[phone->setCallRating](phone_setCallRating.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'rating' => [int](../types/int.md), 'comment' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Set phone call rating *** -

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) +

* Delete profile photos -$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) +* Get the profile photos of a user -$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) +* Update the profile photo (use photos->uploadProfilePhoto to upload the photo) -$MadelineProto->[photos->uploadProfilePhoto](photos_uploadProfilePhoto.md)(\['file' => [InputFile](../types/InputFile.md), \]) === [$photos\_Photo](../types/photos_Photo.md) +* Upload profile photo *** -

$MadelineProto->[ping](ping.md)(\['ping_id' => [long](../types/long.md), \]) === [$Pong](../types/Pong.md) +

* pings the server -$MadelineProto->[ping_delay_disconnect](ping_delay_disconnect.md)(\['ping_id' => [long](../types/long.md), 'disconnect_delay' => [int](../types/int.md), \]) === [$Pong](../types/Pong.md) +* Pings the server and causes disconection if the same method is not called within ping_disconnect_delay *** -

$MadelineProto->[req_DH_params](req_DH_params.md)(\['nonce' => [int128](../types/int128.md), 'server_nonce' => [int128](../types/int128.md), 'p' => [string](../types/string.md), 'q' => [string](../types/string.md), 'public_key_fingerprint' => [long](../types/long.md), 'encrypted_data' => [string](../types/string.md), \]) === [$Server\_DH\_Params](../types/Server_DH_Params.md) +

* Requests Diffie-hellman parameters for key exchange -$MadelineProto->[req_pq](req_pq.md)(\['nonce' => [int128](../types/int128.md), \]) === [$ResPQ](../types/ResPQ.md) +* Requests PQ for factorization *** -

$MadelineProto->[rpc_drop_answer](rpc_drop_answer.md)(\['req_msg_id' => [long](../types/long.md), \]) === [$RpcDropAnswer](../types/RpcDropAnswer.md) +

* Do not send answer to provided request *** -

$MadelineProto->[set_client_DH_params](set_client_DH_params.md)(\['nonce' => [int128](../types/int128.md), 'server_nonce' => [int128](../types/int128.md), 'encrypted_data' => [string](../types/string.md), \]) === [$Set\_client\_DH\_params\_answer](../types/Set_client_DH_params_answer.md) +

* Sets client diffie-hellman parameters *** -

$MadelineProto->[updates->getChannelDifference](updates_getChannelDifference.md)(\['force' => [Bool](../types/Bool.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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates -$MadelineProto->[updates->getDifference](updates_getDifference.md)(\['pts' => [int](../types/int.md), 'pts_total_limit' => [int](../types/int.md), 'date' => [int](../types/int.md), 'qts' => [int](../types/int.md), \]) === [$updates\_Difference](../types/updates_Difference.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates -$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates *** -

$MadelineProto->[upload->getCdnFile](upload_getCdnFile.md)(\['file_token' => [bytes](../types/bytes.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$upload\_CdnFile](../types/upload_CdnFile.md) +

* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$MadelineProto->[upload->getWebFile](upload_getWebFile.md)(\['location' => [InputWebFileLocation](../types/InputWebFileLocation.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$upload\_WebFile](../types/upload_WebFile.md) +* Download a file through telegram -$MadelineProto->[upload->reuploadCdnFile](upload_reuploadCdnFile.md)(\['file_token' => [bytes](../types/bytes.md), 'request_token' => [bytes](../types/bytes.md), \]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info *** -

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) +

* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) +* Get info about users diff --git a/old_docs/API_docs_v66/methods/account_changePhone.md b/old_docs/API_docs_v66/methods/account_changePhone.md index aeb5c4bc..65f0b0d0 100644 --- a/old_docs/API_docs_v66/methods/account_changePhone.md +++ b/old_docs/API_docs_v66/methods/account_changePhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); diff --git a/old_docs/API_docs_v66/methods/account_checkUsername.md b/old_docs/API_docs_v66/methods/account_checkUsername.md index 0124bb38..08107762 100644 --- a/old_docs/API_docs_v66/methods/account_checkUsername.md +++ b/old_docs/API_docs_v66/methods/account_checkUsername.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v66/methods/account_confirmPhone.md b/old_docs/API_docs_v66/methods/account_confirmPhone.md index c6a1dba6..68490f35 100644 --- a/old_docs/API_docs_v66/methods/account_confirmPhone.md +++ b/old_docs/API_docs_v66/methods/account_confirmPhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->confirmPhone(['phone_code_hash' => 'string', 'phone_code' => 'string', ]); diff --git a/old_docs/API_docs_v66/methods/account_deleteAccount.md b/old_docs/API_docs_v66/methods/account_deleteAccount.md index e8b46c24..3a6f4700 100644 --- a/old_docs/API_docs_v66/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v66/methods/account_deleteAccount.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); diff --git a/old_docs/API_docs_v66/methods/account_getAccountTTL.md b/old_docs/API_docs_v66/methods/account_getAccountTTL.md index 0cdd0b98..ab6a6ea1 100644 --- a/old_docs/API_docs_v66/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v66/methods/account_getAccountTTL.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); diff --git a/old_docs/API_docs_v66/methods/account_getAuthorizations.md b/old_docs/API_docs_v66/methods/account_getAuthorizations.md index f92db8fe..303203e4 100644 --- a/old_docs/API_docs_v66/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v66/methods/account_getAuthorizations.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_Authorizations = $MadelineProto->account->getAuthorizations(); diff --git a/old_docs/API_docs_v66/methods/account_getNotifySettings.md b/old_docs/API_docs_v66/methods/account_getNotifySettings.md index f00be12c..ad492f49 100644 --- a/old_docs/API_docs_v66/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v66/methods/account_getNotifySettings.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); diff --git a/old_docs/API_docs_v66/methods/account_getPassword.md b/old_docs/API_docs_v66/methods/account_getPassword.md index c189421d..2692dab1 100644 --- a/old_docs/API_docs_v66/methods/account_getPassword.md +++ b/old_docs/API_docs_v66/methods/account_getPassword.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_Password = $MadelineProto->account->getPassword(); diff --git a/old_docs/API_docs_v66/methods/account_getPasswordSettings.md b/old_docs/API_docs_v66/methods/account_getPasswordSettings.md index 96cb953e..2039d405 100644 --- a/old_docs/API_docs_v66/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v66/methods/account_getPasswordSettings.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PasswordSettings = $MadelineProto->account->getPasswordSettings(['current_password_hash' => 'bytes', ]); diff --git a/old_docs/API_docs_v66/methods/account_getPrivacy.md b/old_docs/API_docs_v66/methods/account_getPrivacy.md index 979bfb94..5480ffbb 100644 --- a/old_docs/API_docs_v66/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v66/methods/account_getPrivacy.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); diff --git a/old_docs/API_docs_v66/methods/account_getTmpPassword.md b/old_docs/API_docs_v66/methods/account_getTmpPassword.md index a90f9b2b..01b1ebfc 100644 --- a/old_docs/API_docs_v66/methods/account_getTmpPassword.md +++ b/old_docs/API_docs_v66/methods/account_getTmpPassword.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_TmpPassword = $MadelineProto->account->getTmpPassword(['password_hash' => 'bytes', 'period' => int, ]); diff --git a/old_docs/API_docs_v66/methods/account_getWallPapers.md b/old_docs/API_docs_v66/methods/account_getWallPapers.md index 89b281be..7c8bff39 100644 --- a/old_docs/API_docs_v66/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v66/methods/account_getWallPapers.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); diff --git a/old_docs/API_docs_v66/methods/account_registerDevice.md b/old_docs/API_docs_v66/methods/account_registerDevice.md index cd28abcd..4e148a7f 100644 --- a/old_docs/API_docs_v66/methods/account_registerDevice.md +++ b/old_docs/API_docs_v66/methods/account_registerDevice.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', ]); diff --git a/old_docs/API_docs_v66/methods/account_reportPeer.md b/old_docs/API_docs_v66/methods/account_reportPeer.md index a07c87d0..c5fe7073 100644 --- a/old_docs/API_docs_v66/methods/account_reportPeer.md +++ b/old_docs/API_docs_v66/methods/account_reportPeer.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->reportPeer(['peer' => InputPeer, 'reason' => ReportReason, ]); diff --git a/old_docs/API_docs_v66/methods/account_resetAuthorization.md b/old_docs/API_docs_v66/methods/account_resetAuthorization.md index 4155d3c8..543aee08 100644 --- a/old_docs/API_docs_v66/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v66/methods/account_resetAuthorization.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetAuthorization(['hash' => long, ]); diff --git a/old_docs/API_docs_v66/methods/account_resetNotifySettings.md b/old_docs/API_docs_v66/methods/account_resetNotifySettings.md index ccc836a9..557373b0 100644 --- a/old_docs/API_docs_v66/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v66/methods/account_resetNotifySettings.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); diff --git a/old_docs/API_docs_v66/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v66/methods/account_sendChangePhoneCode.md index c9f9c174..bdf7331f 100644 --- a/old_docs/API_docs_v66/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v66/methods/account_sendChangePhoneCode.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendChangePhoneCode(['allow_flashcall' => Bool, 'phone_number' => 'string', 'current_number' => Bool, ]); diff --git a/old_docs/API_docs_v66/methods/account_sendConfirmPhoneCode.md b/old_docs/API_docs_v66/methods/account_sendConfirmPhoneCode.md index 3785ba75..86035d19 100644 --- a/old_docs/API_docs_v66/methods/account_sendConfirmPhoneCode.md +++ b/old_docs/API_docs_v66/methods/account_sendConfirmPhoneCode.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendConfirmPhoneCode(['allow_flashcall' => Bool, 'hash' => 'string', 'current_number' => Bool, ]); diff --git a/old_docs/API_docs_v66/methods/account_setAccountTTL.md b/old_docs/API_docs_v66/methods/account_setAccountTTL.md index 5100e62e..bacdd77a 100644 --- a/old_docs/API_docs_v66/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v66/methods/account_setAccountTTL.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); diff --git a/old_docs/API_docs_v66/methods/account_setPrivacy.md b/old_docs/API_docs_v66/methods/account_setPrivacy.md index fbcedae7..6e24ded7 100644 --- a/old_docs/API_docs_v66/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v66/methods/account_setPrivacy.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); diff --git a/old_docs/API_docs_v66/methods/account_unregisterDevice.md b/old_docs/API_docs_v66/methods/account_unregisterDevice.md index 1d2b7670..b666d91a 100644 --- a/old_docs/API_docs_v66/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v66/methods/account_unregisterDevice.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); diff --git a/old_docs/API_docs_v66/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v66/methods/account_updateDeviceLocked.md index ef816501..cd52093a 100644 --- a/old_docs/API_docs_v66/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v66/methods/account_updateDeviceLocked.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); diff --git a/old_docs/API_docs_v66/methods/account_updateNotifySettings.md b/old_docs/API_docs_v66/methods/account_updateNotifySettings.md index 18cbdb75..db020309 100644 --- a/old_docs/API_docs_v66/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v66/methods/account_updateNotifySettings.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); diff --git a/old_docs/API_docs_v66/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v66/methods/account_updatePasswordSettings.md index 0754dd63..8af1e37f 100644 --- a/old_docs/API_docs_v66/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v66/methods/account_updatePasswordSettings.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updatePasswordSettings(['current_password_hash' => 'bytes', 'new_settings' => account_PasswordInputSettings, ]); diff --git a/old_docs/API_docs_v66/methods/account_updateProfile.md b/old_docs/API_docs_v66/methods/account_updateProfile.md index e24ef2f5..59629188 100644 --- a/old_docs/API_docs_v66/methods/account_updateProfile.md +++ b/old_docs/API_docs_v66/methods/account_updateProfile.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', 'about' => 'string', ]); diff --git a/old_docs/API_docs_v66/methods/account_updateStatus.md b/old_docs/API_docs_v66/methods/account_updateStatus.md index 4b049e65..50b99b1e 100644 --- a/old_docs/API_docs_v66/methods/account_updateStatus.md +++ b/old_docs/API_docs_v66/methods/account_updateStatus.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); diff --git a/old_docs/API_docs_v66/methods/account_updateUsername.md b/old_docs/API_docs_v66/methods/account_updateUsername.md index 08d2abe0..7276e2aa 100644 --- a/old_docs/API_docs_v66/methods/account_updateUsername.md +++ b/old_docs/API_docs_v66/methods/account_updateUsername.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v66/methods/api_README.md b/old_docs/API_docs_v66/methods/api_README.md new file mode 100644 index 00000000..3b979964 --- /dev/null +++ b/old_docs/API_docs_v66/methods/api_README.md @@ -0,0 +1,512 @@ +--- +title: Methods +description: List of methods +--- +# Methods +[Back to API documentation index](..) + +[Go to the new description-version method index](index.html) + +$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); + +$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); + +$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); + +$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); + +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); + + +$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); + +$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); + +$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); + +$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); + +$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); + + +$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); + +$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); + +*** +

$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) + +$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->confirmPhone](account_confirmPhone.md)(\['phone_code_hash' => [string](../types/string.md), 'phone_code' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) + +$MadelineProto->[account->getAuthorizations](account_getAuthorizations.md)(\[\]) === [$account\_Authorizations](../types/account_Authorizations.md) + +$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) + +$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md) + +$MadelineProto->[account->getPasswordSettings](account_getPasswordSettings.md)(\['current_password_hash' => [bytes](../types/bytes.md), \]) === [$account\_PasswordSettings](../types/account_PasswordSettings.md) + +$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->getTmpPassword](account_getTmpPassword.md)(\['password_hash' => [bytes](../types/bytes.md), 'period' => [int](../types/int.md), \]) === [$account\_TmpPassword](../types/account_TmpPassword.md) + +$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) + +$MadelineProto->[account->registerDevice](account_registerDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->reportPeer](account_reportPeer.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reason' => [ReportReason](../types/ReportReason.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[account->sendConfirmPhoneCode](account_sendConfirmPhoneCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'hash' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) + +$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$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) + +$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) + +*** +

$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) + +$MadelineProto->[auth->cancelCode](auth_cancelCode.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) + +$MadelineProto->[auth->dropTempAuthKeys](auth_dropTempAuthKeys.md)(\['except_auth_keys' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) + +$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$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) + +$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->recoverPassword](auth_recoverPassword.md)(\['code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->requestPasswordRecovery](auth_requestPasswordRecovery.md)(\[\]) === [$auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) + +$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) + +$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->sendCode](auth_sendCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'phone_number' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), 'api_id' => [int](../types/int.md), 'api_hash' => [string](../types/string.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) + +$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$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) + +*** +

$MadelineProto->[bots->answerWebhookJSONQuery](bots_answerWebhookJSONQuery.md)(\['query_id' => [long](../types/long.md), 'data' => [DataJSON](../types/DataJSON.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[bots->sendCustomRequest](bots_sendCustomRequest.md)(\['custom_method' => [string](../types/string.md), 'params' => [DataJSON](../types/DataJSON.md), \]) === [$DataJSON](../types/DataJSON.md) + +*** +

$MadelineProto->[channels->checkUsername](channels_checkUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->deleteChannel](channels_deleteChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->deleteMessages](channels_deleteMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[channels->deleteUserHistory](channels_deleteUserHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[channels->editAbout](channels_editAbout.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'about' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->editPhoto](channels_editPhoto.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->editTitle](channels_editTitle.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->exportInvite](channels_exportInvite.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) + +$MadelineProto->[channels->exportMessageLink](channels_exportMessageLink.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => [int](../types/int.md), \]) === [$ExportedMessageLink](../types/ExportedMessageLink.md) + +$MadelineProto->[channels->getAdminedPublicChannels](channels_getAdminedPublicChannels.md)(\[\]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[channels->getChannels](channels_getChannels.md)(\['id' => \[[InputChannel](../types/InputChannel.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[channels->getFullChannel](channels_getFullChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$MadelineProto->[channels->getMessages](channels_getMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) + +$MadelineProto->[channels->getParticipant](channels_getParticipant.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) + +$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) + +$MadelineProto->[channels->inviteToChannel](channels_inviteToChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'users' => \[[InputUser](../types/InputUser.md)\], \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->joinChannel](channels_joinChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$MadelineProto->[channels->leaveChannel](channels_leaveChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->readHistory](channels_readHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->toggleInvites](channels_toggleInvites.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->toggleSignatures](channels_toggleSignatures.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$MadelineProto->[channels->updateUsername](channels_updateUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) + +$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) + +$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) + +$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [string](../types/string.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) + +$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) + +$MadelineProto->[contacts->getTopPeers](contacts_getTopPeers.md)(\['correspondents' => [Bool](../types/Bool.md), 'bots_pm' => [Bool](../types/Bool.md), 'bots_inline' => [Bool](../types/Bool.md), 'groups' => [Bool](../types/Bool.md), 'channels' => [Bool](../types/Bool.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'hash' => [int](../types/int.md), \]) === [$contacts\_TopPeers](../types/contacts_TopPeers.md) + +$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) + +$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], 'replace' => [Bool](../types/Bool.md), \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) + +$MadelineProto->[contacts->resetTopPeerRating](contacts_resetTopPeerRating.md)(\['category' => [TopPeerCategory](../types/TopPeerCategory.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) + +$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) + +$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[contest->saveDeveloperInfo](contest_saveDeveloperInfo.md)(\['vk_id' => [int](../types/int.md), 'name' => [string](../types/string.md), 'phone_number' => [string](../types/string.md), 'age' => [int](../types/int.md), 'city' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[destroy_auth_key](destroy_auth_key.md)(\[\]) === [$DestroyAuthKeyRes](../types/DestroyAuthKeyRes.md) + +$MadelineProto->[destroy_session](destroy_session.md)(\['session_id' => [long](../types/long.md), \]) === [$DestroySessionRes](../types/DestroySessionRes.md) + +*** +

$MadelineProto->[get_future_salts](get_future_salts.md)(\['num' => [int](../types/int.md), \]) === [$FutureSalts](../types/FutureSalts.md) + +*** +

$MadelineProto->[help->getAppChangelog](help_getAppChangelog.md)(\['prev_app_version' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[help->getAppUpdate](help_getAppUpdate.md)(\[\]) === [$help\_AppUpdate](../types/help_AppUpdate.md) + +$MadelineProto->[help->getCdnConfig](help_getCdnConfig.md)(\[\]) === [$CdnConfig](../types/CdnConfig.md) + +$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) + +$MadelineProto->[help->getInviteText](help_getInviteText.md)(\[\]) === [$help\_InviteText](../types/help_InviteText.md) + +$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) + +$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) + +$MadelineProto->[help->getTermsOfService](help_getTermsOfService.md)(\[\]) === [$help\_TermsOfService](../types/help_TermsOfService.md) + +$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[help->setBotUpdatesStatus](help_setBotUpdatesStatus.md)(\['pending_updates_count' => [int](../types/int.md), 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +*** +

$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) + +*** +

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeWithoutUpdates](invokeWithoutUpdates.md)(\['query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$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) + +$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) + +$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md) + +$MadelineProto->[messages->clearRecentStickers](messages_clearRecentStickers.md)(\['attached' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['just_clear' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['revoke' => [Bool](../types/Bool.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$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) + +$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) + +$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'with_my_score' => [Bool](../types/Bool.md), 'from_peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], 'to_peer' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->getAllChats](messages_getAllChats.md)(\['except_ids' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[messages->getAllDrafts](messages_getAllDrafts.md)(\[\]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) + +$MadelineProto->[messages->getArchivedStickers](messages_getArchivedStickers.md)(\['masks' => [Bool](../types/Bool.md), 'offset_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), \]) === [$messages\_ArchivedStickers](../types/messages_ArchivedStickers.md) + +$MadelineProto->[messages->getAttachedStickers](messages_getAttachedStickers.md)(\['media' => [InputStickeredMedia](../types/InputStickeredMedia.md), \]) === [$Vector\_of\_StickerSetCovered](../types/StickerSetCovered.md) + +$MadelineProto->[messages->getBotCallbackAnswer](messages_getBotCallbackAnswer.md)(\['game' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'msg_id' => [int](../types/int.md), 'data' => [bytes](../types/bytes.md), \]) === [$messages\_BotCallbackAnswer](../types/messages_BotCallbackAnswer.md) + +$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[messages->getCommonChats](messages_getCommonChats.md)(\['user_id' => [InputUser](../types/InputUser.md), 'max_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) + +$MadelineProto->[messages->getDialogs](messages_getDialogs.md)(\['exclude_pinned' => [Bool](../types/Bool.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) + +$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) + +$MadelineProto->[messages->getFeaturedStickers](messages_getFeaturedStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_FeaturedStickers](../types/messages_FeaturedStickers.md) + +$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$MadelineProto->[messages->getGameHighScores](messages_getGameHighScores.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_HighScores](../types/messages_HighScores.md) + +$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) + +$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) + +$MadelineProto->[messages->getInlineGameHighScores](messages_getInlineGameHighScores.md)(\['id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_HighScores](../types/messages_HighScores.md) + +$MadelineProto->[messages->getMaskStickers](messages_getMaskStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) + +$MadelineProto->[messages->getMessageEditData](messages_getMessageEditData.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$messages\_MessageEditData](../types/messages_MessageEditData.md) + +$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) + +$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) + +$MadelineProto->[messages->getPeerDialogs](messages_getPeerDialogs.md)(\['peers' => \[[InputPeer](../types/InputPeer.md)\], \]) === [$messages\_PeerDialogs](../types/messages_PeerDialogs.md) + +$MadelineProto->[messages->getPeerSettings](messages_getPeerSettings.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$PeerSettings](../types/PeerSettings.md) + +$MadelineProto->[messages->getPinnedDialogs](messages_getPinnedDialogs.md)(\[\]) === [$messages\_PeerDialogs](../types/messages_PeerDialogs.md) + +$MadelineProto->[messages->getRecentStickers](messages_getRecentStickers.md)(\['attached' => [Bool](../types/Bool.md), 'hash' => [int](../types/int.md), \]) === [$messages\_RecentStickers](../types/messages_RecentStickers.md) + +$MadelineProto->[messages->getSavedGifs](messages_getSavedGifs.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_SavedGifs](../types/messages_SavedGifs.md) + +$MadelineProto->[messages->getStickerSet](messages_getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +$MadelineProto->[messages->getWebPage](messages_getWebPage.md)(\['url' => [string](../types/string.md), 'hash' => [int](../types/int.md), \]) === [$WebPage](../types/WebPage.md) + +$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) === [$MessageMedia](../types/MessageMedia.md) + +$MadelineProto->[messages->hideReportSpam](messages_hideReportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'archived' => [Bool](../types/Bool.md), \]) === [$messages\_StickerSetInstallResult](../types/messages_StickerSetInstallResult.md) + +$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->readFeaturedStickers](messages_readFeaturedStickers.md)(\['id' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->readHistory](messages_readHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_ReceivedNotifyMessage](../types/ReceivedNotifyMessage.md) + +$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) + +$MadelineProto->[messages->reorderPinnedDialogs](messages_reorderPinnedDialogs.md)(\['force' => [Bool](../types/Bool.md), 'order' => \[[InputPeer](../types/InputPeer.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->reorderStickerSets](messages_reorderStickerSets.md)(\['masks' => [Bool](../types/Bool.md), 'order' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->reportEncryptedSpam](messages_reportEncryptedSpam.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->reportSpam](messages_reportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) + +$MadelineProto->[messages->saveDraft](messages_saveDraft.md)(\['no_webpage' => [Bool](../types/Bool.md), 'reply_to_msg_id' => [int](../types/int.md), 'peer' => [InputPeer](../types/InputPeer.md), 'message' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->saveGif](messages_saveGif.md)(\['id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->saveRecentSticker](messages_saveRecentSticker.md)(\['attached' => [Bool](../types/Bool.md), 'id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->searchGifs](messages_searchGifs.md)(\['q' => [string](../types/string.md), 'offset' => [int](../types/int.md), \]) === [$messages\_FoundGifs](../types/messages_FoundGifs.md) + +$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) + +$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$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) + +$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$MadelineProto->[messages->sendInlineBotResult](messages_sendInlineBotResult.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'query_id' => [long](../types/long.md), 'id' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'media' => [InputMedia](../types/InputMedia.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->setBotCallbackAnswer](messages_setBotCallbackAnswer.md)(\['alert' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'message' => [string](../types/string.md), 'url' => [string](../types/string.md), 'cache_time' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setBotPrecheckoutResults](messages_setBotPrecheckoutResults.md)(\['success' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'error' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setBotShippingResults](messages_setBotShippingResults.md)(\['query_id' => [long](../types/long.md), 'error' => [string](../types/string.md), 'shipping_options' => \[[ShippingOption](../types/ShippingOption.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setGameScore](messages_setGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'force' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$MadelineProto->[messages->setInlineGameScore](messages_setInlineGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'force' => [Bool](../types/Bool.md), 'id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->toggleDialogPin](messages_toggleDialogPin.md)(\['pinned' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[payments->clearSavedInfo](payments_clearSavedInfo.md)(\['credentials' => [Bool](../types/Bool.md), 'info' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[payments->getPaymentForm](payments_getPaymentForm.md)(\['msg_id' => [int](../types/int.md), \]) === [$payments\_PaymentForm](../types/payments_PaymentForm.md) + +$MadelineProto->[payments->getPaymentReceipt](payments_getPaymentReceipt.md)(\['msg_id' => [int](../types/int.md), \]) === [$payments\_PaymentReceipt](../types/payments_PaymentReceipt.md) + +$MadelineProto->[payments->getSavedInfo](payments_getSavedInfo.md)(\[\]) === [$payments\_SavedInfo](../types/payments_SavedInfo.md) + +$MadelineProto->[payments->sendPaymentForm](payments_sendPaymentForm.md)(\['msg_id' => [int](../types/int.md), 'requested_info_id' => [string](../types/string.md), 'shipping_option_id' => [string](../types/string.md), 'credentials' => [InputPaymentCredentials](../types/InputPaymentCredentials.md), \]) === [$payments\_PaymentResult](../types/payments_PaymentResult.md) + +$MadelineProto->[payments->validateRequestedInfo](payments_validateRequestedInfo.md)(\['save' => [Bool](../types/Bool.md), 'msg_id' => [int](../types/int.md), 'info' => [PaymentRequestedInfo](../types/PaymentRequestedInfo.md), \]) === [$payments\_ValidatedRequestedInfo](../types/payments_ValidatedRequestedInfo.md) + +*** +

$MadelineProto->[phone->acceptCall](phone_acceptCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'g_b' => [bytes](../types/bytes.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) + +$MadelineProto->[phone->confirmCall](phone_confirmCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'g_a' => [bytes](../types/bytes.md), 'key_fingerprint' => [long](../types/long.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) + +$MadelineProto->[phone->discardCall](phone_discardCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'duration' => [int](../types/int.md), 'reason' => [PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md), 'connection_id' => [long](../types/long.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[phone->getCallConfig](phone_getCallConfig.md)(\[\]) === [$DataJSON](../types/DataJSON.md) + +$MadelineProto->[phone->receivedCall](phone_receivedCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[phone->requestCall](phone_requestCall.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a_hash' => [bytes](../types/bytes.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) + +$MadelineProto->[phone->saveCallDebug](phone_saveCallDebug.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'debug' => [DataJSON](../types/DataJSON.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[phone->setCallRating](phone_setCallRating.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'rating' => [int](../types/int.md), 'comment' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +*** +

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) + +$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) + +$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) + +$MadelineProto->[photos->uploadProfilePhoto](photos_uploadProfilePhoto.md)(\['file' => [InputFile](../types/InputFile.md), \]) === [$photos\_Photo](../types/photos_Photo.md) + +*** +

$MadelineProto->[ping](ping.md)(\['ping_id' => [long](../types/long.md), \]) === [$Pong](../types/Pong.md) + +$MadelineProto->[ping_delay_disconnect](ping_delay_disconnect.md)(\['ping_id' => [long](../types/long.md), 'disconnect_delay' => [int](../types/int.md), \]) === [$Pong](../types/Pong.md) + +*** +

$MadelineProto->[req_DH_params](req_DH_params.md)(\['nonce' => [int128](../types/int128.md), 'server_nonce' => [int128](../types/int128.md), 'p' => [string](../types/string.md), 'q' => [string](../types/string.md), 'public_key_fingerprint' => [long](../types/long.md), 'encrypted_data' => [string](../types/string.md), \]) === [$Server\_DH\_Params](../types/Server_DH_Params.md) + +$MadelineProto->[req_pq](req_pq.md)(\['nonce' => [int128](../types/int128.md), \]) === [$ResPQ](../types/ResPQ.md) + +*** +

$MadelineProto->[rpc_drop_answer](rpc_drop_answer.md)(\['req_msg_id' => [long](../types/long.md), \]) === [$RpcDropAnswer](../types/RpcDropAnswer.md) + +*** +

$MadelineProto->[set_client_DH_params](set_client_DH_params.md)(\['nonce' => [int128](../types/int128.md), 'server_nonce' => [int128](../types/int128.md), 'encrypted_data' => [string](../types/string.md), \]) === [$Set\_client\_DH\_params\_answer](../types/Set_client_DH_params_answer.md) + +*** +

$MadelineProto->[updates->getChannelDifference](updates_getChannelDifference.md)(\['force' => [Bool](../types/Bool.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) + +$MadelineProto->[updates->getDifference](updates_getDifference.md)(\['pts' => [int](../types/int.md), 'pts_total_limit' => [int](../types/int.md), 'date' => [int](../types/int.md), 'qts' => [int](../types/int.md), \]) === [$updates\_Difference](../types/updates_Difference.md) + +$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) + +*** +

$MadelineProto->[upload->getCdnFile](upload_getCdnFile.md)(\['file_token' => [bytes](../types/bytes.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$upload\_CdnFile](../types/upload_CdnFile.md) + +$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) + +$MadelineProto->[upload->getWebFile](upload_getWebFile.md)(\['location' => [InputWebFileLocation](../types/InputWebFileLocation.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$upload\_WebFile](../types/upload_WebFile.md) + +$MadelineProto->[upload->reuploadCdnFile](upload_reuploadCdnFile.md)(\['file_token' => [bytes](../types/bytes.md), 'request_token' => [bytes](../types/bytes.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$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) + +*** +

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) + +$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) + diff --git a/old_docs/API_docs_v66/methods/auth_cancelCode.md b/old_docs/API_docs_v66/methods/auth_cancelCode.md index 2ad15548..52b85d4c 100644 --- a/old_docs/API_docs_v66/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v66/methods/auth_cancelCode.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->cancelCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v66/methods/auth_checkPhone.md b/old_docs/API_docs_v66/methods/auth_checkPhone.md index 291221de..1826ce63 100644 --- a/old_docs/API_docs_v66/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v66/methods/auth_checkPhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); diff --git a/old_docs/API_docs_v66/methods/auth_dropTempAuthKeys.md b/old_docs/API_docs_v66/methods/auth_dropTempAuthKeys.md index 6474bbb3..5aa98b3b 100644 --- a/old_docs/API_docs_v66/methods/auth_dropTempAuthKeys.md +++ b/old_docs/API_docs_v66/methods/auth_dropTempAuthKeys.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->dropTempAuthKeys(['except_auth_keys' => [long, long], ]); diff --git a/old_docs/API_docs_v66/methods/auth_recoverPassword.md b/old_docs/API_docs_v66/methods/auth_recoverPassword.md index cdc9bd7d..5e37b0f3 100644 --- a/old_docs/API_docs_v66/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v66/methods/auth_recoverPassword.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_Authorization = $MadelineProto->auth->recoverPassword(['code' => 'string', ]); diff --git a/old_docs/API_docs_v66/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v66/methods/auth_requestPasswordRecovery.md index e18c6c93..c69d0c49 100644 --- a/old_docs/API_docs_v66/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v66/methods/auth_requestPasswordRecovery.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_PasswordRecovery = $MadelineProto->auth->requestPasswordRecovery(); diff --git a/old_docs/API_docs_v66/methods/auth_resendCode.md b/old_docs/API_docs_v66/methods/auth_resendCode.md index de437402..253480a3 100644 --- a/old_docs/API_docs_v66/methods/auth_resendCode.md +++ b/old_docs/API_docs_v66/methods/auth_resendCode.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_SentCode = $MadelineProto->auth->resendCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v66/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v66/methods/auth_resetAuthorizations.md index 47feea16..a46c880d 100644 --- a/old_docs/API_docs_v66/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v66/methods/auth_resetAuthorizations.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); diff --git a/old_docs/API_docs_v66/methods/auth_sendInvites.md b/old_docs/API_docs_v66/methods/auth_sendInvites.md index be32fe6b..9b88b4a3 100644 --- a/old_docs/API_docs_v66/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v66/methods/auth_sendInvites.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); diff --git a/old_docs/API_docs_v66/methods/bots_answerWebhookJSONQuery.md b/old_docs/API_docs_v66/methods/bots_answerWebhookJSONQuery.md index 61056bb4..40cb0477 100644 --- a/old_docs/API_docs_v66/methods/bots_answerWebhookJSONQuery.md +++ b/old_docs/API_docs_v66/methods/bots_answerWebhookJSONQuery.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->bots->answerWebhookJSONQuery(['query_id' => long, 'data' => DataJSON, ]); diff --git a/old_docs/API_docs_v66/methods/bots_sendCustomRequest.md b/old_docs/API_docs_v66/methods/bots_sendCustomRequest.md index fc8e764d..5a7f4e86 100644 --- a/old_docs/API_docs_v66/methods/bots_sendCustomRequest.md +++ b/old_docs/API_docs_v66/methods/bots_sendCustomRequest.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $DataJSON = $MadelineProto->bots->sendCustomRequest(['custom_method' => 'string', 'params' => DataJSON, ]); diff --git a/old_docs/API_docs_v66/methods/channels_checkUsername.md b/old_docs/API_docs_v66/methods/channels_checkUsername.md index 7bc7c245..7e3d5a89 100644 --- a/old_docs/API_docs_v66/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v66/methods/channels_checkUsername.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->checkUsername(['channel' => InputChannel, 'username' => 'string', ]); diff --git a/old_docs/API_docs_v66/methods/channels_createChannel.md b/old_docs/API_docs_v66/methods/channels_createChannel.md index 1305e4fb..a5ddc379 100644 --- a/old_docs/API_docs_v66/methods/channels_createChannel.md +++ b/old_docs/API_docs_v66/methods/channels_createChannel.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->createChannel(['broadcast' => Bool, 'megagroup' => Bool, 'title' => 'string', 'about' => 'string', ]); diff --git a/old_docs/API_docs_v66/methods/channels_deleteChannel.md b/old_docs/API_docs_v66/methods/channels_deleteChannel.md index e660d25c..69dad9a3 100644 --- a/old_docs/API_docs_v66/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v66/methods/channels_deleteChannel.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->deleteChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v66/methods/channels_deleteMessages.md b/old_docs/API_docs_v66/methods/channels_deleteMessages.md index fb9d3cc2..b12270b3 100644 --- a/old_docs/API_docs_v66/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v66/methods/channels_deleteMessages.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v66/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v66/methods/channels_deleteUserHistory.md index fbe34341..75f531bb 100644 --- a/old_docs/API_docs_v66/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v66/methods/channels_deleteUserHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->channels->deleteUserHistory(['channel' => InputChannel, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v66/methods/channels_editAbout.md b/old_docs/API_docs_v66/methods/channels_editAbout.md index 8908f29e..67521065 100644 --- a/old_docs/API_docs_v66/methods/channels_editAbout.md +++ b/old_docs/API_docs_v66/methods/channels_editAbout.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->editAbout(['channel' => InputChannel, 'about' => 'string', ]); diff --git a/old_docs/API_docs_v66/methods/channels_editAdmin.md b/old_docs/API_docs_v66/methods/channels_editAdmin.md index 01662a1d..7b6cc0f1 100644 --- a/old_docs/API_docs_v66/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v66/methods/channels_editAdmin.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editAdmin(['channel' => InputChannel, 'user_id' => InputUser, 'role' => ChannelParticipantRole, ]); diff --git a/old_docs/API_docs_v66/methods/channels_editPhoto.md b/old_docs/API_docs_v66/methods/channels_editPhoto.md index 9ccd864f..c854c64a 100644 --- a/old_docs/API_docs_v66/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v66/methods/channels_editPhoto.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editPhoto(['channel' => InputChannel, 'photo' => InputChatPhoto, ]); diff --git a/old_docs/API_docs_v66/methods/channels_editTitle.md b/old_docs/API_docs_v66/methods/channels_editTitle.md index b1024faf..9bc6773e 100644 --- a/old_docs/API_docs_v66/methods/channels_editTitle.md +++ b/old_docs/API_docs_v66/methods/channels_editTitle.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editTitle(['channel' => InputChannel, 'title' => 'string', ]); diff --git a/old_docs/API_docs_v66/methods/channels_exportInvite.md b/old_docs/API_docs_v66/methods/channels_exportInvite.md index f0c737d5..ca65dcc8 100644 --- a/old_docs/API_docs_v66/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v66/methods/channels_exportInvite.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedChatInvite = $MadelineProto->channels->exportInvite(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v66/methods/channels_exportMessageLink.md b/old_docs/API_docs_v66/methods/channels_exportMessageLink.md index f910b594..b4a3c645 100644 --- a/old_docs/API_docs_v66/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v66/methods/channels_exportMessageLink.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedMessageLink = $MadelineProto->channels->exportMessageLink(['channel' => InputChannel, 'id' => int, ]); diff --git a/old_docs/API_docs_v66/methods/channels_getAdminedPublicChannels.md b/old_docs/API_docs_v66/methods/channels_getAdminedPublicChannels.md index 9646f529..febc44f9 100644 --- a/old_docs/API_docs_v66/methods/channels_getAdminedPublicChannels.md +++ b/old_docs/API_docs_v66/methods/channels_getAdminedPublicChannels.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->channels->getAdminedPublicChannels(); diff --git a/old_docs/API_docs_v66/methods/channels_getChannels.md b/old_docs/API_docs_v66/methods/channels_getChannels.md index 9cd9e798..af22556f 100644 --- a/old_docs/API_docs_v66/methods/channels_getChannels.md +++ b/old_docs/API_docs_v66/methods/channels_getChannels.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel, InputChannel], ]); diff --git a/old_docs/API_docs_v66/methods/channels_getMessages.md b/old_docs/API_docs_v66/methods/channels_getMessages.md index cc944fe5..eda13d0b 100644 --- a/old_docs/API_docs_v66/methods/channels_getMessages.md +++ b/old_docs/API_docs_v66/methods/channels_getMessages.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v66/methods/channels_getParticipant.md b/old_docs/API_docs_v66/methods/channels_getParticipant.md index db9b1fc6..be5fe96a 100644 --- a/old_docs/API_docs_v66/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v66/methods/channels_getParticipant.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $channels_ChannelParticipant = $MadelineProto->channels->getParticipant(['channel' => InputChannel, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v66/methods/channels_getParticipants.md b/old_docs/API_docs_v66/methods/channels_getParticipants.md index 96662466..6a27016b 100644 --- a/old_docs/API_docs_v66/methods/channels_getParticipants.md +++ b/old_docs/API_docs_v66/methods/channels_getParticipants.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $channels_ChannelParticipants = $MadelineProto->channels->getParticipants(['channel' => InputChannel, 'filter' => ChannelParticipantsFilter, 'offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v66/methods/channels_inviteToChannel.md b/old_docs/API_docs_v66/methods/channels_inviteToChannel.md index 676f800c..e7d12db7 100644 --- a/old_docs/API_docs_v66/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v66/methods/channels_inviteToChannel.md @@ -52,12 +52,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v66/methods/channels_joinChannel.md b/old_docs/API_docs_v66/methods/channels_joinChannel.md index 721f707c..3ac2b326 100644 --- a/old_docs/API_docs_v66/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v66/methods/channels_joinChannel.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->joinChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v66/methods/channels_kickFromChannel.md b/old_docs/API_docs_v66/methods/channels_kickFromChannel.md index bf8bb5b8..8f6c92be 100644 --- a/old_docs/API_docs_v66/methods/channels_kickFromChannel.md +++ b/old_docs/API_docs_v66/methods/channels_kickFromChannel.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->kickFromChannel(['channel' => InputChannel, 'user_id' => InputUser, 'kicked' => Bool, ]); diff --git a/old_docs/API_docs_v66/methods/channels_leaveChannel.md b/old_docs/API_docs_v66/methods/channels_leaveChannel.md index 7f02e08c..95b60a90 100644 --- a/old_docs/API_docs_v66/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v66/methods/channels_leaveChannel.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->leaveChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v66/methods/channels_readHistory.md b/old_docs/API_docs_v66/methods/channels_readHistory.md index cca891f0..c6b14541 100644 --- a/old_docs/API_docs_v66/methods/channels_readHistory.md +++ b/old_docs/API_docs_v66/methods/channels_readHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->readHistory(['channel' => InputChannel, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v66/methods/channels_reportSpam.md b/old_docs/API_docs_v66/methods/channels_reportSpam.md index 09af14e0..ca5c28f5 100644 --- a/old_docs/API_docs_v66/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v66/methods/channels_reportSpam.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v66/methods/channels_toggleInvites.md b/old_docs/API_docs_v66/methods/channels_toggleInvites.md index 5b541f67..e9e6450d 100644 --- a/old_docs/API_docs_v66/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v66/methods/channels_toggleInvites.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->toggleInvites(['channel' => InputChannel, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v66/methods/channels_toggleSignatures.md b/old_docs/API_docs_v66/methods/channels_toggleSignatures.md index f233a8e1..36d1eccb 100644 --- a/old_docs/API_docs_v66/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v66/methods/channels_toggleSignatures.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->toggleSignatures(['channel' => InputChannel, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v66/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v66/methods/channels_updatePinnedMessage.md index f06d1f0f..f8d10ece 100644 --- a/old_docs/API_docs_v66/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v66/methods/channels_updatePinnedMessage.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->updatePinnedMessage(['silent' => Bool, 'channel' => InputChannel, 'id' => int, ]); diff --git a/old_docs/API_docs_v66/methods/channels_updateUsername.md b/old_docs/API_docs_v66/methods/channels_updateUsername.md index ad34490a..2093b6ce 100644 --- a/old_docs/API_docs_v66/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v66/methods/channels_updateUsername.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->updateUsername(['channel' => InputChannel, 'username' => 'string', ]); diff --git a/old_docs/API_docs_v66/methods/contacts_block.md b/old_docs/API_docs_v66/methods/contacts_block.md index d0729d30..e592cace 100644 --- a/old_docs/API_docs_v66/methods/contacts_block.md +++ b/old_docs/API_docs_v66/methods/contacts_block.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v66/methods/contacts_deleteContact.md b/old_docs/API_docs_v66/methods/contacts_deleteContact.md index b8c17544..1a3f2a27 100644 --- a/old_docs/API_docs_v66/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v66/methods/contacts_deleteContact.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v66/methods/contacts_deleteContacts.md b/old_docs/API_docs_v66/methods/contacts_deleteContacts.md index 64c69460..f6627599 100644 --- a/old_docs/API_docs_v66/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v66/methods/contacts_deleteContacts.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v66/methods/contacts_exportCard.md b/old_docs/API_docs_v66/methods/contacts_exportCard.md index b05f57ce..1d2129f3 100644 --- a/old_docs/API_docs_v66/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v66/methods/contacts_exportCard.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); diff --git a/old_docs/API_docs_v66/methods/contacts_getBlocked.md b/old_docs/API_docs_v66/methods/contacts_getBlocked.md index d7d8c5cc..44d24aba 100644 --- a/old_docs/API_docs_v66/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v66/methods/contacts_getBlocked.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v66/methods/contacts_getContacts.md b/old_docs/API_docs_v66/methods/contacts_getContacts.md index 1ab8af27..83c4846f 100644 --- a/old_docs/API_docs_v66/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v66/methods/contacts_getContacts.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v66/methods/contacts_getStatuses.md b/old_docs/API_docs_v66/methods/contacts_getStatuses.md index b927a140..5cef3084 100644 --- a/old_docs/API_docs_v66/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v66/methods/contacts_getStatuses.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); diff --git a/old_docs/API_docs_v66/methods/contacts_getTopPeers.md b/old_docs/API_docs_v66/methods/contacts_getTopPeers.md index 2bad9a2a..8d39809c 100644 --- a/old_docs/API_docs_v66/methods/contacts_getTopPeers.md +++ b/old_docs/API_docs_v66/methods/contacts_getTopPeers.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_TopPeers = $MadelineProto->contacts->getTopPeers(['correspondents' => Bool, 'bots_pm' => Bool, 'bots_inline' => Bool, 'groups' => Bool, 'channels' => Bool, 'offset' => int, 'limit' => int, 'hash' => int, ]); diff --git a/old_docs/API_docs_v66/methods/contacts_importCard.md b/old_docs/API_docs_v66/methods/contacts_importCard.md index 81a1e138..89c96657 100644 --- a/old_docs/API_docs_v66/methods/contacts_importCard.md +++ b/old_docs/API_docs_v66/methods/contacts_importCard.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); diff --git a/old_docs/API_docs_v66/methods/contacts_importContacts.md b/old_docs/API_docs_v66/methods/contacts_importContacts.md index 578e5dfd..cd3d6615 100644 --- a/old_docs/API_docs_v66/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v66/methods/contacts_importContacts.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], 'replace' => Bool, ]); diff --git a/old_docs/API_docs_v66/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v66/methods/contacts_resetTopPeerRating.md index 4b485921..4b5e96f1 100644 --- a/old_docs/API_docs_v66/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v66/methods/contacts_resetTopPeerRating.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->resetTopPeerRating(['category' => TopPeerCategory, 'peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v66/methods/contacts_search.md b/old_docs/API_docs_v66/methods/contacts_search.md index 68daecd6..64ff748e 100644 --- a/old_docs/API_docs_v66/methods/contacts_search.md +++ b/old_docs/API_docs_v66/methods/contacts_search.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); diff --git a/old_docs/API_docs_v66/methods/contacts_unblock.md b/old_docs/API_docs_v66/methods/contacts_unblock.md index f7d151b9..ec72ae2d 100644 --- a/old_docs/API_docs_v66/methods/contacts_unblock.md +++ b/old_docs/API_docs_v66/methods/contacts_unblock.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v66/methods/contest_saveDeveloperInfo.md b/old_docs/API_docs_v66/methods/contest_saveDeveloperInfo.md index 3e40c0f3..5d82a4be 100644 --- a/old_docs/API_docs_v66/methods/contest_saveDeveloperInfo.md +++ b/old_docs/API_docs_v66/methods/contest_saveDeveloperInfo.md @@ -33,12 +33,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contest->saveDeveloperInfo(['vk_id' => int, 'name' => 'string', 'phone_number' => 'string', 'age' => int, 'city' => 'string', ]); diff --git a/old_docs/API_docs_v66/methods/destroy_auth_key.md b/old_docs/API_docs_v66/methods/destroy_auth_key.md index eb6ba218..dbcc7b23 100644 --- a/old_docs/API_docs_v66/methods/destroy_auth_key.md +++ b/old_docs/API_docs_v66/methods/destroy_auth_key.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $DestroyAuthKeyRes = $MadelineProto->destroy_auth_key(); diff --git a/old_docs/API_docs_v66/methods/destroy_session.md b/old_docs/API_docs_v66/methods/destroy_session.md index 326e8d8e..b74fbd11 100644 --- a/old_docs/API_docs_v66/methods/destroy_session.md +++ b/old_docs/API_docs_v66/methods/destroy_session.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $DestroySessionRes = $MadelineProto->destroy_session(['session_id' => long, ]); diff --git a/old_docs/API_docs_v66/methods/get_future_salts.md b/old_docs/API_docs_v66/methods/get_future_salts.md index 9d4be95e..e8451015 100644 --- a/old_docs/API_docs_v66/methods/get_future_salts.md +++ b/old_docs/API_docs_v66/methods/get_future_salts.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $FutureSalts = $MadelineProto->get_future_salts(['num' => int, ]); diff --git a/old_docs/API_docs_v66/methods/help_getAppChangelog.md b/old_docs/API_docs_v66/methods/help_getAppChangelog.md index 477df2f8..eda473a6 100644 --- a/old_docs/API_docs_v66/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v66/methods/help_getAppChangelog.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->help->getAppChangelog(['prev_app_version' => 'string', ]); diff --git a/old_docs/API_docs_v66/methods/help_getAppUpdate.md b/old_docs/API_docs_v66/methods/help_getAppUpdate.md index b88906ae..c6a42922 100644 --- a/old_docs/API_docs_v66/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v66/methods/help_getAppUpdate.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(); diff --git a/old_docs/API_docs_v66/methods/help_getCdnConfig.md b/old_docs/API_docs_v66/methods/help_getCdnConfig.md index 809ea1fb..b98949ed 100644 --- a/old_docs/API_docs_v66/methods/help_getCdnConfig.md +++ b/old_docs/API_docs_v66/methods/help_getCdnConfig.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $CdnConfig = $MadelineProto->help->getCdnConfig(); diff --git a/old_docs/API_docs_v66/methods/help_getConfig.md b/old_docs/API_docs_v66/methods/help_getConfig.md index 16e25c68..ca4bfc25 100644 --- a/old_docs/API_docs_v66/methods/help_getConfig.md +++ b/old_docs/API_docs_v66/methods/help_getConfig.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); diff --git a/old_docs/API_docs_v66/methods/help_getInviteText.md b/old_docs/API_docs_v66/methods/help_getInviteText.md index 6b226bff..7311b7fb 100644 --- a/old_docs/API_docs_v66/methods/help_getInviteText.md +++ b/old_docs/API_docs_v66/methods/help_getInviteText.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(); diff --git a/old_docs/API_docs_v66/methods/help_getNearestDc.md b/old_docs/API_docs_v66/methods/help_getNearestDc.md index 35a8bf91..458f60ab 100644 --- a/old_docs/API_docs_v66/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v66/methods/help_getNearestDc.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); diff --git a/old_docs/API_docs_v66/methods/help_getSupport.md b/old_docs/API_docs_v66/methods/help_getSupport.md index a5bab0f2..9ee25b00 100644 --- a/old_docs/API_docs_v66/methods/help_getSupport.md +++ b/old_docs/API_docs_v66/methods/help_getSupport.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); diff --git a/old_docs/API_docs_v66/methods/help_getTermsOfService.md b/old_docs/API_docs_v66/methods/help_getTermsOfService.md index 487cd83a..4dea9f79 100644 --- a/old_docs/API_docs_v66/methods/help_getTermsOfService.md +++ b/old_docs/API_docs_v66/methods/help_getTermsOfService.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_TermsOfService = $MadelineProto->help->getTermsOfService(); diff --git a/old_docs/API_docs_v66/methods/help_saveAppLog.md b/old_docs/API_docs_v66/methods/help_saveAppLog.md index 0165b6e3..a7884c47 100644 --- a/old_docs/API_docs_v66/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v66/methods/help_saveAppLog.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); diff --git a/old_docs/API_docs_v66/methods/help_setBotUpdatesStatus.md b/old_docs/API_docs_v66/methods/help_setBotUpdatesStatus.md index ff314b5c..a1a3ab1b 100644 --- a/old_docs/API_docs_v66/methods/help_setBotUpdatesStatus.md +++ b/old_docs/API_docs_v66/methods/help_setBotUpdatesStatus.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->help->setBotUpdatesStatus(['pending_updates_count' => int, 'message' => 'string', ]); diff --git a/old_docs/API_docs_v66/methods/initConnection.md b/old_docs/API_docs_v66/methods/initConnection.md index 2d3d86ad..73620276 100644 --- a/old_docs/API_docs_v66/methods/initConnection.md +++ b/old_docs/API_docs_v66/methods/initConnection.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->initConnection(['api_id' => int, 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'lang_code' => 'string', 'query' => !X, ]); diff --git a/old_docs/API_docs_v66/methods/invokeAfterMsg.md b/old_docs/API_docs_v66/methods/invokeAfterMsg.md index e33a2c93..8e953e78 100644 --- a/old_docs/API_docs_v66/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v66/methods/invokeAfterMsg.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); diff --git a/old_docs/API_docs_v66/methods/invokeAfterMsgs.md b/old_docs/API_docs_v66/methods/invokeAfterMsgs.md index 3150a613..bc8a83b7 100644 --- a/old_docs/API_docs_v66/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v66/methods/invokeAfterMsgs.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); diff --git a/old_docs/API_docs_v66/methods/invokeWithLayer.md b/old_docs/API_docs_v66/methods/invokeWithLayer.md index 71d02abb..8a0c4e79 100644 --- a/old_docs/API_docs_v66/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v66/methods/invokeWithLayer.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); diff --git a/old_docs/API_docs_v66/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v66/methods/invokeWithoutUpdates.md index 2bab236a..2d90a776 100644 --- a/old_docs/API_docs_v66/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v66/methods/invokeWithoutUpdates.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeWithoutUpdates(['query' => !X, ]); diff --git a/old_docs/API_docs_v66/methods/messages_addChatUser.md b/old_docs/API_docs_v66/methods/messages_addChatUser.md index 3e4c5ccc..c6ef275f 100644 --- a/old_docs/API_docs_v66/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v66/methods/messages_addChatUser.md @@ -46,12 +46,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); diff --git a/old_docs/API_docs_v66/methods/messages_checkChatInvite.md b/old_docs/API_docs_v66/methods/messages_checkChatInvite.md index de1d9ff4..cea63313 100644 --- a/old_docs/API_docs_v66/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v66/methods/messages_checkChatInvite.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ChatInvite = $MadelineProto->messages->checkChatInvite(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v66/methods/messages_clearRecentStickers.md b/old_docs/API_docs_v66/methods/messages_clearRecentStickers.md index 9c1b3754..1d6ec8c9 100644 --- a/old_docs/API_docs_v66/methods/messages_clearRecentStickers.md +++ b/old_docs/API_docs_v66/methods/messages_clearRecentStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->clearRecentStickers(['attached' => Bool, ]); diff --git a/old_docs/API_docs_v66/methods/messages_createChat.md b/old_docs/API_docs_v66/methods/messages_createChat.md index 68c0263a..966f58dc 100644 --- a/old_docs/API_docs_v66/methods/messages_createChat.md +++ b/old_docs/API_docs_v66/methods/messages_createChat.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); diff --git a/old_docs/API_docs_v66/methods/messages_deleteChatUser.md b/old_docs/API_docs_v66/methods/messages_deleteChatUser.md index 0a6830de..9a9227ba 100644 --- a/old_docs/API_docs_v66/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v66/methods/messages_deleteChatUser.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v66/methods/messages_deleteHistory.md b/old_docs/API_docs_v66/methods/messages_deleteHistory.md index e44433c1..45e9890d 100644 --- a/old_docs/API_docs_v66/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v66/methods/messages_deleteHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['just_clear' => Bool, 'peer' => InputPeer, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v66/methods/messages_deleteMessages.md b/old_docs/API_docs_v66/methods/messages_deleteMessages.md index 0da41180..c8670444 100644 --- a/old_docs/API_docs_v66/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v66/methods/messages_deleteMessages.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['revoke' => Bool, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v66/methods/messages_editChatAdmin.md b/old_docs/API_docs_v66/methods/messages_editChatAdmin.md index 7916f8b1..5bba0559 100644 --- a/old_docs/API_docs_v66/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v66/methods/messages_editChatAdmin.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]); diff --git a/old_docs/API_docs_v66/methods/messages_editChatPhoto.md b/old_docs/API_docs_v66/methods/messages_editChatPhoto.md index 122913c4..5827a5cc 100644 --- a/old_docs/API_docs_v66/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v66/methods/messages_editChatPhoto.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); diff --git a/old_docs/API_docs_v66/methods/messages_editChatTitle.md b/old_docs/API_docs_v66/methods/messages_editChatTitle.md index 3a1e974b..2e69d790 100644 --- a/old_docs/API_docs_v66/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v66/methods/messages_editChatTitle.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); diff --git a/old_docs/API_docs_v66/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v66/methods/messages_editInlineBotMessage.md index 2237fb20..73c8a2c4 100644 --- a/old_docs/API_docs_v66/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v66/methods/messages_editInlineBotMessage.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->editInlineBotMessage(['no_webpage' => Bool, 'id' => InputBotInlineMessageID, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v66/methods/messages_editMessage.md b/old_docs/API_docs_v66/methods/messages_editMessage.md index 177438a5..ad639325 100644 --- a/old_docs/API_docs_v66/methods/messages_editMessage.md +++ b/old_docs/API_docs_v66/methods/messages_editMessage.md @@ -51,12 +51,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editMessage(['no_webpage' => Bool, 'peer' => InputPeer, 'id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v66/methods/messages_exportChatInvite.md b/old_docs/API_docs_v66/methods/messages_exportChatInvite.md index 98685d96..ec80e207 100644 --- a/old_docs/API_docs_v66/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v66/methods/messages_exportChatInvite.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]); diff --git a/old_docs/API_docs_v66/methods/messages_forwardMessage.md b/old_docs/API_docs_v66/methods/messages_forwardMessage.md index 45b7a07f..d6916437 100644 --- a/old_docs/API_docs_v66/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v66/methods/messages_forwardMessage.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); diff --git a/old_docs/API_docs_v66/methods/messages_forwardMessages.md b/old_docs/API_docs_v66/methods/messages_forwardMessages.md index efe58e67..b99e1d31 100644 --- a/old_docs/API_docs_v66/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v66/methods/messages_forwardMessages.md @@ -62,12 +62,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessages(['silent' => Bool, 'background' => Bool, 'with_my_score' => Bool, 'from_peer' => InputPeer, 'id' => [int, int], 'to_peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v66/methods/messages_getAllChats.md b/old_docs/API_docs_v66/methods/messages_getAllChats.md index 127456e4..513fc06f 100644 --- a/old_docs/API_docs_v66/methods/messages_getAllChats.md +++ b/old_docs/API_docs_v66/methods/messages_getAllChats.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getAllChats(['except_ids' => [int, int], ]); diff --git a/old_docs/API_docs_v66/methods/messages_getAllDrafts.md b/old_docs/API_docs_v66/methods/messages_getAllDrafts.md index 2c0ecd42..43a95bb2 100644 --- a/old_docs/API_docs_v66/methods/messages_getAllDrafts.md +++ b/old_docs/API_docs_v66/methods/messages_getAllDrafts.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->getAllDrafts(); diff --git a/old_docs/API_docs_v66/methods/messages_getAllStickers.md b/old_docs/API_docs_v66/methods/messages_getAllStickers.md index 16fdba6c..2ba37a91 100644 --- a/old_docs/API_docs_v66/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v66/methods/messages_getAllStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => int, ]); diff --git a/old_docs/API_docs_v66/methods/messages_getArchivedStickers.md b/old_docs/API_docs_v66/methods/messages_getArchivedStickers.md index f037e1bc..ee36b542 100644 --- a/old_docs/API_docs_v66/methods/messages_getArchivedStickers.md +++ b/old_docs/API_docs_v66/methods/messages_getArchivedStickers.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_ArchivedStickers = $MadelineProto->messages->getArchivedStickers(['masks' => Bool, 'offset_id' => long, 'limit' => int, ]); diff --git a/old_docs/API_docs_v66/methods/messages_getAttachedStickers.md b/old_docs/API_docs_v66/methods/messages_getAttachedStickers.md index 890680cd..9f8a66c5 100644 --- a/old_docs/API_docs_v66/methods/messages_getAttachedStickers.md +++ b/old_docs/API_docs_v66/methods/messages_getAttachedStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_StickerSetCovered = $MadelineProto->messages->getAttachedStickers(['media' => InputStickeredMedia, ]); diff --git a/old_docs/API_docs_v66/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v66/methods/messages_getBotCallbackAnswer.md index 09c283f5..0136227f 100644 --- a/old_docs/API_docs_v66/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v66/methods/messages_getBotCallbackAnswer.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_BotCallbackAnswer = $MadelineProto->messages->getBotCallbackAnswer(['game' => Bool, 'peer' => InputPeer, 'msg_id' => int, 'data' => 'bytes', ]); diff --git a/old_docs/API_docs_v66/methods/messages_getChats.md b/old_docs/API_docs_v66/methods/messages_getChats.md index 290438a1..e84c7193 100644 --- a/old_docs/API_docs_v66/methods/messages_getChats.md +++ b/old_docs/API_docs_v66/methods/messages_getChats.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v66/methods/messages_getCommonChats.md b/old_docs/API_docs_v66/methods/messages_getCommonChats.md index e6eca283..15ed6713 100644 --- a/old_docs/API_docs_v66/methods/messages_getCommonChats.md +++ b/old_docs/API_docs_v66/methods/messages_getCommonChats.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getCommonChats(['user_id' => InputUser, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v66/methods/messages_getDialogs.md b/old_docs/API_docs_v66/methods/messages_getDialogs.md index e100228b..53f9ac62 100644 --- a/old_docs/API_docs_v66/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v66/methods/messages_getDialogs.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['exclude_pinned' => Bool, 'offset_date' => int, 'offset_id' => int, 'offset_peer' => InputPeer, 'limit' => int, ]); diff --git a/old_docs/API_docs_v66/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v66/methods/messages_getDocumentByHash.md index 1af5bad4..ad8e22be 100644 --- a/old_docs/API_docs_v66/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v66/methods/messages_getDocumentByHash.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Document = $MadelineProto->messages->getDocumentByHash(['sha256' => 'bytes', 'size' => int, 'mime_type' => 'string', ]); diff --git a/old_docs/API_docs_v66/methods/messages_getFeaturedStickers.md b/old_docs/API_docs_v66/methods/messages_getFeaturedStickers.md index 512f2e85..8e49e1ef 100644 --- a/old_docs/API_docs_v66/methods/messages_getFeaturedStickers.md +++ b/old_docs/API_docs_v66/methods/messages_getFeaturedStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_FeaturedStickers = $MadelineProto->messages->getFeaturedStickers(['hash' => int, ]); diff --git a/old_docs/API_docs_v66/methods/messages_getGameHighScores.md b/old_docs/API_docs_v66/methods/messages_getGameHighScores.md index 5137baea..113e4647 100644 --- a/old_docs/API_docs_v66/methods/messages_getGameHighScores.md +++ b/old_docs/API_docs_v66/methods/messages_getGameHighScores.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_HighScores = $MadelineProto->messages->getGameHighScores(['peer' => InputPeer, 'id' => int, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v66/methods/messages_getHistory.md b/old_docs/API_docs_v66/methods/messages_getHistory.md index dfae66e6..851d2680 100644 --- a/old_docs/API_docs_v66/methods/messages_getHistory.md +++ b/old_docs/API_docs_v66/methods/messages_getHistory.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getHistory(['peer' => InputPeer, 'offset_id' => int, 'offset_date' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); diff --git a/old_docs/API_docs_v66/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v66/methods/messages_getInlineBotResults.md index 8ab5bf78..4d86caf5 100644 --- a/old_docs/API_docs_v66/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v66/methods/messages_getInlineBotResults.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_BotResults = $MadelineProto->messages->getInlineBotResults(['bot' => InputUser, 'peer' => InputPeer, 'geo_point' => InputGeoPoint, 'query' => 'string', 'offset' => 'string', ]); diff --git a/old_docs/API_docs_v66/methods/messages_getInlineGameHighScores.md b/old_docs/API_docs_v66/methods/messages_getInlineGameHighScores.md index 790bfdd9..d5a80005 100644 --- a/old_docs/API_docs_v66/methods/messages_getInlineGameHighScores.md +++ b/old_docs/API_docs_v66/methods/messages_getInlineGameHighScores.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_HighScores = $MadelineProto->messages->getInlineGameHighScores(['id' => InputBotInlineMessageID, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v66/methods/messages_getMaskStickers.md b/old_docs/API_docs_v66/methods/messages_getMaskStickers.md index f4ed9411..70e2e6d4 100644 --- a/old_docs/API_docs_v66/methods/messages_getMaskStickers.md +++ b/old_docs/API_docs_v66/methods/messages_getMaskStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getMaskStickers(['hash' => int, ]); diff --git a/old_docs/API_docs_v66/methods/messages_getMessageEditData.md b/old_docs/API_docs_v66/methods/messages_getMessageEditData.md index 12e71bee..34f8534f 100644 --- a/old_docs/API_docs_v66/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v66/methods/messages_getMessageEditData.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_MessageEditData = $MadelineProto->messages->getMessageEditData(['peer' => InputPeer, 'id' => int, ]); diff --git a/old_docs/API_docs_v66/methods/messages_getMessages.md b/old_docs/API_docs_v66/methods/messages_getMessages.md index 86d1da8a..d538cb5f 100644 --- a/old_docs/API_docs_v66/methods/messages_getMessages.md +++ b/old_docs/API_docs_v66/methods/messages_getMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v66/methods/messages_getMessagesViews.md b/old_docs/API_docs_v66/methods/messages_getMessagesViews.md index b8d78c85..934adc16 100644 --- a/old_docs/API_docs_v66/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v66/methods/messages_getMessagesViews.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int, int], 'increment' => Bool, ]); diff --git a/old_docs/API_docs_v66/methods/messages_getPeerDialogs.md b/old_docs/API_docs_v66/methods/messages_getPeerDialogs.md index da82cfc6..063b6e7d 100644 --- a/old_docs/API_docs_v66/methods/messages_getPeerDialogs.md +++ b/old_docs/API_docs_v66/methods/messages_getPeerDialogs.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_PeerDialogs = $MadelineProto->messages->getPeerDialogs(['peers' => [InputPeer, InputPeer], ]); diff --git a/old_docs/API_docs_v66/methods/messages_getPeerSettings.md b/old_docs/API_docs_v66/methods/messages_getPeerSettings.md index f1f2a3bb..a18126f0 100644 --- a/old_docs/API_docs_v66/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v66/methods/messages_getPeerSettings.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $PeerSettings = $MadelineProto->messages->getPeerSettings(['peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v66/methods/messages_getPinnedDialogs.md b/old_docs/API_docs_v66/methods/messages_getPinnedDialogs.md index d12779fe..3f49ed75 100644 --- a/old_docs/API_docs_v66/methods/messages_getPinnedDialogs.md +++ b/old_docs/API_docs_v66/methods/messages_getPinnedDialogs.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_PeerDialogs = $MadelineProto->messages->getPinnedDialogs(); diff --git a/old_docs/API_docs_v66/methods/messages_getRecentStickers.md b/old_docs/API_docs_v66/methods/messages_getRecentStickers.md index d76a2160..0c5ae0c6 100644 --- a/old_docs/API_docs_v66/methods/messages_getRecentStickers.md +++ b/old_docs/API_docs_v66/methods/messages_getRecentStickers.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_RecentStickers = $MadelineProto->messages->getRecentStickers(['attached' => Bool, 'hash' => int, ]); diff --git a/old_docs/API_docs_v66/methods/messages_getSavedGifs.md b/old_docs/API_docs_v66/methods/messages_getSavedGifs.md index f61348ce..38585538 100644 --- a/old_docs/API_docs_v66/methods/messages_getSavedGifs.md +++ b/old_docs/API_docs_v66/methods/messages_getSavedGifs.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => int, ]); diff --git a/old_docs/API_docs_v66/methods/messages_getStickerSet.md b/old_docs/API_docs_v66/methods/messages_getStickerSet.md index c86807e4..c9140ab2 100644 --- a/old_docs/API_docs_v66/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v66/methods/messages_getStickerSet.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSet = $MadelineProto->messages->getStickerSet(['stickerset' => InputStickerSet, ]); diff --git a/old_docs/API_docs_v66/methods/messages_getWebPage.md b/old_docs/API_docs_v66/methods/messages_getWebPage.md index 129f8f06..19ca94b9 100644 --- a/old_docs/API_docs_v66/methods/messages_getWebPage.md +++ b/old_docs/API_docs_v66/methods/messages_getWebPage.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $WebPage = $MadelineProto->messages->getWebPage(['url' => 'string', 'hash' => int, ]); diff --git a/old_docs/API_docs_v66/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v66/methods/messages_getWebPagePreview.md index d01bdd32..e8b20c5d 100644 --- a/old_docs/API_docs_v66/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v66/methods/messages_getWebPagePreview.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $MessageMedia = $MadelineProto->messages->getWebPagePreview(['message' => 'string', ]); diff --git a/old_docs/API_docs_v66/methods/messages_hideReportSpam.md b/old_docs/API_docs_v66/methods/messages_hideReportSpam.md index 856770cb..30523f2a 100644 --- a/old_docs/API_docs_v66/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v66/methods/messages_hideReportSpam.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->hideReportSpam(['peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v66/methods/messages_importChatInvite.md b/old_docs/API_docs_v66/methods/messages_importChatInvite.md index 0d6cd7c8..b1830a9b 100644 --- a/old_docs/API_docs_v66/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v66/methods/messages_importChatInvite.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->importChatInvite(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v66/methods/messages_installStickerSet.md b/old_docs/API_docs_v66/methods/messages_installStickerSet.md index 9f6f098c..20f90b71 100644 --- a/old_docs/API_docs_v66/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v66/methods/messages_installStickerSet.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSetInstallResult = $MadelineProto->messages->installStickerSet(['stickerset' => InputStickerSet, 'archived' => Bool, ]); diff --git a/old_docs/API_docs_v66/methods/messages_migrateChat.md b/old_docs/API_docs_v66/methods/messages_migrateChat.md index db57adfa..22ccfcc1 100644 --- a/old_docs/API_docs_v66/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v66/methods/messages_migrateChat.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]); diff --git a/old_docs/API_docs_v66/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v66/methods/messages_readEncryptedHistory.md index 39b110e3..2ba4cca4 100644 --- a/old_docs/API_docs_v66/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v66/methods/messages_readEncryptedHistory.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); diff --git a/old_docs/API_docs_v66/methods/messages_readFeaturedStickers.md b/old_docs/API_docs_v66/methods/messages_readFeaturedStickers.md index 4035c76d..050371da 100644 --- a/old_docs/API_docs_v66/methods/messages_readFeaturedStickers.md +++ b/old_docs/API_docs_v66/methods/messages_readFeaturedStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->readFeaturedStickers(['id' => [long, long], ]); diff --git a/old_docs/API_docs_v66/methods/messages_readHistory.md b/old_docs/API_docs_v66/methods/messages_readHistory.md index 3de17061..26b608af 100644 --- a/old_docs/API_docs_v66/methods/messages_readHistory.md +++ b/old_docs/API_docs_v66/methods/messages_readHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v66/methods/messages_readMessageContents.md b/old_docs/API_docs_v66/methods/messages_readMessageContents.md index 9bb1bee8..a09cb63e 100644 --- a/old_docs/API_docs_v66/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v66/methods/messages_readMessageContents.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v66/methods/messages_receivedMessages.md b/old_docs/API_docs_v66/methods/messages_receivedMessages.md index 7aab635f..b5e87992 100644 --- a/old_docs/API_docs_v66/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v66/methods/messages_receivedMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_ReceivedNotifyMessage = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); diff --git a/old_docs/API_docs_v66/methods/messages_reorderPinnedDialogs.md b/old_docs/API_docs_v66/methods/messages_reorderPinnedDialogs.md index 710caf10..94d3b2d4 100644 --- a/old_docs/API_docs_v66/methods/messages_reorderPinnedDialogs.md +++ b/old_docs/API_docs_v66/methods/messages_reorderPinnedDialogs.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reorderPinnedDialogs(['force' => Bool, 'order' => [InputPeer, InputPeer], ]); diff --git a/old_docs/API_docs_v66/methods/messages_reorderStickerSets.md b/old_docs/API_docs_v66/methods/messages_reorderStickerSets.md index ddc78dd0..66f5e682 100644 --- a/old_docs/API_docs_v66/methods/messages_reorderStickerSets.md +++ b/old_docs/API_docs_v66/methods/messages_reorderStickerSets.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reorderStickerSets(['masks' => Bool, 'order' => [long, long], ]); diff --git a/old_docs/API_docs_v66/methods/messages_reportEncryptedSpam.md b/old_docs/API_docs_v66/methods/messages_reportEncryptedSpam.md index 58b684d1..cd03c35c 100644 --- a/old_docs/API_docs_v66/methods/messages_reportEncryptedSpam.md +++ b/old_docs/API_docs_v66/methods/messages_reportEncryptedSpam.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reportEncryptedSpam(['peer' => InputEncryptedChat, ]); diff --git a/old_docs/API_docs_v66/methods/messages_reportSpam.md b/old_docs/API_docs_v66/methods/messages_reportSpam.md index 2e2b1177..09c1e63b 100644 --- a/old_docs/API_docs_v66/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v66/methods/messages_reportSpam.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reportSpam(['peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v66/methods/messages_saveDraft.md b/old_docs/API_docs_v66/methods/messages_saveDraft.md index bbeed707..59b33b03 100644 --- a/old_docs/API_docs_v66/methods/messages_saveDraft.md +++ b/old_docs/API_docs_v66/methods/messages_saveDraft.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->saveDraft(['no_webpage' => Bool, 'reply_to_msg_id' => int, 'peer' => InputPeer, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v66/methods/messages_saveGif.md b/old_docs/API_docs_v66/methods/messages_saveGif.md index 6f608c4c..145039e7 100644 --- a/old_docs/API_docs_v66/methods/messages_saveGif.md +++ b/old_docs/API_docs_v66/methods/messages_saveGif.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->saveGif(['id' => InputDocument, 'unsave' => Bool, ]); diff --git a/old_docs/API_docs_v66/methods/messages_saveRecentSticker.md b/old_docs/API_docs_v66/methods/messages_saveRecentSticker.md index 81ad5d48..55757080 100644 --- a/old_docs/API_docs_v66/methods/messages_saveRecentSticker.md +++ b/old_docs/API_docs_v66/methods/messages_saveRecentSticker.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->saveRecentSticker(['attached' => Bool, 'id' => InputDocument, 'unsave' => Bool, ]); diff --git a/old_docs/API_docs_v66/methods/messages_search.md b/old_docs/API_docs_v66/methods/messages_search.md index 7821d2b7..735ddf47 100644 --- a/old_docs/API_docs_v66/methods/messages_search.md +++ b/old_docs/API_docs_v66/methods/messages_search.md @@ -49,12 +49,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->search(['peer' => InputPeer, 'q' => 'string', 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v66/methods/messages_searchGifs.md b/old_docs/API_docs_v66/methods/messages_searchGifs.md index 103ebfeb..9677bf24 100644 --- a/old_docs/API_docs_v66/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v66/methods/messages_searchGifs.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_FoundGifs = $MadelineProto->messages->searchGifs(['q' => 'string', 'offset' => int, ]); diff --git a/old_docs/API_docs_v66/methods/messages_searchGlobal.md b/old_docs/API_docs_v66/methods/messages_searchGlobal.md index 0edd1e40..6ad4aec0 100644 --- a/old_docs/API_docs_v66/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v66/methods/messages_searchGlobal.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->searchGlobal(['q' => 'string', 'offset_date' => int, 'offset_peer' => InputPeer, 'offset_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v66/methods/messages_sendEncrypted.md b/old_docs/API_docs_v66/methods/messages_sendEncrypted.md index d48f88d7..76305f32 100644 --- a/old_docs/API_docs_v66/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v66/methods/messages_sendEncrypted.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v66/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v66/methods/messages_sendEncryptedFile.md index 4fd0648e..8db2ead9 100644 --- a/old_docs/API_docs_v66/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v66/methods/messages_sendEncryptedFile.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); diff --git a/old_docs/API_docs_v66/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v66/methods/messages_sendEncryptedService.md index d66894bf..c7836c94 100644 --- a/old_docs/API_docs_v66/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v66/methods/messages_sendEncryptedService.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v66/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v66/methods/messages_sendInlineBotResult.md index 386ac7e3..1a12322c 100644 --- a/old_docs/API_docs_v66/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v66/methods/messages_sendInlineBotResult.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendInlineBotResult(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'query_id' => long, 'id' => 'string', ]); diff --git a/old_docs/API_docs_v66/methods/messages_sendMedia.md b/old_docs/API_docs_v66/methods/messages_sendMedia.md index 0b5cf9b6..770d1b65 100644 --- a/old_docs/API_docs_v66/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v66/methods/messages_sendMedia.md @@ -63,12 +63,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendMedia(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, 'reply_markup' => ReplyMarkup, ]); diff --git a/old_docs/API_docs_v66/methods/messages_sendMessage.md b/old_docs/API_docs_v66/methods/messages_sendMessage.md index c4dc8894..83dc6c8b 100644 --- a/old_docs/API_docs_v66/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v66/methods/messages_sendMessage.md @@ -65,12 +65,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendMessage(['no_webpage' => Bool, 'silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v66/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v66/methods/messages_setBotCallbackAnswer.md index e6dc6b09..e221ccca 100644 --- a/old_docs/API_docs_v66/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v66/methods/messages_setBotCallbackAnswer.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setBotCallbackAnswer(['alert' => Bool, 'query_id' => long, 'message' => 'string', 'url' => 'string', 'cache_time' => int, ]); diff --git a/old_docs/API_docs_v66/methods/messages_setBotPrecheckoutResults.md b/old_docs/API_docs_v66/methods/messages_setBotPrecheckoutResults.md index 722bff81..7e3fc3c2 100644 --- a/old_docs/API_docs_v66/methods/messages_setBotPrecheckoutResults.md +++ b/old_docs/API_docs_v66/methods/messages_setBotPrecheckoutResults.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setBotPrecheckoutResults(['success' => Bool, 'query_id' => long, 'error' => 'string', ]); diff --git a/old_docs/API_docs_v66/methods/messages_setBotShippingResults.md b/old_docs/API_docs_v66/methods/messages_setBotShippingResults.md index d364a04d..3d9f0ae2 100644 --- a/old_docs/API_docs_v66/methods/messages_setBotShippingResults.md +++ b/old_docs/API_docs_v66/methods/messages_setBotShippingResults.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setBotShippingResults(['query_id' => long, 'error' => 'string', 'shipping_options' => [ShippingOption, ShippingOption], ]); diff --git a/old_docs/API_docs_v66/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v66/methods/messages_setEncryptedTyping.md index e9afe99c..4e7450eb 100644 --- a/old_docs/API_docs_v66/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v66/methods/messages_setEncryptedTyping.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); diff --git a/old_docs/API_docs_v66/methods/messages_setGameScore.md b/old_docs/API_docs_v66/methods/messages_setGameScore.md index aa1f4f0c..90594a1d 100644 --- a/old_docs/API_docs_v66/methods/messages_setGameScore.md +++ b/old_docs/API_docs_v66/methods/messages_setGameScore.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->setGameScore(['edit_message' => Bool, 'force' => Bool, 'peer' => InputPeer, 'id' => int, 'user_id' => InputUser, 'score' => int, ]); diff --git a/old_docs/API_docs_v66/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v66/methods/messages_setInlineBotResults.md index 79493009..d4ba6e65 100644 --- a/old_docs/API_docs_v66/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v66/methods/messages_setInlineBotResults.md @@ -52,12 +52,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setInlineBotResults(['gallery' => Bool, 'private' => Bool, 'query_id' => long, 'results' => [InputBotInlineResult, InputBotInlineResult], 'cache_time' => int, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, ]); diff --git a/old_docs/API_docs_v66/methods/messages_setInlineGameScore.md b/old_docs/API_docs_v66/methods/messages_setInlineGameScore.md index 385c8308..2b7326f3 100644 --- a/old_docs/API_docs_v66/methods/messages_setInlineGameScore.md +++ b/old_docs/API_docs_v66/methods/messages_setInlineGameScore.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setInlineGameScore(['edit_message' => Bool, 'force' => Bool, 'id' => InputBotInlineMessageID, 'user_id' => InputUser, 'score' => int, ]); diff --git a/old_docs/API_docs_v66/methods/messages_setTyping.md b/old_docs/API_docs_v66/methods/messages_setTyping.md index bea4982b..a2b94823 100644 --- a/old_docs/API_docs_v66/methods/messages_setTyping.md +++ b/old_docs/API_docs_v66/methods/messages_setTyping.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); diff --git a/old_docs/API_docs_v66/methods/messages_startBot.md b/old_docs/API_docs_v66/methods/messages_startBot.md index 94a4d86a..50d6f475 100644 --- a/old_docs/API_docs_v66/methods/messages_startBot.md +++ b/old_docs/API_docs_v66/methods/messages_startBot.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'peer' => InputPeer, 'start_param' => 'string', ]); diff --git a/old_docs/API_docs_v66/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v66/methods/messages_toggleChatAdmins.md index ab591fd9..349ea0e6 100644 --- a/old_docs/API_docs_v66/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v66/methods/messages_toggleChatAdmins.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => InputPeer, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v66/methods/messages_toggleDialogPin.md b/old_docs/API_docs_v66/methods/messages_toggleDialogPin.md index 2bd6a03d..14332533 100644 --- a/old_docs/API_docs_v66/methods/messages_toggleDialogPin.md +++ b/old_docs/API_docs_v66/methods/messages_toggleDialogPin.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->toggleDialogPin(['pinned' => Bool, 'peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v66/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v66/methods/messages_uninstallStickerSet.md index 6d04e847..26b2fbb3 100644 --- a/old_docs/API_docs_v66/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v66/methods/messages_uninstallStickerSet.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->uninstallStickerSet(['stickerset' => InputStickerSet, ]); diff --git a/old_docs/API_docs_v66/methods/payments_clearSavedInfo.md b/old_docs/API_docs_v66/methods/payments_clearSavedInfo.md index 44050dde..8b83266f 100644 --- a/old_docs/API_docs_v66/methods/payments_clearSavedInfo.md +++ b/old_docs/API_docs_v66/methods/payments_clearSavedInfo.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->payments->clearSavedInfo(['credentials' => Bool, 'info' => Bool, ]); diff --git a/old_docs/API_docs_v66/methods/payments_getPaymentForm.md b/old_docs/API_docs_v66/methods/payments_getPaymentForm.md index 16a32d11..3bdb9ff2 100644 --- a/old_docs/API_docs_v66/methods/payments_getPaymentForm.md +++ b/old_docs/API_docs_v66/methods/payments_getPaymentForm.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $payments_PaymentForm = $MadelineProto->payments->getPaymentForm(['msg_id' => int, ]); diff --git a/old_docs/API_docs_v66/methods/payments_getPaymentReceipt.md b/old_docs/API_docs_v66/methods/payments_getPaymentReceipt.md index 857585f6..a881aeb7 100644 --- a/old_docs/API_docs_v66/methods/payments_getPaymentReceipt.md +++ b/old_docs/API_docs_v66/methods/payments_getPaymentReceipt.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $payments_PaymentReceipt = $MadelineProto->payments->getPaymentReceipt(['msg_id' => int, ]); diff --git a/old_docs/API_docs_v66/methods/payments_getSavedInfo.md b/old_docs/API_docs_v66/methods/payments_getSavedInfo.md index 04ac7374..ec1a071b 100644 --- a/old_docs/API_docs_v66/methods/payments_getSavedInfo.md +++ b/old_docs/API_docs_v66/methods/payments_getSavedInfo.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $payments_SavedInfo = $MadelineProto->payments->getSavedInfo(); diff --git a/old_docs/API_docs_v66/methods/payments_sendPaymentForm.md b/old_docs/API_docs_v66/methods/payments_sendPaymentForm.md index 0a9df99f..79758b56 100644 --- a/old_docs/API_docs_v66/methods/payments_sendPaymentForm.md +++ b/old_docs/API_docs_v66/methods/payments_sendPaymentForm.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $payments_PaymentResult = $MadelineProto->payments->sendPaymentForm(['msg_id' => int, 'requested_info_id' => 'string', 'shipping_option_id' => 'string', 'credentials' => InputPaymentCredentials, ]); diff --git a/old_docs/API_docs_v66/methods/payments_validateRequestedInfo.md b/old_docs/API_docs_v66/methods/payments_validateRequestedInfo.md index e36f0e42..d473f97c 100644 --- a/old_docs/API_docs_v66/methods/payments_validateRequestedInfo.md +++ b/old_docs/API_docs_v66/methods/payments_validateRequestedInfo.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $payments_ValidatedRequestedInfo = $MadelineProto->payments->validateRequestedInfo(['save' => Bool, 'msg_id' => int, 'info' => PaymentRequestedInfo, ]); diff --git a/old_docs/API_docs_v66/methods/phone_getCallConfig.md b/old_docs/API_docs_v66/methods/phone_getCallConfig.md index cac622a0..6969c1a3 100644 --- a/old_docs/API_docs_v66/methods/phone_getCallConfig.md +++ b/old_docs/API_docs_v66/methods/phone_getCallConfig.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $DataJSON = $MadelineProto->phone->getCallConfig(); diff --git a/old_docs/API_docs_v66/methods/phone_receivedCall.md b/old_docs/API_docs_v66/methods/phone_receivedCall.md index 27e3b462..17095622 100644 --- a/old_docs/API_docs_v66/methods/phone_receivedCall.md +++ b/old_docs/API_docs_v66/methods/phone_receivedCall.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->phone->receivedCall(['peer' => InputPhoneCall, ]); diff --git a/old_docs/API_docs_v66/methods/phone_saveCallDebug.md b/old_docs/API_docs_v66/methods/phone_saveCallDebug.md index 760ad9d5..0ff049a8 100644 --- a/old_docs/API_docs_v66/methods/phone_saveCallDebug.md +++ b/old_docs/API_docs_v66/methods/phone_saveCallDebug.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->phone->saveCallDebug(['peer' => InputPhoneCall, 'debug' => DataJSON, ]); diff --git a/old_docs/API_docs_v66/methods/phone_setCallRating.md b/old_docs/API_docs_v66/methods/phone_setCallRating.md index b32ba333..d0aab7e0 100644 --- a/old_docs/API_docs_v66/methods/phone_setCallRating.md +++ b/old_docs/API_docs_v66/methods/phone_setCallRating.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->phone->setCallRating(['peer' => InputPhoneCall, 'rating' => int, 'comment' => 'string', ]); diff --git a/old_docs/API_docs_v66/methods/photos_deletePhotos.md b/old_docs/API_docs_v66/methods/photos_deletePhotos.md index b9daca10..937aadd5 100644 --- a/old_docs/API_docs_v66/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v66/methods/photos_deletePhotos.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); diff --git a/old_docs/API_docs_v66/methods/photos_getUserPhotos.md b/old_docs/API_docs_v66/methods/photos_getUserPhotos.md index ea27a44f..d1c15e90 100644 --- a/old_docs/API_docs_v66/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v66/methods/photos_getUserPhotos.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => long, 'limit' => int, ]); diff --git a/old_docs/API_docs_v66/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v66/methods/photos_updateProfilePhoto.md index 7f0a4c69..2ac8b60d 100644 --- a/old_docs/API_docs_v66/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v66/methods/photos_updateProfilePhoto.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, ]); diff --git a/old_docs/API_docs_v66/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v66/methods/photos_uploadProfilePhoto.md index efa08bb0..c7ec3063 100644 --- a/old_docs/API_docs_v66/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v66/methods/photos_uploadProfilePhoto.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, ]); diff --git a/old_docs/API_docs_v66/methods/ping.md b/old_docs/API_docs_v66/methods/ping.md index 4ad52852..f987ae89 100644 --- a/old_docs/API_docs_v66/methods/ping.md +++ b/old_docs/API_docs_v66/methods/ping.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Pong = $MadelineProto->ping(['ping_id' => long, ]); diff --git a/old_docs/API_docs_v66/methods/ping_delay_disconnect.md b/old_docs/API_docs_v66/methods/ping_delay_disconnect.md index b0951488..5b1c115d 100644 --- a/old_docs/API_docs_v66/methods/ping_delay_disconnect.md +++ b/old_docs/API_docs_v66/methods/ping_delay_disconnect.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Pong = $MadelineProto->ping_delay_disconnect(['ping_id' => long, 'disconnect_delay' => int, ]); diff --git a/old_docs/API_docs_v66/methods/req_DH_params.md b/old_docs/API_docs_v66/methods/req_DH_params.md index bb821ef9..f0b45851 100644 --- a/old_docs/API_docs_v66/methods/req_DH_params.md +++ b/old_docs/API_docs_v66/methods/req_DH_params.md @@ -34,12 +34,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Server_DH_Params = $MadelineProto->req_DH_params(['nonce' => int128, 'server_nonce' => int128, 'p' => 'string', 'q' => 'string', 'public_key_fingerprint' => long, 'encrypted_data' => 'string', ]); diff --git a/old_docs/API_docs_v66/methods/req_pq.md b/old_docs/API_docs_v66/methods/req_pq.md index 72a31c0b..0873d9a2 100644 --- a/old_docs/API_docs_v66/methods/req_pq.md +++ b/old_docs/API_docs_v66/methods/req_pq.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ResPQ = $MadelineProto->req_pq(['nonce' => int128, ]); diff --git a/old_docs/API_docs_v66/methods/rpc_drop_answer.md b/old_docs/API_docs_v66/methods/rpc_drop_answer.md index 381d7ee4..27f98bca 100644 --- a/old_docs/API_docs_v66/methods/rpc_drop_answer.md +++ b/old_docs/API_docs_v66/methods/rpc_drop_answer.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $RpcDropAnswer = $MadelineProto->rpc_drop_answer(['req_msg_id' => long, ]); diff --git a/old_docs/API_docs_v66/methods/set_client_DH_params.md b/old_docs/API_docs_v66/methods/set_client_DH_params.md index 6abb9a51..cf8ab321 100644 --- a/old_docs/API_docs_v66/methods/set_client_DH_params.md +++ b/old_docs/API_docs_v66/methods/set_client_DH_params.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Set_client_DH_params_answer = $MadelineProto->set_client_DH_params(['nonce' => int128, 'server_nonce' => int128, 'encrypted_data' => 'string', ]); diff --git a/old_docs/API_docs_v66/methods/upload_getWebFile.md b/old_docs/API_docs_v66/methods/upload_getWebFile.md index e864e4b7..11634633 100644 --- a/old_docs/API_docs_v66/methods/upload_getWebFile.md +++ b/old_docs/API_docs_v66/methods/upload_getWebFile.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $upload_WebFile = $MadelineProto->upload->getWebFile(['location' => InputWebFileLocation, 'offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v66/methods/users_getUsers.md b/old_docs/API_docs_v66/methods/users_getUsers.md index ef1c7fd8..bce13ee6 100644 --- a/old_docs/API_docs_v66/methods/users_getUsers.md +++ b/old_docs/API_docs_v66/methods/users_getUsers.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v68/README.md b/old_docs/API_docs_v68/README.md index 410a52c9..73cb6191 100644 --- a/old_docs/API_docs_v68/README.md +++ b/old_docs/API_docs_v68/README.md @@ -4,11 +4,11 @@ description: MadelineProto API documentation (layer v68) --- # MadelineProto API documentation (layer v68) +[Back to main documentation](..) + + [Methods](methods/) [Constructors](constructors/) -[Types](types/) - - -[Back to main documentation](..) +[Types](types/) \ No newline at end of file diff --git a/old_docs/API_docs_v68/methods/README.md b/old_docs/API_docs_v68/methods/README.md index c924660b..820c13e8 100644 --- a/old_docs/API_docs_v68/methods/README.md +++ b/old_docs/API_docs_v68/methods/README.md @@ -1,533 +1,528 @@ --- title: Methods -description: List of methods +description: What do you want to do? --- -# Methods -[Back to API documentation index](..) +# What do you want to do? +[Go back to API documentation index](..) +[Go to the old code-version method index](api_index.html) -$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); +* [Logout](https://docs.madelineproto.xyz/logout.html) -$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); +* [Login](https://docs.madelineproto.xyz/docs/LOGIN.html) -$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); +* [Get all chats, broadcast a message to all chats](https://docs.madelineproto.xyz/docs/DIALOGS.html) -$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); +* [Get the full participant list of a channel/group/supergroup](https://docs.madelineproto.xyz/get_pwr_chat.html) -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); +* [Get full info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_full_info.html) +* [Get info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_info.html) -$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); +* [Get info about the currently logged-in user](https://docs.madelineproto.xyz/get_self.html) -$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); +* [Upload or download files up to 1.5 GB](https://docs.madelineproto.xyz/docs/FILES.html) -$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); +* [Make a phone call and play a song](https://docs.madelineproto.xyz/docs/CALLS.html) -$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); - -$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); - - -$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); - -$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); +* [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) *** -

$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) +

* Change the phone number associated to this account -$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Check if this username is available -$MadelineProto->[account->confirmPhone](account_confirmPhone.md)(\['phone_code_hash' => [string](../types/string.md), 'phone_code' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode -$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Delete this account -$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) +* Get account TTL -$MadelineProto->[account->getAuthorizations](account_getAuthorizations.md)(\[\]) === [$account\_Authorizations](../types/account_Authorizations.md) +* Get all logged-in authorizations -$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) +* Get notification settings -$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md) +* Get the current password -$MadelineProto->[account->getPasswordSettings](account_getPasswordSettings.md)(\['current_password_hash' => [bytes](../types/bytes.md), \]) === [$account\_PasswordSettings](../types/account_PasswordSettings.md) +* Get the current 2FA settings -$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Get privacy settings -$MadelineProto->[account->getTmpPassword](account_getTmpPassword.md)(\['password_hash' => [bytes](../types/bytes.md), 'period' => [int](../types/int.md), \]) === [$account\_TmpPassword](../types/account_TmpPassword.md) +* Get temporary password for buying products through bots -$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) +* Returns a list of available wallpapers. -$MadelineProto->[account->registerDevice](account_registerDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Register device for push notifications -$MadelineProto->[account->reportPeer](account_reportPeer.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reason' => [ReportReason](../types/ReportReason.md), \]) === [$Bool](../types/Bool.md) +* Report for spam -$MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) +* Delete a certain session -$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) +* Reset all notification settings -$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) +* Change the phone number -$MadelineProto->[account->sendConfirmPhoneCode](account_sendConfirmPhoneCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'hash' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) +* Send confirmation phone code -$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) +* Set account TTL -$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Set privacy settings -$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Stop sending PUSH notifications to app -$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Disable all notifications for a certain period -$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) +* Change notification settings -$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) +* Update the 2FA password settings -$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) +* Update profile info -$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Update online status -$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) +* Update this user's username *** -

$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) +

* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info -$MadelineProto->[auth->cancelCode](auth_cancelCode.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Invalidate sent phone code -$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) +* Check if this phone number is registered on telegram -$MadelineProto->[auth->dropTempAuthKeys](auth_dropTempAuthKeys.md)(\['except_auth_keys' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) +* Delete all temporary authorization keys except the ones provided -$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) +* You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$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) +* You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->recoverPassword](auth_recoverPassword.md)(\['code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account -$MadelineProto->[auth->requestPasswordRecovery](auth_requestPasswordRecovery.md)(\[\]) === [$auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) +* Send an email to recover the 2FA password -$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) +* Resend the SMS verification code -$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) +* Delete all logged-in sessions. -$MadelineProto->[auth->sendCode](auth_sendCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'phone_number' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), 'api_id' => [int](../types/int.md), 'api_hash' => [string](../types/string.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) +* Use phone_login instead -$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Invite friends to telegram! -$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) +* You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) -$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) +* You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) *** -

$MadelineProto->[bots->answerWebhookJSONQuery](bots_answerWebhookJSONQuery.md)(\['query_id' => [long](../types/long.md), 'data' => [DataJSON](../types/DataJSON.md), \]) === [$Bool](../types/Bool.md) +

* Send webhook request via bot API -$MadelineProto->[bots->sendCustomRequest](bots_sendCustomRequest.md)(\['custom_method' => [string](../types/string.md), 'params' => [DataJSON](../types/DataJSON.md), \]) === [$DataJSON](../types/DataJSON.md) +* Send a custom request to the bot API *** -

$MadelineProto->[channels->checkUsername](channels_checkUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +

* Check if this username is free and can be assigned to a channel/supergroup -$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) +* Create channel/supergroup -$MadelineProto->[channels->deleteChannel](channels_deleteChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Delete a channel/supergroup -$MadelineProto->[channels->deleteMessages](channels_deleteMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Delete channel/supergroup messages -$MadelineProto->[channels->deleteUserHistory](channels_deleteUserHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Delete all messages of a user in a channel/supergroup -$MadelineProto->[channels->editAbout](channels_editAbout.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'about' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Edit the about text of a channel/supergroup -$MadelineProto->[channels->editAdmin](channels_editAdmin.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), 'admin_rights' => [ChannelAdminRights](../types/ChannelAdminRights.md), \]) === [$Updates](../types/Updates.md) +* Edit admin permissions of a user in a channel/supergroup -$MadelineProto->[channels->editBanned](channels_editBanned.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), 'banned_rights' => [ChannelBannedRights](../types/ChannelBannedRights.md), \]) === [$Updates](../types/Updates.md) +* Kick or ban a user from a channel/supergroup -$MadelineProto->[channels->editPhoto](channels_editPhoto.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) +* Edit the photo of a supergroup/channel -$MadelineProto->[channels->editTitle](channels_editTitle.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Edit the title of a supergroup/channel -$MadelineProto->[channels->exportInvite](channels_exportInvite.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) +* Export the invite link of a channel -$MadelineProto->[channels->exportMessageLink](channels_exportMessageLink.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => [int](../types/int.md), \]) === [$ExportedMessageLink](../types/ExportedMessageLink.md) +* Get the link of a message in a channel -$MadelineProto->[channels->getAdminLog](channels_getAdminLog.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'q' => [string](../types/string.md), 'events_filter' => [ChannelAdminLogEventsFilter](../types/ChannelAdminLogEventsFilter.md), 'admins' => \[[InputUser](../types/InputUser.md)\], 'max_id' => [long](../types/long.md), 'min_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), \]) === [$channels\_AdminLogResults](../types/channels_AdminLogResults.md) +* Get admin log of a channel/supergroup -$MadelineProto->[channels->getAdminedPublicChannels](channels_getAdminedPublicChannels.md)(\[\]) === [$messages\_Chats](../types/messages_Chats.md) +* Get all supergroups/channels where you're admin -$MadelineProto->[channels->getChannels](channels_getChannels.md)(\['id' => \[[InputChannel](../types/InputChannel.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get info about multiple channels/supergroups -$MadelineProto->[channels->getFullChannel](channels_getFullChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) +* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[channels->getMessages](channels_getMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get channel/supergroup messages -$MadelineProto->[channels->getParticipant](channels_getParticipant.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) +* Get info about a certain channel/supergroup participant -$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) +* Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead) -$MadelineProto->[channels->inviteToChannel](channels_inviteToChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'users' => \[[InputUser](../types/InputUser.md)\], \]) === [$Updates](../types/Updates.md) +* Add users to channel/supergroup -$MadelineProto->[channels->joinChannel](channels_joinChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Join a channel/supergroup -$MadelineProto->[channels->leaveChannel](channels_leaveChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Leave a channel/supergroup -$MadelineProto->[channels->readHistory](channels_readHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Mark channel/supergroup history as read -$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) +* Report a supergroup/channel for spam -$MadelineProto->[channels->toggleInvites](channels_toggleInvites.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Allow or disallow any user to invite users to this channel/supergroup -$MadelineProto->[channels->toggleSignatures](channels_toggleSignatures.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Toggle channel signatures -$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) +* Set the pinned message of a channel/supergroup -$MadelineProto->[channels->updateUsername](channels_updateUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Update the username of a supergroup/channel *** -

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +

* Block a user -$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) +* Delete a contact -$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) +* Delete multiple contacts -$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) +* Export contact as card -$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) +* Get blocked users -$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [string](../types/string.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) +* Get info about a certain contact -$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) +* Get online status of all users -$MadelineProto->[contacts->getTopPeers](contacts_getTopPeers.md)(\['correspondents' => [Bool](../types/Bool.md), 'bots_pm' => [Bool](../types/Bool.md), 'bots_inline' => [Bool](../types/Bool.md), 'phone_calls' => [Bool](../types/Bool.md), 'groups' => [Bool](../types/Bool.md), 'channels' => [Bool](../types/Bool.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'hash' => [int](../types/int.md), \]) === [$contacts\_TopPeers](../types/contacts_TopPeers.md) +* Get most used chats -$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) +* Import card as contact -$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], 'replace' => [Bool](../types/Bool.md), \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) +* Add phone number as contact -$MadelineProto->[contacts->resetTopPeerRating](contacts_resetTopPeerRating.md)(\['category' => [TopPeerCategory](../types/TopPeerCategory.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Reset top peer rating for a certain category/peer -$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) +* You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) +* Search contacts -$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +* Unblock a user *** -

$MadelineProto->[contest->saveDeveloperInfo](contest_saveDeveloperInfo.md)(\['vk_id' => [int](../types/int.md), 'name' => [string](../types/string.md), 'phone_number' => [string](../types/string.md), 'age' => [int](../types/int.md), 'city' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +

* Save developer info for telegram contest *** -

$MadelineProto->[destroy_auth_key](destroy_auth_key.md)(\[\]) === [$DestroyAuthKeyRes](../types/DestroyAuthKeyRes.md) +

* Destroy current authorization key -$MadelineProto->[destroy_session](destroy_session.md)(\['session_id' => [long](../types/long.md), \]) === [$DestroySessionRes](../types/DestroySessionRes.md) +* Destroy the current MTProto session *** -

$MadelineProto->[get_future_salts](get_future_salts.md)(\['num' => [int](../types/int.md), \]) === [$FutureSalts](../types/FutureSalts.md) +

* Get future salts *** -

$MadelineProto->[help->getAppChangelog](help_getAppChangelog.md)(\['prev_app_version' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +

* Get the changelog of this app -$MadelineProto->[help->getAppUpdate](help_getAppUpdate.md)(\[\]) === [$help\_AppUpdate](../types/help_AppUpdate.md) +* Get info about app updates -$MadelineProto->[help->getCdnConfig](help_getCdnConfig.md)(\[\]) === [$CdnConfig](../types/CdnConfig.md) +* Get CDN configuration -$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) +* Get server configuration -$MadelineProto->[help->getInviteText](help_getInviteText.md)(\[\]) === [$help\_InviteText](../types/help_InviteText.md) +* Get invitation text -$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) +* Get nearest datacenter -$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) +* Get info of support user -$MadelineProto->[help->getTermsOfService](help_getTermsOfService.md)(\[\]) === [$help\_TermsOfService](../types/help_TermsOfService.md) +* Get terms of service -$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) +* Log data for developer of this app -$MadelineProto->[help->setBotUpdatesStatus](help_setBotUpdatesStatus.md)(\['pending_updates_count' => [int](../types/int.md), 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Set the update status of webhook *** -

$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), 'system_lang_code' => [string](../types/string.md), 'lang_pack' => [string](../types/string.md), 'lang_code' => [string](../types/string.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Initializes connection and save information on the user's device and application. *** -

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invokes a query after successfull completion of one of the previous queries. *** -

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Result type returned by a current query. *** -

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invoke this method with layer X *** -

$MadelineProto->[invokeWithoutUpdates](invokeWithoutUpdates.md)(\['query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invoke with method without returning updates in the socket *** -

$MadelineProto->[langpack->getDifference](langpack_getDifference.md)(\['from_version' => [int](../types/int.md), \]) === [$LangPackDifference](../types/LangPackDifference.md) +

* Get language pack updates -$MadelineProto->[langpack->getLangPack](langpack_getLangPack.md)(\['lang_code' => [string](../types/string.md), \]) === [$LangPackDifference](../types/LangPackDifference.md) +* Get language pack -$MadelineProto->[langpack->getLanguages](langpack_getLanguages.md)(\[\]) === [$Vector\_of\_LangPackLanguage](../types/LangPackLanguage.md) +* Get available languages -$MadelineProto->[langpack->getStrings](langpack_getStrings.md)(\['lang_code' => [string](../types/string.md), 'keys' => \[[string](../types/string.md)\], \]) === [$Vector\_of\_LangPackString](../types/LangPackString.md) +* Get language pack strings *** -

$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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Add a user to a normal chat (use channels->inviteToChannel for supergroups) -$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md) +* Check if an invitation link is valid -$MadelineProto->[messages->clearRecentStickers](messages_clearRecentStickers.md)(\['attached' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Clear all recent stickers -$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Create a chat (not supergroup) -$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md) +* Delete a user from a chat (not supergroup) -$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['just_clear' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Delete chat history -$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['revoke' => [Bool](../types/Bool.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Delete messages -$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Edit admin permissions -$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) +* Edit the photo of a normal chat (not supergroup) -$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Edit the title of a normal chat (not supergroup) -$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) +* Edit a sent inline message -$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) +* Edit a message -$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) +* Export chat invite -$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) +* Forward message -$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'with_my_score' => [Bool](../types/Bool.md), 'from_peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], 'to_peer' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) +* Forward messages -$MadelineProto->[messages->getAllChats](messages_getAllChats.md)(\['except_ids' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get all chats (not supergroups or channels) -$MadelineProto->[messages->getAllDrafts](messages_getAllDrafts.md)(\[\]) === [$Updates](../types/Updates.md) +* Get all message drafts -$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) +* Get all stickerpacks -$MadelineProto->[messages->getArchivedStickers](messages_getArchivedStickers.md)(\['masks' => [Bool](../types/Bool.md), 'offset_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), \]) === [$messages\_ArchivedStickers](../types/messages_ArchivedStickers.md) +* Get all archived stickers -$MadelineProto->[messages->getAttachedStickers](messages_getAttachedStickers.md)(\['media' => [InputStickeredMedia](../types/InputStickeredMedia.md), \]) === [$Vector\_of\_StickerSetCovered](../types/StickerSetCovered.md) +* Get stickers attachable to images -$MadelineProto->[messages->getBotCallbackAnswer](messages_getBotCallbackAnswer.md)(\['game' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'msg_id' => [int](../types/int.md), 'data' => [bytes](../types/bytes.md), \]) === [$messages\_BotCallbackAnswer](../types/messages_BotCallbackAnswer.md) +* Get the callback answer of a bot (after clicking a button) -$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get info about chats -$MadelineProto->[messages->getCommonChats](messages_getCommonChats.md)(\['user_id' => [InputUser](../types/InputUser.md), 'max_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get chats in common with a user -$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) +* You cannot use this method directly, instead use $MadelineProto->get_dh_config(); -$MadelineProto->[messages->getDialogs](messages_getDialogs.md)(\['exclude_pinned' => [Bool](../types/Bool.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) +* Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html -$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) +* Get document by SHA256 hash -$MadelineProto->[messages->getFeaturedStickers](messages_getFeaturedStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_FeaturedStickers](../types/messages_FeaturedStickers.md) +* Get featured stickers -$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) +* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[messages->getGameHighScores](messages_getGameHighScores.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_HighScores](../types/messages_HighScores.md) +* Get high scores of a game -$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) +* Get previous messages of a group -$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) +* Call inline bot -$MadelineProto->[messages->getInlineGameHighScores](messages_getInlineGameHighScores.md)(\['id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_HighScores](../types/messages_HighScores.md) +* Get high scores of a game sent in an inline message -$MadelineProto->[messages->getMaskStickers](messages_getMaskStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) +* Get masks -$MadelineProto->[messages->getMessageEditData](messages_getMessageEditData.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$messages\_MessageEditData](../types/messages_MessageEditData.md) +* Check if about to edit a message or a media caption -$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get messages -$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) +* Get and increase message views -$MadelineProto->[messages->getPeerDialogs](messages_getPeerDialogs.md)(\['peers' => \[[InputPeer](../types/InputPeer.md)\], \]) === [$messages\_PeerDialogs](../types/messages_PeerDialogs.md) +* Get dialog info of peers -$MadelineProto->[messages->getPeerSettings](messages_getPeerSettings.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$PeerSettings](../types/PeerSettings.md) +* Get the settings of apeer -$MadelineProto->[messages->getPinnedDialogs](messages_getPinnedDialogs.md)(\[\]) === [$messages\_PeerDialogs](../types/messages_PeerDialogs.md) +* Get pinned dialogs -$MadelineProto->[messages->getRecentStickers](messages_getRecentStickers.md)(\['attached' => [Bool](../types/Bool.md), 'hash' => [int](../types/int.md), \]) === [$messages\_RecentStickers](../types/messages_RecentStickers.md) +* Get recent stickers -$MadelineProto->[messages->getSavedGifs](messages_getSavedGifs.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_SavedGifs](../types/messages_SavedGifs.md) +* Get saved gifs -$MadelineProto->[messages->getStickerSet](messages_getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) +* Get a stickerset -$MadelineProto->[messages->getWebPage](messages_getWebPage.md)(\['url' => [string](../types/string.md), 'hash' => [int](../types/int.md), \]) === [$WebPage](../types/WebPage.md) +* Get webpage preview -$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) === [$MessageMedia](../types/MessageMedia.md) +* Get webpage preview -$MadelineProto->[messages->hideReportSpam](messages_hideReportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Hide report spam popup -$MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Import chat invite -$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'archived' => [Bool](../types/Bool.md), \]) === [$messages\_StickerSetInstallResult](../types/messages_StickerSetInstallResult.md) +* Add a sticker set -$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) +* Convert chat to supergroup -$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Mark messages as read in secret chats -$MadelineProto->[messages->readFeaturedStickers](messages_readFeaturedStickers.md)(\['id' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) +* Mark new featured stickers as read -$MadelineProto->[messages->readHistory](messages_readHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Mark messages as read -$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Mark message as read -$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_ReceivedNotifyMessage](../types/ReceivedNotifyMessage.md) +* Mark messages as read -$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) +* You cannot use this method directly -$MadelineProto->[messages->reorderPinnedDialogs](messages_reorderPinnedDialogs.md)(\['force' => [Bool](../types/Bool.md), 'order' => \[[InputPeer](../types/InputPeer.md)\], \]) === [$Bool](../types/Bool.md) +* Reorder pinned dialogs -$MadelineProto->[messages->reorderStickerSets](messages_reorderStickerSets.md)(\['masks' => [Bool](../types/Bool.md), 'order' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) +* Reorder sticker sets -$MadelineProto->[messages->reportEncryptedSpam](messages_reportEncryptedSpam.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), \]) === [$Bool](../types/Bool.md) +* Report for spam a secret chat -$MadelineProto->[messages->reportSpam](messages_reportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Report a peer for spam -$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$MadelineProto->[messages->saveDraft](messages_saveDraft.md)(\['no_webpage' => [Bool](../types/Bool.md), 'reply_to_msg_id' => [int](../types/int.md), 'peer' => [InputPeer](../types/InputPeer.md), 'message' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Bool](../types/Bool.md) +* Save a message draft -$MadelineProto->[messages->saveGif](messages_saveGif.md)(\['id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Save a GIF -$MadelineProto->[messages->saveRecentSticker](messages_saveRecentSticker.md)(\['attached' => [Bool](../types/Bool.md), 'id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Add a sticker to recent stickers -$MadelineProto->[messages->search](messages_search.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'q' => [string](../types/string.md), 'from_id' => [InputUser](../types/InputUser.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) +* Search peers or messages -$MadelineProto->[messages->searchGifs](messages_searchGifs.md)(\['q' => [string](../types/string.md), 'offset' => [int](../types/int.md), \]) === [$messages\_FoundGifs](../types/messages_FoundGifs.md) +* Search gifs -$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) +* Global message search -$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send message to secret chat -$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) +* Send a file to a secret chat -$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send a service message to a secret chat -$MadelineProto->[messages->sendInlineBotResult](messages_sendInlineBotResult.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'query_id' => [long](../types/long.md), 'id' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Send a received bot result to the chat -$MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'media' => [InputMedia](../types/InputMedia.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \]) === [$Updates](../types/Updates.md) +* Send a media -$MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Updates](../types/Updates.md) +* Send a message -$MadelineProto->[messages->setBotCallbackAnswer](messages_setBotCallbackAnswer.md)(\['alert' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'message' => [string](../types/string.md), 'url' => [string](../types/string.md), 'cache_time' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Bots only: set the callback answer (after a button was clicked) -$MadelineProto->[messages->setBotPrecheckoutResults](messages_setBotPrecheckoutResults.md)(\['success' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'error' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Bots only: set precheckout results -$MadelineProto->[messages->setBotShippingResults](messages_setBotShippingResults.md)(\['query_id' => [long](../types/long.md), 'error' => [string](../types/string.md), 'shipping_options' => \[[ShippingOption](../types/ShippingOption.md)\], \]) === [$Bool](../types/Bool.md) +* Bots only: set shipping results -$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Send typing notification to secret chat -$MadelineProto->[messages->setGameScore](messages_setGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'force' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) +* Set the game score -$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) +* Bots only: set the results of an inline query -$MadelineProto->[messages->setInlineGameScore](messages_setInlineGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'force' => [Bool](../types/Bool.md), 'id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Set the game score of an inline message -$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) +* Change typing status -$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) +* Start a bot -$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Enable all users are admins in normal groups (not supergroups) -$MadelineProto->[messages->toggleDialogPin](messages_toggleDialogPin.md)(\['pinned' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Pin or unpin dialog -$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) +* Remove a sticker set -$MadelineProto->[messages->uploadMedia](messages_uploadMedia.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'media' => [InputMedia](../types/InputMedia.md), \]) === [$MessageMedia](../types/MessageMedia.md) +* Upload a file without sending it to anyone *** -

$MadelineProto->[payments->clearSavedInfo](payments_clearSavedInfo.md)(\['credentials' => [Bool](../types/Bool.md), 'info' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +

* Clear saved payments info -$MadelineProto->[payments->getPaymentForm](payments_getPaymentForm.md)(\['msg_id' => [int](../types/int.md), \]) === [$payments\_PaymentForm](../types/payments_PaymentForm.md) +* Get payment form -$MadelineProto->[payments->getPaymentReceipt](payments_getPaymentReceipt.md)(\['msg_id' => [int](../types/int.md), \]) === [$payments\_PaymentReceipt](../types/payments_PaymentReceipt.md) +* Get payment receipt -$MadelineProto->[payments->getSavedInfo](payments_getSavedInfo.md)(\[\]) === [$payments\_SavedInfo](../types/payments_SavedInfo.md) +* Get saved payments info -$MadelineProto->[payments->sendPaymentForm](payments_sendPaymentForm.md)(\['msg_id' => [int](../types/int.md), 'requested_info_id' => [string](../types/string.md), 'shipping_option_id' => [string](../types/string.md), 'credentials' => [InputPaymentCredentials](../types/InputPaymentCredentials.md), \]) === [$payments\_PaymentResult](../types/payments_PaymentResult.md) +* Bots only: send payment form -$MadelineProto->[payments->validateRequestedInfo](payments_validateRequestedInfo.md)(\['save' => [Bool](../types/Bool.md), 'msg_id' => [int](../types/int.md), 'info' => [PaymentRequestedInfo](../types/PaymentRequestedInfo.md), \]) === [$payments\_ValidatedRequestedInfo](../types/payments_ValidatedRequestedInfo.md) +* Validate requested payment info *** -

$MadelineProto->[phone->acceptCall](phone_acceptCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'g_b' => [bytes](../types/bytes.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) +

* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls -$MadelineProto->[phone->confirmCall](phone_confirmCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'g_a' => [bytes](../types/bytes.md), 'key_fingerprint' => [long](../types/long.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls -$MadelineProto->[phone->discardCall](phone_discardCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'duration' => [int](../types/int.md), 'reason' => [PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md), 'connection_id' => [long](../types/long.md), \]) === [$Updates](../types/Updates.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls -$MadelineProto->[phone->getCallConfig](phone_getCallConfig.md)(\[\]) === [$DataJSON](../types/DataJSON.md) +* Get call configuration -$MadelineProto->[phone->receivedCall](phone_receivedCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), \]) === [$Bool](../types/Bool.md) +* Notify server that you received a call (server will refuse all incoming calls until the current call is over) -$MadelineProto->[phone->requestCall](phone_requestCall.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a_hash' => [bytes](../types/bytes.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls -$MadelineProto->[phone->saveCallDebug](phone_saveCallDebug.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'debug' => [DataJSON](../types/DataJSON.md), \]) === [$Bool](../types/Bool.md) +* Save call debugging info -$MadelineProto->[phone->setCallRating](phone_setCallRating.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'rating' => [int](../types/int.md), 'comment' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Set phone call rating *** -

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) +

* Delete profile photos -$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) +* Get the profile photos of a user -$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) +* Update the profile photo (use photos->uploadProfilePhoto to upload the photo) -$MadelineProto->[photos->uploadProfilePhoto](photos_uploadProfilePhoto.md)(\['file' => [InputFile](../types/InputFile.md), \]) === [$photos\_Photo](../types/photos_Photo.md) +* Upload profile photo *** -

$MadelineProto->[ping](ping.md)(\['ping_id' => [long](../types/long.md), \]) === [$Pong](../types/Pong.md) +

* pings the server -$MadelineProto->[ping_delay_disconnect](ping_delay_disconnect.md)(\['ping_id' => [long](../types/long.md), 'disconnect_delay' => [int](../types/int.md), \]) === [$Pong](../types/Pong.md) +* Pings the server and causes disconection if the same method is not called within ping_disconnect_delay *** -

$MadelineProto->[req_DH_params](req_DH_params.md)(\['nonce' => [int128](../types/int128.md), 'server_nonce' => [int128](../types/int128.md), 'p' => [string](../types/string.md), 'q' => [string](../types/string.md), 'public_key_fingerprint' => [long](../types/long.md), 'encrypted_data' => [string](../types/string.md), \]) === [$Server\_DH\_Params](../types/Server_DH_Params.md) +

* Requests Diffie-hellman parameters for key exchange -$MadelineProto->[req_pq](req_pq.md)(\['nonce' => [int128](../types/int128.md), \]) === [$ResPQ](../types/ResPQ.md) +* Requests PQ for factorization *** -

$MadelineProto->[rpc_drop_answer](rpc_drop_answer.md)(\['req_msg_id' => [long](../types/long.md), \]) === [$RpcDropAnswer](../types/RpcDropAnswer.md) +

* Do not send answer to provided request *** -

$MadelineProto->[set_client_DH_params](set_client_DH_params.md)(\['nonce' => [int128](../types/int128.md), 'server_nonce' => [int128](../types/int128.md), 'encrypted_data' => [string](../types/string.md), \]) === [$Set\_client\_DH\_params\_answer](../types/Set_client_DH_params_answer.md) +

* Sets client diffie-hellman parameters *** -

$MadelineProto->[stickers->addStickerToSet](stickers_addStickerToSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'sticker' => [InputStickerSetItem](../types/InputStickerSetItem.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) +

* Add sticker to stickerset -$MadelineProto->[stickers->changeStickerPosition](stickers_changeStickerPosition.md)(\['sticker' => [InputDocument](../types/InputDocument.md), 'position' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Change sticker position in photo -$MadelineProto->[stickers->createStickerSet](stickers_createStickerSet.md)(\['masks' => [Bool](../types/Bool.md), 'user_id' => [InputUser](../types/InputUser.md), 'title' => [string](../types/string.md), 'short_name' => [string](../types/string.md), 'stickers' => \[[InputStickerSetItem](../types/InputStickerSetItem.md)\], \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) +* Create stickerset -$MadelineProto->[stickers->removeStickerFromSet](stickers_removeStickerFromSet.md)(\['sticker' => [InputDocument](../types/InputDocument.md), \]) === [$Bool](../types/Bool.md) +* Remove sticker from stickerset *** -

$MadelineProto->[updates->getChannelDifference](updates_getChannelDifference.md)(\['force' => [Bool](../types/Bool.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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates -$MadelineProto->[updates->getDifference](updates_getDifference.md)(\['pts' => [int](../types/int.md), 'pts_total_limit' => [int](../types/int.md), 'date' => [int](../types/int.md), 'qts' => [int](../types/int.md), \]) === [$updates\_Difference](../types/updates_Difference.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates -$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates *** -

$MadelineProto->[upload->getCdnFile](upload_getCdnFile.md)(\['file_token' => [bytes](../types/bytes.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$upload\_CdnFile](../types/upload_CdnFile.md) +

* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$MadelineProto->[upload->getWebFile](upload_getWebFile.md)(\['location' => [InputWebFileLocation](../types/InputWebFileLocation.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$upload\_WebFile](../types/upload_WebFile.md) +* Download a file through telegram -$MadelineProto->[upload->reuploadCdnFile](upload_reuploadCdnFile.md)(\['file_token' => [bytes](../types/bytes.md), 'request_token' => [bytes](../types/bytes.md), \]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info *** -

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) +

* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) +* Get info about users diff --git a/old_docs/API_docs_v68/methods/account_changePhone.md b/old_docs/API_docs_v68/methods/account_changePhone.md index aeb5c4bc..65f0b0d0 100644 --- a/old_docs/API_docs_v68/methods/account_changePhone.md +++ b/old_docs/API_docs_v68/methods/account_changePhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); diff --git a/old_docs/API_docs_v68/methods/account_checkUsername.md b/old_docs/API_docs_v68/methods/account_checkUsername.md index 0124bb38..08107762 100644 --- a/old_docs/API_docs_v68/methods/account_checkUsername.md +++ b/old_docs/API_docs_v68/methods/account_checkUsername.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v68/methods/account_confirmPhone.md b/old_docs/API_docs_v68/methods/account_confirmPhone.md index c6a1dba6..68490f35 100644 --- a/old_docs/API_docs_v68/methods/account_confirmPhone.md +++ b/old_docs/API_docs_v68/methods/account_confirmPhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->confirmPhone(['phone_code_hash' => 'string', 'phone_code' => 'string', ]); diff --git a/old_docs/API_docs_v68/methods/account_deleteAccount.md b/old_docs/API_docs_v68/methods/account_deleteAccount.md index e8b46c24..3a6f4700 100644 --- a/old_docs/API_docs_v68/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v68/methods/account_deleteAccount.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); diff --git a/old_docs/API_docs_v68/methods/account_getAccountTTL.md b/old_docs/API_docs_v68/methods/account_getAccountTTL.md index 0cdd0b98..ab6a6ea1 100644 --- a/old_docs/API_docs_v68/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v68/methods/account_getAccountTTL.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); diff --git a/old_docs/API_docs_v68/methods/account_getAuthorizations.md b/old_docs/API_docs_v68/methods/account_getAuthorizations.md index f92db8fe..303203e4 100644 --- a/old_docs/API_docs_v68/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v68/methods/account_getAuthorizations.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_Authorizations = $MadelineProto->account->getAuthorizations(); diff --git a/old_docs/API_docs_v68/methods/account_getNotifySettings.md b/old_docs/API_docs_v68/methods/account_getNotifySettings.md index f00be12c..ad492f49 100644 --- a/old_docs/API_docs_v68/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v68/methods/account_getNotifySettings.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); diff --git a/old_docs/API_docs_v68/methods/account_getPassword.md b/old_docs/API_docs_v68/methods/account_getPassword.md index c189421d..2692dab1 100644 --- a/old_docs/API_docs_v68/methods/account_getPassword.md +++ b/old_docs/API_docs_v68/methods/account_getPassword.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_Password = $MadelineProto->account->getPassword(); diff --git a/old_docs/API_docs_v68/methods/account_getPasswordSettings.md b/old_docs/API_docs_v68/methods/account_getPasswordSettings.md index 96cb953e..2039d405 100644 --- a/old_docs/API_docs_v68/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v68/methods/account_getPasswordSettings.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PasswordSettings = $MadelineProto->account->getPasswordSettings(['current_password_hash' => 'bytes', ]); diff --git a/old_docs/API_docs_v68/methods/account_getPrivacy.md b/old_docs/API_docs_v68/methods/account_getPrivacy.md index 979bfb94..5480ffbb 100644 --- a/old_docs/API_docs_v68/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v68/methods/account_getPrivacy.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); diff --git a/old_docs/API_docs_v68/methods/account_getTmpPassword.md b/old_docs/API_docs_v68/methods/account_getTmpPassword.md index a90f9b2b..01b1ebfc 100644 --- a/old_docs/API_docs_v68/methods/account_getTmpPassword.md +++ b/old_docs/API_docs_v68/methods/account_getTmpPassword.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_TmpPassword = $MadelineProto->account->getTmpPassword(['password_hash' => 'bytes', 'period' => int, ]); diff --git a/old_docs/API_docs_v68/methods/account_getWallPapers.md b/old_docs/API_docs_v68/methods/account_getWallPapers.md index 89b281be..7c8bff39 100644 --- a/old_docs/API_docs_v68/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v68/methods/account_getWallPapers.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); diff --git a/old_docs/API_docs_v68/methods/account_registerDevice.md b/old_docs/API_docs_v68/methods/account_registerDevice.md index cd28abcd..4e148a7f 100644 --- a/old_docs/API_docs_v68/methods/account_registerDevice.md +++ b/old_docs/API_docs_v68/methods/account_registerDevice.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', ]); diff --git a/old_docs/API_docs_v68/methods/account_reportPeer.md b/old_docs/API_docs_v68/methods/account_reportPeer.md index a07c87d0..c5fe7073 100644 --- a/old_docs/API_docs_v68/methods/account_reportPeer.md +++ b/old_docs/API_docs_v68/methods/account_reportPeer.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->reportPeer(['peer' => InputPeer, 'reason' => ReportReason, ]); diff --git a/old_docs/API_docs_v68/methods/account_resetAuthorization.md b/old_docs/API_docs_v68/methods/account_resetAuthorization.md index 4155d3c8..543aee08 100644 --- a/old_docs/API_docs_v68/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v68/methods/account_resetAuthorization.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetAuthorization(['hash' => long, ]); diff --git a/old_docs/API_docs_v68/methods/account_resetNotifySettings.md b/old_docs/API_docs_v68/methods/account_resetNotifySettings.md index ccc836a9..557373b0 100644 --- a/old_docs/API_docs_v68/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v68/methods/account_resetNotifySettings.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); diff --git a/old_docs/API_docs_v68/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v68/methods/account_sendChangePhoneCode.md index c9f9c174..bdf7331f 100644 --- a/old_docs/API_docs_v68/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v68/methods/account_sendChangePhoneCode.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendChangePhoneCode(['allow_flashcall' => Bool, 'phone_number' => 'string', 'current_number' => Bool, ]); diff --git a/old_docs/API_docs_v68/methods/account_sendConfirmPhoneCode.md b/old_docs/API_docs_v68/methods/account_sendConfirmPhoneCode.md index 3785ba75..86035d19 100644 --- a/old_docs/API_docs_v68/methods/account_sendConfirmPhoneCode.md +++ b/old_docs/API_docs_v68/methods/account_sendConfirmPhoneCode.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendConfirmPhoneCode(['allow_flashcall' => Bool, 'hash' => 'string', 'current_number' => Bool, ]); diff --git a/old_docs/API_docs_v68/methods/account_setAccountTTL.md b/old_docs/API_docs_v68/methods/account_setAccountTTL.md index 5100e62e..bacdd77a 100644 --- a/old_docs/API_docs_v68/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v68/methods/account_setAccountTTL.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); diff --git a/old_docs/API_docs_v68/methods/account_setPrivacy.md b/old_docs/API_docs_v68/methods/account_setPrivacy.md index fbcedae7..6e24ded7 100644 --- a/old_docs/API_docs_v68/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v68/methods/account_setPrivacy.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); diff --git a/old_docs/API_docs_v68/methods/account_unregisterDevice.md b/old_docs/API_docs_v68/methods/account_unregisterDevice.md index 1d2b7670..b666d91a 100644 --- a/old_docs/API_docs_v68/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v68/methods/account_unregisterDevice.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); diff --git a/old_docs/API_docs_v68/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v68/methods/account_updateDeviceLocked.md index ef816501..cd52093a 100644 --- a/old_docs/API_docs_v68/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v68/methods/account_updateDeviceLocked.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); diff --git a/old_docs/API_docs_v68/methods/account_updateNotifySettings.md b/old_docs/API_docs_v68/methods/account_updateNotifySettings.md index 18cbdb75..db020309 100644 --- a/old_docs/API_docs_v68/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v68/methods/account_updateNotifySettings.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); diff --git a/old_docs/API_docs_v68/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v68/methods/account_updatePasswordSettings.md index 0754dd63..8af1e37f 100644 --- a/old_docs/API_docs_v68/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v68/methods/account_updatePasswordSettings.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updatePasswordSettings(['current_password_hash' => 'bytes', 'new_settings' => account_PasswordInputSettings, ]); diff --git a/old_docs/API_docs_v68/methods/account_updateProfile.md b/old_docs/API_docs_v68/methods/account_updateProfile.md index e24ef2f5..59629188 100644 --- a/old_docs/API_docs_v68/methods/account_updateProfile.md +++ b/old_docs/API_docs_v68/methods/account_updateProfile.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', 'about' => 'string', ]); diff --git a/old_docs/API_docs_v68/methods/account_updateStatus.md b/old_docs/API_docs_v68/methods/account_updateStatus.md index 4b049e65..50b99b1e 100644 --- a/old_docs/API_docs_v68/methods/account_updateStatus.md +++ b/old_docs/API_docs_v68/methods/account_updateStatus.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); diff --git a/old_docs/API_docs_v68/methods/account_updateUsername.md b/old_docs/API_docs_v68/methods/account_updateUsername.md index 08d2abe0..7276e2aa 100644 --- a/old_docs/API_docs_v68/methods/account_updateUsername.md +++ b/old_docs/API_docs_v68/methods/account_updateUsername.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v68/methods/api_README.md b/old_docs/API_docs_v68/methods/api_README.md new file mode 100644 index 00000000..b531ce7a --- /dev/null +++ b/old_docs/API_docs_v68/methods/api_README.md @@ -0,0 +1,534 @@ +--- +title: Methods +description: List of methods +--- +# Methods +[Back to API documentation index](..) + +[Go to the new description-version method index](index.html) + +$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); + +$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); + +$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); + +$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); + +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); + + +$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); + +$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); + +$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); + +$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); + +$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); + + +$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); + +$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); + +*** +

$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) + +$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->confirmPhone](account_confirmPhone.md)(\['phone_code_hash' => [string](../types/string.md), 'phone_code' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) + +$MadelineProto->[account->getAuthorizations](account_getAuthorizations.md)(\[\]) === [$account\_Authorizations](../types/account_Authorizations.md) + +$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) + +$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md) + +$MadelineProto->[account->getPasswordSettings](account_getPasswordSettings.md)(\['current_password_hash' => [bytes](../types/bytes.md), \]) === [$account\_PasswordSettings](../types/account_PasswordSettings.md) + +$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->getTmpPassword](account_getTmpPassword.md)(\['password_hash' => [bytes](../types/bytes.md), 'period' => [int](../types/int.md), \]) === [$account\_TmpPassword](../types/account_TmpPassword.md) + +$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) + +$MadelineProto->[account->registerDevice](account_registerDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->reportPeer](account_reportPeer.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reason' => [ReportReason](../types/ReportReason.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[account->sendConfirmPhoneCode](account_sendConfirmPhoneCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'hash' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) + +$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$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) + +$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) + +*** +

$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) + +$MadelineProto->[auth->cancelCode](auth_cancelCode.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) + +$MadelineProto->[auth->dropTempAuthKeys](auth_dropTempAuthKeys.md)(\['except_auth_keys' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) + +$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$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) + +$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->recoverPassword](auth_recoverPassword.md)(\['code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->requestPasswordRecovery](auth_requestPasswordRecovery.md)(\[\]) === [$auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) + +$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) + +$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->sendCode](auth_sendCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'phone_number' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), 'api_id' => [int](../types/int.md), 'api_hash' => [string](../types/string.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) + +$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$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) + +*** +

$MadelineProto->[bots->answerWebhookJSONQuery](bots_answerWebhookJSONQuery.md)(\['query_id' => [long](../types/long.md), 'data' => [DataJSON](../types/DataJSON.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[bots->sendCustomRequest](bots_sendCustomRequest.md)(\['custom_method' => [string](../types/string.md), 'params' => [DataJSON](../types/DataJSON.md), \]) === [$DataJSON](../types/DataJSON.md) + +*** +

$MadelineProto->[channels->checkUsername](channels_checkUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->deleteChannel](channels_deleteChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->deleteMessages](channels_deleteMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[channels->deleteUserHistory](channels_deleteUserHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[channels->editAbout](channels_editAbout.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'about' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[channels->editAdmin](channels_editAdmin.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), 'admin_rights' => [ChannelAdminRights](../types/ChannelAdminRights.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->editBanned](channels_editBanned.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), 'banned_rights' => [ChannelBannedRights](../types/ChannelBannedRights.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->editPhoto](channels_editPhoto.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->editTitle](channels_editTitle.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->exportInvite](channels_exportInvite.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) + +$MadelineProto->[channels->exportMessageLink](channels_exportMessageLink.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => [int](../types/int.md), \]) === [$ExportedMessageLink](../types/ExportedMessageLink.md) + +$MadelineProto->[channels->getAdminLog](channels_getAdminLog.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'q' => [string](../types/string.md), 'events_filter' => [ChannelAdminLogEventsFilter](../types/ChannelAdminLogEventsFilter.md), 'admins' => \[[InputUser](../types/InputUser.md)\], 'max_id' => [long](../types/long.md), 'min_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), \]) === [$channels\_AdminLogResults](../types/channels_AdminLogResults.md) + +$MadelineProto->[channels->getAdminedPublicChannels](channels_getAdminedPublicChannels.md)(\[\]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[channels->getChannels](channels_getChannels.md)(\['id' => \[[InputChannel](../types/InputChannel.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[channels->getFullChannel](channels_getFullChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$MadelineProto->[channels->getMessages](channels_getMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) + +$MadelineProto->[channels->getParticipant](channels_getParticipant.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) + +$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) + +$MadelineProto->[channels->inviteToChannel](channels_inviteToChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'users' => \[[InputUser](../types/InputUser.md)\], \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->joinChannel](channels_joinChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->leaveChannel](channels_leaveChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->readHistory](channels_readHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->toggleInvites](channels_toggleInvites.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->toggleSignatures](channels_toggleSignatures.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$MadelineProto->[channels->updateUsername](channels_updateUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) + +$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) + +$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) + +$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [string](../types/string.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) + +$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) + +$MadelineProto->[contacts->getTopPeers](contacts_getTopPeers.md)(\['correspondents' => [Bool](../types/Bool.md), 'bots_pm' => [Bool](../types/Bool.md), 'bots_inline' => [Bool](../types/Bool.md), 'phone_calls' => [Bool](../types/Bool.md), 'groups' => [Bool](../types/Bool.md), 'channels' => [Bool](../types/Bool.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'hash' => [int](../types/int.md), \]) === [$contacts\_TopPeers](../types/contacts_TopPeers.md) + +$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) + +$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], 'replace' => [Bool](../types/Bool.md), \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) + +$MadelineProto->[contacts->resetTopPeerRating](contacts_resetTopPeerRating.md)(\['category' => [TopPeerCategory](../types/TopPeerCategory.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) + +$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) + +$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[contest->saveDeveloperInfo](contest_saveDeveloperInfo.md)(\['vk_id' => [int](../types/int.md), 'name' => [string](../types/string.md), 'phone_number' => [string](../types/string.md), 'age' => [int](../types/int.md), 'city' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[destroy_auth_key](destroy_auth_key.md)(\[\]) === [$DestroyAuthKeyRes](../types/DestroyAuthKeyRes.md) + +$MadelineProto->[destroy_session](destroy_session.md)(\['session_id' => [long](../types/long.md), \]) === [$DestroySessionRes](../types/DestroySessionRes.md) + +*** +

$MadelineProto->[get_future_salts](get_future_salts.md)(\['num' => [int](../types/int.md), \]) === [$FutureSalts](../types/FutureSalts.md) + +*** +

$MadelineProto->[help->getAppChangelog](help_getAppChangelog.md)(\['prev_app_version' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[help->getAppUpdate](help_getAppUpdate.md)(\[\]) === [$help\_AppUpdate](../types/help_AppUpdate.md) + +$MadelineProto->[help->getCdnConfig](help_getCdnConfig.md)(\[\]) === [$CdnConfig](../types/CdnConfig.md) + +$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) + +$MadelineProto->[help->getInviteText](help_getInviteText.md)(\[\]) === [$help\_InviteText](../types/help_InviteText.md) + +$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) + +$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) + +$MadelineProto->[help->getTermsOfService](help_getTermsOfService.md)(\[\]) === [$help\_TermsOfService](../types/help_TermsOfService.md) + +$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[help->setBotUpdatesStatus](help_setBotUpdatesStatus.md)(\['pending_updates_count' => [int](../types/int.md), 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +*** +

$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), 'system_lang_code' => [string](../types/string.md), 'lang_pack' => [string](../types/string.md), 'lang_code' => [string](../types/string.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeWithoutUpdates](invokeWithoutUpdates.md)(\['query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[langpack->getDifference](langpack_getDifference.md)(\['from_version' => [int](../types/int.md), \]) === [$LangPackDifference](../types/LangPackDifference.md) + +$MadelineProto->[langpack->getLangPack](langpack_getLangPack.md)(\['lang_code' => [string](../types/string.md), \]) === [$LangPackDifference](../types/LangPackDifference.md) + +$MadelineProto->[langpack->getLanguages](langpack_getLanguages.md)(\[\]) === [$Vector\_of\_LangPackLanguage](../types/LangPackLanguage.md) + +$MadelineProto->[langpack->getStrings](langpack_getStrings.md)(\['lang_code' => [string](../types/string.md), 'keys' => \[[string](../types/string.md)\], \]) === [$Vector\_of\_LangPackString](../types/LangPackString.md) + +*** +

$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) + +$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) + +$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md) + +$MadelineProto->[messages->clearRecentStickers](messages_clearRecentStickers.md)(\['attached' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['just_clear' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['revoke' => [Bool](../types/Bool.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$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) + +$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) + +$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'with_my_score' => [Bool](../types/Bool.md), 'from_peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], 'to_peer' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->getAllChats](messages_getAllChats.md)(\['except_ids' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[messages->getAllDrafts](messages_getAllDrafts.md)(\[\]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) + +$MadelineProto->[messages->getArchivedStickers](messages_getArchivedStickers.md)(\['masks' => [Bool](../types/Bool.md), 'offset_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), \]) === [$messages\_ArchivedStickers](../types/messages_ArchivedStickers.md) + +$MadelineProto->[messages->getAttachedStickers](messages_getAttachedStickers.md)(\['media' => [InputStickeredMedia](../types/InputStickeredMedia.md), \]) === [$Vector\_of\_StickerSetCovered](../types/StickerSetCovered.md) + +$MadelineProto->[messages->getBotCallbackAnswer](messages_getBotCallbackAnswer.md)(\['game' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'msg_id' => [int](../types/int.md), 'data' => [bytes](../types/bytes.md), \]) === [$messages\_BotCallbackAnswer](../types/messages_BotCallbackAnswer.md) + +$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[messages->getCommonChats](messages_getCommonChats.md)(\['user_id' => [InputUser](../types/InputUser.md), 'max_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) + +$MadelineProto->[messages->getDialogs](messages_getDialogs.md)(\['exclude_pinned' => [Bool](../types/Bool.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) + +$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) + +$MadelineProto->[messages->getFeaturedStickers](messages_getFeaturedStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_FeaturedStickers](../types/messages_FeaturedStickers.md) + +$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$MadelineProto->[messages->getGameHighScores](messages_getGameHighScores.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_HighScores](../types/messages_HighScores.md) + +$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) + +$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) + +$MadelineProto->[messages->getInlineGameHighScores](messages_getInlineGameHighScores.md)(\['id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_HighScores](../types/messages_HighScores.md) + +$MadelineProto->[messages->getMaskStickers](messages_getMaskStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) + +$MadelineProto->[messages->getMessageEditData](messages_getMessageEditData.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$messages\_MessageEditData](../types/messages_MessageEditData.md) + +$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) + +$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) + +$MadelineProto->[messages->getPeerDialogs](messages_getPeerDialogs.md)(\['peers' => \[[InputPeer](../types/InputPeer.md)\], \]) === [$messages\_PeerDialogs](../types/messages_PeerDialogs.md) + +$MadelineProto->[messages->getPeerSettings](messages_getPeerSettings.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$PeerSettings](../types/PeerSettings.md) + +$MadelineProto->[messages->getPinnedDialogs](messages_getPinnedDialogs.md)(\[\]) === [$messages\_PeerDialogs](../types/messages_PeerDialogs.md) + +$MadelineProto->[messages->getRecentStickers](messages_getRecentStickers.md)(\['attached' => [Bool](../types/Bool.md), 'hash' => [int](../types/int.md), \]) === [$messages\_RecentStickers](../types/messages_RecentStickers.md) + +$MadelineProto->[messages->getSavedGifs](messages_getSavedGifs.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_SavedGifs](../types/messages_SavedGifs.md) + +$MadelineProto->[messages->getStickerSet](messages_getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +$MadelineProto->[messages->getWebPage](messages_getWebPage.md)(\['url' => [string](../types/string.md), 'hash' => [int](../types/int.md), \]) === [$WebPage](../types/WebPage.md) + +$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) === [$MessageMedia](../types/MessageMedia.md) + +$MadelineProto->[messages->hideReportSpam](messages_hideReportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'archived' => [Bool](../types/Bool.md), \]) === [$messages\_StickerSetInstallResult](../types/messages_StickerSetInstallResult.md) + +$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->readFeaturedStickers](messages_readFeaturedStickers.md)(\['id' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->readHistory](messages_readHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_ReceivedNotifyMessage](../types/ReceivedNotifyMessage.md) + +$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) + +$MadelineProto->[messages->reorderPinnedDialogs](messages_reorderPinnedDialogs.md)(\['force' => [Bool](../types/Bool.md), 'order' => \[[InputPeer](../types/InputPeer.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->reorderStickerSets](messages_reorderStickerSets.md)(\['masks' => [Bool](../types/Bool.md), 'order' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->reportEncryptedSpam](messages_reportEncryptedSpam.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->reportSpam](messages_reportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) + +$MadelineProto->[messages->saveDraft](messages_saveDraft.md)(\['no_webpage' => [Bool](../types/Bool.md), 'reply_to_msg_id' => [int](../types/int.md), 'peer' => [InputPeer](../types/InputPeer.md), 'message' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->saveGif](messages_saveGif.md)(\['id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->saveRecentSticker](messages_saveRecentSticker.md)(\['attached' => [Bool](../types/Bool.md), 'id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->search](messages_search.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'q' => [string](../types/string.md), 'from_id' => [InputUser](../types/InputUser.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) + +$MadelineProto->[messages->searchGifs](messages_searchGifs.md)(\['q' => [string](../types/string.md), 'offset' => [int](../types/int.md), \]) === [$messages\_FoundGifs](../types/messages_FoundGifs.md) + +$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) + +$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$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) + +$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$MadelineProto->[messages->sendInlineBotResult](messages_sendInlineBotResult.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'query_id' => [long](../types/long.md), 'id' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'media' => [InputMedia](../types/InputMedia.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->setBotCallbackAnswer](messages_setBotCallbackAnswer.md)(\['alert' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'message' => [string](../types/string.md), 'url' => [string](../types/string.md), 'cache_time' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setBotPrecheckoutResults](messages_setBotPrecheckoutResults.md)(\['success' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'error' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setBotShippingResults](messages_setBotShippingResults.md)(\['query_id' => [long](../types/long.md), 'error' => [string](../types/string.md), 'shipping_options' => \[[ShippingOption](../types/ShippingOption.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setGameScore](messages_setGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'force' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$MadelineProto->[messages->setInlineGameScore](messages_setInlineGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'force' => [Bool](../types/Bool.md), 'id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->toggleDialogPin](messages_toggleDialogPin.md)(\['pinned' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->uploadMedia](messages_uploadMedia.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'media' => [InputMedia](../types/InputMedia.md), \]) === [$MessageMedia](../types/MessageMedia.md) + +*** +

$MadelineProto->[payments->clearSavedInfo](payments_clearSavedInfo.md)(\['credentials' => [Bool](../types/Bool.md), 'info' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[payments->getPaymentForm](payments_getPaymentForm.md)(\['msg_id' => [int](../types/int.md), \]) === [$payments\_PaymentForm](../types/payments_PaymentForm.md) + +$MadelineProto->[payments->getPaymentReceipt](payments_getPaymentReceipt.md)(\['msg_id' => [int](../types/int.md), \]) === [$payments\_PaymentReceipt](../types/payments_PaymentReceipt.md) + +$MadelineProto->[payments->getSavedInfo](payments_getSavedInfo.md)(\[\]) === [$payments\_SavedInfo](../types/payments_SavedInfo.md) + +$MadelineProto->[payments->sendPaymentForm](payments_sendPaymentForm.md)(\['msg_id' => [int](../types/int.md), 'requested_info_id' => [string](../types/string.md), 'shipping_option_id' => [string](../types/string.md), 'credentials' => [InputPaymentCredentials](../types/InputPaymentCredentials.md), \]) === [$payments\_PaymentResult](../types/payments_PaymentResult.md) + +$MadelineProto->[payments->validateRequestedInfo](payments_validateRequestedInfo.md)(\['save' => [Bool](../types/Bool.md), 'msg_id' => [int](../types/int.md), 'info' => [PaymentRequestedInfo](../types/PaymentRequestedInfo.md), \]) === [$payments\_ValidatedRequestedInfo](../types/payments_ValidatedRequestedInfo.md) + +*** +

$MadelineProto->[phone->acceptCall](phone_acceptCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'g_b' => [bytes](../types/bytes.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) + +$MadelineProto->[phone->confirmCall](phone_confirmCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'g_a' => [bytes](../types/bytes.md), 'key_fingerprint' => [long](../types/long.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) + +$MadelineProto->[phone->discardCall](phone_discardCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'duration' => [int](../types/int.md), 'reason' => [PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md), 'connection_id' => [long](../types/long.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[phone->getCallConfig](phone_getCallConfig.md)(\[\]) === [$DataJSON](../types/DataJSON.md) + +$MadelineProto->[phone->receivedCall](phone_receivedCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[phone->requestCall](phone_requestCall.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a_hash' => [bytes](../types/bytes.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) + +$MadelineProto->[phone->saveCallDebug](phone_saveCallDebug.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'debug' => [DataJSON](../types/DataJSON.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[phone->setCallRating](phone_setCallRating.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'rating' => [int](../types/int.md), 'comment' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +*** +

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) + +$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) + +$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) + +$MadelineProto->[photos->uploadProfilePhoto](photos_uploadProfilePhoto.md)(\['file' => [InputFile](../types/InputFile.md), \]) === [$photos\_Photo](../types/photos_Photo.md) + +*** +

$MadelineProto->[ping](ping.md)(\['ping_id' => [long](../types/long.md), \]) === [$Pong](../types/Pong.md) + +$MadelineProto->[ping_delay_disconnect](ping_delay_disconnect.md)(\['ping_id' => [long](../types/long.md), 'disconnect_delay' => [int](../types/int.md), \]) === [$Pong](../types/Pong.md) + +*** +

$MadelineProto->[req_DH_params](req_DH_params.md)(\['nonce' => [int128](../types/int128.md), 'server_nonce' => [int128](../types/int128.md), 'p' => [string](../types/string.md), 'q' => [string](../types/string.md), 'public_key_fingerprint' => [long](../types/long.md), 'encrypted_data' => [string](../types/string.md), \]) === [$Server\_DH\_Params](../types/Server_DH_Params.md) + +$MadelineProto->[req_pq](req_pq.md)(\['nonce' => [int128](../types/int128.md), \]) === [$ResPQ](../types/ResPQ.md) + +*** +

$MadelineProto->[rpc_drop_answer](rpc_drop_answer.md)(\['req_msg_id' => [long](../types/long.md), \]) === [$RpcDropAnswer](../types/RpcDropAnswer.md) + +*** +

$MadelineProto->[set_client_DH_params](set_client_DH_params.md)(\['nonce' => [int128](../types/int128.md), 'server_nonce' => [int128](../types/int128.md), 'encrypted_data' => [string](../types/string.md), \]) === [$Set\_client\_DH\_params\_answer](../types/Set_client_DH_params_answer.md) + +*** +

$MadelineProto->[stickers->addStickerToSet](stickers_addStickerToSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'sticker' => [InputStickerSetItem](../types/InputStickerSetItem.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +$MadelineProto->[stickers->changeStickerPosition](stickers_changeStickerPosition.md)(\['sticker' => [InputDocument](../types/InputDocument.md), 'position' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[stickers->createStickerSet](stickers_createStickerSet.md)(\['masks' => [Bool](../types/Bool.md), 'user_id' => [InputUser](../types/InputUser.md), 'title' => [string](../types/string.md), 'short_name' => [string](../types/string.md), 'stickers' => \[[InputStickerSetItem](../types/InputStickerSetItem.md)\], \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +$MadelineProto->[stickers->removeStickerFromSet](stickers_removeStickerFromSet.md)(\['sticker' => [InputDocument](../types/InputDocument.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[updates->getChannelDifference](updates_getChannelDifference.md)(\['force' => [Bool](../types/Bool.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) + +$MadelineProto->[updates->getDifference](updates_getDifference.md)(\['pts' => [int](../types/int.md), 'pts_total_limit' => [int](../types/int.md), 'date' => [int](../types/int.md), 'qts' => [int](../types/int.md), \]) === [$updates\_Difference](../types/updates_Difference.md) + +$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) + +*** +

$MadelineProto->[upload->getCdnFile](upload_getCdnFile.md)(\['file_token' => [bytes](../types/bytes.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$upload\_CdnFile](../types/upload_CdnFile.md) + +$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) + +$MadelineProto->[upload->getWebFile](upload_getWebFile.md)(\['location' => [InputWebFileLocation](../types/InputWebFileLocation.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$upload\_WebFile](../types/upload_WebFile.md) + +$MadelineProto->[upload->reuploadCdnFile](upload_reuploadCdnFile.md)(\['file_token' => [bytes](../types/bytes.md), 'request_token' => [bytes](../types/bytes.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$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) + +*** +

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) + +$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) + diff --git a/old_docs/API_docs_v68/methods/auth_cancelCode.md b/old_docs/API_docs_v68/methods/auth_cancelCode.md index 2ad15548..52b85d4c 100644 --- a/old_docs/API_docs_v68/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v68/methods/auth_cancelCode.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->cancelCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v68/methods/auth_checkPhone.md b/old_docs/API_docs_v68/methods/auth_checkPhone.md index 291221de..1826ce63 100644 --- a/old_docs/API_docs_v68/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v68/methods/auth_checkPhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); diff --git a/old_docs/API_docs_v68/methods/auth_dropTempAuthKeys.md b/old_docs/API_docs_v68/methods/auth_dropTempAuthKeys.md index 6474bbb3..5aa98b3b 100644 --- a/old_docs/API_docs_v68/methods/auth_dropTempAuthKeys.md +++ b/old_docs/API_docs_v68/methods/auth_dropTempAuthKeys.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->dropTempAuthKeys(['except_auth_keys' => [long, long], ]); diff --git a/old_docs/API_docs_v68/methods/auth_recoverPassword.md b/old_docs/API_docs_v68/methods/auth_recoverPassword.md index cdc9bd7d..5e37b0f3 100644 --- a/old_docs/API_docs_v68/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v68/methods/auth_recoverPassword.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_Authorization = $MadelineProto->auth->recoverPassword(['code' => 'string', ]); diff --git a/old_docs/API_docs_v68/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v68/methods/auth_requestPasswordRecovery.md index e18c6c93..c69d0c49 100644 --- a/old_docs/API_docs_v68/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v68/methods/auth_requestPasswordRecovery.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_PasswordRecovery = $MadelineProto->auth->requestPasswordRecovery(); diff --git a/old_docs/API_docs_v68/methods/auth_resendCode.md b/old_docs/API_docs_v68/methods/auth_resendCode.md index de437402..253480a3 100644 --- a/old_docs/API_docs_v68/methods/auth_resendCode.md +++ b/old_docs/API_docs_v68/methods/auth_resendCode.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_SentCode = $MadelineProto->auth->resendCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v68/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v68/methods/auth_resetAuthorizations.md index 47feea16..a46c880d 100644 --- a/old_docs/API_docs_v68/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v68/methods/auth_resetAuthorizations.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); diff --git a/old_docs/API_docs_v68/methods/auth_sendInvites.md b/old_docs/API_docs_v68/methods/auth_sendInvites.md index be32fe6b..9b88b4a3 100644 --- a/old_docs/API_docs_v68/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v68/methods/auth_sendInvites.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); diff --git a/old_docs/API_docs_v68/methods/bots_answerWebhookJSONQuery.md b/old_docs/API_docs_v68/methods/bots_answerWebhookJSONQuery.md index 61056bb4..40cb0477 100644 --- a/old_docs/API_docs_v68/methods/bots_answerWebhookJSONQuery.md +++ b/old_docs/API_docs_v68/methods/bots_answerWebhookJSONQuery.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->bots->answerWebhookJSONQuery(['query_id' => long, 'data' => DataJSON, ]); diff --git a/old_docs/API_docs_v68/methods/bots_sendCustomRequest.md b/old_docs/API_docs_v68/methods/bots_sendCustomRequest.md index fc8e764d..5a7f4e86 100644 --- a/old_docs/API_docs_v68/methods/bots_sendCustomRequest.md +++ b/old_docs/API_docs_v68/methods/bots_sendCustomRequest.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $DataJSON = $MadelineProto->bots->sendCustomRequest(['custom_method' => 'string', 'params' => DataJSON, ]); diff --git a/old_docs/API_docs_v68/methods/channels_checkUsername.md b/old_docs/API_docs_v68/methods/channels_checkUsername.md index 7bc7c245..7e3d5a89 100644 --- a/old_docs/API_docs_v68/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v68/methods/channels_checkUsername.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->checkUsername(['channel' => InputChannel, 'username' => 'string', ]); diff --git a/old_docs/API_docs_v68/methods/channels_createChannel.md b/old_docs/API_docs_v68/methods/channels_createChannel.md index 1305e4fb..a5ddc379 100644 --- a/old_docs/API_docs_v68/methods/channels_createChannel.md +++ b/old_docs/API_docs_v68/methods/channels_createChannel.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->createChannel(['broadcast' => Bool, 'megagroup' => Bool, 'title' => 'string', 'about' => 'string', ]); diff --git a/old_docs/API_docs_v68/methods/channels_deleteChannel.md b/old_docs/API_docs_v68/methods/channels_deleteChannel.md index e660d25c..69dad9a3 100644 --- a/old_docs/API_docs_v68/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v68/methods/channels_deleteChannel.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->deleteChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v68/methods/channels_deleteMessages.md b/old_docs/API_docs_v68/methods/channels_deleteMessages.md index fb9d3cc2..b12270b3 100644 --- a/old_docs/API_docs_v68/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v68/methods/channels_deleteMessages.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v68/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v68/methods/channels_deleteUserHistory.md index fbe34341..75f531bb 100644 --- a/old_docs/API_docs_v68/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v68/methods/channels_deleteUserHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->channels->deleteUserHistory(['channel' => InputChannel, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v68/methods/channels_editAbout.md b/old_docs/API_docs_v68/methods/channels_editAbout.md index 8908f29e..67521065 100644 --- a/old_docs/API_docs_v68/methods/channels_editAbout.md +++ b/old_docs/API_docs_v68/methods/channels_editAbout.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->editAbout(['channel' => InputChannel, 'about' => 'string', ]); diff --git a/old_docs/API_docs_v68/methods/channels_editAdmin.md b/old_docs/API_docs_v68/methods/channels_editAdmin.md index dcec7d2f..7cecbd64 100644 --- a/old_docs/API_docs_v68/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v68/methods/channels_editAdmin.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editAdmin(['channel' => InputChannel, 'user_id' => InputUser, 'admin_rights' => ChannelAdminRights, ]); diff --git a/old_docs/API_docs_v68/methods/channels_editBanned.md b/old_docs/API_docs_v68/methods/channels_editBanned.md index 9859bcae..ca9f2596 100644 --- a/old_docs/API_docs_v68/methods/channels_editBanned.md +++ b/old_docs/API_docs_v68/methods/channels_editBanned.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editBanned(['channel' => InputChannel, 'user_id' => InputUser, 'banned_rights' => ChannelBannedRights, ]); diff --git a/old_docs/API_docs_v68/methods/channels_editPhoto.md b/old_docs/API_docs_v68/methods/channels_editPhoto.md index 9ccd864f..c854c64a 100644 --- a/old_docs/API_docs_v68/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v68/methods/channels_editPhoto.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editPhoto(['channel' => InputChannel, 'photo' => InputChatPhoto, ]); diff --git a/old_docs/API_docs_v68/methods/channels_editTitle.md b/old_docs/API_docs_v68/methods/channels_editTitle.md index b1024faf..9bc6773e 100644 --- a/old_docs/API_docs_v68/methods/channels_editTitle.md +++ b/old_docs/API_docs_v68/methods/channels_editTitle.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editTitle(['channel' => InputChannel, 'title' => 'string', ]); diff --git a/old_docs/API_docs_v68/methods/channels_exportInvite.md b/old_docs/API_docs_v68/methods/channels_exportInvite.md index f0c737d5..ca65dcc8 100644 --- a/old_docs/API_docs_v68/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v68/methods/channels_exportInvite.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedChatInvite = $MadelineProto->channels->exportInvite(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v68/methods/channels_exportMessageLink.md b/old_docs/API_docs_v68/methods/channels_exportMessageLink.md index f910b594..b4a3c645 100644 --- a/old_docs/API_docs_v68/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v68/methods/channels_exportMessageLink.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedMessageLink = $MadelineProto->channels->exportMessageLink(['channel' => InputChannel, 'id' => int, ]); diff --git a/old_docs/API_docs_v68/methods/channels_getAdminLog.md b/old_docs/API_docs_v68/methods/channels_getAdminLog.md index 8aa33d23..4a419778 100644 --- a/old_docs/API_docs_v68/methods/channels_getAdminLog.md +++ b/old_docs/API_docs_v68/methods/channels_getAdminLog.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $channels_AdminLogResults = $MadelineProto->channels->getAdminLog(['channel' => InputChannel, 'q' => 'string', 'events_filter' => ChannelAdminLogEventsFilter, 'admins' => [InputUser, InputUser], 'max_id' => long, 'min_id' => long, 'limit' => int, ]); diff --git a/old_docs/API_docs_v68/methods/channels_getAdminedPublicChannels.md b/old_docs/API_docs_v68/methods/channels_getAdminedPublicChannels.md index 9646f529..febc44f9 100644 --- a/old_docs/API_docs_v68/methods/channels_getAdminedPublicChannels.md +++ b/old_docs/API_docs_v68/methods/channels_getAdminedPublicChannels.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->channels->getAdminedPublicChannels(); diff --git a/old_docs/API_docs_v68/methods/channels_getChannels.md b/old_docs/API_docs_v68/methods/channels_getChannels.md index 9cd9e798..af22556f 100644 --- a/old_docs/API_docs_v68/methods/channels_getChannels.md +++ b/old_docs/API_docs_v68/methods/channels_getChannels.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel, InputChannel], ]); diff --git a/old_docs/API_docs_v68/methods/channels_getMessages.md b/old_docs/API_docs_v68/methods/channels_getMessages.md index cc944fe5..eda13d0b 100644 --- a/old_docs/API_docs_v68/methods/channels_getMessages.md +++ b/old_docs/API_docs_v68/methods/channels_getMessages.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v68/methods/channels_getParticipant.md b/old_docs/API_docs_v68/methods/channels_getParticipant.md index db9b1fc6..be5fe96a 100644 --- a/old_docs/API_docs_v68/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v68/methods/channels_getParticipant.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $channels_ChannelParticipant = $MadelineProto->channels->getParticipant(['channel' => InputChannel, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v68/methods/channels_getParticipants.md b/old_docs/API_docs_v68/methods/channels_getParticipants.md index 96662466..6a27016b 100644 --- a/old_docs/API_docs_v68/methods/channels_getParticipants.md +++ b/old_docs/API_docs_v68/methods/channels_getParticipants.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $channels_ChannelParticipants = $MadelineProto->channels->getParticipants(['channel' => InputChannel, 'filter' => ChannelParticipantsFilter, 'offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v68/methods/channels_inviteToChannel.md b/old_docs/API_docs_v68/methods/channels_inviteToChannel.md index 676f800c..e7d12db7 100644 --- a/old_docs/API_docs_v68/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v68/methods/channels_inviteToChannel.md @@ -52,12 +52,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v68/methods/channels_joinChannel.md b/old_docs/API_docs_v68/methods/channels_joinChannel.md index 721f707c..3ac2b326 100644 --- a/old_docs/API_docs_v68/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v68/methods/channels_joinChannel.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->joinChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v68/methods/channels_leaveChannel.md b/old_docs/API_docs_v68/methods/channels_leaveChannel.md index 7f02e08c..95b60a90 100644 --- a/old_docs/API_docs_v68/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v68/methods/channels_leaveChannel.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->leaveChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v68/methods/channels_readHistory.md b/old_docs/API_docs_v68/methods/channels_readHistory.md index cca891f0..c6b14541 100644 --- a/old_docs/API_docs_v68/methods/channels_readHistory.md +++ b/old_docs/API_docs_v68/methods/channels_readHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->readHistory(['channel' => InputChannel, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v68/methods/channels_reportSpam.md b/old_docs/API_docs_v68/methods/channels_reportSpam.md index 09af14e0..ca5c28f5 100644 --- a/old_docs/API_docs_v68/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v68/methods/channels_reportSpam.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v68/methods/channels_toggleInvites.md b/old_docs/API_docs_v68/methods/channels_toggleInvites.md index 5b541f67..e9e6450d 100644 --- a/old_docs/API_docs_v68/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v68/methods/channels_toggleInvites.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->toggleInvites(['channel' => InputChannel, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v68/methods/channels_toggleSignatures.md b/old_docs/API_docs_v68/methods/channels_toggleSignatures.md index f233a8e1..36d1eccb 100644 --- a/old_docs/API_docs_v68/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v68/methods/channels_toggleSignatures.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->toggleSignatures(['channel' => InputChannel, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v68/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v68/methods/channels_updatePinnedMessage.md index f06d1f0f..f8d10ece 100644 --- a/old_docs/API_docs_v68/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v68/methods/channels_updatePinnedMessage.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->updatePinnedMessage(['silent' => Bool, 'channel' => InputChannel, 'id' => int, ]); diff --git a/old_docs/API_docs_v68/methods/channels_updateUsername.md b/old_docs/API_docs_v68/methods/channels_updateUsername.md index ad34490a..2093b6ce 100644 --- a/old_docs/API_docs_v68/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v68/methods/channels_updateUsername.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->updateUsername(['channel' => InputChannel, 'username' => 'string', ]); diff --git a/old_docs/API_docs_v68/methods/contacts_block.md b/old_docs/API_docs_v68/methods/contacts_block.md index d0729d30..e592cace 100644 --- a/old_docs/API_docs_v68/methods/contacts_block.md +++ b/old_docs/API_docs_v68/methods/contacts_block.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v68/methods/contacts_deleteContact.md b/old_docs/API_docs_v68/methods/contacts_deleteContact.md index b8c17544..1a3f2a27 100644 --- a/old_docs/API_docs_v68/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v68/methods/contacts_deleteContact.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v68/methods/contacts_deleteContacts.md b/old_docs/API_docs_v68/methods/contacts_deleteContacts.md index 64c69460..f6627599 100644 --- a/old_docs/API_docs_v68/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v68/methods/contacts_deleteContacts.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v68/methods/contacts_exportCard.md b/old_docs/API_docs_v68/methods/contacts_exportCard.md index b05f57ce..1d2129f3 100644 --- a/old_docs/API_docs_v68/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v68/methods/contacts_exportCard.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); diff --git a/old_docs/API_docs_v68/methods/contacts_getBlocked.md b/old_docs/API_docs_v68/methods/contacts_getBlocked.md index d7d8c5cc..44d24aba 100644 --- a/old_docs/API_docs_v68/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v68/methods/contacts_getBlocked.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v68/methods/contacts_getContacts.md b/old_docs/API_docs_v68/methods/contacts_getContacts.md index 1ab8af27..83c4846f 100644 --- a/old_docs/API_docs_v68/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v68/methods/contacts_getContacts.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v68/methods/contacts_getStatuses.md b/old_docs/API_docs_v68/methods/contacts_getStatuses.md index b927a140..5cef3084 100644 --- a/old_docs/API_docs_v68/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v68/methods/contacts_getStatuses.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); diff --git a/old_docs/API_docs_v68/methods/contacts_getTopPeers.md b/old_docs/API_docs_v68/methods/contacts_getTopPeers.md index 226d3aa0..4958e6b2 100644 --- a/old_docs/API_docs_v68/methods/contacts_getTopPeers.md +++ b/old_docs/API_docs_v68/methods/contacts_getTopPeers.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_TopPeers = $MadelineProto->contacts->getTopPeers(['correspondents' => Bool, 'bots_pm' => Bool, 'bots_inline' => Bool, 'phone_calls' => Bool, 'groups' => Bool, 'channels' => Bool, 'offset' => int, 'limit' => int, 'hash' => int, ]); diff --git a/old_docs/API_docs_v68/methods/contacts_importCard.md b/old_docs/API_docs_v68/methods/contacts_importCard.md index 81a1e138..89c96657 100644 --- a/old_docs/API_docs_v68/methods/contacts_importCard.md +++ b/old_docs/API_docs_v68/methods/contacts_importCard.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); diff --git a/old_docs/API_docs_v68/methods/contacts_importContacts.md b/old_docs/API_docs_v68/methods/contacts_importContacts.md index 578e5dfd..cd3d6615 100644 --- a/old_docs/API_docs_v68/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v68/methods/contacts_importContacts.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], 'replace' => Bool, ]); diff --git a/old_docs/API_docs_v68/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v68/methods/contacts_resetTopPeerRating.md index 4b485921..4b5e96f1 100644 --- a/old_docs/API_docs_v68/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v68/methods/contacts_resetTopPeerRating.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->resetTopPeerRating(['category' => TopPeerCategory, 'peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v68/methods/contacts_search.md b/old_docs/API_docs_v68/methods/contacts_search.md index 68daecd6..64ff748e 100644 --- a/old_docs/API_docs_v68/methods/contacts_search.md +++ b/old_docs/API_docs_v68/methods/contacts_search.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); diff --git a/old_docs/API_docs_v68/methods/contacts_unblock.md b/old_docs/API_docs_v68/methods/contacts_unblock.md index f7d151b9..ec72ae2d 100644 --- a/old_docs/API_docs_v68/methods/contacts_unblock.md +++ b/old_docs/API_docs_v68/methods/contacts_unblock.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v68/methods/contest_saveDeveloperInfo.md b/old_docs/API_docs_v68/methods/contest_saveDeveloperInfo.md index 3e40c0f3..5d82a4be 100644 --- a/old_docs/API_docs_v68/methods/contest_saveDeveloperInfo.md +++ b/old_docs/API_docs_v68/methods/contest_saveDeveloperInfo.md @@ -33,12 +33,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contest->saveDeveloperInfo(['vk_id' => int, 'name' => 'string', 'phone_number' => 'string', 'age' => int, 'city' => 'string', ]); diff --git a/old_docs/API_docs_v68/methods/destroy_auth_key.md b/old_docs/API_docs_v68/methods/destroy_auth_key.md index eb6ba218..dbcc7b23 100644 --- a/old_docs/API_docs_v68/methods/destroy_auth_key.md +++ b/old_docs/API_docs_v68/methods/destroy_auth_key.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $DestroyAuthKeyRes = $MadelineProto->destroy_auth_key(); diff --git a/old_docs/API_docs_v68/methods/destroy_session.md b/old_docs/API_docs_v68/methods/destroy_session.md index 326e8d8e..b74fbd11 100644 --- a/old_docs/API_docs_v68/methods/destroy_session.md +++ b/old_docs/API_docs_v68/methods/destroy_session.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $DestroySessionRes = $MadelineProto->destroy_session(['session_id' => long, ]); diff --git a/old_docs/API_docs_v68/methods/get_future_salts.md b/old_docs/API_docs_v68/methods/get_future_salts.md index 9d4be95e..e8451015 100644 --- a/old_docs/API_docs_v68/methods/get_future_salts.md +++ b/old_docs/API_docs_v68/methods/get_future_salts.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $FutureSalts = $MadelineProto->get_future_salts(['num' => int, ]); diff --git a/old_docs/API_docs_v68/methods/help_getAppChangelog.md b/old_docs/API_docs_v68/methods/help_getAppChangelog.md index 477df2f8..eda473a6 100644 --- a/old_docs/API_docs_v68/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v68/methods/help_getAppChangelog.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->help->getAppChangelog(['prev_app_version' => 'string', ]); diff --git a/old_docs/API_docs_v68/methods/help_getAppUpdate.md b/old_docs/API_docs_v68/methods/help_getAppUpdate.md index b88906ae..c6a42922 100644 --- a/old_docs/API_docs_v68/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v68/methods/help_getAppUpdate.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(); diff --git a/old_docs/API_docs_v68/methods/help_getCdnConfig.md b/old_docs/API_docs_v68/methods/help_getCdnConfig.md index 809ea1fb..b98949ed 100644 --- a/old_docs/API_docs_v68/methods/help_getCdnConfig.md +++ b/old_docs/API_docs_v68/methods/help_getCdnConfig.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $CdnConfig = $MadelineProto->help->getCdnConfig(); diff --git a/old_docs/API_docs_v68/methods/help_getConfig.md b/old_docs/API_docs_v68/methods/help_getConfig.md index 16e25c68..ca4bfc25 100644 --- a/old_docs/API_docs_v68/methods/help_getConfig.md +++ b/old_docs/API_docs_v68/methods/help_getConfig.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); diff --git a/old_docs/API_docs_v68/methods/help_getInviteText.md b/old_docs/API_docs_v68/methods/help_getInviteText.md index 6b226bff..7311b7fb 100644 --- a/old_docs/API_docs_v68/methods/help_getInviteText.md +++ b/old_docs/API_docs_v68/methods/help_getInviteText.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(); diff --git a/old_docs/API_docs_v68/methods/help_getNearestDc.md b/old_docs/API_docs_v68/methods/help_getNearestDc.md index 35a8bf91..458f60ab 100644 --- a/old_docs/API_docs_v68/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v68/methods/help_getNearestDc.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); diff --git a/old_docs/API_docs_v68/methods/help_getSupport.md b/old_docs/API_docs_v68/methods/help_getSupport.md index a5bab0f2..9ee25b00 100644 --- a/old_docs/API_docs_v68/methods/help_getSupport.md +++ b/old_docs/API_docs_v68/methods/help_getSupport.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); diff --git a/old_docs/API_docs_v68/methods/help_getTermsOfService.md b/old_docs/API_docs_v68/methods/help_getTermsOfService.md index 487cd83a..4dea9f79 100644 --- a/old_docs/API_docs_v68/methods/help_getTermsOfService.md +++ b/old_docs/API_docs_v68/methods/help_getTermsOfService.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_TermsOfService = $MadelineProto->help->getTermsOfService(); diff --git a/old_docs/API_docs_v68/methods/help_saveAppLog.md b/old_docs/API_docs_v68/methods/help_saveAppLog.md index 0165b6e3..a7884c47 100644 --- a/old_docs/API_docs_v68/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v68/methods/help_saveAppLog.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); diff --git a/old_docs/API_docs_v68/methods/help_setBotUpdatesStatus.md b/old_docs/API_docs_v68/methods/help_setBotUpdatesStatus.md index ff314b5c..a1a3ab1b 100644 --- a/old_docs/API_docs_v68/methods/help_setBotUpdatesStatus.md +++ b/old_docs/API_docs_v68/methods/help_setBotUpdatesStatus.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->help->setBotUpdatesStatus(['pending_updates_count' => int, 'message' => 'string', ]); diff --git a/old_docs/API_docs_v68/methods/initConnection.md b/old_docs/API_docs_v68/methods/initConnection.md index d1d725e7..c66aa8b1 100644 --- a/old_docs/API_docs_v68/methods/initConnection.md +++ b/old_docs/API_docs_v68/methods/initConnection.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->initConnection(['api_id' => int, 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'system_lang_code' => 'string', 'lang_pack' => 'string', 'lang_code' => 'string', 'query' => !X, ]); diff --git a/old_docs/API_docs_v68/methods/invokeAfterMsg.md b/old_docs/API_docs_v68/methods/invokeAfterMsg.md index e33a2c93..8e953e78 100644 --- a/old_docs/API_docs_v68/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v68/methods/invokeAfterMsg.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); diff --git a/old_docs/API_docs_v68/methods/invokeAfterMsgs.md b/old_docs/API_docs_v68/methods/invokeAfterMsgs.md index 3150a613..bc8a83b7 100644 --- a/old_docs/API_docs_v68/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v68/methods/invokeAfterMsgs.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); diff --git a/old_docs/API_docs_v68/methods/invokeWithLayer.md b/old_docs/API_docs_v68/methods/invokeWithLayer.md index 71d02abb..8a0c4e79 100644 --- a/old_docs/API_docs_v68/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v68/methods/invokeWithLayer.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); diff --git a/old_docs/API_docs_v68/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v68/methods/invokeWithoutUpdates.md index 2bab236a..2d90a776 100644 --- a/old_docs/API_docs_v68/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v68/methods/invokeWithoutUpdates.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeWithoutUpdates(['query' => !X, ]); diff --git a/old_docs/API_docs_v68/methods/langpack_getDifference.md b/old_docs/API_docs_v68/methods/langpack_getDifference.md index 0eed6475..0a6512e4 100644 --- a/old_docs/API_docs_v68/methods/langpack_getDifference.md +++ b/old_docs/API_docs_v68/methods/langpack_getDifference.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $LangPackDifference = $MadelineProto->langpack->getDifference(['from_version' => int, ]); diff --git a/old_docs/API_docs_v68/methods/langpack_getLangPack.md b/old_docs/API_docs_v68/methods/langpack_getLangPack.md index 4f26fd7a..45a9ca47 100644 --- a/old_docs/API_docs_v68/methods/langpack_getLangPack.md +++ b/old_docs/API_docs_v68/methods/langpack_getLangPack.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $LangPackDifference = $MadelineProto->langpack->getLangPack(['lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v68/methods/langpack_getLanguages.md b/old_docs/API_docs_v68/methods/langpack_getLanguages.md index 6e8dab41..b573a5eb 100644 --- a/old_docs/API_docs_v68/methods/langpack_getLanguages.md +++ b/old_docs/API_docs_v68/methods/langpack_getLanguages.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_LangPackLanguage = $MadelineProto->langpack->getLanguages(); diff --git a/old_docs/API_docs_v68/methods/langpack_getStrings.md b/old_docs/API_docs_v68/methods/langpack_getStrings.md index 40612baf..841b02db 100644 --- a/old_docs/API_docs_v68/methods/langpack_getStrings.md +++ b/old_docs/API_docs_v68/methods/langpack_getStrings.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_LangPackString = $MadelineProto->langpack->getStrings(['lang_code' => 'string', 'keys' => ['string', 'string'], ]); diff --git a/old_docs/API_docs_v68/methods/messages_addChatUser.md b/old_docs/API_docs_v68/methods/messages_addChatUser.md index 3e4c5ccc..c6ef275f 100644 --- a/old_docs/API_docs_v68/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v68/methods/messages_addChatUser.md @@ -46,12 +46,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); diff --git a/old_docs/API_docs_v68/methods/messages_checkChatInvite.md b/old_docs/API_docs_v68/methods/messages_checkChatInvite.md index de1d9ff4..cea63313 100644 --- a/old_docs/API_docs_v68/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v68/methods/messages_checkChatInvite.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ChatInvite = $MadelineProto->messages->checkChatInvite(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v68/methods/messages_clearRecentStickers.md b/old_docs/API_docs_v68/methods/messages_clearRecentStickers.md index 9c1b3754..1d6ec8c9 100644 --- a/old_docs/API_docs_v68/methods/messages_clearRecentStickers.md +++ b/old_docs/API_docs_v68/methods/messages_clearRecentStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->clearRecentStickers(['attached' => Bool, ]); diff --git a/old_docs/API_docs_v68/methods/messages_createChat.md b/old_docs/API_docs_v68/methods/messages_createChat.md index 68c0263a..966f58dc 100644 --- a/old_docs/API_docs_v68/methods/messages_createChat.md +++ b/old_docs/API_docs_v68/methods/messages_createChat.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); diff --git a/old_docs/API_docs_v68/methods/messages_deleteChatUser.md b/old_docs/API_docs_v68/methods/messages_deleteChatUser.md index 0a6830de..9a9227ba 100644 --- a/old_docs/API_docs_v68/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v68/methods/messages_deleteChatUser.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v68/methods/messages_deleteHistory.md b/old_docs/API_docs_v68/methods/messages_deleteHistory.md index e44433c1..45e9890d 100644 --- a/old_docs/API_docs_v68/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v68/methods/messages_deleteHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['just_clear' => Bool, 'peer' => InputPeer, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v68/methods/messages_deleteMessages.md b/old_docs/API_docs_v68/methods/messages_deleteMessages.md index 0da41180..c8670444 100644 --- a/old_docs/API_docs_v68/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v68/methods/messages_deleteMessages.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['revoke' => Bool, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v68/methods/messages_editChatAdmin.md b/old_docs/API_docs_v68/methods/messages_editChatAdmin.md index 7916f8b1..5bba0559 100644 --- a/old_docs/API_docs_v68/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v68/methods/messages_editChatAdmin.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]); diff --git a/old_docs/API_docs_v68/methods/messages_editChatPhoto.md b/old_docs/API_docs_v68/methods/messages_editChatPhoto.md index 122913c4..5827a5cc 100644 --- a/old_docs/API_docs_v68/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v68/methods/messages_editChatPhoto.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); diff --git a/old_docs/API_docs_v68/methods/messages_editChatTitle.md b/old_docs/API_docs_v68/methods/messages_editChatTitle.md index 3a1e974b..2e69d790 100644 --- a/old_docs/API_docs_v68/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v68/methods/messages_editChatTitle.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); diff --git a/old_docs/API_docs_v68/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v68/methods/messages_editInlineBotMessage.md index 2237fb20..73c8a2c4 100644 --- a/old_docs/API_docs_v68/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v68/methods/messages_editInlineBotMessage.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->editInlineBotMessage(['no_webpage' => Bool, 'id' => InputBotInlineMessageID, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v68/methods/messages_editMessage.md b/old_docs/API_docs_v68/methods/messages_editMessage.md index 177438a5..ad639325 100644 --- a/old_docs/API_docs_v68/methods/messages_editMessage.md +++ b/old_docs/API_docs_v68/methods/messages_editMessage.md @@ -51,12 +51,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editMessage(['no_webpage' => Bool, 'peer' => InputPeer, 'id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v68/methods/messages_exportChatInvite.md b/old_docs/API_docs_v68/methods/messages_exportChatInvite.md index 98685d96..ec80e207 100644 --- a/old_docs/API_docs_v68/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v68/methods/messages_exportChatInvite.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]); diff --git a/old_docs/API_docs_v68/methods/messages_forwardMessage.md b/old_docs/API_docs_v68/methods/messages_forwardMessage.md index 45b7a07f..d6916437 100644 --- a/old_docs/API_docs_v68/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v68/methods/messages_forwardMessage.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); diff --git a/old_docs/API_docs_v68/methods/messages_forwardMessages.md b/old_docs/API_docs_v68/methods/messages_forwardMessages.md index efe58e67..b99e1d31 100644 --- a/old_docs/API_docs_v68/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v68/methods/messages_forwardMessages.md @@ -62,12 +62,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessages(['silent' => Bool, 'background' => Bool, 'with_my_score' => Bool, 'from_peer' => InputPeer, 'id' => [int, int], 'to_peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v68/methods/messages_getAllChats.md b/old_docs/API_docs_v68/methods/messages_getAllChats.md index 127456e4..513fc06f 100644 --- a/old_docs/API_docs_v68/methods/messages_getAllChats.md +++ b/old_docs/API_docs_v68/methods/messages_getAllChats.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getAllChats(['except_ids' => [int, int], ]); diff --git a/old_docs/API_docs_v68/methods/messages_getAllDrafts.md b/old_docs/API_docs_v68/methods/messages_getAllDrafts.md index 2c0ecd42..43a95bb2 100644 --- a/old_docs/API_docs_v68/methods/messages_getAllDrafts.md +++ b/old_docs/API_docs_v68/methods/messages_getAllDrafts.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->getAllDrafts(); diff --git a/old_docs/API_docs_v68/methods/messages_getAllStickers.md b/old_docs/API_docs_v68/methods/messages_getAllStickers.md index 16fdba6c..2ba37a91 100644 --- a/old_docs/API_docs_v68/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v68/methods/messages_getAllStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => int, ]); diff --git a/old_docs/API_docs_v68/methods/messages_getArchivedStickers.md b/old_docs/API_docs_v68/methods/messages_getArchivedStickers.md index f037e1bc..ee36b542 100644 --- a/old_docs/API_docs_v68/methods/messages_getArchivedStickers.md +++ b/old_docs/API_docs_v68/methods/messages_getArchivedStickers.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_ArchivedStickers = $MadelineProto->messages->getArchivedStickers(['masks' => Bool, 'offset_id' => long, 'limit' => int, ]); diff --git a/old_docs/API_docs_v68/methods/messages_getAttachedStickers.md b/old_docs/API_docs_v68/methods/messages_getAttachedStickers.md index 890680cd..9f8a66c5 100644 --- a/old_docs/API_docs_v68/methods/messages_getAttachedStickers.md +++ b/old_docs/API_docs_v68/methods/messages_getAttachedStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_StickerSetCovered = $MadelineProto->messages->getAttachedStickers(['media' => InputStickeredMedia, ]); diff --git a/old_docs/API_docs_v68/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v68/methods/messages_getBotCallbackAnswer.md index 09c283f5..0136227f 100644 --- a/old_docs/API_docs_v68/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v68/methods/messages_getBotCallbackAnswer.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_BotCallbackAnswer = $MadelineProto->messages->getBotCallbackAnswer(['game' => Bool, 'peer' => InputPeer, 'msg_id' => int, 'data' => 'bytes', ]); diff --git a/old_docs/API_docs_v68/methods/messages_getChats.md b/old_docs/API_docs_v68/methods/messages_getChats.md index 290438a1..e84c7193 100644 --- a/old_docs/API_docs_v68/methods/messages_getChats.md +++ b/old_docs/API_docs_v68/methods/messages_getChats.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v68/methods/messages_getCommonChats.md b/old_docs/API_docs_v68/methods/messages_getCommonChats.md index e6eca283..15ed6713 100644 --- a/old_docs/API_docs_v68/methods/messages_getCommonChats.md +++ b/old_docs/API_docs_v68/methods/messages_getCommonChats.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getCommonChats(['user_id' => InputUser, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v68/methods/messages_getDialogs.md b/old_docs/API_docs_v68/methods/messages_getDialogs.md index e100228b..53f9ac62 100644 --- a/old_docs/API_docs_v68/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v68/methods/messages_getDialogs.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['exclude_pinned' => Bool, 'offset_date' => int, 'offset_id' => int, 'offset_peer' => InputPeer, 'limit' => int, ]); diff --git a/old_docs/API_docs_v68/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v68/methods/messages_getDocumentByHash.md index 1af5bad4..ad8e22be 100644 --- a/old_docs/API_docs_v68/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v68/methods/messages_getDocumentByHash.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Document = $MadelineProto->messages->getDocumentByHash(['sha256' => 'bytes', 'size' => int, 'mime_type' => 'string', ]); diff --git a/old_docs/API_docs_v68/methods/messages_getFeaturedStickers.md b/old_docs/API_docs_v68/methods/messages_getFeaturedStickers.md index 512f2e85..8e49e1ef 100644 --- a/old_docs/API_docs_v68/methods/messages_getFeaturedStickers.md +++ b/old_docs/API_docs_v68/methods/messages_getFeaturedStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_FeaturedStickers = $MadelineProto->messages->getFeaturedStickers(['hash' => int, ]); diff --git a/old_docs/API_docs_v68/methods/messages_getGameHighScores.md b/old_docs/API_docs_v68/methods/messages_getGameHighScores.md index 5137baea..113e4647 100644 --- a/old_docs/API_docs_v68/methods/messages_getGameHighScores.md +++ b/old_docs/API_docs_v68/methods/messages_getGameHighScores.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_HighScores = $MadelineProto->messages->getGameHighScores(['peer' => InputPeer, 'id' => int, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v68/methods/messages_getHistory.md b/old_docs/API_docs_v68/methods/messages_getHistory.md index dfae66e6..851d2680 100644 --- a/old_docs/API_docs_v68/methods/messages_getHistory.md +++ b/old_docs/API_docs_v68/methods/messages_getHistory.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getHistory(['peer' => InputPeer, 'offset_id' => int, 'offset_date' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); diff --git a/old_docs/API_docs_v68/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v68/methods/messages_getInlineBotResults.md index 8ab5bf78..4d86caf5 100644 --- a/old_docs/API_docs_v68/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v68/methods/messages_getInlineBotResults.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_BotResults = $MadelineProto->messages->getInlineBotResults(['bot' => InputUser, 'peer' => InputPeer, 'geo_point' => InputGeoPoint, 'query' => 'string', 'offset' => 'string', ]); diff --git a/old_docs/API_docs_v68/methods/messages_getInlineGameHighScores.md b/old_docs/API_docs_v68/methods/messages_getInlineGameHighScores.md index 790bfdd9..d5a80005 100644 --- a/old_docs/API_docs_v68/methods/messages_getInlineGameHighScores.md +++ b/old_docs/API_docs_v68/methods/messages_getInlineGameHighScores.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_HighScores = $MadelineProto->messages->getInlineGameHighScores(['id' => InputBotInlineMessageID, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v68/methods/messages_getMaskStickers.md b/old_docs/API_docs_v68/methods/messages_getMaskStickers.md index f4ed9411..70e2e6d4 100644 --- a/old_docs/API_docs_v68/methods/messages_getMaskStickers.md +++ b/old_docs/API_docs_v68/methods/messages_getMaskStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getMaskStickers(['hash' => int, ]); diff --git a/old_docs/API_docs_v68/methods/messages_getMessageEditData.md b/old_docs/API_docs_v68/methods/messages_getMessageEditData.md index 12e71bee..34f8534f 100644 --- a/old_docs/API_docs_v68/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v68/methods/messages_getMessageEditData.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_MessageEditData = $MadelineProto->messages->getMessageEditData(['peer' => InputPeer, 'id' => int, ]); diff --git a/old_docs/API_docs_v68/methods/messages_getMessages.md b/old_docs/API_docs_v68/methods/messages_getMessages.md index 86d1da8a..d538cb5f 100644 --- a/old_docs/API_docs_v68/methods/messages_getMessages.md +++ b/old_docs/API_docs_v68/methods/messages_getMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v68/methods/messages_getMessagesViews.md b/old_docs/API_docs_v68/methods/messages_getMessagesViews.md index b8d78c85..934adc16 100644 --- a/old_docs/API_docs_v68/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v68/methods/messages_getMessagesViews.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int, int], 'increment' => Bool, ]); diff --git a/old_docs/API_docs_v68/methods/messages_getPeerDialogs.md b/old_docs/API_docs_v68/methods/messages_getPeerDialogs.md index da82cfc6..063b6e7d 100644 --- a/old_docs/API_docs_v68/methods/messages_getPeerDialogs.md +++ b/old_docs/API_docs_v68/methods/messages_getPeerDialogs.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_PeerDialogs = $MadelineProto->messages->getPeerDialogs(['peers' => [InputPeer, InputPeer], ]); diff --git a/old_docs/API_docs_v68/methods/messages_getPeerSettings.md b/old_docs/API_docs_v68/methods/messages_getPeerSettings.md index f1f2a3bb..a18126f0 100644 --- a/old_docs/API_docs_v68/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v68/methods/messages_getPeerSettings.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $PeerSettings = $MadelineProto->messages->getPeerSettings(['peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v68/methods/messages_getPinnedDialogs.md b/old_docs/API_docs_v68/methods/messages_getPinnedDialogs.md index d12779fe..3f49ed75 100644 --- a/old_docs/API_docs_v68/methods/messages_getPinnedDialogs.md +++ b/old_docs/API_docs_v68/methods/messages_getPinnedDialogs.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_PeerDialogs = $MadelineProto->messages->getPinnedDialogs(); diff --git a/old_docs/API_docs_v68/methods/messages_getRecentStickers.md b/old_docs/API_docs_v68/methods/messages_getRecentStickers.md index d76a2160..0c5ae0c6 100644 --- a/old_docs/API_docs_v68/methods/messages_getRecentStickers.md +++ b/old_docs/API_docs_v68/methods/messages_getRecentStickers.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_RecentStickers = $MadelineProto->messages->getRecentStickers(['attached' => Bool, 'hash' => int, ]); diff --git a/old_docs/API_docs_v68/methods/messages_getSavedGifs.md b/old_docs/API_docs_v68/methods/messages_getSavedGifs.md index f61348ce..38585538 100644 --- a/old_docs/API_docs_v68/methods/messages_getSavedGifs.md +++ b/old_docs/API_docs_v68/methods/messages_getSavedGifs.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => int, ]); diff --git a/old_docs/API_docs_v68/methods/messages_getStickerSet.md b/old_docs/API_docs_v68/methods/messages_getStickerSet.md index c86807e4..c9140ab2 100644 --- a/old_docs/API_docs_v68/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v68/methods/messages_getStickerSet.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSet = $MadelineProto->messages->getStickerSet(['stickerset' => InputStickerSet, ]); diff --git a/old_docs/API_docs_v68/methods/messages_getWebPage.md b/old_docs/API_docs_v68/methods/messages_getWebPage.md index 129f8f06..19ca94b9 100644 --- a/old_docs/API_docs_v68/methods/messages_getWebPage.md +++ b/old_docs/API_docs_v68/methods/messages_getWebPage.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $WebPage = $MadelineProto->messages->getWebPage(['url' => 'string', 'hash' => int, ]); diff --git a/old_docs/API_docs_v68/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v68/methods/messages_getWebPagePreview.md index d01bdd32..e8b20c5d 100644 --- a/old_docs/API_docs_v68/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v68/methods/messages_getWebPagePreview.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $MessageMedia = $MadelineProto->messages->getWebPagePreview(['message' => 'string', ]); diff --git a/old_docs/API_docs_v68/methods/messages_hideReportSpam.md b/old_docs/API_docs_v68/methods/messages_hideReportSpam.md index 856770cb..30523f2a 100644 --- a/old_docs/API_docs_v68/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v68/methods/messages_hideReportSpam.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->hideReportSpam(['peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v68/methods/messages_importChatInvite.md b/old_docs/API_docs_v68/methods/messages_importChatInvite.md index 0d6cd7c8..b1830a9b 100644 --- a/old_docs/API_docs_v68/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v68/methods/messages_importChatInvite.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->importChatInvite(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v68/methods/messages_installStickerSet.md b/old_docs/API_docs_v68/methods/messages_installStickerSet.md index 9f6f098c..20f90b71 100644 --- a/old_docs/API_docs_v68/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v68/methods/messages_installStickerSet.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSetInstallResult = $MadelineProto->messages->installStickerSet(['stickerset' => InputStickerSet, 'archived' => Bool, ]); diff --git a/old_docs/API_docs_v68/methods/messages_migrateChat.md b/old_docs/API_docs_v68/methods/messages_migrateChat.md index db57adfa..22ccfcc1 100644 --- a/old_docs/API_docs_v68/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v68/methods/messages_migrateChat.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]); diff --git a/old_docs/API_docs_v68/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v68/methods/messages_readEncryptedHistory.md index 39b110e3..2ba4cca4 100644 --- a/old_docs/API_docs_v68/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v68/methods/messages_readEncryptedHistory.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); diff --git a/old_docs/API_docs_v68/methods/messages_readFeaturedStickers.md b/old_docs/API_docs_v68/methods/messages_readFeaturedStickers.md index 4035c76d..050371da 100644 --- a/old_docs/API_docs_v68/methods/messages_readFeaturedStickers.md +++ b/old_docs/API_docs_v68/methods/messages_readFeaturedStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->readFeaturedStickers(['id' => [long, long], ]); diff --git a/old_docs/API_docs_v68/methods/messages_readHistory.md b/old_docs/API_docs_v68/methods/messages_readHistory.md index 3de17061..26b608af 100644 --- a/old_docs/API_docs_v68/methods/messages_readHistory.md +++ b/old_docs/API_docs_v68/methods/messages_readHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v68/methods/messages_readMessageContents.md b/old_docs/API_docs_v68/methods/messages_readMessageContents.md index 9bb1bee8..a09cb63e 100644 --- a/old_docs/API_docs_v68/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v68/methods/messages_readMessageContents.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v68/methods/messages_receivedMessages.md b/old_docs/API_docs_v68/methods/messages_receivedMessages.md index 7aab635f..b5e87992 100644 --- a/old_docs/API_docs_v68/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v68/methods/messages_receivedMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_ReceivedNotifyMessage = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); diff --git a/old_docs/API_docs_v68/methods/messages_reorderPinnedDialogs.md b/old_docs/API_docs_v68/methods/messages_reorderPinnedDialogs.md index 710caf10..94d3b2d4 100644 --- a/old_docs/API_docs_v68/methods/messages_reorderPinnedDialogs.md +++ b/old_docs/API_docs_v68/methods/messages_reorderPinnedDialogs.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reorderPinnedDialogs(['force' => Bool, 'order' => [InputPeer, InputPeer], ]); diff --git a/old_docs/API_docs_v68/methods/messages_reorderStickerSets.md b/old_docs/API_docs_v68/methods/messages_reorderStickerSets.md index ddc78dd0..66f5e682 100644 --- a/old_docs/API_docs_v68/methods/messages_reorderStickerSets.md +++ b/old_docs/API_docs_v68/methods/messages_reorderStickerSets.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reorderStickerSets(['masks' => Bool, 'order' => [long, long], ]); diff --git a/old_docs/API_docs_v68/methods/messages_reportEncryptedSpam.md b/old_docs/API_docs_v68/methods/messages_reportEncryptedSpam.md index 58b684d1..cd03c35c 100644 --- a/old_docs/API_docs_v68/methods/messages_reportEncryptedSpam.md +++ b/old_docs/API_docs_v68/methods/messages_reportEncryptedSpam.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reportEncryptedSpam(['peer' => InputEncryptedChat, ]); diff --git a/old_docs/API_docs_v68/methods/messages_reportSpam.md b/old_docs/API_docs_v68/methods/messages_reportSpam.md index 2e2b1177..09c1e63b 100644 --- a/old_docs/API_docs_v68/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v68/methods/messages_reportSpam.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reportSpam(['peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v68/methods/messages_saveDraft.md b/old_docs/API_docs_v68/methods/messages_saveDraft.md index bbeed707..59b33b03 100644 --- a/old_docs/API_docs_v68/methods/messages_saveDraft.md +++ b/old_docs/API_docs_v68/methods/messages_saveDraft.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->saveDraft(['no_webpage' => Bool, 'reply_to_msg_id' => int, 'peer' => InputPeer, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v68/methods/messages_saveGif.md b/old_docs/API_docs_v68/methods/messages_saveGif.md index 6f608c4c..145039e7 100644 --- a/old_docs/API_docs_v68/methods/messages_saveGif.md +++ b/old_docs/API_docs_v68/methods/messages_saveGif.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->saveGif(['id' => InputDocument, 'unsave' => Bool, ]); diff --git a/old_docs/API_docs_v68/methods/messages_saveRecentSticker.md b/old_docs/API_docs_v68/methods/messages_saveRecentSticker.md index 81ad5d48..55757080 100644 --- a/old_docs/API_docs_v68/methods/messages_saveRecentSticker.md +++ b/old_docs/API_docs_v68/methods/messages_saveRecentSticker.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->saveRecentSticker(['attached' => Bool, 'id' => InputDocument, 'unsave' => Bool, ]); diff --git a/old_docs/API_docs_v68/methods/messages_search.md b/old_docs/API_docs_v68/methods/messages_search.md index 07e7c48b..24e06c09 100644 --- a/old_docs/API_docs_v68/methods/messages_search.md +++ b/old_docs/API_docs_v68/methods/messages_search.md @@ -50,12 +50,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->search(['peer' => InputPeer, 'q' => 'string', 'from_id' => InputUser, 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v68/methods/messages_searchGifs.md b/old_docs/API_docs_v68/methods/messages_searchGifs.md index 103ebfeb..9677bf24 100644 --- a/old_docs/API_docs_v68/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v68/methods/messages_searchGifs.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_FoundGifs = $MadelineProto->messages->searchGifs(['q' => 'string', 'offset' => int, ]); diff --git a/old_docs/API_docs_v68/methods/messages_searchGlobal.md b/old_docs/API_docs_v68/methods/messages_searchGlobal.md index 0edd1e40..6ad4aec0 100644 --- a/old_docs/API_docs_v68/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v68/methods/messages_searchGlobal.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->searchGlobal(['q' => 'string', 'offset_date' => int, 'offset_peer' => InputPeer, 'offset_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v68/methods/messages_sendEncrypted.md b/old_docs/API_docs_v68/methods/messages_sendEncrypted.md index d48f88d7..76305f32 100644 --- a/old_docs/API_docs_v68/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v68/methods/messages_sendEncrypted.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v68/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v68/methods/messages_sendEncryptedFile.md index 4fd0648e..8db2ead9 100644 --- a/old_docs/API_docs_v68/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v68/methods/messages_sendEncryptedFile.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); diff --git a/old_docs/API_docs_v68/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v68/methods/messages_sendEncryptedService.md index d66894bf..c7836c94 100644 --- a/old_docs/API_docs_v68/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v68/methods/messages_sendEncryptedService.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v68/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v68/methods/messages_sendInlineBotResult.md index 386ac7e3..1a12322c 100644 --- a/old_docs/API_docs_v68/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v68/methods/messages_sendInlineBotResult.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendInlineBotResult(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'query_id' => long, 'id' => 'string', ]); diff --git a/old_docs/API_docs_v68/methods/messages_sendMedia.md b/old_docs/API_docs_v68/methods/messages_sendMedia.md index 0b5cf9b6..770d1b65 100644 --- a/old_docs/API_docs_v68/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v68/methods/messages_sendMedia.md @@ -63,12 +63,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendMedia(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, 'reply_markup' => ReplyMarkup, ]); diff --git a/old_docs/API_docs_v68/methods/messages_sendMessage.md b/old_docs/API_docs_v68/methods/messages_sendMessage.md index c4dc8894..83dc6c8b 100644 --- a/old_docs/API_docs_v68/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v68/methods/messages_sendMessage.md @@ -65,12 +65,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendMessage(['no_webpage' => Bool, 'silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v68/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v68/methods/messages_setBotCallbackAnswer.md index e6dc6b09..e221ccca 100644 --- a/old_docs/API_docs_v68/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v68/methods/messages_setBotCallbackAnswer.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setBotCallbackAnswer(['alert' => Bool, 'query_id' => long, 'message' => 'string', 'url' => 'string', 'cache_time' => int, ]); diff --git a/old_docs/API_docs_v68/methods/messages_setBotPrecheckoutResults.md b/old_docs/API_docs_v68/methods/messages_setBotPrecheckoutResults.md index 722bff81..7e3fc3c2 100644 --- a/old_docs/API_docs_v68/methods/messages_setBotPrecheckoutResults.md +++ b/old_docs/API_docs_v68/methods/messages_setBotPrecheckoutResults.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setBotPrecheckoutResults(['success' => Bool, 'query_id' => long, 'error' => 'string', ]); diff --git a/old_docs/API_docs_v68/methods/messages_setBotShippingResults.md b/old_docs/API_docs_v68/methods/messages_setBotShippingResults.md index d364a04d..3d9f0ae2 100644 --- a/old_docs/API_docs_v68/methods/messages_setBotShippingResults.md +++ b/old_docs/API_docs_v68/methods/messages_setBotShippingResults.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setBotShippingResults(['query_id' => long, 'error' => 'string', 'shipping_options' => [ShippingOption, ShippingOption], ]); diff --git a/old_docs/API_docs_v68/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v68/methods/messages_setEncryptedTyping.md index e9afe99c..4e7450eb 100644 --- a/old_docs/API_docs_v68/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v68/methods/messages_setEncryptedTyping.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); diff --git a/old_docs/API_docs_v68/methods/messages_setGameScore.md b/old_docs/API_docs_v68/methods/messages_setGameScore.md index aa1f4f0c..90594a1d 100644 --- a/old_docs/API_docs_v68/methods/messages_setGameScore.md +++ b/old_docs/API_docs_v68/methods/messages_setGameScore.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->setGameScore(['edit_message' => Bool, 'force' => Bool, 'peer' => InputPeer, 'id' => int, 'user_id' => InputUser, 'score' => int, ]); diff --git a/old_docs/API_docs_v68/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v68/methods/messages_setInlineBotResults.md index 79493009..d4ba6e65 100644 --- a/old_docs/API_docs_v68/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v68/methods/messages_setInlineBotResults.md @@ -52,12 +52,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setInlineBotResults(['gallery' => Bool, 'private' => Bool, 'query_id' => long, 'results' => [InputBotInlineResult, InputBotInlineResult], 'cache_time' => int, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, ]); diff --git a/old_docs/API_docs_v68/methods/messages_setInlineGameScore.md b/old_docs/API_docs_v68/methods/messages_setInlineGameScore.md index 385c8308..2b7326f3 100644 --- a/old_docs/API_docs_v68/methods/messages_setInlineGameScore.md +++ b/old_docs/API_docs_v68/methods/messages_setInlineGameScore.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setInlineGameScore(['edit_message' => Bool, 'force' => Bool, 'id' => InputBotInlineMessageID, 'user_id' => InputUser, 'score' => int, ]); diff --git a/old_docs/API_docs_v68/methods/messages_setTyping.md b/old_docs/API_docs_v68/methods/messages_setTyping.md index bea4982b..a2b94823 100644 --- a/old_docs/API_docs_v68/methods/messages_setTyping.md +++ b/old_docs/API_docs_v68/methods/messages_setTyping.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); diff --git a/old_docs/API_docs_v68/methods/messages_startBot.md b/old_docs/API_docs_v68/methods/messages_startBot.md index 94a4d86a..50d6f475 100644 --- a/old_docs/API_docs_v68/methods/messages_startBot.md +++ b/old_docs/API_docs_v68/methods/messages_startBot.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'peer' => InputPeer, 'start_param' => 'string', ]); diff --git a/old_docs/API_docs_v68/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v68/methods/messages_toggleChatAdmins.md index ab591fd9..349ea0e6 100644 --- a/old_docs/API_docs_v68/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v68/methods/messages_toggleChatAdmins.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => InputPeer, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v68/methods/messages_toggleDialogPin.md b/old_docs/API_docs_v68/methods/messages_toggleDialogPin.md index 2bd6a03d..14332533 100644 --- a/old_docs/API_docs_v68/methods/messages_toggleDialogPin.md +++ b/old_docs/API_docs_v68/methods/messages_toggleDialogPin.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->toggleDialogPin(['pinned' => Bool, 'peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v68/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v68/methods/messages_uninstallStickerSet.md index 6d04e847..26b2fbb3 100644 --- a/old_docs/API_docs_v68/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v68/methods/messages_uninstallStickerSet.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->uninstallStickerSet(['stickerset' => InputStickerSet, ]); diff --git a/old_docs/API_docs_v68/methods/messages_uploadMedia.md b/old_docs/API_docs_v68/methods/messages_uploadMedia.md index c982a860..c09da017 100644 --- a/old_docs/API_docs_v68/methods/messages_uploadMedia.md +++ b/old_docs/API_docs_v68/methods/messages_uploadMedia.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $MessageMedia = $MadelineProto->messages->uploadMedia(['peer' => InputPeer, 'media' => InputMedia, ]); diff --git a/old_docs/API_docs_v68/methods/payments_clearSavedInfo.md b/old_docs/API_docs_v68/methods/payments_clearSavedInfo.md index 44050dde..8b83266f 100644 --- a/old_docs/API_docs_v68/methods/payments_clearSavedInfo.md +++ b/old_docs/API_docs_v68/methods/payments_clearSavedInfo.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->payments->clearSavedInfo(['credentials' => Bool, 'info' => Bool, ]); diff --git a/old_docs/API_docs_v68/methods/payments_getPaymentForm.md b/old_docs/API_docs_v68/methods/payments_getPaymentForm.md index 16a32d11..3bdb9ff2 100644 --- a/old_docs/API_docs_v68/methods/payments_getPaymentForm.md +++ b/old_docs/API_docs_v68/methods/payments_getPaymentForm.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $payments_PaymentForm = $MadelineProto->payments->getPaymentForm(['msg_id' => int, ]); diff --git a/old_docs/API_docs_v68/methods/payments_getPaymentReceipt.md b/old_docs/API_docs_v68/methods/payments_getPaymentReceipt.md index 857585f6..a881aeb7 100644 --- a/old_docs/API_docs_v68/methods/payments_getPaymentReceipt.md +++ b/old_docs/API_docs_v68/methods/payments_getPaymentReceipt.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $payments_PaymentReceipt = $MadelineProto->payments->getPaymentReceipt(['msg_id' => int, ]); diff --git a/old_docs/API_docs_v68/methods/payments_getSavedInfo.md b/old_docs/API_docs_v68/methods/payments_getSavedInfo.md index 04ac7374..ec1a071b 100644 --- a/old_docs/API_docs_v68/methods/payments_getSavedInfo.md +++ b/old_docs/API_docs_v68/methods/payments_getSavedInfo.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $payments_SavedInfo = $MadelineProto->payments->getSavedInfo(); diff --git a/old_docs/API_docs_v68/methods/payments_sendPaymentForm.md b/old_docs/API_docs_v68/methods/payments_sendPaymentForm.md index 0a9df99f..79758b56 100644 --- a/old_docs/API_docs_v68/methods/payments_sendPaymentForm.md +++ b/old_docs/API_docs_v68/methods/payments_sendPaymentForm.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $payments_PaymentResult = $MadelineProto->payments->sendPaymentForm(['msg_id' => int, 'requested_info_id' => 'string', 'shipping_option_id' => 'string', 'credentials' => InputPaymentCredentials, ]); diff --git a/old_docs/API_docs_v68/methods/payments_validateRequestedInfo.md b/old_docs/API_docs_v68/methods/payments_validateRequestedInfo.md index e36f0e42..d473f97c 100644 --- a/old_docs/API_docs_v68/methods/payments_validateRequestedInfo.md +++ b/old_docs/API_docs_v68/methods/payments_validateRequestedInfo.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $payments_ValidatedRequestedInfo = $MadelineProto->payments->validateRequestedInfo(['save' => Bool, 'msg_id' => int, 'info' => PaymentRequestedInfo, ]); diff --git a/old_docs/API_docs_v68/methods/phone_getCallConfig.md b/old_docs/API_docs_v68/methods/phone_getCallConfig.md index cac622a0..6969c1a3 100644 --- a/old_docs/API_docs_v68/methods/phone_getCallConfig.md +++ b/old_docs/API_docs_v68/methods/phone_getCallConfig.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $DataJSON = $MadelineProto->phone->getCallConfig(); diff --git a/old_docs/API_docs_v68/methods/phone_receivedCall.md b/old_docs/API_docs_v68/methods/phone_receivedCall.md index 27e3b462..17095622 100644 --- a/old_docs/API_docs_v68/methods/phone_receivedCall.md +++ b/old_docs/API_docs_v68/methods/phone_receivedCall.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->phone->receivedCall(['peer' => InputPhoneCall, ]); diff --git a/old_docs/API_docs_v68/methods/phone_saveCallDebug.md b/old_docs/API_docs_v68/methods/phone_saveCallDebug.md index 760ad9d5..0ff049a8 100644 --- a/old_docs/API_docs_v68/methods/phone_saveCallDebug.md +++ b/old_docs/API_docs_v68/methods/phone_saveCallDebug.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->phone->saveCallDebug(['peer' => InputPhoneCall, 'debug' => DataJSON, ]); diff --git a/old_docs/API_docs_v68/methods/phone_setCallRating.md b/old_docs/API_docs_v68/methods/phone_setCallRating.md index b32ba333..d0aab7e0 100644 --- a/old_docs/API_docs_v68/methods/phone_setCallRating.md +++ b/old_docs/API_docs_v68/methods/phone_setCallRating.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->phone->setCallRating(['peer' => InputPhoneCall, 'rating' => int, 'comment' => 'string', ]); diff --git a/old_docs/API_docs_v68/methods/photos_deletePhotos.md b/old_docs/API_docs_v68/methods/photos_deletePhotos.md index b9daca10..937aadd5 100644 --- a/old_docs/API_docs_v68/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v68/methods/photos_deletePhotos.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); diff --git a/old_docs/API_docs_v68/methods/photos_getUserPhotos.md b/old_docs/API_docs_v68/methods/photos_getUserPhotos.md index ea27a44f..d1c15e90 100644 --- a/old_docs/API_docs_v68/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v68/methods/photos_getUserPhotos.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => long, 'limit' => int, ]); diff --git a/old_docs/API_docs_v68/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v68/methods/photos_updateProfilePhoto.md index 7f0a4c69..2ac8b60d 100644 --- a/old_docs/API_docs_v68/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v68/methods/photos_updateProfilePhoto.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, ]); diff --git a/old_docs/API_docs_v68/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v68/methods/photos_uploadProfilePhoto.md index efa08bb0..c7ec3063 100644 --- a/old_docs/API_docs_v68/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v68/methods/photos_uploadProfilePhoto.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, ]); diff --git a/old_docs/API_docs_v68/methods/ping.md b/old_docs/API_docs_v68/methods/ping.md index 4ad52852..f987ae89 100644 --- a/old_docs/API_docs_v68/methods/ping.md +++ b/old_docs/API_docs_v68/methods/ping.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Pong = $MadelineProto->ping(['ping_id' => long, ]); diff --git a/old_docs/API_docs_v68/methods/ping_delay_disconnect.md b/old_docs/API_docs_v68/methods/ping_delay_disconnect.md index b0951488..5b1c115d 100644 --- a/old_docs/API_docs_v68/methods/ping_delay_disconnect.md +++ b/old_docs/API_docs_v68/methods/ping_delay_disconnect.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Pong = $MadelineProto->ping_delay_disconnect(['ping_id' => long, 'disconnect_delay' => int, ]); diff --git a/old_docs/API_docs_v68/methods/req_DH_params.md b/old_docs/API_docs_v68/methods/req_DH_params.md index bb821ef9..f0b45851 100644 --- a/old_docs/API_docs_v68/methods/req_DH_params.md +++ b/old_docs/API_docs_v68/methods/req_DH_params.md @@ -34,12 +34,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Server_DH_Params = $MadelineProto->req_DH_params(['nonce' => int128, 'server_nonce' => int128, 'p' => 'string', 'q' => 'string', 'public_key_fingerprint' => long, 'encrypted_data' => 'string', ]); diff --git a/old_docs/API_docs_v68/methods/req_pq.md b/old_docs/API_docs_v68/methods/req_pq.md index 72a31c0b..0873d9a2 100644 --- a/old_docs/API_docs_v68/methods/req_pq.md +++ b/old_docs/API_docs_v68/methods/req_pq.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ResPQ = $MadelineProto->req_pq(['nonce' => int128, ]); diff --git a/old_docs/API_docs_v68/methods/rpc_drop_answer.md b/old_docs/API_docs_v68/methods/rpc_drop_answer.md index 381d7ee4..27f98bca 100644 --- a/old_docs/API_docs_v68/methods/rpc_drop_answer.md +++ b/old_docs/API_docs_v68/methods/rpc_drop_answer.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $RpcDropAnswer = $MadelineProto->rpc_drop_answer(['req_msg_id' => long, ]); diff --git a/old_docs/API_docs_v68/methods/set_client_DH_params.md b/old_docs/API_docs_v68/methods/set_client_DH_params.md index 6abb9a51..cf8ab321 100644 --- a/old_docs/API_docs_v68/methods/set_client_DH_params.md +++ b/old_docs/API_docs_v68/methods/set_client_DH_params.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Set_client_DH_params_answer = $MadelineProto->set_client_DH_params(['nonce' => int128, 'server_nonce' => int128, 'encrypted_data' => 'string', ]); diff --git a/old_docs/API_docs_v68/methods/stickers_addStickerToSet.md b/old_docs/API_docs_v68/methods/stickers_addStickerToSet.md index 1f90028c..7c4191d8 100644 --- a/old_docs/API_docs_v68/methods/stickers_addStickerToSet.md +++ b/old_docs/API_docs_v68/methods/stickers_addStickerToSet.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSet = $MadelineProto->stickers->addStickerToSet(['stickerset' => InputStickerSet, 'sticker' => InputStickerSetItem, ]); diff --git a/old_docs/API_docs_v68/methods/stickers_changeStickerPosition.md b/old_docs/API_docs_v68/methods/stickers_changeStickerPosition.md index 7e2c5b53..57803898 100644 --- a/old_docs/API_docs_v68/methods/stickers_changeStickerPosition.md +++ b/old_docs/API_docs_v68/methods/stickers_changeStickerPosition.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->stickers->changeStickerPosition(['sticker' => InputDocument, 'position' => int, ]); diff --git a/old_docs/API_docs_v68/methods/stickers_createStickerSet.md b/old_docs/API_docs_v68/methods/stickers_createStickerSet.md index c4e85852..95775849 100644 --- a/old_docs/API_docs_v68/methods/stickers_createStickerSet.md +++ b/old_docs/API_docs_v68/methods/stickers_createStickerSet.md @@ -48,12 +48,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSet = $MadelineProto->stickers->createStickerSet(['masks' => Bool, 'user_id' => InputUser, 'title' => 'string', 'short_name' => 'string', 'stickers' => [InputStickerSetItem, InputStickerSetItem], ]); diff --git a/old_docs/API_docs_v68/methods/stickers_removeStickerFromSet.md b/old_docs/API_docs_v68/methods/stickers_removeStickerFromSet.md index 55b2dab0..b57376d2 100644 --- a/old_docs/API_docs_v68/methods/stickers_removeStickerFromSet.md +++ b/old_docs/API_docs_v68/methods/stickers_removeStickerFromSet.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->stickers->removeStickerFromSet(['sticker' => InputDocument, ]); diff --git a/old_docs/API_docs_v68/methods/upload_getWebFile.md b/old_docs/API_docs_v68/methods/upload_getWebFile.md index e864e4b7..11634633 100644 --- a/old_docs/API_docs_v68/methods/upload_getWebFile.md +++ b/old_docs/API_docs_v68/methods/upload_getWebFile.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $upload_WebFile = $MadelineProto->upload->getWebFile(['location' => InputWebFileLocation, 'offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v68/methods/users_getUsers.md b/old_docs/API_docs_v68/methods/users_getUsers.md index ef1c7fd8..bce13ee6 100644 --- a/old_docs/API_docs_v68/methods/users_getUsers.md +++ b/old_docs/API_docs_v68/methods/users_getUsers.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v70/README.md b/old_docs/API_docs_v70/README.md index 1380f56a..156602c1 100644 --- a/old_docs/API_docs_v70/README.md +++ b/old_docs/API_docs_v70/README.md @@ -4,11 +4,11 @@ description: MadelineProto API documentation (layer v70) --- # MadelineProto API documentation (layer v70) +[Back to main documentation](..) + + [Methods](methods/) [Constructors](constructors/) -[Types](types/) - - -[Back to main documentation](..) +[Types](types/) \ No newline at end of file diff --git a/old_docs/API_docs_v70/methods/README.md b/old_docs/API_docs_v70/methods/README.md index a9ad20ad..fe627464 100644 --- a/old_docs/API_docs_v70/methods/README.md +++ b/old_docs/API_docs_v70/methods/README.md @@ -1,537 +1,532 @@ --- title: Methods -description: List of methods +description: What do you want to do? --- -# Methods -[Back to API documentation index](..) +# What do you want to do? +[Go back to API documentation index](..) +[Go to the old code-version method index](api_index.html) -$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); +* [Logout](https://docs.madelineproto.xyz/logout.html) -$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); +* [Login](https://docs.madelineproto.xyz/docs/LOGIN.html) -$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); +* [Get all chats, broadcast a message to all chats](https://docs.madelineproto.xyz/docs/DIALOGS.html) -$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); +* [Get the full participant list of a channel/group/supergroup](https://docs.madelineproto.xyz/get_pwr_chat.html) -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); +* [Get full info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_full_info.html) +* [Get info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_info.html) -$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); +* [Get info about the currently logged-in user](https://docs.madelineproto.xyz/get_self.html) -$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); +* [Upload or download files up to 1.5 GB](https://docs.madelineproto.xyz/docs/FILES.html) -$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); +* [Make a phone call and play a song](https://docs.madelineproto.xyz/docs/CALLS.html) -$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); - -$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); - - -$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); - -$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); +* [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) *** -

$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) +

* Change the phone number associated to this account -$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Check if this username is available -$MadelineProto->[account->confirmPhone](account_confirmPhone.md)(\['phone_code_hash' => [string](../types/string.md), 'phone_code' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode -$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Delete this account -$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) +* Get account TTL -$MadelineProto->[account->getAuthorizations](account_getAuthorizations.md)(\[\]) === [$account\_Authorizations](../types/account_Authorizations.md) +* Get all logged-in authorizations -$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) +* Get notification settings -$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md) +* Get the current password -$MadelineProto->[account->getPasswordSettings](account_getPasswordSettings.md)(\['current_password_hash' => [bytes](../types/bytes.md), \]) === [$account\_PasswordSettings](../types/account_PasswordSettings.md) +* Get the current 2FA settings -$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Get privacy settings -$MadelineProto->[account->getTmpPassword](account_getTmpPassword.md)(\['password_hash' => [bytes](../types/bytes.md), 'period' => [int](../types/int.md), \]) === [$account\_TmpPassword](../types/account_TmpPassword.md) +* Get temporary password for buying products through bots -$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) +* Returns a list of available wallpapers. -$MadelineProto->[account->registerDevice](account_registerDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Register device for push notifications -$MadelineProto->[account->reportPeer](account_reportPeer.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reason' => [ReportReason](../types/ReportReason.md), \]) === [$Bool](../types/Bool.md) +* Report for spam -$MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) +* Delete a certain session -$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) +* Reset all notification settings -$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) +* Change the phone number -$MadelineProto->[account->sendConfirmPhoneCode](account_sendConfirmPhoneCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'hash' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) +* Send confirmation phone code -$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) +* Set account TTL -$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Set privacy settings -$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Stop sending PUSH notifications to app -$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Disable all notifications for a certain period -$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) +* Change notification settings -$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) +* Update the 2FA password settings -$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) +* Update profile info -$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Update online status -$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) +* Update this user's username *** -

$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) +

* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info -$MadelineProto->[auth->cancelCode](auth_cancelCode.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Invalidate sent phone code -$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) +* Check if this phone number is registered on telegram -$MadelineProto->[auth->dropTempAuthKeys](auth_dropTempAuthKeys.md)(\['except_auth_keys' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) +* Delete all temporary authorization keys except the ones provided -$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) +* You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$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) +* You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->recoverPassword](auth_recoverPassword.md)(\['code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account -$MadelineProto->[auth->requestPasswordRecovery](auth_requestPasswordRecovery.md)(\[\]) === [$auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) +* Send an email to recover the 2FA password -$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) +* Resend the SMS verification code -$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) +* Delete all logged-in sessions. -$MadelineProto->[auth->sendCode](auth_sendCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'phone_number' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), 'api_id' => [int](../types/int.md), 'api_hash' => [string](../types/string.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) +* Use phone_login instead -$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Invite friends to telegram! -$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) +* You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) -$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) +* You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) *** -

$MadelineProto->[bots->answerWebhookJSONQuery](bots_answerWebhookJSONQuery.md)(\['query_id' => [long](../types/long.md), 'data' => [DataJSON](../types/DataJSON.md), \]) === [$Bool](../types/Bool.md) +

* Send webhook request via bot API -$MadelineProto->[bots->sendCustomRequest](bots_sendCustomRequest.md)(\['custom_method' => [string](../types/string.md), 'params' => [DataJSON](../types/DataJSON.md), \]) === [$DataJSON](../types/DataJSON.md) +* Send a custom request to the bot API *** -

$MadelineProto->[channels->checkUsername](channels_checkUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +

* Check if this username is free and can be assigned to a channel/supergroup -$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) +* Create channel/supergroup -$MadelineProto->[channels->deleteChannel](channels_deleteChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Delete a channel/supergroup -$MadelineProto->[channels->deleteMessages](channels_deleteMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Delete channel/supergroup messages -$MadelineProto->[channels->deleteUserHistory](channels_deleteUserHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Delete all messages of a user in a channel/supergroup -$MadelineProto->[channels->editAbout](channels_editAbout.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'about' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Edit the about text of a channel/supergroup -$MadelineProto->[channels->editAdmin](channels_editAdmin.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), 'admin_rights' => [ChannelAdminRights](../types/ChannelAdminRights.md), \]) === [$Updates](../types/Updates.md) +* Edit admin permissions of a user in a channel/supergroup -$MadelineProto->[channels->editBanned](channels_editBanned.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), 'banned_rights' => [ChannelBannedRights](../types/ChannelBannedRights.md), \]) === [$Updates](../types/Updates.md) +* Kick or ban a user from a channel/supergroup -$MadelineProto->[channels->editPhoto](channels_editPhoto.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) +* Edit the photo of a supergroup/channel -$MadelineProto->[channels->editTitle](channels_editTitle.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Edit the title of a supergroup/channel -$MadelineProto->[channels->exportInvite](channels_exportInvite.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) +* Export the invite link of a channel -$MadelineProto->[channels->exportMessageLink](channels_exportMessageLink.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => [int](../types/int.md), \]) === [$ExportedMessageLink](../types/ExportedMessageLink.md) +* Get the link of a message in a channel -$MadelineProto->[channels->getAdminLog](channels_getAdminLog.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'q' => [string](../types/string.md), 'events_filter' => [ChannelAdminLogEventsFilter](../types/ChannelAdminLogEventsFilter.md), 'admins' => \[[InputUser](../types/InputUser.md)\], 'max_id' => [long](../types/long.md), 'min_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), \]) === [$channels\_AdminLogResults](../types/channels_AdminLogResults.md) +* Get admin log of a channel/supergroup -$MadelineProto->[channels->getAdminedPublicChannels](channels_getAdminedPublicChannels.md)(\[\]) === [$messages\_Chats](../types/messages_Chats.md) +* Get all supergroups/channels where you're admin -$MadelineProto->[channels->getChannels](channels_getChannels.md)(\['id' => \[[InputChannel](../types/InputChannel.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get info about multiple channels/supergroups -$MadelineProto->[channels->getFullChannel](channels_getFullChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) +* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[channels->getMessages](channels_getMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get channel/supergroup messages -$MadelineProto->[channels->getParticipant](channels_getParticipant.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) +* Get info about a certain channel/supergroup participant -$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) +* Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead) -$MadelineProto->[channels->inviteToChannel](channels_inviteToChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'users' => \[[InputUser](../types/InputUser.md)\], \]) === [$Updates](../types/Updates.md) +* Add users to channel/supergroup -$MadelineProto->[channels->joinChannel](channels_joinChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Join a channel/supergroup -$MadelineProto->[channels->leaveChannel](channels_leaveChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Leave a channel/supergroup -$MadelineProto->[channels->readHistory](channels_readHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Mark channel/supergroup history as read -$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) +* Report a supergroup/channel for spam -$MadelineProto->[channels->toggleInvites](channels_toggleInvites.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Allow or disallow any user to invite users to this channel/supergroup -$MadelineProto->[channels->toggleSignatures](channels_toggleSignatures.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Toggle channel signatures -$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) +* Set the pinned message of a channel/supergroup -$MadelineProto->[channels->updateUsername](channels_updateUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Update the username of a supergroup/channel *** -

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +

* Block a user -$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) +* Delete a contact -$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) +* Delete multiple contacts -$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) +* Export contact as card -$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) +* Get blocked users -$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [string](../types/string.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) +* Get info about a certain contact -$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) +* Get online status of all users -$MadelineProto->[contacts->getTopPeers](contacts_getTopPeers.md)(\['correspondents' => [Bool](../types/Bool.md), 'bots_pm' => [Bool](../types/Bool.md), 'bots_inline' => [Bool](../types/Bool.md), 'phone_calls' => [Bool](../types/Bool.md), 'groups' => [Bool](../types/Bool.md), 'channels' => [Bool](../types/Bool.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'hash' => [int](../types/int.md), \]) === [$contacts\_TopPeers](../types/contacts_TopPeers.md) +* Get most used chats -$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) +* Import card as contact -$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], 'replace' => [Bool](../types/Bool.md), \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) +* Add phone number as contact -$MadelineProto->[contacts->resetTopPeerRating](contacts_resetTopPeerRating.md)(\['category' => [TopPeerCategory](../types/TopPeerCategory.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Reset top peer rating for a certain category/peer -$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) +* You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) +* Search contacts -$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +* Unblock a user *** -

$MadelineProto->[contest->saveDeveloperInfo](contest_saveDeveloperInfo.md)(\['vk_id' => [int](../types/int.md), 'name' => [string](../types/string.md), 'phone_number' => [string](../types/string.md), 'age' => [int](../types/int.md), 'city' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +

* Save developer info for telegram contest *** -

$MadelineProto->[destroy_auth_key](destroy_auth_key.md)(\[\]) === [$DestroyAuthKeyRes](../types/DestroyAuthKeyRes.md) +

* Destroy current authorization key -$MadelineProto->[destroy_session](destroy_session.md)(\['session_id' => [long](../types/long.md), \]) === [$DestroySessionRes](../types/DestroySessionRes.md) +* Destroy the current MTProto session *** -

$MadelineProto->[get_future_salts](get_future_salts.md)(\['num' => [int](../types/int.md), \]) === [$FutureSalts](../types/FutureSalts.md) +

* Get future salts *** -

$MadelineProto->[help->getAppChangelog](help_getAppChangelog.md)(\['prev_app_version' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +

* Get the changelog of this app -$MadelineProto->[help->getAppUpdate](help_getAppUpdate.md)(\[\]) === [$help\_AppUpdate](../types/help_AppUpdate.md) +* Get info about app updates -$MadelineProto->[help->getCdnConfig](help_getCdnConfig.md)(\[\]) === [$CdnConfig](../types/CdnConfig.md) +* Get CDN configuration -$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) +* Get server configuration -$MadelineProto->[help->getInviteText](help_getInviteText.md)(\[\]) === [$help\_InviteText](../types/help_InviteText.md) +* Get invitation text -$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) +* Get nearest datacenter -$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) +* Get info of support user -$MadelineProto->[help->getTermsOfService](help_getTermsOfService.md)(\[\]) === [$help\_TermsOfService](../types/help_TermsOfService.md) +* Get terms of service -$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) +* Log data for developer of this app -$MadelineProto->[help->setBotUpdatesStatus](help_setBotUpdatesStatus.md)(\['pending_updates_count' => [int](../types/int.md), 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Set the update status of webhook *** -

$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), 'system_lang_code' => [string](../types/string.md), 'lang_pack' => [string](../types/string.md), 'lang_code' => [string](../types/string.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Initializes connection and save information on the user's device and application. *** -

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invokes a query after successfull completion of one of the previous queries. *** -

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Result type returned by a current query. *** -

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invoke this method with layer X *** -

$MadelineProto->[invokeWithoutUpdates](invokeWithoutUpdates.md)(\['query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invoke with method without returning updates in the socket *** -

$MadelineProto->[langpack->getDifference](langpack_getDifference.md)(\['from_version' => [int](../types/int.md), \]) === [$LangPackDifference](../types/LangPackDifference.md) +

* Get language pack updates -$MadelineProto->[langpack->getLangPack](langpack_getLangPack.md)(\['lang_code' => [string](../types/string.md), \]) === [$LangPackDifference](../types/LangPackDifference.md) +* Get language pack -$MadelineProto->[langpack->getLanguages](langpack_getLanguages.md)(\[\]) === [$Vector\_of\_LangPackLanguage](../types/LangPackLanguage.md) +* Get available languages -$MadelineProto->[langpack->getStrings](langpack_getStrings.md)(\['lang_code' => [string](../types/string.md), 'keys' => \[[string](../types/string.md)\], \]) === [$Vector\_of\_LangPackString](../types/LangPackString.md) +* Get language pack strings *** -

$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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Add a user to a normal chat (use channels->inviteToChannel for supergroups) -$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md) +* Check if an invitation link is valid -$MadelineProto->[messages->clearRecentStickers](messages_clearRecentStickers.md)(\['attached' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Clear all recent stickers -$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Create a chat (not supergroup) -$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md) +* Delete a user from a chat (not supergroup) -$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['just_clear' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Delete chat history -$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['revoke' => [Bool](../types/Bool.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Delete messages -$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Edit admin permissions -$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) +* Edit the photo of a normal chat (not supergroup) -$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Edit the title of a normal chat (not supergroup) -$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) +* Edit a sent inline message -$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) +* Edit a message -$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) +* Export chat invite -$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) +* Forward message -$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'with_my_score' => [Bool](../types/Bool.md), 'from_peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], 'to_peer' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) +* Forward messages -$MadelineProto->[messages->getAllChats](messages_getAllChats.md)(\['except_ids' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get all chats (not supergroups or channels) -$MadelineProto->[messages->getAllDrafts](messages_getAllDrafts.md)(\[\]) === [$Updates](../types/Updates.md) +* Get all message drafts -$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) +* Get all stickerpacks -$MadelineProto->[messages->getArchivedStickers](messages_getArchivedStickers.md)(\['masks' => [Bool](../types/Bool.md), 'offset_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), \]) === [$messages\_ArchivedStickers](../types/messages_ArchivedStickers.md) +* Get all archived stickers -$MadelineProto->[messages->getAttachedStickers](messages_getAttachedStickers.md)(\['media' => [InputStickeredMedia](../types/InputStickeredMedia.md), \]) === [$Vector\_of\_StickerSetCovered](../types/StickerSetCovered.md) +* Get stickers attachable to images -$MadelineProto->[messages->getBotCallbackAnswer](messages_getBotCallbackAnswer.md)(\['game' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'msg_id' => [int](../types/int.md), 'data' => [bytes](../types/bytes.md), \]) === [$messages\_BotCallbackAnswer](../types/messages_BotCallbackAnswer.md) +* Get the callback answer of a bot (after clicking a button) -$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get info about chats -$MadelineProto->[messages->getCommonChats](messages_getCommonChats.md)(\['user_id' => [InputUser](../types/InputUser.md), 'max_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get chats in common with a user -$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) +* You cannot use this method directly, instead use $MadelineProto->get_dh_config(); -$MadelineProto->[messages->getDialogs](messages_getDialogs.md)(\['exclude_pinned' => [Bool](../types/Bool.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) +* Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html -$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) +* Get document by SHA256 hash -$MadelineProto->[messages->getFeaturedStickers](messages_getFeaturedStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_FeaturedStickers](../types/messages_FeaturedStickers.md) +* Get featured stickers -$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) +* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[messages->getGameHighScores](messages_getGameHighScores.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_HighScores](../types/messages_HighScores.md) +* Get high scores of a game -$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) +* Get previous messages of a group -$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) +* Call inline bot -$MadelineProto->[messages->getInlineGameHighScores](messages_getInlineGameHighScores.md)(\['id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_HighScores](../types/messages_HighScores.md) +* Get high scores of a game sent in an inline message -$MadelineProto->[messages->getMaskStickers](messages_getMaskStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) +* Get masks -$MadelineProto->[messages->getMessageEditData](messages_getMessageEditData.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$messages\_MessageEditData](../types/messages_MessageEditData.md) +* Check if about to edit a message or a media caption -$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get messages -$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) +* Get and increase message views -$MadelineProto->[messages->getPeerDialogs](messages_getPeerDialogs.md)(\['peers' => \[[InputPeer](../types/InputPeer.md)\], \]) === [$messages\_PeerDialogs](../types/messages_PeerDialogs.md) +* Get dialog info of peers -$MadelineProto->[messages->getPeerSettings](messages_getPeerSettings.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$PeerSettings](../types/PeerSettings.md) +* Get the settings of apeer -$MadelineProto->[messages->getPinnedDialogs](messages_getPinnedDialogs.md)(\[\]) === [$messages\_PeerDialogs](../types/messages_PeerDialogs.md) +* Get pinned dialogs -$MadelineProto->[messages->getRecentStickers](messages_getRecentStickers.md)(\['attached' => [Bool](../types/Bool.md), 'hash' => [int](../types/int.md), \]) === [$messages\_RecentStickers](../types/messages_RecentStickers.md) +* Get recent stickers -$MadelineProto->[messages->getSavedGifs](messages_getSavedGifs.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_SavedGifs](../types/messages_SavedGifs.md) +* Get saved gifs -$MadelineProto->[messages->getStickerSet](messages_getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) +* Get a stickerset -$MadelineProto->[messages->getWebPage](messages_getWebPage.md)(\['url' => [string](../types/string.md), 'hash' => [int](../types/int.md), \]) === [$WebPage](../types/WebPage.md) +* Get webpage preview -$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) === [$MessageMedia](../types/MessageMedia.md) +* Get webpage preview -$MadelineProto->[messages->hideReportSpam](messages_hideReportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Hide report spam popup -$MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Import chat invite -$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'archived' => [Bool](../types/Bool.md), \]) === [$messages\_StickerSetInstallResult](../types/messages_StickerSetInstallResult.md) +* Add a sticker set -$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) +* Convert chat to supergroup -$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Mark messages as read in secret chats -$MadelineProto->[messages->readFeaturedStickers](messages_readFeaturedStickers.md)(\['id' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) +* Mark new featured stickers as read -$MadelineProto->[messages->readHistory](messages_readHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Mark messages as read -$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Mark message as read -$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_ReceivedNotifyMessage](../types/ReceivedNotifyMessage.md) +* Mark messages as read -$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) +* You cannot use this method directly -$MadelineProto->[messages->reorderPinnedDialogs](messages_reorderPinnedDialogs.md)(\['force' => [Bool](../types/Bool.md), 'order' => \[[InputPeer](../types/InputPeer.md)\], \]) === [$Bool](../types/Bool.md) +* Reorder pinned dialogs -$MadelineProto->[messages->reorderStickerSets](messages_reorderStickerSets.md)(\['masks' => [Bool](../types/Bool.md), 'order' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) +* Reorder sticker sets -$MadelineProto->[messages->reportEncryptedSpam](messages_reportEncryptedSpam.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), \]) === [$Bool](../types/Bool.md) +* Report for spam a secret chat -$MadelineProto->[messages->reportSpam](messages_reportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Report a peer for spam -$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$MadelineProto->[messages->saveDraft](messages_saveDraft.md)(\['no_webpage' => [Bool](../types/Bool.md), 'reply_to_msg_id' => [int](../types/int.md), 'peer' => [InputPeer](../types/InputPeer.md), 'message' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Bool](../types/Bool.md) +* Save a message draft -$MadelineProto->[messages->saveGif](messages_saveGif.md)(\['id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Save a GIF -$MadelineProto->[messages->saveRecentSticker](messages_saveRecentSticker.md)(\['attached' => [Bool](../types/Bool.md), 'id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Add a sticker to recent stickers -$MadelineProto->[messages->search](messages_search.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'q' => [string](../types/string.md), 'from_id' => [InputUser](../types/InputUser.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) +* Search peers or messages -$MadelineProto->[messages->searchGifs](messages_searchGifs.md)(\['q' => [string](../types/string.md), 'offset' => [int](../types/int.md), \]) === [$messages\_FoundGifs](../types/messages_FoundGifs.md) +* Search gifs -$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) +* Global message search -$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send message to secret chat -$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) +* Send a file to a secret chat -$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send a service message to a secret chat -$MadelineProto->[messages->sendInlineBotResult](messages_sendInlineBotResult.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'query_id' => [long](../types/long.md), 'id' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Send a received bot result to the chat -$MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'media' => [InputMedia](../types/InputMedia.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \]) === [$Updates](../types/Updates.md) +* Send a media -$MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Updates](../types/Updates.md) +* Send a message -$MadelineProto->[messages->sendScreenshotNotification](messages_sendScreenshotNotification.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) +* Send screenshot notification -$MadelineProto->[messages->setBotCallbackAnswer](messages_setBotCallbackAnswer.md)(\['alert' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'message' => [string](../types/string.md), 'url' => [string](../types/string.md), 'cache_time' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Bots only: set the callback answer (after a button was clicked) -$MadelineProto->[messages->setBotPrecheckoutResults](messages_setBotPrecheckoutResults.md)(\['success' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'error' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Bots only: set precheckout results -$MadelineProto->[messages->setBotShippingResults](messages_setBotShippingResults.md)(\['query_id' => [long](../types/long.md), 'error' => [string](../types/string.md), 'shipping_options' => \[[ShippingOption](../types/ShippingOption.md)\], \]) === [$Bool](../types/Bool.md) +* Bots only: set shipping results -$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Send typing notification to secret chat -$MadelineProto->[messages->setGameScore](messages_setGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'force' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) +* Set the game score -$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) +* Bots only: set the results of an inline query -$MadelineProto->[messages->setInlineGameScore](messages_setInlineGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'force' => [Bool](../types/Bool.md), 'id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Set the game score of an inline message -$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) +* Change typing status -$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) +* Start a bot -$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Enable all users are admins in normal groups (not supergroups) -$MadelineProto->[messages->toggleDialogPin](messages_toggleDialogPin.md)(\['pinned' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Pin or unpin dialog -$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) +* Remove a sticker set -$MadelineProto->[messages->uploadMedia](messages_uploadMedia.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'media' => [InputMedia](../types/InputMedia.md), \]) === [$MessageMedia](../types/MessageMedia.md) +* Upload a file without sending it to anyone *** -

$MadelineProto->[payments->clearSavedInfo](payments_clearSavedInfo.md)(\['credentials' => [Bool](../types/Bool.md), 'info' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +

* Clear saved payments info -$MadelineProto->[payments->getPaymentForm](payments_getPaymentForm.md)(\['msg_id' => [int](../types/int.md), \]) === [$payments\_PaymentForm](../types/payments_PaymentForm.md) +* Get payment form -$MadelineProto->[payments->getPaymentReceipt](payments_getPaymentReceipt.md)(\['msg_id' => [int](../types/int.md), \]) === [$payments\_PaymentReceipt](../types/payments_PaymentReceipt.md) +* Get payment receipt -$MadelineProto->[payments->getSavedInfo](payments_getSavedInfo.md)(\[\]) === [$payments\_SavedInfo](../types/payments_SavedInfo.md) +* Get saved payments info -$MadelineProto->[payments->sendPaymentForm](payments_sendPaymentForm.md)(\['msg_id' => [int](../types/int.md), 'requested_info_id' => [string](../types/string.md), 'shipping_option_id' => [string](../types/string.md), 'credentials' => [InputPaymentCredentials](../types/InputPaymentCredentials.md), \]) === [$payments\_PaymentResult](../types/payments_PaymentResult.md) +* Bots only: send payment form -$MadelineProto->[payments->validateRequestedInfo](payments_validateRequestedInfo.md)(\['save' => [Bool](../types/Bool.md), 'msg_id' => [int](../types/int.md), 'info' => [PaymentRequestedInfo](../types/PaymentRequestedInfo.md), \]) === [$payments\_ValidatedRequestedInfo](../types/payments_ValidatedRequestedInfo.md) +* Validate requested payment info *** -

$MadelineProto->[phone->acceptCall](phone_acceptCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'g_b' => [bytes](../types/bytes.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) +

* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls -$MadelineProto->[phone->confirmCall](phone_confirmCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'g_a' => [bytes](../types/bytes.md), 'key_fingerprint' => [long](../types/long.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls -$MadelineProto->[phone->discardCall](phone_discardCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'duration' => [int](../types/int.md), 'reason' => [PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md), 'connection_id' => [long](../types/long.md), \]) === [$Updates](../types/Updates.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls -$MadelineProto->[phone->getCallConfig](phone_getCallConfig.md)(\[\]) === [$DataJSON](../types/DataJSON.md) +* Get call configuration -$MadelineProto->[phone->receivedCall](phone_receivedCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), \]) === [$Bool](../types/Bool.md) +* Notify server that you received a call (server will refuse all incoming calls until the current call is over) -$MadelineProto->[phone->requestCall](phone_requestCall.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a_hash' => [bytes](../types/bytes.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls -$MadelineProto->[phone->saveCallDebug](phone_saveCallDebug.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'debug' => [DataJSON](../types/DataJSON.md), \]) === [$Bool](../types/Bool.md) +* Save call debugging info -$MadelineProto->[phone->setCallRating](phone_setCallRating.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'rating' => [int](../types/int.md), 'comment' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Set phone call rating *** -

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) +

* Delete profile photos -$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) +* Get the profile photos of a user -$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) +* Update the profile photo (use photos->uploadProfilePhoto to upload the photo) -$MadelineProto->[photos->uploadProfilePhoto](photos_uploadProfilePhoto.md)(\['file' => [InputFile](../types/InputFile.md), \]) === [$photos\_Photo](../types/photos_Photo.md) +* Upload profile photo *** -

$MadelineProto->[ping](ping.md)(\['ping_id' => [long](../types/long.md), \]) === [$Pong](../types/Pong.md) +

* pings the server -$MadelineProto->[ping_delay_disconnect](ping_delay_disconnect.md)(\['ping_id' => [long](../types/long.md), 'disconnect_delay' => [int](../types/int.md), \]) === [$Pong](../types/Pong.md) +* Pings the server and causes disconection if the same method is not called within ping_disconnect_delay *** -

$MadelineProto->[req_DH_params](req_DH_params.md)(\['nonce' => [int128](../types/int128.md), 'server_nonce' => [int128](../types/int128.md), 'p' => [string](../types/string.md), 'q' => [string](../types/string.md), 'public_key_fingerprint' => [long](../types/long.md), 'encrypted_data' => [string](../types/string.md), \]) === [$Server\_DH\_Params](../types/Server_DH_Params.md) +

* Requests Diffie-hellman parameters for key exchange -$MadelineProto->[req_pq](req_pq.md)(\['nonce' => [int128](../types/int128.md), \]) === [$ResPQ](../types/ResPQ.md) +* Requests PQ for factorization *** -

$MadelineProto->[rpc_drop_answer](rpc_drop_answer.md)(\['req_msg_id' => [long](../types/long.md), \]) === [$RpcDropAnswer](../types/RpcDropAnswer.md) +

* Do not send answer to provided request *** -

$MadelineProto->[set_client_DH_params](set_client_DH_params.md)(\['nonce' => [int128](../types/int128.md), 'server_nonce' => [int128](../types/int128.md), 'encrypted_data' => [string](../types/string.md), \]) === [$Set\_client\_DH\_params\_answer](../types/Set_client_DH_params_answer.md) +

* Sets client diffie-hellman parameters *** -

$MadelineProto->[stickers->addStickerToSet](stickers_addStickerToSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'sticker' => [InputStickerSetItem](../types/InputStickerSetItem.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) +

* Add sticker to stickerset -$MadelineProto->[stickers->changeStickerPosition](stickers_changeStickerPosition.md)(\['sticker' => [InputDocument](../types/InputDocument.md), 'position' => [int](../types/int.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) +* Change sticker position in photo -$MadelineProto->[stickers->createStickerSet](stickers_createStickerSet.md)(\['masks' => [Bool](../types/Bool.md), 'user_id' => [InputUser](../types/InputUser.md), 'title' => [string](../types/string.md), 'short_name' => [string](../types/string.md), 'stickers' => \[[InputStickerSetItem](../types/InputStickerSetItem.md)\], \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) +* Create stickerset -$MadelineProto->[stickers->removeStickerFromSet](stickers_removeStickerFromSet.md)(\['sticker' => [InputDocument](../types/InputDocument.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) +* Remove sticker from stickerset *** -

$MadelineProto->[updates->getChannelDifference](updates_getChannelDifference.md)(\['force' => [Bool](../types/Bool.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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates -$MadelineProto->[updates->getDifference](updates_getDifference.md)(\['pts' => [int](../types/int.md), 'pts_total_limit' => [int](../types/int.md), 'date' => [int](../types/int.md), 'qts' => [int](../types/int.md), \]) === [$updates\_Difference](../types/updates_Difference.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates -$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates *** -

$MadelineProto->[upload->getCdnFile](upload_getCdnFile.md)(\['file_token' => [bytes](../types/bytes.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$upload\_CdnFile](../types/upload_CdnFile.md) +

* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$MadelineProto->[upload->getCdnFileHashes](upload_getCdnFileHashes.md)(\['file_token' => [bytes](../types/bytes.md), 'offset' => [int](../types/int.md), \]) === [$Vector\_of\_CdnFileHash](../types/CdnFileHash.md) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$MadelineProto->[upload->getWebFile](upload_getWebFile.md)(\['location' => [InputWebFileLocation](../types/InputWebFileLocation.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$upload\_WebFile](../types/upload_WebFile.md) +* Download a file through telegram -$MadelineProto->[upload->reuploadCdnFile](upload_reuploadCdnFile.md)(\['file_token' => [bytes](../types/bytes.md), 'request_token' => [bytes](../types/bytes.md), \]) === [$Vector\_of\_CdnFileHash](../types/CdnFileHash.md) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info *** -

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) +

* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) +* Get info about users diff --git a/old_docs/API_docs_v70/methods/account_changePhone.md b/old_docs/API_docs_v70/methods/account_changePhone.md index aeb5c4bc..65f0b0d0 100644 --- a/old_docs/API_docs_v70/methods/account_changePhone.md +++ b/old_docs/API_docs_v70/methods/account_changePhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); diff --git a/old_docs/API_docs_v70/methods/account_checkUsername.md b/old_docs/API_docs_v70/methods/account_checkUsername.md index 0124bb38..08107762 100644 --- a/old_docs/API_docs_v70/methods/account_checkUsername.md +++ b/old_docs/API_docs_v70/methods/account_checkUsername.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v70/methods/account_confirmPhone.md b/old_docs/API_docs_v70/methods/account_confirmPhone.md index c6a1dba6..68490f35 100644 --- a/old_docs/API_docs_v70/methods/account_confirmPhone.md +++ b/old_docs/API_docs_v70/methods/account_confirmPhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->confirmPhone(['phone_code_hash' => 'string', 'phone_code' => 'string', ]); diff --git a/old_docs/API_docs_v70/methods/account_deleteAccount.md b/old_docs/API_docs_v70/methods/account_deleteAccount.md index e8b46c24..3a6f4700 100644 --- a/old_docs/API_docs_v70/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v70/methods/account_deleteAccount.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); diff --git a/old_docs/API_docs_v70/methods/account_getAccountTTL.md b/old_docs/API_docs_v70/methods/account_getAccountTTL.md index 0cdd0b98..ab6a6ea1 100644 --- a/old_docs/API_docs_v70/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v70/methods/account_getAccountTTL.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); diff --git a/old_docs/API_docs_v70/methods/account_getAuthorizations.md b/old_docs/API_docs_v70/methods/account_getAuthorizations.md index f92db8fe..303203e4 100644 --- a/old_docs/API_docs_v70/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v70/methods/account_getAuthorizations.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_Authorizations = $MadelineProto->account->getAuthorizations(); diff --git a/old_docs/API_docs_v70/methods/account_getNotifySettings.md b/old_docs/API_docs_v70/methods/account_getNotifySettings.md index f00be12c..ad492f49 100644 --- a/old_docs/API_docs_v70/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v70/methods/account_getNotifySettings.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); diff --git a/old_docs/API_docs_v70/methods/account_getPassword.md b/old_docs/API_docs_v70/methods/account_getPassword.md index c189421d..2692dab1 100644 --- a/old_docs/API_docs_v70/methods/account_getPassword.md +++ b/old_docs/API_docs_v70/methods/account_getPassword.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_Password = $MadelineProto->account->getPassword(); diff --git a/old_docs/API_docs_v70/methods/account_getPasswordSettings.md b/old_docs/API_docs_v70/methods/account_getPasswordSettings.md index 96cb953e..2039d405 100644 --- a/old_docs/API_docs_v70/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v70/methods/account_getPasswordSettings.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PasswordSettings = $MadelineProto->account->getPasswordSettings(['current_password_hash' => 'bytes', ]); diff --git a/old_docs/API_docs_v70/methods/account_getPrivacy.md b/old_docs/API_docs_v70/methods/account_getPrivacy.md index 979bfb94..5480ffbb 100644 --- a/old_docs/API_docs_v70/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v70/methods/account_getPrivacy.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); diff --git a/old_docs/API_docs_v70/methods/account_getTmpPassword.md b/old_docs/API_docs_v70/methods/account_getTmpPassword.md index a90f9b2b..01b1ebfc 100644 --- a/old_docs/API_docs_v70/methods/account_getTmpPassword.md +++ b/old_docs/API_docs_v70/methods/account_getTmpPassword.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_TmpPassword = $MadelineProto->account->getTmpPassword(['password_hash' => 'bytes', 'period' => int, ]); diff --git a/old_docs/API_docs_v70/methods/account_getWallPapers.md b/old_docs/API_docs_v70/methods/account_getWallPapers.md index 89b281be..7c8bff39 100644 --- a/old_docs/API_docs_v70/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v70/methods/account_getWallPapers.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); diff --git a/old_docs/API_docs_v70/methods/account_registerDevice.md b/old_docs/API_docs_v70/methods/account_registerDevice.md index cd28abcd..4e148a7f 100644 --- a/old_docs/API_docs_v70/methods/account_registerDevice.md +++ b/old_docs/API_docs_v70/methods/account_registerDevice.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', ]); diff --git a/old_docs/API_docs_v70/methods/account_reportPeer.md b/old_docs/API_docs_v70/methods/account_reportPeer.md index a07c87d0..c5fe7073 100644 --- a/old_docs/API_docs_v70/methods/account_reportPeer.md +++ b/old_docs/API_docs_v70/methods/account_reportPeer.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->reportPeer(['peer' => InputPeer, 'reason' => ReportReason, ]); diff --git a/old_docs/API_docs_v70/methods/account_resetAuthorization.md b/old_docs/API_docs_v70/methods/account_resetAuthorization.md index 4155d3c8..543aee08 100644 --- a/old_docs/API_docs_v70/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v70/methods/account_resetAuthorization.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetAuthorization(['hash' => long, ]); diff --git a/old_docs/API_docs_v70/methods/account_resetNotifySettings.md b/old_docs/API_docs_v70/methods/account_resetNotifySettings.md index ccc836a9..557373b0 100644 --- a/old_docs/API_docs_v70/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v70/methods/account_resetNotifySettings.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); diff --git a/old_docs/API_docs_v70/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v70/methods/account_sendChangePhoneCode.md index c9f9c174..bdf7331f 100644 --- a/old_docs/API_docs_v70/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v70/methods/account_sendChangePhoneCode.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendChangePhoneCode(['allow_flashcall' => Bool, 'phone_number' => 'string', 'current_number' => Bool, ]); diff --git a/old_docs/API_docs_v70/methods/account_sendConfirmPhoneCode.md b/old_docs/API_docs_v70/methods/account_sendConfirmPhoneCode.md index 3785ba75..86035d19 100644 --- a/old_docs/API_docs_v70/methods/account_sendConfirmPhoneCode.md +++ b/old_docs/API_docs_v70/methods/account_sendConfirmPhoneCode.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendConfirmPhoneCode(['allow_flashcall' => Bool, 'hash' => 'string', 'current_number' => Bool, ]); diff --git a/old_docs/API_docs_v70/methods/account_setAccountTTL.md b/old_docs/API_docs_v70/methods/account_setAccountTTL.md index 5100e62e..bacdd77a 100644 --- a/old_docs/API_docs_v70/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v70/methods/account_setAccountTTL.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); diff --git a/old_docs/API_docs_v70/methods/account_setPrivacy.md b/old_docs/API_docs_v70/methods/account_setPrivacy.md index fbcedae7..6e24ded7 100644 --- a/old_docs/API_docs_v70/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v70/methods/account_setPrivacy.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); diff --git a/old_docs/API_docs_v70/methods/account_unregisterDevice.md b/old_docs/API_docs_v70/methods/account_unregisterDevice.md index 1d2b7670..b666d91a 100644 --- a/old_docs/API_docs_v70/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v70/methods/account_unregisterDevice.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); diff --git a/old_docs/API_docs_v70/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v70/methods/account_updateDeviceLocked.md index ef816501..cd52093a 100644 --- a/old_docs/API_docs_v70/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v70/methods/account_updateDeviceLocked.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); diff --git a/old_docs/API_docs_v70/methods/account_updateNotifySettings.md b/old_docs/API_docs_v70/methods/account_updateNotifySettings.md index 18cbdb75..db020309 100644 --- a/old_docs/API_docs_v70/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v70/methods/account_updateNotifySettings.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); diff --git a/old_docs/API_docs_v70/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v70/methods/account_updatePasswordSettings.md index 0754dd63..8af1e37f 100644 --- a/old_docs/API_docs_v70/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v70/methods/account_updatePasswordSettings.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updatePasswordSettings(['current_password_hash' => 'bytes', 'new_settings' => account_PasswordInputSettings, ]); diff --git a/old_docs/API_docs_v70/methods/account_updateProfile.md b/old_docs/API_docs_v70/methods/account_updateProfile.md index e24ef2f5..59629188 100644 --- a/old_docs/API_docs_v70/methods/account_updateProfile.md +++ b/old_docs/API_docs_v70/methods/account_updateProfile.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', 'about' => 'string', ]); diff --git a/old_docs/API_docs_v70/methods/account_updateStatus.md b/old_docs/API_docs_v70/methods/account_updateStatus.md index 4b049e65..50b99b1e 100644 --- a/old_docs/API_docs_v70/methods/account_updateStatus.md +++ b/old_docs/API_docs_v70/methods/account_updateStatus.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); diff --git a/old_docs/API_docs_v70/methods/account_updateUsername.md b/old_docs/API_docs_v70/methods/account_updateUsername.md index 08d2abe0..7276e2aa 100644 --- a/old_docs/API_docs_v70/methods/account_updateUsername.md +++ b/old_docs/API_docs_v70/methods/account_updateUsername.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v70/methods/api_README.md b/old_docs/API_docs_v70/methods/api_README.md new file mode 100644 index 00000000..9e31c398 --- /dev/null +++ b/old_docs/API_docs_v70/methods/api_README.md @@ -0,0 +1,538 @@ +--- +title: Methods +description: List of methods +--- +# Methods +[Back to API documentation index](..) + +[Go to the new description-version method index](index.html) + +$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); + +$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); + +$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); + +$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); + +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); + + +$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); + +$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); + +$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); + +$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); + +$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); + + +$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); + +$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); + +*** +

$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) + +$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->confirmPhone](account_confirmPhone.md)(\['phone_code_hash' => [string](../types/string.md), 'phone_code' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) + +$MadelineProto->[account->getAuthorizations](account_getAuthorizations.md)(\[\]) === [$account\_Authorizations](../types/account_Authorizations.md) + +$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) + +$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md) + +$MadelineProto->[account->getPasswordSettings](account_getPasswordSettings.md)(\['current_password_hash' => [bytes](../types/bytes.md), \]) === [$account\_PasswordSettings](../types/account_PasswordSettings.md) + +$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->getTmpPassword](account_getTmpPassword.md)(\['password_hash' => [bytes](../types/bytes.md), 'period' => [int](../types/int.md), \]) === [$account\_TmpPassword](../types/account_TmpPassword.md) + +$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) + +$MadelineProto->[account->registerDevice](account_registerDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->reportPeer](account_reportPeer.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reason' => [ReportReason](../types/ReportReason.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[account->sendConfirmPhoneCode](account_sendConfirmPhoneCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'hash' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) + +$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$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) + +$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) + +*** +

$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) + +$MadelineProto->[auth->cancelCode](auth_cancelCode.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) + +$MadelineProto->[auth->dropTempAuthKeys](auth_dropTempAuthKeys.md)(\['except_auth_keys' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) + +$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$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) + +$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->recoverPassword](auth_recoverPassword.md)(\['code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->requestPasswordRecovery](auth_requestPasswordRecovery.md)(\[\]) === [$auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) + +$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) + +$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->sendCode](auth_sendCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'phone_number' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), 'api_id' => [int](../types/int.md), 'api_hash' => [string](../types/string.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) + +$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$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) + +*** +

$MadelineProto->[bots->answerWebhookJSONQuery](bots_answerWebhookJSONQuery.md)(\['query_id' => [long](../types/long.md), 'data' => [DataJSON](../types/DataJSON.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[bots->sendCustomRequest](bots_sendCustomRequest.md)(\['custom_method' => [string](../types/string.md), 'params' => [DataJSON](../types/DataJSON.md), \]) === [$DataJSON](../types/DataJSON.md) + +*** +

$MadelineProto->[channels->checkUsername](channels_checkUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->deleteChannel](channels_deleteChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->deleteMessages](channels_deleteMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[channels->deleteUserHistory](channels_deleteUserHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[channels->editAbout](channels_editAbout.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'about' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[channels->editAdmin](channels_editAdmin.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), 'admin_rights' => [ChannelAdminRights](../types/ChannelAdminRights.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->editBanned](channels_editBanned.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), 'banned_rights' => [ChannelBannedRights](../types/ChannelBannedRights.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->editPhoto](channels_editPhoto.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->editTitle](channels_editTitle.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->exportInvite](channels_exportInvite.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) + +$MadelineProto->[channels->exportMessageLink](channels_exportMessageLink.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => [int](../types/int.md), \]) === [$ExportedMessageLink](../types/ExportedMessageLink.md) + +$MadelineProto->[channels->getAdminLog](channels_getAdminLog.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'q' => [string](../types/string.md), 'events_filter' => [ChannelAdminLogEventsFilter](../types/ChannelAdminLogEventsFilter.md), 'admins' => \[[InputUser](../types/InputUser.md)\], 'max_id' => [long](../types/long.md), 'min_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), \]) === [$channels\_AdminLogResults](../types/channels_AdminLogResults.md) + +$MadelineProto->[channels->getAdminedPublicChannels](channels_getAdminedPublicChannels.md)(\[\]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[channels->getChannels](channels_getChannels.md)(\['id' => \[[InputChannel](../types/InputChannel.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[channels->getFullChannel](channels_getFullChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$MadelineProto->[channels->getMessages](channels_getMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) + +$MadelineProto->[channels->getParticipant](channels_getParticipant.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) + +$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) + +$MadelineProto->[channels->inviteToChannel](channels_inviteToChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'users' => \[[InputUser](../types/InputUser.md)\], \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->joinChannel](channels_joinChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->leaveChannel](channels_leaveChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->readHistory](channels_readHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->toggleInvites](channels_toggleInvites.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->toggleSignatures](channels_toggleSignatures.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$MadelineProto->[channels->updateUsername](channels_updateUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) + +$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) + +$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) + +$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [string](../types/string.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) + +$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) + +$MadelineProto->[contacts->getTopPeers](contacts_getTopPeers.md)(\['correspondents' => [Bool](../types/Bool.md), 'bots_pm' => [Bool](../types/Bool.md), 'bots_inline' => [Bool](../types/Bool.md), 'phone_calls' => [Bool](../types/Bool.md), 'groups' => [Bool](../types/Bool.md), 'channels' => [Bool](../types/Bool.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'hash' => [int](../types/int.md), \]) === [$contacts\_TopPeers](../types/contacts_TopPeers.md) + +$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) + +$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], 'replace' => [Bool](../types/Bool.md), \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) + +$MadelineProto->[contacts->resetTopPeerRating](contacts_resetTopPeerRating.md)(\['category' => [TopPeerCategory](../types/TopPeerCategory.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) + +$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) + +$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[contest->saveDeveloperInfo](contest_saveDeveloperInfo.md)(\['vk_id' => [int](../types/int.md), 'name' => [string](../types/string.md), 'phone_number' => [string](../types/string.md), 'age' => [int](../types/int.md), 'city' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[destroy_auth_key](destroy_auth_key.md)(\[\]) === [$DestroyAuthKeyRes](../types/DestroyAuthKeyRes.md) + +$MadelineProto->[destroy_session](destroy_session.md)(\['session_id' => [long](../types/long.md), \]) === [$DestroySessionRes](../types/DestroySessionRes.md) + +*** +

$MadelineProto->[get_future_salts](get_future_salts.md)(\['num' => [int](../types/int.md), \]) === [$FutureSalts](../types/FutureSalts.md) + +*** +

$MadelineProto->[help->getAppChangelog](help_getAppChangelog.md)(\['prev_app_version' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[help->getAppUpdate](help_getAppUpdate.md)(\[\]) === [$help\_AppUpdate](../types/help_AppUpdate.md) + +$MadelineProto->[help->getCdnConfig](help_getCdnConfig.md)(\[\]) === [$CdnConfig](../types/CdnConfig.md) + +$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) + +$MadelineProto->[help->getInviteText](help_getInviteText.md)(\[\]) === [$help\_InviteText](../types/help_InviteText.md) + +$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) + +$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) + +$MadelineProto->[help->getTermsOfService](help_getTermsOfService.md)(\[\]) === [$help\_TermsOfService](../types/help_TermsOfService.md) + +$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[help->setBotUpdatesStatus](help_setBotUpdatesStatus.md)(\['pending_updates_count' => [int](../types/int.md), 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +*** +

$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), 'system_lang_code' => [string](../types/string.md), 'lang_pack' => [string](../types/string.md), 'lang_code' => [string](../types/string.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeWithoutUpdates](invokeWithoutUpdates.md)(\['query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[langpack->getDifference](langpack_getDifference.md)(\['from_version' => [int](../types/int.md), \]) === [$LangPackDifference](../types/LangPackDifference.md) + +$MadelineProto->[langpack->getLangPack](langpack_getLangPack.md)(\['lang_code' => [string](../types/string.md), \]) === [$LangPackDifference](../types/LangPackDifference.md) + +$MadelineProto->[langpack->getLanguages](langpack_getLanguages.md)(\[\]) === [$Vector\_of\_LangPackLanguage](../types/LangPackLanguage.md) + +$MadelineProto->[langpack->getStrings](langpack_getStrings.md)(\['lang_code' => [string](../types/string.md), 'keys' => \[[string](../types/string.md)\], \]) === [$Vector\_of\_LangPackString](../types/LangPackString.md) + +*** +

$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) + +$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) + +$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md) + +$MadelineProto->[messages->clearRecentStickers](messages_clearRecentStickers.md)(\['attached' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['just_clear' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['revoke' => [Bool](../types/Bool.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$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) + +$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) + +$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'with_my_score' => [Bool](../types/Bool.md), 'from_peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], 'to_peer' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->getAllChats](messages_getAllChats.md)(\['except_ids' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[messages->getAllDrafts](messages_getAllDrafts.md)(\[\]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) + +$MadelineProto->[messages->getArchivedStickers](messages_getArchivedStickers.md)(\['masks' => [Bool](../types/Bool.md), 'offset_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), \]) === [$messages\_ArchivedStickers](../types/messages_ArchivedStickers.md) + +$MadelineProto->[messages->getAttachedStickers](messages_getAttachedStickers.md)(\['media' => [InputStickeredMedia](../types/InputStickeredMedia.md), \]) === [$Vector\_of\_StickerSetCovered](../types/StickerSetCovered.md) + +$MadelineProto->[messages->getBotCallbackAnswer](messages_getBotCallbackAnswer.md)(\['game' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'msg_id' => [int](../types/int.md), 'data' => [bytes](../types/bytes.md), \]) === [$messages\_BotCallbackAnswer](../types/messages_BotCallbackAnswer.md) + +$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[messages->getCommonChats](messages_getCommonChats.md)(\['user_id' => [InputUser](../types/InputUser.md), 'max_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) + +$MadelineProto->[messages->getDialogs](messages_getDialogs.md)(\['exclude_pinned' => [Bool](../types/Bool.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) + +$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) + +$MadelineProto->[messages->getFeaturedStickers](messages_getFeaturedStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_FeaturedStickers](../types/messages_FeaturedStickers.md) + +$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$MadelineProto->[messages->getGameHighScores](messages_getGameHighScores.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_HighScores](../types/messages_HighScores.md) + +$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) + +$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) + +$MadelineProto->[messages->getInlineGameHighScores](messages_getInlineGameHighScores.md)(\['id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_HighScores](../types/messages_HighScores.md) + +$MadelineProto->[messages->getMaskStickers](messages_getMaskStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) + +$MadelineProto->[messages->getMessageEditData](messages_getMessageEditData.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$messages\_MessageEditData](../types/messages_MessageEditData.md) + +$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) + +$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) + +$MadelineProto->[messages->getPeerDialogs](messages_getPeerDialogs.md)(\['peers' => \[[InputPeer](../types/InputPeer.md)\], \]) === [$messages\_PeerDialogs](../types/messages_PeerDialogs.md) + +$MadelineProto->[messages->getPeerSettings](messages_getPeerSettings.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$PeerSettings](../types/PeerSettings.md) + +$MadelineProto->[messages->getPinnedDialogs](messages_getPinnedDialogs.md)(\[\]) === [$messages\_PeerDialogs](../types/messages_PeerDialogs.md) + +$MadelineProto->[messages->getRecentStickers](messages_getRecentStickers.md)(\['attached' => [Bool](../types/Bool.md), 'hash' => [int](../types/int.md), \]) === [$messages\_RecentStickers](../types/messages_RecentStickers.md) + +$MadelineProto->[messages->getSavedGifs](messages_getSavedGifs.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_SavedGifs](../types/messages_SavedGifs.md) + +$MadelineProto->[messages->getStickerSet](messages_getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +$MadelineProto->[messages->getWebPage](messages_getWebPage.md)(\['url' => [string](../types/string.md), 'hash' => [int](../types/int.md), \]) === [$WebPage](../types/WebPage.md) + +$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) === [$MessageMedia](../types/MessageMedia.md) + +$MadelineProto->[messages->hideReportSpam](messages_hideReportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'archived' => [Bool](../types/Bool.md), \]) === [$messages\_StickerSetInstallResult](../types/messages_StickerSetInstallResult.md) + +$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->readFeaturedStickers](messages_readFeaturedStickers.md)(\['id' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->readHistory](messages_readHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_ReceivedNotifyMessage](../types/ReceivedNotifyMessage.md) + +$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) + +$MadelineProto->[messages->reorderPinnedDialogs](messages_reorderPinnedDialogs.md)(\['force' => [Bool](../types/Bool.md), 'order' => \[[InputPeer](../types/InputPeer.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->reorderStickerSets](messages_reorderStickerSets.md)(\['masks' => [Bool](../types/Bool.md), 'order' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->reportEncryptedSpam](messages_reportEncryptedSpam.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->reportSpam](messages_reportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) + +$MadelineProto->[messages->saveDraft](messages_saveDraft.md)(\['no_webpage' => [Bool](../types/Bool.md), 'reply_to_msg_id' => [int](../types/int.md), 'peer' => [InputPeer](../types/InputPeer.md), 'message' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->saveGif](messages_saveGif.md)(\['id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->saveRecentSticker](messages_saveRecentSticker.md)(\['attached' => [Bool](../types/Bool.md), 'id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->search](messages_search.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'q' => [string](../types/string.md), 'from_id' => [InputUser](../types/InputUser.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) + +$MadelineProto->[messages->searchGifs](messages_searchGifs.md)(\['q' => [string](../types/string.md), 'offset' => [int](../types/int.md), \]) === [$messages\_FoundGifs](../types/messages_FoundGifs.md) + +$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) + +$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$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) + +$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$MadelineProto->[messages->sendInlineBotResult](messages_sendInlineBotResult.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'query_id' => [long](../types/long.md), 'id' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'media' => [InputMedia](../types/InputMedia.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->sendScreenshotNotification](messages_sendScreenshotNotification.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->setBotCallbackAnswer](messages_setBotCallbackAnswer.md)(\['alert' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'message' => [string](../types/string.md), 'url' => [string](../types/string.md), 'cache_time' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setBotPrecheckoutResults](messages_setBotPrecheckoutResults.md)(\['success' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'error' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setBotShippingResults](messages_setBotShippingResults.md)(\['query_id' => [long](../types/long.md), 'error' => [string](../types/string.md), 'shipping_options' => \[[ShippingOption](../types/ShippingOption.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setGameScore](messages_setGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'force' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$MadelineProto->[messages->setInlineGameScore](messages_setInlineGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'force' => [Bool](../types/Bool.md), 'id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->toggleDialogPin](messages_toggleDialogPin.md)(\['pinned' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->uploadMedia](messages_uploadMedia.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'media' => [InputMedia](../types/InputMedia.md), \]) === [$MessageMedia](../types/MessageMedia.md) + +*** +

$MadelineProto->[payments->clearSavedInfo](payments_clearSavedInfo.md)(\['credentials' => [Bool](../types/Bool.md), 'info' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[payments->getPaymentForm](payments_getPaymentForm.md)(\['msg_id' => [int](../types/int.md), \]) === [$payments\_PaymentForm](../types/payments_PaymentForm.md) + +$MadelineProto->[payments->getPaymentReceipt](payments_getPaymentReceipt.md)(\['msg_id' => [int](../types/int.md), \]) === [$payments\_PaymentReceipt](../types/payments_PaymentReceipt.md) + +$MadelineProto->[payments->getSavedInfo](payments_getSavedInfo.md)(\[\]) === [$payments\_SavedInfo](../types/payments_SavedInfo.md) + +$MadelineProto->[payments->sendPaymentForm](payments_sendPaymentForm.md)(\['msg_id' => [int](../types/int.md), 'requested_info_id' => [string](../types/string.md), 'shipping_option_id' => [string](../types/string.md), 'credentials' => [InputPaymentCredentials](../types/InputPaymentCredentials.md), \]) === [$payments\_PaymentResult](../types/payments_PaymentResult.md) + +$MadelineProto->[payments->validateRequestedInfo](payments_validateRequestedInfo.md)(\['save' => [Bool](../types/Bool.md), 'msg_id' => [int](../types/int.md), 'info' => [PaymentRequestedInfo](../types/PaymentRequestedInfo.md), \]) === [$payments\_ValidatedRequestedInfo](../types/payments_ValidatedRequestedInfo.md) + +*** +

$MadelineProto->[phone->acceptCall](phone_acceptCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'g_b' => [bytes](../types/bytes.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) + +$MadelineProto->[phone->confirmCall](phone_confirmCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'g_a' => [bytes](../types/bytes.md), 'key_fingerprint' => [long](../types/long.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) + +$MadelineProto->[phone->discardCall](phone_discardCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'duration' => [int](../types/int.md), 'reason' => [PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md), 'connection_id' => [long](../types/long.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[phone->getCallConfig](phone_getCallConfig.md)(\[\]) === [$DataJSON](../types/DataJSON.md) + +$MadelineProto->[phone->receivedCall](phone_receivedCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[phone->requestCall](phone_requestCall.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a_hash' => [bytes](../types/bytes.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) + +$MadelineProto->[phone->saveCallDebug](phone_saveCallDebug.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'debug' => [DataJSON](../types/DataJSON.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[phone->setCallRating](phone_setCallRating.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'rating' => [int](../types/int.md), 'comment' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +*** +

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) + +$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) + +$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) + +$MadelineProto->[photos->uploadProfilePhoto](photos_uploadProfilePhoto.md)(\['file' => [InputFile](../types/InputFile.md), \]) === [$photos\_Photo](../types/photos_Photo.md) + +*** +

$MadelineProto->[ping](ping.md)(\['ping_id' => [long](../types/long.md), \]) === [$Pong](../types/Pong.md) + +$MadelineProto->[ping_delay_disconnect](ping_delay_disconnect.md)(\['ping_id' => [long](../types/long.md), 'disconnect_delay' => [int](../types/int.md), \]) === [$Pong](../types/Pong.md) + +*** +

$MadelineProto->[req_DH_params](req_DH_params.md)(\['nonce' => [int128](../types/int128.md), 'server_nonce' => [int128](../types/int128.md), 'p' => [string](../types/string.md), 'q' => [string](../types/string.md), 'public_key_fingerprint' => [long](../types/long.md), 'encrypted_data' => [string](../types/string.md), \]) === [$Server\_DH\_Params](../types/Server_DH_Params.md) + +$MadelineProto->[req_pq](req_pq.md)(\['nonce' => [int128](../types/int128.md), \]) === [$ResPQ](../types/ResPQ.md) + +*** +

$MadelineProto->[rpc_drop_answer](rpc_drop_answer.md)(\['req_msg_id' => [long](../types/long.md), \]) === [$RpcDropAnswer](../types/RpcDropAnswer.md) + +*** +

$MadelineProto->[set_client_DH_params](set_client_DH_params.md)(\['nonce' => [int128](../types/int128.md), 'server_nonce' => [int128](../types/int128.md), 'encrypted_data' => [string](../types/string.md), \]) === [$Set\_client\_DH\_params\_answer](../types/Set_client_DH_params_answer.md) + +*** +

$MadelineProto->[stickers->addStickerToSet](stickers_addStickerToSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'sticker' => [InputStickerSetItem](../types/InputStickerSetItem.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +$MadelineProto->[stickers->changeStickerPosition](stickers_changeStickerPosition.md)(\['sticker' => [InputDocument](../types/InputDocument.md), 'position' => [int](../types/int.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +$MadelineProto->[stickers->createStickerSet](stickers_createStickerSet.md)(\['masks' => [Bool](../types/Bool.md), 'user_id' => [InputUser](../types/InputUser.md), 'title' => [string](../types/string.md), 'short_name' => [string](../types/string.md), 'stickers' => \[[InputStickerSetItem](../types/InputStickerSetItem.md)\], \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +$MadelineProto->[stickers->removeStickerFromSet](stickers_removeStickerFromSet.md)(\['sticker' => [InputDocument](../types/InputDocument.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +*** +

$MadelineProto->[updates->getChannelDifference](updates_getChannelDifference.md)(\['force' => [Bool](../types/Bool.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) + +$MadelineProto->[updates->getDifference](updates_getDifference.md)(\['pts' => [int](../types/int.md), 'pts_total_limit' => [int](../types/int.md), 'date' => [int](../types/int.md), 'qts' => [int](../types/int.md), \]) === [$updates\_Difference](../types/updates_Difference.md) + +$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) + +*** +

$MadelineProto->[upload->getCdnFile](upload_getCdnFile.md)(\['file_token' => [bytes](../types/bytes.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$upload\_CdnFile](../types/upload_CdnFile.md) + +$MadelineProto->[upload->getCdnFileHashes](upload_getCdnFileHashes.md)(\['file_token' => [bytes](../types/bytes.md), 'offset' => [int](../types/int.md), \]) === [$Vector\_of\_CdnFileHash](../types/CdnFileHash.md) + +$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) + +$MadelineProto->[upload->getWebFile](upload_getWebFile.md)(\['location' => [InputWebFileLocation](../types/InputWebFileLocation.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$upload\_WebFile](../types/upload_WebFile.md) + +$MadelineProto->[upload->reuploadCdnFile](upload_reuploadCdnFile.md)(\['file_token' => [bytes](../types/bytes.md), 'request_token' => [bytes](../types/bytes.md), \]) === [$Vector\_of\_CdnFileHash](../types/CdnFileHash.md) + +$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) + +$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) + +*** +

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) + +$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) + diff --git a/old_docs/API_docs_v70/methods/auth_cancelCode.md b/old_docs/API_docs_v70/methods/auth_cancelCode.md index 2ad15548..52b85d4c 100644 --- a/old_docs/API_docs_v70/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v70/methods/auth_cancelCode.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->cancelCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v70/methods/auth_checkPhone.md b/old_docs/API_docs_v70/methods/auth_checkPhone.md index 291221de..1826ce63 100644 --- a/old_docs/API_docs_v70/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v70/methods/auth_checkPhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); diff --git a/old_docs/API_docs_v70/methods/auth_dropTempAuthKeys.md b/old_docs/API_docs_v70/methods/auth_dropTempAuthKeys.md index 6474bbb3..5aa98b3b 100644 --- a/old_docs/API_docs_v70/methods/auth_dropTempAuthKeys.md +++ b/old_docs/API_docs_v70/methods/auth_dropTempAuthKeys.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->dropTempAuthKeys(['except_auth_keys' => [long, long], ]); diff --git a/old_docs/API_docs_v70/methods/auth_recoverPassword.md b/old_docs/API_docs_v70/methods/auth_recoverPassword.md index cdc9bd7d..5e37b0f3 100644 --- a/old_docs/API_docs_v70/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v70/methods/auth_recoverPassword.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_Authorization = $MadelineProto->auth->recoverPassword(['code' => 'string', ]); diff --git a/old_docs/API_docs_v70/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v70/methods/auth_requestPasswordRecovery.md index e18c6c93..c69d0c49 100644 --- a/old_docs/API_docs_v70/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v70/methods/auth_requestPasswordRecovery.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_PasswordRecovery = $MadelineProto->auth->requestPasswordRecovery(); diff --git a/old_docs/API_docs_v70/methods/auth_resendCode.md b/old_docs/API_docs_v70/methods/auth_resendCode.md index de437402..253480a3 100644 --- a/old_docs/API_docs_v70/methods/auth_resendCode.md +++ b/old_docs/API_docs_v70/methods/auth_resendCode.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_SentCode = $MadelineProto->auth->resendCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v70/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v70/methods/auth_resetAuthorizations.md index 47feea16..a46c880d 100644 --- a/old_docs/API_docs_v70/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v70/methods/auth_resetAuthorizations.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); diff --git a/old_docs/API_docs_v70/methods/auth_sendInvites.md b/old_docs/API_docs_v70/methods/auth_sendInvites.md index be32fe6b..9b88b4a3 100644 --- a/old_docs/API_docs_v70/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v70/methods/auth_sendInvites.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); diff --git a/old_docs/API_docs_v70/methods/bots_answerWebhookJSONQuery.md b/old_docs/API_docs_v70/methods/bots_answerWebhookJSONQuery.md index 61056bb4..40cb0477 100644 --- a/old_docs/API_docs_v70/methods/bots_answerWebhookJSONQuery.md +++ b/old_docs/API_docs_v70/methods/bots_answerWebhookJSONQuery.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->bots->answerWebhookJSONQuery(['query_id' => long, 'data' => DataJSON, ]); diff --git a/old_docs/API_docs_v70/methods/bots_sendCustomRequest.md b/old_docs/API_docs_v70/methods/bots_sendCustomRequest.md index fc8e764d..5a7f4e86 100644 --- a/old_docs/API_docs_v70/methods/bots_sendCustomRequest.md +++ b/old_docs/API_docs_v70/methods/bots_sendCustomRequest.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $DataJSON = $MadelineProto->bots->sendCustomRequest(['custom_method' => 'string', 'params' => DataJSON, ]); diff --git a/old_docs/API_docs_v70/methods/channels_checkUsername.md b/old_docs/API_docs_v70/methods/channels_checkUsername.md index 7bc7c245..7e3d5a89 100644 --- a/old_docs/API_docs_v70/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v70/methods/channels_checkUsername.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->checkUsername(['channel' => InputChannel, 'username' => 'string', ]); diff --git a/old_docs/API_docs_v70/methods/channels_createChannel.md b/old_docs/API_docs_v70/methods/channels_createChannel.md index 1305e4fb..a5ddc379 100644 --- a/old_docs/API_docs_v70/methods/channels_createChannel.md +++ b/old_docs/API_docs_v70/methods/channels_createChannel.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->createChannel(['broadcast' => Bool, 'megagroup' => Bool, 'title' => 'string', 'about' => 'string', ]); diff --git a/old_docs/API_docs_v70/methods/channels_deleteChannel.md b/old_docs/API_docs_v70/methods/channels_deleteChannel.md index e660d25c..69dad9a3 100644 --- a/old_docs/API_docs_v70/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v70/methods/channels_deleteChannel.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->deleteChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v70/methods/channels_deleteMessages.md b/old_docs/API_docs_v70/methods/channels_deleteMessages.md index fb9d3cc2..b12270b3 100644 --- a/old_docs/API_docs_v70/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v70/methods/channels_deleteMessages.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v70/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v70/methods/channels_deleteUserHistory.md index fbe34341..75f531bb 100644 --- a/old_docs/API_docs_v70/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v70/methods/channels_deleteUserHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->channels->deleteUserHistory(['channel' => InputChannel, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v70/methods/channels_editAbout.md b/old_docs/API_docs_v70/methods/channels_editAbout.md index 8908f29e..67521065 100644 --- a/old_docs/API_docs_v70/methods/channels_editAbout.md +++ b/old_docs/API_docs_v70/methods/channels_editAbout.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->editAbout(['channel' => InputChannel, 'about' => 'string', ]); diff --git a/old_docs/API_docs_v70/methods/channels_editAdmin.md b/old_docs/API_docs_v70/methods/channels_editAdmin.md index dcec7d2f..7cecbd64 100644 --- a/old_docs/API_docs_v70/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v70/methods/channels_editAdmin.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editAdmin(['channel' => InputChannel, 'user_id' => InputUser, 'admin_rights' => ChannelAdminRights, ]); diff --git a/old_docs/API_docs_v70/methods/channels_editBanned.md b/old_docs/API_docs_v70/methods/channels_editBanned.md index 9859bcae..ca9f2596 100644 --- a/old_docs/API_docs_v70/methods/channels_editBanned.md +++ b/old_docs/API_docs_v70/methods/channels_editBanned.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editBanned(['channel' => InputChannel, 'user_id' => InputUser, 'banned_rights' => ChannelBannedRights, ]); diff --git a/old_docs/API_docs_v70/methods/channels_editPhoto.md b/old_docs/API_docs_v70/methods/channels_editPhoto.md index 9ccd864f..c854c64a 100644 --- a/old_docs/API_docs_v70/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v70/methods/channels_editPhoto.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editPhoto(['channel' => InputChannel, 'photo' => InputChatPhoto, ]); diff --git a/old_docs/API_docs_v70/methods/channels_editTitle.md b/old_docs/API_docs_v70/methods/channels_editTitle.md index b1024faf..9bc6773e 100644 --- a/old_docs/API_docs_v70/methods/channels_editTitle.md +++ b/old_docs/API_docs_v70/methods/channels_editTitle.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editTitle(['channel' => InputChannel, 'title' => 'string', ]); diff --git a/old_docs/API_docs_v70/methods/channels_exportInvite.md b/old_docs/API_docs_v70/methods/channels_exportInvite.md index f0c737d5..ca65dcc8 100644 --- a/old_docs/API_docs_v70/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v70/methods/channels_exportInvite.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedChatInvite = $MadelineProto->channels->exportInvite(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v70/methods/channels_exportMessageLink.md b/old_docs/API_docs_v70/methods/channels_exportMessageLink.md index f910b594..b4a3c645 100644 --- a/old_docs/API_docs_v70/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v70/methods/channels_exportMessageLink.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedMessageLink = $MadelineProto->channels->exportMessageLink(['channel' => InputChannel, 'id' => int, ]); diff --git a/old_docs/API_docs_v70/methods/channels_getAdminLog.md b/old_docs/API_docs_v70/methods/channels_getAdminLog.md index 8aa33d23..4a419778 100644 --- a/old_docs/API_docs_v70/methods/channels_getAdminLog.md +++ b/old_docs/API_docs_v70/methods/channels_getAdminLog.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $channels_AdminLogResults = $MadelineProto->channels->getAdminLog(['channel' => InputChannel, 'q' => 'string', 'events_filter' => ChannelAdminLogEventsFilter, 'admins' => [InputUser, InputUser], 'max_id' => long, 'min_id' => long, 'limit' => int, ]); diff --git a/old_docs/API_docs_v70/methods/channels_getAdminedPublicChannels.md b/old_docs/API_docs_v70/methods/channels_getAdminedPublicChannels.md index 9646f529..febc44f9 100644 --- a/old_docs/API_docs_v70/methods/channels_getAdminedPublicChannels.md +++ b/old_docs/API_docs_v70/methods/channels_getAdminedPublicChannels.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->channels->getAdminedPublicChannels(); diff --git a/old_docs/API_docs_v70/methods/channels_getChannels.md b/old_docs/API_docs_v70/methods/channels_getChannels.md index 9cd9e798..af22556f 100644 --- a/old_docs/API_docs_v70/methods/channels_getChannels.md +++ b/old_docs/API_docs_v70/methods/channels_getChannels.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel, InputChannel], ]); diff --git a/old_docs/API_docs_v70/methods/channels_getMessages.md b/old_docs/API_docs_v70/methods/channels_getMessages.md index cc944fe5..eda13d0b 100644 --- a/old_docs/API_docs_v70/methods/channels_getMessages.md +++ b/old_docs/API_docs_v70/methods/channels_getMessages.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v70/methods/channels_getParticipant.md b/old_docs/API_docs_v70/methods/channels_getParticipant.md index db9b1fc6..be5fe96a 100644 --- a/old_docs/API_docs_v70/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v70/methods/channels_getParticipant.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $channels_ChannelParticipant = $MadelineProto->channels->getParticipant(['channel' => InputChannel, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v70/methods/channels_getParticipants.md b/old_docs/API_docs_v70/methods/channels_getParticipants.md index 96662466..6a27016b 100644 --- a/old_docs/API_docs_v70/methods/channels_getParticipants.md +++ b/old_docs/API_docs_v70/methods/channels_getParticipants.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $channels_ChannelParticipants = $MadelineProto->channels->getParticipants(['channel' => InputChannel, 'filter' => ChannelParticipantsFilter, 'offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v70/methods/channels_inviteToChannel.md b/old_docs/API_docs_v70/methods/channels_inviteToChannel.md index 676f800c..e7d12db7 100644 --- a/old_docs/API_docs_v70/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v70/methods/channels_inviteToChannel.md @@ -52,12 +52,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v70/methods/channels_joinChannel.md b/old_docs/API_docs_v70/methods/channels_joinChannel.md index 721f707c..3ac2b326 100644 --- a/old_docs/API_docs_v70/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v70/methods/channels_joinChannel.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->joinChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v70/methods/channels_leaveChannel.md b/old_docs/API_docs_v70/methods/channels_leaveChannel.md index 7f02e08c..95b60a90 100644 --- a/old_docs/API_docs_v70/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v70/methods/channels_leaveChannel.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->leaveChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v70/methods/channels_readHistory.md b/old_docs/API_docs_v70/methods/channels_readHistory.md index cca891f0..c6b14541 100644 --- a/old_docs/API_docs_v70/methods/channels_readHistory.md +++ b/old_docs/API_docs_v70/methods/channels_readHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->readHistory(['channel' => InputChannel, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v70/methods/channels_reportSpam.md b/old_docs/API_docs_v70/methods/channels_reportSpam.md index 09af14e0..ca5c28f5 100644 --- a/old_docs/API_docs_v70/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v70/methods/channels_reportSpam.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v70/methods/channels_toggleInvites.md b/old_docs/API_docs_v70/methods/channels_toggleInvites.md index 5b541f67..e9e6450d 100644 --- a/old_docs/API_docs_v70/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v70/methods/channels_toggleInvites.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->toggleInvites(['channel' => InputChannel, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v70/methods/channels_toggleSignatures.md b/old_docs/API_docs_v70/methods/channels_toggleSignatures.md index f233a8e1..36d1eccb 100644 --- a/old_docs/API_docs_v70/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v70/methods/channels_toggleSignatures.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->toggleSignatures(['channel' => InputChannel, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v70/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v70/methods/channels_updatePinnedMessage.md index f06d1f0f..f8d10ece 100644 --- a/old_docs/API_docs_v70/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v70/methods/channels_updatePinnedMessage.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->updatePinnedMessage(['silent' => Bool, 'channel' => InputChannel, 'id' => int, ]); diff --git a/old_docs/API_docs_v70/methods/channels_updateUsername.md b/old_docs/API_docs_v70/methods/channels_updateUsername.md index ad34490a..2093b6ce 100644 --- a/old_docs/API_docs_v70/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v70/methods/channels_updateUsername.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->updateUsername(['channel' => InputChannel, 'username' => 'string', ]); diff --git a/old_docs/API_docs_v70/methods/contacts_block.md b/old_docs/API_docs_v70/methods/contacts_block.md index d0729d30..e592cace 100644 --- a/old_docs/API_docs_v70/methods/contacts_block.md +++ b/old_docs/API_docs_v70/methods/contacts_block.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v70/methods/contacts_deleteContact.md b/old_docs/API_docs_v70/methods/contacts_deleteContact.md index b8c17544..1a3f2a27 100644 --- a/old_docs/API_docs_v70/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v70/methods/contacts_deleteContact.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v70/methods/contacts_deleteContacts.md b/old_docs/API_docs_v70/methods/contacts_deleteContacts.md index 64c69460..f6627599 100644 --- a/old_docs/API_docs_v70/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v70/methods/contacts_deleteContacts.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v70/methods/contacts_exportCard.md b/old_docs/API_docs_v70/methods/contacts_exportCard.md index b05f57ce..1d2129f3 100644 --- a/old_docs/API_docs_v70/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v70/methods/contacts_exportCard.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); diff --git a/old_docs/API_docs_v70/methods/contacts_getBlocked.md b/old_docs/API_docs_v70/methods/contacts_getBlocked.md index d7d8c5cc..44d24aba 100644 --- a/old_docs/API_docs_v70/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v70/methods/contacts_getBlocked.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v70/methods/contacts_getContacts.md b/old_docs/API_docs_v70/methods/contacts_getContacts.md index 1ab8af27..83c4846f 100644 --- a/old_docs/API_docs_v70/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v70/methods/contacts_getContacts.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v70/methods/contacts_getStatuses.md b/old_docs/API_docs_v70/methods/contacts_getStatuses.md index b927a140..5cef3084 100644 --- a/old_docs/API_docs_v70/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v70/methods/contacts_getStatuses.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); diff --git a/old_docs/API_docs_v70/methods/contacts_getTopPeers.md b/old_docs/API_docs_v70/methods/contacts_getTopPeers.md index 226d3aa0..4958e6b2 100644 --- a/old_docs/API_docs_v70/methods/contacts_getTopPeers.md +++ b/old_docs/API_docs_v70/methods/contacts_getTopPeers.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_TopPeers = $MadelineProto->contacts->getTopPeers(['correspondents' => Bool, 'bots_pm' => Bool, 'bots_inline' => Bool, 'phone_calls' => Bool, 'groups' => Bool, 'channels' => Bool, 'offset' => int, 'limit' => int, 'hash' => int, ]); diff --git a/old_docs/API_docs_v70/methods/contacts_importCard.md b/old_docs/API_docs_v70/methods/contacts_importCard.md index 81a1e138..89c96657 100644 --- a/old_docs/API_docs_v70/methods/contacts_importCard.md +++ b/old_docs/API_docs_v70/methods/contacts_importCard.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); diff --git a/old_docs/API_docs_v70/methods/contacts_importContacts.md b/old_docs/API_docs_v70/methods/contacts_importContacts.md index 578e5dfd..cd3d6615 100644 --- a/old_docs/API_docs_v70/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v70/methods/contacts_importContacts.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], 'replace' => Bool, ]); diff --git a/old_docs/API_docs_v70/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v70/methods/contacts_resetTopPeerRating.md index 4b485921..4b5e96f1 100644 --- a/old_docs/API_docs_v70/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v70/methods/contacts_resetTopPeerRating.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->resetTopPeerRating(['category' => TopPeerCategory, 'peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v70/methods/contacts_search.md b/old_docs/API_docs_v70/methods/contacts_search.md index 68daecd6..64ff748e 100644 --- a/old_docs/API_docs_v70/methods/contacts_search.md +++ b/old_docs/API_docs_v70/methods/contacts_search.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); diff --git a/old_docs/API_docs_v70/methods/contacts_unblock.md b/old_docs/API_docs_v70/methods/contacts_unblock.md index f7d151b9..ec72ae2d 100644 --- a/old_docs/API_docs_v70/methods/contacts_unblock.md +++ b/old_docs/API_docs_v70/methods/contacts_unblock.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v70/methods/contest_saveDeveloperInfo.md b/old_docs/API_docs_v70/methods/contest_saveDeveloperInfo.md index 3e40c0f3..5d82a4be 100644 --- a/old_docs/API_docs_v70/methods/contest_saveDeveloperInfo.md +++ b/old_docs/API_docs_v70/methods/contest_saveDeveloperInfo.md @@ -33,12 +33,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contest->saveDeveloperInfo(['vk_id' => int, 'name' => 'string', 'phone_number' => 'string', 'age' => int, 'city' => 'string', ]); diff --git a/old_docs/API_docs_v70/methods/destroy_auth_key.md b/old_docs/API_docs_v70/methods/destroy_auth_key.md index eb6ba218..dbcc7b23 100644 --- a/old_docs/API_docs_v70/methods/destroy_auth_key.md +++ b/old_docs/API_docs_v70/methods/destroy_auth_key.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $DestroyAuthKeyRes = $MadelineProto->destroy_auth_key(); diff --git a/old_docs/API_docs_v70/methods/destroy_session.md b/old_docs/API_docs_v70/methods/destroy_session.md index 326e8d8e..b74fbd11 100644 --- a/old_docs/API_docs_v70/methods/destroy_session.md +++ b/old_docs/API_docs_v70/methods/destroy_session.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $DestroySessionRes = $MadelineProto->destroy_session(['session_id' => long, ]); diff --git a/old_docs/API_docs_v70/methods/get_future_salts.md b/old_docs/API_docs_v70/methods/get_future_salts.md index 9d4be95e..e8451015 100644 --- a/old_docs/API_docs_v70/methods/get_future_salts.md +++ b/old_docs/API_docs_v70/methods/get_future_salts.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $FutureSalts = $MadelineProto->get_future_salts(['num' => int, ]); diff --git a/old_docs/API_docs_v70/methods/help_getAppChangelog.md b/old_docs/API_docs_v70/methods/help_getAppChangelog.md index 477df2f8..eda473a6 100644 --- a/old_docs/API_docs_v70/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v70/methods/help_getAppChangelog.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->help->getAppChangelog(['prev_app_version' => 'string', ]); diff --git a/old_docs/API_docs_v70/methods/help_getAppUpdate.md b/old_docs/API_docs_v70/methods/help_getAppUpdate.md index b88906ae..c6a42922 100644 --- a/old_docs/API_docs_v70/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v70/methods/help_getAppUpdate.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(); diff --git a/old_docs/API_docs_v70/methods/help_getCdnConfig.md b/old_docs/API_docs_v70/methods/help_getCdnConfig.md index 809ea1fb..b98949ed 100644 --- a/old_docs/API_docs_v70/methods/help_getCdnConfig.md +++ b/old_docs/API_docs_v70/methods/help_getCdnConfig.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $CdnConfig = $MadelineProto->help->getCdnConfig(); diff --git a/old_docs/API_docs_v70/methods/help_getConfig.md b/old_docs/API_docs_v70/methods/help_getConfig.md index 16e25c68..ca4bfc25 100644 --- a/old_docs/API_docs_v70/methods/help_getConfig.md +++ b/old_docs/API_docs_v70/methods/help_getConfig.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); diff --git a/old_docs/API_docs_v70/methods/help_getInviteText.md b/old_docs/API_docs_v70/methods/help_getInviteText.md index 6b226bff..7311b7fb 100644 --- a/old_docs/API_docs_v70/methods/help_getInviteText.md +++ b/old_docs/API_docs_v70/methods/help_getInviteText.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(); diff --git a/old_docs/API_docs_v70/methods/help_getNearestDc.md b/old_docs/API_docs_v70/methods/help_getNearestDc.md index 35a8bf91..458f60ab 100644 --- a/old_docs/API_docs_v70/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v70/methods/help_getNearestDc.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); diff --git a/old_docs/API_docs_v70/methods/help_getSupport.md b/old_docs/API_docs_v70/methods/help_getSupport.md index a5bab0f2..9ee25b00 100644 --- a/old_docs/API_docs_v70/methods/help_getSupport.md +++ b/old_docs/API_docs_v70/methods/help_getSupport.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); diff --git a/old_docs/API_docs_v70/methods/help_getTermsOfService.md b/old_docs/API_docs_v70/methods/help_getTermsOfService.md index 487cd83a..4dea9f79 100644 --- a/old_docs/API_docs_v70/methods/help_getTermsOfService.md +++ b/old_docs/API_docs_v70/methods/help_getTermsOfService.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_TermsOfService = $MadelineProto->help->getTermsOfService(); diff --git a/old_docs/API_docs_v70/methods/help_saveAppLog.md b/old_docs/API_docs_v70/methods/help_saveAppLog.md index 0165b6e3..a7884c47 100644 --- a/old_docs/API_docs_v70/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v70/methods/help_saveAppLog.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); diff --git a/old_docs/API_docs_v70/methods/help_setBotUpdatesStatus.md b/old_docs/API_docs_v70/methods/help_setBotUpdatesStatus.md index ff314b5c..a1a3ab1b 100644 --- a/old_docs/API_docs_v70/methods/help_setBotUpdatesStatus.md +++ b/old_docs/API_docs_v70/methods/help_setBotUpdatesStatus.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->help->setBotUpdatesStatus(['pending_updates_count' => int, 'message' => 'string', ]); diff --git a/old_docs/API_docs_v70/methods/initConnection.md b/old_docs/API_docs_v70/methods/initConnection.md index d1d725e7..c66aa8b1 100644 --- a/old_docs/API_docs_v70/methods/initConnection.md +++ b/old_docs/API_docs_v70/methods/initConnection.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->initConnection(['api_id' => int, 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'system_lang_code' => 'string', 'lang_pack' => 'string', 'lang_code' => 'string', 'query' => !X, ]); diff --git a/old_docs/API_docs_v70/methods/invokeAfterMsg.md b/old_docs/API_docs_v70/methods/invokeAfterMsg.md index e33a2c93..8e953e78 100644 --- a/old_docs/API_docs_v70/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v70/methods/invokeAfterMsg.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); diff --git a/old_docs/API_docs_v70/methods/invokeAfterMsgs.md b/old_docs/API_docs_v70/methods/invokeAfterMsgs.md index 3150a613..bc8a83b7 100644 --- a/old_docs/API_docs_v70/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v70/methods/invokeAfterMsgs.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); diff --git a/old_docs/API_docs_v70/methods/invokeWithLayer.md b/old_docs/API_docs_v70/methods/invokeWithLayer.md index 71d02abb..8a0c4e79 100644 --- a/old_docs/API_docs_v70/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v70/methods/invokeWithLayer.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); diff --git a/old_docs/API_docs_v70/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v70/methods/invokeWithoutUpdates.md index 2bab236a..2d90a776 100644 --- a/old_docs/API_docs_v70/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v70/methods/invokeWithoutUpdates.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeWithoutUpdates(['query' => !X, ]); diff --git a/old_docs/API_docs_v70/methods/langpack_getDifference.md b/old_docs/API_docs_v70/methods/langpack_getDifference.md index 0eed6475..0a6512e4 100644 --- a/old_docs/API_docs_v70/methods/langpack_getDifference.md +++ b/old_docs/API_docs_v70/methods/langpack_getDifference.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $LangPackDifference = $MadelineProto->langpack->getDifference(['from_version' => int, ]); diff --git a/old_docs/API_docs_v70/methods/langpack_getLangPack.md b/old_docs/API_docs_v70/methods/langpack_getLangPack.md index 4f26fd7a..45a9ca47 100644 --- a/old_docs/API_docs_v70/methods/langpack_getLangPack.md +++ b/old_docs/API_docs_v70/methods/langpack_getLangPack.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $LangPackDifference = $MadelineProto->langpack->getLangPack(['lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v70/methods/langpack_getLanguages.md b/old_docs/API_docs_v70/methods/langpack_getLanguages.md index 6e8dab41..b573a5eb 100644 --- a/old_docs/API_docs_v70/methods/langpack_getLanguages.md +++ b/old_docs/API_docs_v70/methods/langpack_getLanguages.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_LangPackLanguage = $MadelineProto->langpack->getLanguages(); diff --git a/old_docs/API_docs_v70/methods/langpack_getStrings.md b/old_docs/API_docs_v70/methods/langpack_getStrings.md index 40612baf..841b02db 100644 --- a/old_docs/API_docs_v70/methods/langpack_getStrings.md +++ b/old_docs/API_docs_v70/methods/langpack_getStrings.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_LangPackString = $MadelineProto->langpack->getStrings(['lang_code' => 'string', 'keys' => ['string', 'string'], ]); diff --git a/old_docs/API_docs_v70/methods/messages_addChatUser.md b/old_docs/API_docs_v70/methods/messages_addChatUser.md index 3e4c5ccc..c6ef275f 100644 --- a/old_docs/API_docs_v70/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v70/methods/messages_addChatUser.md @@ -46,12 +46,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); diff --git a/old_docs/API_docs_v70/methods/messages_checkChatInvite.md b/old_docs/API_docs_v70/methods/messages_checkChatInvite.md index de1d9ff4..cea63313 100644 --- a/old_docs/API_docs_v70/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v70/methods/messages_checkChatInvite.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ChatInvite = $MadelineProto->messages->checkChatInvite(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v70/methods/messages_clearRecentStickers.md b/old_docs/API_docs_v70/methods/messages_clearRecentStickers.md index 9c1b3754..1d6ec8c9 100644 --- a/old_docs/API_docs_v70/methods/messages_clearRecentStickers.md +++ b/old_docs/API_docs_v70/methods/messages_clearRecentStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->clearRecentStickers(['attached' => Bool, ]); diff --git a/old_docs/API_docs_v70/methods/messages_createChat.md b/old_docs/API_docs_v70/methods/messages_createChat.md index 68c0263a..966f58dc 100644 --- a/old_docs/API_docs_v70/methods/messages_createChat.md +++ b/old_docs/API_docs_v70/methods/messages_createChat.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); diff --git a/old_docs/API_docs_v70/methods/messages_deleteChatUser.md b/old_docs/API_docs_v70/methods/messages_deleteChatUser.md index 0a6830de..9a9227ba 100644 --- a/old_docs/API_docs_v70/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v70/methods/messages_deleteChatUser.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v70/methods/messages_deleteHistory.md b/old_docs/API_docs_v70/methods/messages_deleteHistory.md index e44433c1..45e9890d 100644 --- a/old_docs/API_docs_v70/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v70/methods/messages_deleteHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['just_clear' => Bool, 'peer' => InputPeer, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v70/methods/messages_deleteMessages.md b/old_docs/API_docs_v70/methods/messages_deleteMessages.md index 0da41180..c8670444 100644 --- a/old_docs/API_docs_v70/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v70/methods/messages_deleteMessages.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['revoke' => Bool, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v70/methods/messages_editChatAdmin.md b/old_docs/API_docs_v70/methods/messages_editChatAdmin.md index 7916f8b1..5bba0559 100644 --- a/old_docs/API_docs_v70/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v70/methods/messages_editChatAdmin.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]); diff --git a/old_docs/API_docs_v70/methods/messages_editChatPhoto.md b/old_docs/API_docs_v70/methods/messages_editChatPhoto.md index 122913c4..5827a5cc 100644 --- a/old_docs/API_docs_v70/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v70/methods/messages_editChatPhoto.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); diff --git a/old_docs/API_docs_v70/methods/messages_editChatTitle.md b/old_docs/API_docs_v70/methods/messages_editChatTitle.md index 3a1e974b..2e69d790 100644 --- a/old_docs/API_docs_v70/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v70/methods/messages_editChatTitle.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); diff --git a/old_docs/API_docs_v70/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v70/methods/messages_editInlineBotMessage.md index 2237fb20..73c8a2c4 100644 --- a/old_docs/API_docs_v70/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v70/methods/messages_editInlineBotMessage.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->editInlineBotMessage(['no_webpage' => Bool, 'id' => InputBotInlineMessageID, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v70/methods/messages_editMessage.md b/old_docs/API_docs_v70/methods/messages_editMessage.md index 177438a5..ad639325 100644 --- a/old_docs/API_docs_v70/methods/messages_editMessage.md +++ b/old_docs/API_docs_v70/methods/messages_editMessage.md @@ -51,12 +51,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editMessage(['no_webpage' => Bool, 'peer' => InputPeer, 'id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v70/methods/messages_exportChatInvite.md b/old_docs/API_docs_v70/methods/messages_exportChatInvite.md index 98685d96..ec80e207 100644 --- a/old_docs/API_docs_v70/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v70/methods/messages_exportChatInvite.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]); diff --git a/old_docs/API_docs_v70/methods/messages_forwardMessage.md b/old_docs/API_docs_v70/methods/messages_forwardMessage.md index 45b7a07f..d6916437 100644 --- a/old_docs/API_docs_v70/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v70/methods/messages_forwardMessage.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); diff --git a/old_docs/API_docs_v70/methods/messages_forwardMessages.md b/old_docs/API_docs_v70/methods/messages_forwardMessages.md index efe58e67..b99e1d31 100644 --- a/old_docs/API_docs_v70/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v70/methods/messages_forwardMessages.md @@ -62,12 +62,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessages(['silent' => Bool, 'background' => Bool, 'with_my_score' => Bool, 'from_peer' => InputPeer, 'id' => [int, int], 'to_peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v70/methods/messages_getAllChats.md b/old_docs/API_docs_v70/methods/messages_getAllChats.md index 127456e4..513fc06f 100644 --- a/old_docs/API_docs_v70/methods/messages_getAllChats.md +++ b/old_docs/API_docs_v70/methods/messages_getAllChats.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getAllChats(['except_ids' => [int, int], ]); diff --git a/old_docs/API_docs_v70/methods/messages_getAllDrafts.md b/old_docs/API_docs_v70/methods/messages_getAllDrafts.md index 2c0ecd42..43a95bb2 100644 --- a/old_docs/API_docs_v70/methods/messages_getAllDrafts.md +++ b/old_docs/API_docs_v70/methods/messages_getAllDrafts.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->getAllDrafts(); diff --git a/old_docs/API_docs_v70/methods/messages_getAllStickers.md b/old_docs/API_docs_v70/methods/messages_getAllStickers.md index 16fdba6c..2ba37a91 100644 --- a/old_docs/API_docs_v70/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v70/methods/messages_getAllStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => int, ]); diff --git a/old_docs/API_docs_v70/methods/messages_getArchivedStickers.md b/old_docs/API_docs_v70/methods/messages_getArchivedStickers.md index f037e1bc..ee36b542 100644 --- a/old_docs/API_docs_v70/methods/messages_getArchivedStickers.md +++ b/old_docs/API_docs_v70/methods/messages_getArchivedStickers.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_ArchivedStickers = $MadelineProto->messages->getArchivedStickers(['masks' => Bool, 'offset_id' => long, 'limit' => int, ]); diff --git a/old_docs/API_docs_v70/methods/messages_getAttachedStickers.md b/old_docs/API_docs_v70/methods/messages_getAttachedStickers.md index 890680cd..9f8a66c5 100644 --- a/old_docs/API_docs_v70/methods/messages_getAttachedStickers.md +++ b/old_docs/API_docs_v70/methods/messages_getAttachedStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_StickerSetCovered = $MadelineProto->messages->getAttachedStickers(['media' => InputStickeredMedia, ]); diff --git a/old_docs/API_docs_v70/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v70/methods/messages_getBotCallbackAnswer.md index 09c283f5..0136227f 100644 --- a/old_docs/API_docs_v70/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v70/methods/messages_getBotCallbackAnswer.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_BotCallbackAnswer = $MadelineProto->messages->getBotCallbackAnswer(['game' => Bool, 'peer' => InputPeer, 'msg_id' => int, 'data' => 'bytes', ]); diff --git a/old_docs/API_docs_v70/methods/messages_getChats.md b/old_docs/API_docs_v70/methods/messages_getChats.md index 290438a1..e84c7193 100644 --- a/old_docs/API_docs_v70/methods/messages_getChats.md +++ b/old_docs/API_docs_v70/methods/messages_getChats.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v70/methods/messages_getCommonChats.md b/old_docs/API_docs_v70/methods/messages_getCommonChats.md index e6eca283..15ed6713 100644 --- a/old_docs/API_docs_v70/methods/messages_getCommonChats.md +++ b/old_docs/API_docs_v70/methods/messages_getCommonChats.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getCommonChats(['user_id' => InputUser, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v70/methods/messages_getDialogs.md b/old_docs/API_docs_v70/methods/messages_getDialogs.md index e100228b..53f9ac62 100644 --- a/old_docs/API_docs_v70/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v70/methods/messages_getDialogs.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['exclude_pinned' => Bool, 'offset_date' => int, 'offset_id' => int, 'offset_peer' => InputPeer, 'limit' => int, ]); diff --git a/old_docs/API_docs_v70/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v70/methods/messages_getDocumentByHash.md index 1af5bad4..ad8e22be 100644 --- a/old_docs/API_docs_v70/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v70/methods/messages_getDocumentByHash.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Document = $MadelineProto->messages->getDocumentByHash(['sha256' => 'bytes', 'size' => int, 'mime_type' => 'string', ]); diff --git a/old_docs/API_docs_v70/methods/messages_getFeaturedStickers.md b/old_docs/API_docs_v70/methods/messages_getFeaturedStickers.md index 512f2e85..8e49e1ef 100644 --- a/old_docs/API_docs_v70/methods/messages_getFeaturedStickers.md +++ b/old_docs/API_docs_v70/methods/messages_getFeaturedStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_FeaturedStickers = $MadelineProto->messages->getFeaturedStickers(['hash' => int, ]); diff --git a/old_docs/API_docs_v70/methods/messages_getGameHighScores.md b/old_docs/API_docs_v70/methods/messages_getGameHighScores.md index 5137baea..113e4647 100644 --- a/old_docs/API_docs_v70/methods/messages_getGameHighScores.md +++ b/old_docs/API_docs_v70/methods/messages_getGameHighScores.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_HighScores = $MadelineProto->messages->getGameHighScores(['peer' => InputPeer, 'id' => int, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v70/methods/messages_getHistory.md b/old_docs/API_docs_v70/methods/messages_getHistory.md index dfae66e6..851d2680 100644 --- a/old_docs/API_docs_v70/methods/messages_getHistory.md +++ b/old_docs/API_docs_v70/methods/messages_getHistory.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getHistory(['peer' => InputPeer, 'offset_id' => int, 'offset_date' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); diff --git a/old_docs/API_docs_v70/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v70/methods/messages_getInlineBotResults.md index 8ab5bf78..4d86caf5 100644 --- a/old_docs/API_docs_v70/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v70/methods/messages_getInlineBotResults.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_BotResults = $MadelineProto->messages->getInlineBotResults(['bot' => InputUser, 'peer' => InputPeer, 'geo_point' => InputGeoPoint, 'query' => 'string', 'offset' => 'string', ]); diff --git a/old_docs/API_docs_v70/methods/messages_getInlineGameHighScores.md b/old_docs/API_docs_v70/methods/messages_getInlineGameHighScores.md index 790bfdd9..d5a80005 100644 --- a/old_docs/API_docs_v70/methods/messages_getInlineGameHighScores.md +++ b/old_docs/API_docs_v70/methods/messages_getInlineGameHighScores.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_HighScores = $MadelineProto->messages->getInlineGameHighScores(['id' => InputBotInlineMessageID, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v70/methods/messages_getMaskStickers.md b/old_docs/API_docs_v70/methods/messages_getMaskStickers.md index f4ed9411..70e2e6d4 100644 --- a/old_docs/API_docs_v70/methods/messages_getMaskStickers.md +++ b/old_docs/API_docs_v70/methods/messages_getMaskStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getMaskStickers(['hash' => int, ]); diff --git a/old_docs/API_docs_v70/methods/messages_getMessageEditData.md b/old_docs/API_docs_v70/methods/messages_getMessageEditData.md index 12e71bee..34f8534f 100644 --- a/old_docs/API_docs_v70/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v70/methods/messages_getMessageEditData.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_MessageEditData = $MadelineProto->messages->getMessageEditData(['peer' => InputPeer, 'id' => int, ]); diff --git a/old_docs/API_docs_v70/methods/messages_getMessages.md b/old_docs/API_docs_v70/methods/messages_getMessages.md index 86d1da8a..d538cb5f 100644 --- a/old_docs/API_docs_v70/methods/messages_getMessages.md +++ b/old_docs/API_docs_v70/methods/messages_getMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v70/methods/messages_getMessagesViews.md b/old_docs/API_docs_v70/methods/messages_getMessagesViews.md index b8d78c85..934adc16 100644 --- a/old_docs/API_docs_v70/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v70/methods/messages_getMessagesViews.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int, int], 'increment' => Bool, ]); diff --git a/old_docs/API_docs_v70/methods/messages_getPeerDialogs.md b/old_docs/API_docs_v70/methods/messages_getPeerDialogs.md index da82cfc6..063b6e7d 100644 --- a/old_docs/API_docs_v70/methods/messages_getPeerDialogs.md +++ b/old_docs/API_docs_v70/methods/messages_getPeerDialogs.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_PeerDialogs = $MadelineProto->messages->getPeerDialogs(['peers' => [InputPeer, InputPeer], ]); diff --git a/old_docs/API_docs_v70/methods/messages_getPeerSettings.md b/old_docs/API_docs_v70/methods/messages_getPeerSettings.md index f1f2a3bb..a18126f0 100644 --- a/old_docs/API_docs_v70/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v70/methods/messages_getPeerSettings.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $PeerSettings = $MadelineProto->messages->getPeerSettings(['peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v70/methods/messages_getPinnedDialogs.md b/old_docs/API_docs_v70/methods/messages_getPinnedDialogs.md index d12779fe..3f49ed75 100644 --- a/old_docs/API_docs_v70/methods/messages_getPinnedDialogs.md +++ b/old_docs/API_docs_v70/methods/messages_getPinnedDialogs.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_PeerDialogs = $MadelineProto->messages->getPinnedDialogs(); diff --git a/old_docs/API_docs_v70/methods/messages_getRecentStickers.md b/old_docs/API_docs_v70/methods/messages_getRecentStickers.md index d76a2160..0c5ae0c6 100644 --- a/old_docs/API_docs_v70/methods/messages_getRecentStickers.md +++ b/old_docs/API_docs_v70/methods/messages_getRecentStickers.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_RecentStickers = $MadelineProto->messages->getRecentStickers(['attached' => Bool, 'hash' => int, ]); diff --git a/old_docs/API_docs_v70/methods/messages_getSavedGifs.md b/old_docs/API_docs_v70/methods/messages_getSavedGifs.md index f61348ce..38585538 100644 --- a/old_docs/API_docs_v70/methods/messages_getSavedGifs.md +++ b/old_docs/API_docs_v70/methods/messages_getSavedGifs.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => int, ]); diff --git a/old_docs/API_docs_v70/methods/messages_getStickerSet.md b/old_docs/API_docs_v70/methods/messages_getStickerSet.md index c86807e4..c9140ab2 100644 --- a/old_docs/API_docs_v70/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v70/methods/messages_getStickerSet.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSet = $MadelineProto->messages->getStickerSet(['stickerset' => InputStickerSet, ]); diff --git a/old_docs/API_docs_v70/methods/messages_getWebPage.md b/old_docs/API_docs_v70/methods/messages_getWebPage.md index 129f8f06..19ca94b9 100644 --- a/old_docs/API_docs_v70/methods/messages_getWebPage.md +++ b/old_docs/API_docs_v70/methods/messages_getWebPage.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $WebPage = $MadelineProto->messages->getWebPage(['url' => 'string', 'hash' => int, ]); diff --git a/old_docs/API_docs_v70/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v70/methods/messages_getWebPagePreview.md index d01bdd32..e8b20c5d 100644 --- a/old_docs/API_docs_v70/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v70/methods/messages_getWebPagePreview.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $MessageMedia = $MadelineProto->messages->getWebPagePreview(['message' => 'string', ]); diff --git a/old_docs/API_docs_v70/methods/messages_hideReportSpam.md b/old_docs/API_docs_v70/methods/messages_hideReportSpam.md index 856770cb..30523f2a 100644 --- a/old_docs/API_docs_v70/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v70/methods/messages_hideReportSpam.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->hideReportSpam(['peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v70/methods/messages_importChatInvite.md b/old_docs/API_docs_v70/methods/messages_importChatInvite.md index 0d6cd7c8..b1830a9b 100644 --- a/old_docs/API_docs_v70/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v70/methods/messages_importChatInvite.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->importChatInvite(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v70/methods/messages_installStickerSet.md b/old_docs/API_docs_v70/methods/messages_installStickerSet.md index 9f6f098c..20f90b71 100644 --- a/old_docs/API_docs_v70/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v70/methods/messages_installStickerSet.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSetInstallResult = $MadelineProto->messages->installStickerSet(['stickerset' => InputStickerSet, 'archived' => Bool, ]); diff --git a/old_docs/API_docs_v70/methods/messages_migrateChat.md b/old_docs/API_docs_v70/methods/messages_migrateChat.md index db57adfa..22ccfcc1 100644 --- a/old_docs/API_docs_v70/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v70/methods/messages_migrateChat.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]); diff --git a/old_docs/API_docs_v70/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v70/methods/messages_readEncryptedHistory.md index 39b110e3..2ba4cca4 100644 --- a/old_docs/API_docs_v70/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v70/methods/messages_readEncryptedHistory.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); diff --git a/old_docs/API_docs_v70/methods/messages_readFeaturedStickers.md b/old_docs/API_docs_v70/methods/messages_readFeaturedStickers.md index 4035c76d..050371da 100644 --- a/old_docs/API_docs_v70/methods/messages_readFeaturedStickers.md +++ b/old_docs/API_docs_v70/methods/messages_readFeaturedStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->readFeaturedStickers(['id' => [long, long], ]); diff --git a/old_docs/API_docs_v70/methods/messages_readHistory.md b/old_docs/API_docs_v70/methods/messages_readHistory.md index 3de17061..26b608af 100644 --- a/old_docs/API_docs_v70/methods/messages_readHistory.md +++ b/old_docs/API_docs_v70/methods/messages_readHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v70/methods/messages_readMessageContents.md b/old_docs/API_docs_v70/methods/messages_readMessageContents.md index 9bb1bee8..a09cb63e 100644 --- a/old_docs/API_docs_v70/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v70/methods/messages_readMessageContents.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v70/methods/messages_receivedMessages.md b/old_docs/API_docs_v70/methods/messages_receivedMessages.md index 7aab635f..b5e87992 100644 --- a/old_docs/API_docs_v70/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v70/methods/messages_receivedMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_ReceivedNotifyMessage = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); diff --git a/old_docs/API_docs_v70/methods/messages_reorderPinnedDialogs.md b/old_docs/API_docs_v70/methods/messages_reorderPinnedDialogs.md index 710caf10..94d3b2d4 100644 --- a/old_docs/API_docs_v70/methods/messages_reorderPinnedDialogs.md +++ b/old_docs/API_docs_v70/methods/messages_reorderPinnedDialogs.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reorderPinnedDialogs(['force' => Bool, 'order' => [InputPeer, InputPeer], ]); diff --git a/old_docs/API_docs_v70/methods/messages_reorderStickerSets.md b/old_docs/API_docs_v70/methods/messages_reorderStickerSets.md index ddc78dd0..66f5e682 100644 --- a/old_docs/API_docs_v70/methods/messages_reorderStickerSets.md +++ b/old_docs/API_docs_v70/methods/messages_reorderStickerSets.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reorderStickerSets(['masks' => Bool, 'order' => [long, long], ]); diff --git a/old_docs/API_docs_v70/methods/messages_reportEncryptedSpam.md b/old_docs/API_docs_v70/methods/messages_reportEncryptedSpam.md index 58b684d1..cd03c35c 100644 --- a/old_docs/API_docs_v70/methods/messages_reportEncryptedSpam.md +++ b/old_docs/API_docs_v70/methods/messages_reportEncryptedSpam.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reportEncryptedSpam(['peer' => InputEncryptedChat, ]); diff --git a/old_docs/API_docs_v70/methods/messages_reportSpam.md b/old_docs/API_docs_v70/methods/messages_reportSpam.md index 2e2b1177..09c1e63b 100644 --- a/old_docs/API_docs_v70/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v70/methods/messages_reportSpam.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reportSpam(['peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v70/methods/messages_saveDraft.md b/old_docs/API_docs_v70/methods/messages_saveDraft.md index bbeed707..59b33b03 100644 --- a/old_docs/API_docs_v70/methods/messages_saveDraft.md +++ b/old_docs/API_docs_v70/methods/messages_saveDraft.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->saveDraft(['no_webpage' => Bool, 'reply_to_msg_id' => int, 'peer' => InputPeer, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v70/methods/messages_saveGif.md b/old_docs/API_docs_v70/methods/messages_saveGif.md index 6f608c4c..145039e7 100644 --- a/old_docs/API_docs_v70/methods/messages_saveGif.md +++ b/old_docs/API_docs_v70/methods/messages_saveGif.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->saveGif(['id' => InputDocument, 'unsave' => Bool, ]); diff --git a/old_docs/API_docs_v70/methods/messages_saveRecentSticker.md b/old_docs/API_docs_v70/methods/messages_saveRecentSticker.md index 81ad5d48..55757080 100644 --- a/old_docs/API_docs_v70/methods/messages_saveRecentSticker.md +++ b/old_docs/API_docs_v70/methods/messages_saveRecentSticker.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->saveRecentSticker(['attached' => Bool, 'id' => InputDocument, 'unsave' => Bool, ]); diff --git a/old_docs/API_docs_v70/methods/messages_search.md b/old_docs/API_docs_v70/methods/messages_search.md index 07e7c48b..24e06c09 100644 --- a/old_docs/API_docs_v70/methods/messages_search.md +++ b/old_docs/API_docs_v70/methods/messages_search.md @@ -50,12 +50,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->search(['peer' => InputPeer, 'q' => 'string', 'from_id' => InputUser, 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v70/methods/messages_searchGifs.md b/old_docs/API_docs_v70/methods/messages_searchGifs.md index 103ebfeb..9677bf24 100644 --- a/old_docs/API_docs_v70/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v70/methods/messages_searchGifs.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_FoundGifs = $MadelineProto->messages->searchGifs(['q' => 'string', 'offset' => int, ]); diff --git a/old_docs/API_docs_v70/methods/messages_searchGlobal.md b/old_docs/API_docs_v70/methods/messages_searchGlobal.md index 0edd1e40..6ad4aec0 100644 --- a/old_docs/API_docs_v70/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v70/methods/messages_searchGlobal.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->searchGlobal(['q' => 'string', 'offset_date' => int, 'offset_peer' => InputPeer, 'offset_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v70/methods/messages_sendEncrypted.md b/old_docs/API_docs_v70/methods/messages_sendEncrypted.md index d48f88d7..76305f32 100644 --- a/old_docs/API_docs_v70/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v70/methods/messages_sendEncrypted.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v70/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v70/methods/messages_sendEncryptedFile.md index 4fd0648e..8db2ead9 100644 --- a/old_docs/API_docs_v70/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v70/methods/messages_sendEncryptedFile.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); diff --git a/old_docs/API_docs_v70/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v70/methods/messages_sendEncryptedService.md index d66894bf..c7836c94 100644 --- a/old_docs/API_docs_v70/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v70/methods/messages_sendEncryptedService.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v70/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v70/methods/messages_sendInlineBotResult.md index 386ac7e3..1a12322c 100644 --- a/old_docs/API_docs_v70/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v70/methods/messages_sendInlineBotResult.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendInlineBotResult(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'query_id' => long, 'id' => 'string', ]); diff --git a/old_docs/API_docs_v70/methods/messages_sendMedia.md b/old_docs/API_docs_v70/methods/messages_sendMedia.md index 0b5cf9b6..770d1b65 100644 --- a/old_docs/API_docs_v70/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v70/methods/messages_sendMedia.md @@ -63,12 +63,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendMedia(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, 'reply_markup' => ReplyMarkup, ]); diff --git a/old_docs/API_docs_v70/methods/messages_sendMessage.md b/old_docs/API_docs_v70/methods/messages_sendMessage.md index c4dc8894..83dc6c8b 100644 --- a/old_docs/API_docs_v70/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v70/methods/messages_sendMessage.md @@ -65,12 +65,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendMessage(['no_webpage' => Bool, 'silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v70/methods/messages_sendScreenshotNotification.md b/old_docs/API_docs_v70/methods/messages_sendScreenshotNotification.md index f64f1682..e823fd52 100644 --- a/old_docs/API_docs_v70/methods/messages_sendScreenshotNotification.md +++ b/old_docs/API_docs_v70/methods/messages_sendScreenshotNotification.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendScreenshotNotification(['peer' => InputPeer, 'reply_to_msg_id' => int, ]); diff --git a/old_docs/API_docs_v70/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v70/methods/messages_setBotCallbackAnswer.md index e6dc6b09..e221ccca 100644 --- a/old_docs/API_docs_v70/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v70/methods/messages_setBotCallbackAnswer.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setBotCallbackAnswer(['alert' => Bool, 'query_id' => long, 'message' => 'string', 'url' => 'string', 'cache_time' => int, ]); diff --git a/old_docs/API_docs_v70/methods/messages_setBotPrecheckoutResults.md b/old_docs/API_docs_v70/methods/messages_setBotPrecheckoutResults.md index 722bff81..7e3fc3c2 100644 --- a/old_docs/API_docs_v70/methods/messages_setBotPrecheckoutResults.md +++ b/old_docs/API_docs_v70/methods/messages_setBotPrecheckoutResults.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setBotPrecheckoutResults(['success' => Bool, 'query_id' => long, 'error' => 'string', ]); diff --git a/old_docs/API_docs_v70/methods/messages_setBotShippingResults.md b/old_docs/API_docs_v70/methods/messages_setBotShippingResults.md index d364a04d..3d9f0ae2 100644 --- a/old_docs/API_docs_v70/methods/messages_setBotShippingResults.md +++ b/old_docs/API_docs_v70/methods/messages_setBotShippingResults.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setBotShippingResults(['query_id' => long, 'error' => 'string', 'shipping_options' => [ShippingOption, ShippingOption], ]); diff --git a/old_docs/API_docs_v70/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v70/methods/messages_setEncryptedTyping.md index e9afe99c..4e7450eb 100644 --- a/old_docs/API_docs_v70/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v70/methods/messages_setEncryptedTyping.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); diff --git a/old_docs/API_docs_v70/methods/messages_setGameScore.md b/old_docs/API_docs_v70/methods/messages_setGameScore.md index aa1f4f0c..90594a1d 100644 --- a/old_docs/API_docs_v70/methods/messages_setGameScore.md +++ b/old_docs/API_docs_v70/methods/messages_setGameScore.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->setGameScore(['edit_message' => Bool, 'force' => Bool, 'peer' => InputPeer, 'id' => int, 'user_id' => InputUser, 'score' => int, ]); diff --git a/old_docs/API_docs_v70/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v70/methods/messages_setInlineBotResults.md index 79493009..d4ba6e65 100644 --- a/old_docs/API_docs_v70/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v70/methods/messages_setInlineBotResults.md @@ -52,12 +52,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setInlineBotResults(['gallery' => Bool, 'private' => Bool, 'query_id' => long, 'results' => [InputBotInlineResult, InputBotInlineResult], 'cache_time' => int, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, ]); diff --git a/old_docs/API_docs_v70/methods/messages_setInlineGameScore.md b/old_docs/API_docs_v70/methods/messages_setInlineGameScore.md index 385c8308..2b7326f3 100644 --- a/old_docs/API_docs_v70/methods/messages_setInlineGameScore.md +++ b/old_docs/API_docs_v70/methods/messages_setInlineGameScore.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setInlineGameScore(['edit_message' => Bool, 'force' => Bool, 'id' => InputBotInlineMessageID, 'user_id' => InputUser, 'score' => int, ]); diff --git a/old_docs/API_docs_v70/methods/messages_setTyping.md b/old_docs/API_docs_v70/methods/messages_setTyping.md index bea4982b..a2b94823 100644 --- a/old_docs/API_docs_v70/methods/messages_setTyping.md +++ b/old_docs/API_docs_v70/methods/messages_setTyping.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); diff --git a/old_docs/API_docs_v70/methods/messages_startBot.md b/old_docs/API_docs_v70/methods/messages_startBot.md index 94a4d86a..50d6f475 100644 --- a/old_docs/API_docs_v70/methods/messages_startBot.md +++ b/old_docs/API_docs_v70/methods/messages_startBot.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'peer' => InputPeer, 'start_param' => 'string', ]); diff --git a/old_docs/API_docs_v70/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v70/methods/messages_toggleChatAdmins.md index ab591fd9..349ea0e6 100644 --- a/old_docs/API_docs_v70/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v70/methods/messages_toggleChatAdmins.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => InputPeer, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v70/methods/messages_toggleDialogPin.md b/old_docs/API_docs_v70/methods/messages_toggleDialogPin.md index 2bd6a03d..14332533 100644 --- a/old_docs/API_docs_v70/methods/messages_toggleDialogPin.md +++ b/old_docs/API_docs_v70/methods/messages_toggleDialogPin.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->toggleDialogPin(['pinned' => Bool, 'peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v70/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v70/methods/messages_uninstallStickerSet.md index 6d04e847..26b2fbb3 100644 --- a/old_docs/API_docs_v70/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v70/methods/messages_uninstallStickerSet.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->uninstallStickerSet(['stickerset' => InputStickerSet, ]); diff --git a/old_docs/API_docs_v70/methods/messages_uploadMedia.md b/old_docs/API_docs_v70/methods/messages_uploadMedia.md index c982a860..c09da017 100644 --- a/old_docs/API_docs_v70/methods/messages_uploadMedia.md +++ b/old_docs/API_docs_v70/methods/messages_uploadMedia.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $MessageMedia = $MadelineProto->messages->uploadMedia(['peer' => InputPeer, 'media' => InputMedia, ]); diff --git a/old_docs/API_docs_v70/methods/payments_clearSavedInfo.md b/old_docs/API_docs_v70/methods/payments_clearSavedInfo.md index 44050dde..8b83266f 100644 --- a/old_docs/API_docs_v70/methods/payments_clearSavedInfo.md +++ b/old_docs/API_docs_v70/methods/payments_clearSavedInfo.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->payments->clearSavedInfo(['credentials' => Bool, 'info' => Bool, ]); diff --git a/old_docs/API_docs_v70/methods/payments_getPaymentForm.md b/old_docs/API_docs_v70/methods/payments_getPaymentForm.md index 16a32d11..3bdb9ff2 100644 --- a/old_docs/API_docs_v70/methods/payments_getPaymentForm.md +++ b/old_docs/API_docs_v70/methods/payments_getPaymentForm.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $payments_PaymentForm = $MadelineProto->payments->getPaymentForm(['msg_id' => int, ]); diff --git a/old_docs/API_docs_v70/methods/payments_getPaymentReceipt.md b/old_docs/API_docs_v70/methods/payments_getPaymentReceipt.md index 857585f6..a881aeb7 100644 --- a/old_docs/API_docs_v70/methods/payments_getPaymentReceipt.md +++ b/old_docs/API_docs_v70/methods/payments_getPaymentReceipt.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $payments_PaymentReceipt = $MadelineProto->payments->getPaymentReceipt(['msg_id' => int, ]); diff --git a/old_docs/API_docs_v70/methods/payments_getSavedInfo.md b/old_docs/API_docs_v70/methods/payments_getSavedInfo.md index 04ac7374..ec1a071b 100644 --- a/old_docs/API_docs_v70/methods/payments_getSavedInfo.md +++ b/old_docs/API_docs_v70/methods/payments_getSavedInfo.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $payments_SavedInfo = $MadelineProto->payments->getSavedInfo(); diff --git a/old_docs/API_docs_v70/methods/payments_sendPaymentForm.md b/old_docs/API_docs_v70/methods/payments_sendPaymentForm.md index 0a9df99f..79758b56 100644 --- a/old_docs/API_docs_v70/methods/payments_sendPaymentForm.md +++ b/old_docs/API_docs_v70/methods/payments_sendPaymentForm.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $payments_PaymentResult = $MadelineProto->payments->sendPaymentForm(['msg_id' => int, 'requested_info_id' => 'string', 'shipping_option_id' => 'string', 'credentials' => InputPaymentCredentials, ]); diff --git a/old_docs/API_docs_v70/methods/payments_validateRequestedInfo.md b/old_docs/API_docs_v70/methods/payments_validateRequestedInfo.md index e36f0e42..d473f97c 100644 --- a/old_docs/API_docs_v70/methods/payments_validateRequestedInfo.md +++ b/old_docs/API_docs_v70/methods/payments_validateRequestedInfo.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $payments_ValidatedRequestedInfo = $MadelineProto->payments->validateRequestedInfo(['save' => Bool, 'msg_id' => int, 'info' => PaymentRequestedInfo, ]); diff --git a/old_docs/API_docs_v70/methods/phone_getCallConfig.md b/old_docs/API_docs_v70/methods/phone_getCallConfig.md index cac622a0..6969c1a3 100644 --- a/old_docs/API_docs_v70/methods/phone_getCallConfig.md +++ b/old_docs/API_docs_v70/methods/phone_getCallConfig.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $DataJSON = $MadelineProto->phone->getCallConfig(); diff --git a/old_docs/API_docs_v70/methods/phone_receivedCall.md b/old_docs/API_docs_v70/methods/phone_receivedCall.md index 27e3b462..17095622 100644 --- a/old_docs/API_docs_v70/methods/phone_receivedCall.md +++ b/old_docs/API_docs_v70/methods/phone_receivedCall.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->phone->receivedCall(['peer' => InputPhoneCall, ]); diff --git a/old_docs/API_docs_v70/methods/phone_saveCallDebug.md b/old_docs/API_docs_v70/methods/phone_saveCallDebug.md index 760ad9d5..0ff049a8 100644 --- a/old_docs/API_docs_v70/methods/phone_saveCallDebug.md +++ b/old_docs/API_docs_v70/methods/phone_saveCallDebug.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->phone->saveCallDebug(['peer' => InputPhoneCall, 'debug' => DataJSON, ]); diff --git a/old_docs/API_docs_v70/methods/phone_setCallRating.md b/old_docs/API_docs_v70/methods/phone_setCallRating.md index b32ba333..d0aab7e0 100644 --- a/old_docs/API_docs_v70/methods/phone_setCallRating.md +++ b/old_docs/API_docs_v70/methods/phone_setCallRating.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->phone->setCallRating(['peer' => InputPhoneCall, 'rating' => int, 'comment' => 'string', ]); diff --git a/old_docs/API_docs_v70/methods/photos_deletePhotos.md b/old_docs/API_docs_v70/methods/photos_deletePhotos.md index b9daca10..937aadd5 100644 --- a/old_docs/API_docs_v70/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v70/methods/photos_deletePhotos.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); diff --git a/old_docs/API_docs_v70/methods/photos_getUserPhotos.md b/old_docs/API_docs_v70/methods/photos_getUserPhotos.md index ea27a44f..d1c15e90 100644 --- a/old_docs/API_docs_v70/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v70/methods/photos_getUserPhotos.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => long, 'limit' => int, ]); diff --git a/old_docs/API_docs_v70/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v70/methods/photos_updateProfilePhoto.md index 7f0a4c69..2ac8b60d 100644 --- a/old_docs/API_docs_v70/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v70/methods/photos_updateProfilePhoto.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, ]); diff --git a/old_docs/API_docs_v70/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v70/methods/photos_uploadProfilePhoto.md index efa08bb0..c7ec3063 100644 --- a/old_docs/API_docs_v70/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v70/methods/photos_uploadProfilePhoto.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, ]); diff --git a/old_docs/API_docs_v70/methods/ping.md b/old_docs/API_docs_v70/methods/ping.md index 4ad52852..f987ae89 100644 --- a/old_docs/API_docs_v70/methods/ping.md +++ b/old_docs/API_docs_v70/methods/ping.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Pong = $MadelineProto->ping(['ping_id' => long, ]); diff --git a/old_docs/API_docs_v70/methods/ping_delay_disconnect.md b/old_docs/API_docs_v70/methods/ping_delay_disconnect.md index b0951488..5b1c115d 100644 --- a/old_docs/API_docs_v70/methods/ping_delay_disconnect.md +++ b/old_docs/API_docs_v70/methods/ping_delay_disconnect.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Pong = $MadelineProto->ping_delay_disconnect(['ping_id' => long, 'disconnect_delay' => int, ]); diff --git a/old_docs/API_docs_v70/methods/req_DH_params.md b/old_docs/API_docs_v70/methods/req_DH_params.md index bb821ef9..f0b45851 100644 --- a/old_docs/API_docs_v70/methods/req_DH_params.md +++ b/old_docs/API_docs_v70/methods/req_DH_params.md @@ -34,12 +34,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Server_DH_Params = $MadelineProto->req_DH_params(['nonce' => int128, 'server_nonce' => int128, 'p' => 'string', 'q' => 'string', 'public_key_fingerprint' => long, 'encrypted_data' => 'string', ]); diff --git a/old_docs/API_docs_v70/methods/req_pq.md b/old_docs/API_docs_v70/methods/req_pq.md index 72a31c0b..0873d9a2 100644 --- a/old_docs/API_docs_v70/methods/req_pq.md +++ b/old_docs/API_docs_v70/methods/req_pq.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ResPQ = $MadelineProto->req_pq(['nonce' => int128, ]); diff --git a/old_docs/API_docs_v70/methods/rpc_drop_answer.md b/old_docs/API_docs_v70/methods/rpc_drop_answer.md index 381d7ee4..27f98bca 100644 --- a/old_docs/API_docs_v70/methods/rpc_drop_answer.md +++ b/old_docs/API_docs_v70/methods/rpc_drop_answer.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $RpcDropAnswer = $MadelineProto->rpc_drop_answer(['req_msg_id' => long, ]); diff --git a/old_docs/API_docs_v70/methods/set_client_DH_params.md b/old_docs/API_docs_v70/methods/set_client_DH_params.md index 6abb9a51..cf8ab321 100644 --- a/old_docs/API_docs_v70/methods/set_client_DH_params.md +++ b/old_docs/API_docs_v70/methods/set_client_DH_params.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Set_client_DH_params_answer = $MadelineProto->set_client_DH_params(['nonce' => int128, 'server_nonce' => int128, 'encrypted_data' => 'string', ]); diff --git a/old_docs/API_docs_v70/methods/stickers_addStickerToSet.md b/old_docs/API_docs_v70/methods/stickers_addStickerToSet.md index 1f90028c..7c4191d8 100644 --- a/old_docs/API_docs_v70/methods/stickers_addStickerToSet.md +++ b/old_docs/API_docs_v70/methods/stickers_addStickerToSet.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSet = $MadelineProto->stickers->addStickerToSet(['stickerset' => InputStickerSet, 'sticker' => InputStickerSetItem, ]); diff --git a/old_docs/API_docs_v70/methods/stickers_changeStickerPosition.md b/old_docs/API_docs_v70/methods/stickers_changeStickerPosition.md index 45552df9..d25129c5 100644 --- a/old_docs/API_docs_v70/methods/stickers_changeStickerPosition.md +++ b/old_docs/API_docs_v70/methods/stickers_changeStickerPosition.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSet = $MadelineProto->stickers->changeStickerPosition(['sticker' => InputDocument, 'position' => int, ]); diff --git a/old_docs/API_docs_v70/methods/stickers_createStickerSet.md b/old_docs/API_docs_v70/methods/stickers_createStickerSet.md index c4e85852..95775849 100644 --- a/old_docs/API_docs_v70/methods/stickers_createStickerSet.md +++ b/old_docs/API_docs_v70/methods/stickers_createStickerSet.md @@ -48,12 +48,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSet = $MadelineProto->stickers->createStickerSet(['masks' => Bool, 'user_id' => InputUser, 'title' => 'string', 'short_name' => 'string', 'stickers' => [InputStickerSetItem, InputStickerSetItem], ]); diff --git a/old_docs/API_docs_v70/methods/stickers_removeStickerFromSet.md b/old_docs/API_docs_v70/methods/stickers_removeStickerFromSet.md index 4ae30345..73ed78d5 100644 --- a/old_docs/API_docs_v70/methods/stickers_removeStickerFromSet.md +++ b/old_docs/API_docs_v70/methods/stickers_removeStickerFromSet.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSet = $MadelineProto->stickers->removeStickerFromSet(['sticker' => InputDocument, ]); diff --git a/old_docs/API_docs_v70/methods/upload_getWebFile.md b/old_docs/API_docs_v70/methods/upload_getWebFile.md index e864e4b7..11634633 100644 --- a/old_docs/API_docs_v70/methods/upload_getWebFile.md +++ b/old_docs/API_docs_v70/methods/upload_getWebFile.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $upload_WebFile = $MadelineProto->upload->getWebFile(['location' => InputWebFileLocation, 'offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v70/methods/users_getUsers.md b/old_docs/API_docs_v70/methods/users_getUsers.md index ef1c7fd8..bce13ee6 100644 --- a/old_docs/API_docs_v70/methods/users_getUsers.md +++ b/old_docs/API_docs_v70/methods/users_getUsers.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v71/README.md b/old_docs/API_docs_v71/README.md index c8d4d153..09302c21 100644 --- a/old_docs/API_docs_v71/README.md +++ b/old_docs/API_docs_v71/README.md @@ -4,11 +4,11 @@ description: MadelineProto API documentation (layer v71) --- # MadelineProto API documentation (layer v71) +[Back to main documentation](..) + + [Methods](methods/) [Constructors](constructors/) -[Types](types/) - - -[Back to main documentation](..) +[Types](types/) \ No newline at end of file diff --git a/old_docs/API_docs_v71/methods/README.md b/old_docs/API_docs_v71/methods/README.md index 124d91c5..852ce1b7 100644 --- a/old_docs/API_docs_v71/methods/README.md +++ b/old_docs/API_docs_v71/methods/README.md @@ -1,549 +1,544 @@ --- title: Methods -description: List of methods +description: What do you want to do? --- -# Methods -[Back to API documentation index](..) +# What do you want to do? +[Go back to API documentation index](..) +[Go to the old code-version method index](api_index.html) -$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); +* [Logout](https://docs.madelineproto.xyz/logout.html) -$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); +* [Login](https://docs.madelineproto.xyz/docs/LOGIN.html) -$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); +* [Get all chats, broadcast a message to all chats](https://docs.madelineproto.xyz/docs/DIALOGS.html) -$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); +* [Get the full participant list of a channel/group/supergroup](https://docs.madelineproto.xyz/get_pwr_chat.html) -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); +* [Get full info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_full_info.html) +* [Get info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_info.html) -$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); +* [Get info about the currently logged-in user](https://docs.madelineproto.xyz/get_self.html) -$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); +* [Upload or download files up to 1.5 GB](https://docs.madelineproto.xyz/docs/FILES.html) -$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); +* [Make a phone call and play a song](https://docs.madelineproto.xyz/docs/CALLS.html) -$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); - -$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); - - -$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); - -$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); +* [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) *** -

$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) +

* Change the phone number associated to this account -$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Check if this username is available -$MadelineProto->[account->confirmPhone](account_confirmPhone.md)(\['phone_code_hash' => [string](../types/string.md), 'phone_code' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode -$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Delete this account -$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) +* Get account TTL -$MadelineProto->[account->getAuthorizations](account_getAuthorizations.md)(\[\]) === [$account\_Authorizations](../types/account_Authorizations.md) +* Get all logged-in authorizations -$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) +* Get notification settings -$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md) +* Get the current password -$MadelineProto->[account->getPasswordSettings](account_getPasswordSettings.md)(\['current_password_hash' => [bytes](../types/bytes.md), \]) === [$account\_PasswordSettings](../types/account_PasswordSettings.md) +* Get the current 2FA settings -$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Get privacy settings -$MadelineProto->[account->getTmpPassword](account_getTmpPassword.md)(\['password_hash' => [bytes](../types/bytes.md), 'period' => [int](../types/int.md), \]) === [$account\_TmpPassword](../types/account_TmpPassword.md) +* Get temporary password for buying products through bots -$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) +* Returns a list of available wallpapers. -$MadelineProto->[account->registerDevice](account_registerDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Register device for push notifications -$MadelineProto->[account->reportPeer](account_reportPeer.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reason' => [ReportReason](../types/ReportReason.md), \]) === [$Bool](../types/Bool.md) +* Report for spam -$MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) +* Delete a certain session -$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) +* Reset all notification settings -$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) +* Change the phone number -$MadelineProto->[account->sendConfirmPhoneCode](account_sendConfirmPhoneCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'hash' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) +* Send confirmation phone code -$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) +* Set account TTL -$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Set privacy settings -$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Stop sending PUSH notifications to app -$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Disable all notifications for a certain period -$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) +* Change notification settings -$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) +* Update the 2FA password settings -$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) +* Update profile info -$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Update online status -$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) +* Update this user's username *** -

$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) +

* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info -$MadelineProto->[auth->cancelCode](auth_cancelCode.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Invalidate sent phone code -$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) +* Check if this phone number is registered on telegram -$MadelineProto->[auth->dropTempAuthKeys](auth_dropTempAuthKeys.md)(\['except_auth_keys' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) +* Delete all temporary authorization keys except the ones provided -$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) +* You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$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) +* You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->recoverPassword](auth_recoverPassword.md)(\['code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account -$MadelineProto->[auth->requestPasswordRecovery](auth_requestPasswordRecovery.md)(\[\]) === [$auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) +* Send an email to recover the 2FA password -$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) +* Resend the SMS verification code -$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) +* Delete all logged-in sessions. -$MadelineProto->[auth->sendCode](auth_sendCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'phone_number' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), 'api_id' => [int](../types/int.md), 'api_hash' => [string](../types/string.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) +* Use phone_login instead -$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Invite friends to telegram! -$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) +* You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) -$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) +* You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) *** -

$MadelineProto->[bots->answerWebhookJSONQuery](bots_answerWebhookJSONQuery.md)(\['query_id' => [long](../types/long.md), 'data' => [DataJSON](../types/DataJSON.md), \]) === [$Bool](../types/Bool.md) +

* Send webhook request via bot API -$MadelineProto->[bots->sendCustomRequest](bots_sendCustomRequest.md)(\['custom_method' => [string](../types/string.md), 'params' => [DataJSON](../types/DataJSON.md), \]) === [$DataJSON](../types/DataJSON.md) +* Send a custom request to the bot API *** -

$MadelineProto->[channels->checkUsername](channels_checkUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +

* Check if this username is free and can be assigned to a channel/supergroup -$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) +* Create channel/supergroup -$MadelineProto->[channels->deleteChannel](channels_deleteChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Delete a channel/supergroup -$MadelineProto->[channels->deleteMessages](channels_deleteMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Delete channel/supergroup messages -$MadelineProto->[channels->deleteUserHistory](channels_deleteUserHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Delete all messages of a user in a channel/supergroup -$MadelineProto->[channels->editAbout](channels_editAbout.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'about' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Edit the about text of a channel/supergroup -$MadelineProto->[channels->editAdmin](channels_editAdmin.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), 'admin_rights' => [ChannelAdminRights](../types/ChannelAdminRights.md), \]) === [$Updates](../types/Updates.md) +* Edit admin permissions of a user in a channel/supergroup -$MadelineProto->[channels->editBanned](channels_editBanned.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), 'banned_rights' => [ChannelBannedRights](../types/ChannelBannedRights.md), \]) === [$Updates](../types/Updates.md) +* Kick or ban a user from a channel/supergroup -$MadelineProto->[channels->editPhoto](channels_editPhoto.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) +* Edit the photo of a supergroup/channel -$MadelineProto->[channels->editTitle](channels_editTitle.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Edit the title of a supergroup/channel -$MadelineProto->[channels->exportInvite](channels_exportInvite.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) +* Export the invite link of a channel -$MadelineProto->[channels->exportMessageLink](channels_exportMessageLink.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => [int](../types/int.md), \]) === [$ExportedMessageLink](../types/ExportedMessageLink.md) +* Get the link of a message in a channel -$MadelineProto->[channels->getAdminLog](channels_getAdminLog.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'q' => [string](../types/string.md), 'events_filter' => [ChannelAdminLogEventsFilter](../types/ChannelAdminLogEventsFilter.md), 'admins' => \[[InputUser](../types/InputUser.md)\], 'max_id' => [long](../types/long.md), 'min_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), \]) === [$channels\_AdminLogResults](../types/channels_AdminLogResults.md) +* Get admin log of a channel/supergroup -$MadelineProto->[channels->getAdminedPublicChannels](channels_getAdminedPublicChannels.md)(\[\]) === [$messages\_Chats](../types/messages_Chats.md) +* Get all supergroups/channels where you're admin -$MadelineProto->[channels->getChannels](channels_getChannels.md)(\['id' => \[[InputChannel](../types/InputChannel.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get info about multiple channels/supergroups -$MadelineProto->[channels->getFullChannel](channels_getFullChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) +* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[channels->getMessages](channels_getMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get channel/supergroup messages -$MadelineProto->[channels->getParticipant](channels_getParticipant.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) +* Get info about a certain channel/supergroup participant -$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) +* Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead) -$MadelineProto->[channels->inviteToChannel](channels_inviteToChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'users' => \[[InputUser](../types/InputUser.md)\], \]) === [$Updates](../types/Updates.md) +* Add users to channel/supergroup -$MadelineProto->[channels->joinChannel](channels_joinChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Join a channel/supergroup -$MadelineProto->[channels->leaveChannel](channels_leaveChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Leave a channel/supergroup -$MadelineProto->[channels->readHistory](channels_readHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Mark channel/supergroup history as read -$MadelineProto->[channels->readMessageContents](channels_readMessageContents.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$Bool](../types/Bool.md) +* Mark channel/supergroup messages as read -$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) +* Report a supergroup/channel for spam -$MadelineProto->[channels->setStickers](channels_setStickers.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) +* Set the supergroup/channel stickerpack -$MadelineProto->[channels->toggleInvites](channels_toggleInvites.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Allow or disallow any user to invite users to this channel/supergroup -$MadelineProto->[channels->toggleSignatures](channels_toggleSignatures.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Toggle channel signatures -$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) +* Set the pinned message of a channel/supergroup -$MadelineProto->[channels->updateUsername](channels_updateUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Update the username of a supergroup/channel *** -

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +

* Block a user -$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) +* Delete a contact -$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) +* Delete multiple contacts -$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) +* Export contact as card -$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) +* Get blocked users -$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [int](../types/int.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) +* Get info about a certain contact -$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) +* Get online status of all users -$MadelineProto->[contacts->getTopPeers](contacts_getTopPeers.md)(\['correspondents' => [Bool](../types/Bool.md), 'bots_pm' => [Bool](../types/Bool.md), 'bots_inline' => [Bool](../types/Bool.md), 'phone_calls' => [Bool](../types/Bool.md), 'groups' => [Bool](../types/Bool.md), 'channels' => [Bool](../types/Bool.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'hash' => [int](../types/int.md), \]) === [$contacts\_TopPeers](../types/contacts_TopPeers.md) +* Get most used chats -$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) +* Import card as contact -$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) +* Add phone number as contact -$MadelineProto->[contacts->resetSaved](contacts_resetSaved.md)(\[\]) === [$Bool](../types/Bool.md) +* Reset saved contacts -$MadelineProto->[contacts->resetTopPeerRating](contacts_resetTopPeerRating.md)(\['category' => [TopPeerCategory](../types/TopPeerCategory.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Reset top peer rating for a certain category/peer -$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) +* You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) +* Search contacts -$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +* Unblock a user *** -

$MadelineProto->[contest->saveDeveloperInfo](contest_saveDeveloperInfo.md)(\['vk_id' => [int](../types/int.md), 'name' => [string](../types/string.md), 'phone_number' => [string](../types/string.md), 'age' => [int](../types/int.md), 'city' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +

* Save developer info for telegram contest *** -

$MadelineProto->[destroy_auth_key](destroy_auth_key.md)(\[\]) === [$DestroyAuthKeyRes](../types/DestroyAuthKeyRes.md) +

* Destroy current authorization key -$MadelineProto->[destroy_session](destroy_session.md)(\['session_id' => [long](../types/long.md), \]) === [$DestroySessionRes](../types/DestroySessionRes.md) +* Destroy the current MTProto session *** -

$MadelineProto->[get_future_salts](get_future_salts.md)(\['num' => [int](../types/int.md), \]) === [$FutureSalts](../types/FutureSalts.md) +

* Get future salts *** -

$MadelineProto->[help->getAppChangelog](help_getAppChangelog.md)(\['prev_app_version' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +

* Get the changelog of this app -$MadelineProto->[help->getAppUpdate](help_getAppUpdate.md)(\[\]) === [$help\_AppUpdate](../types/help_AppUpdate.md) +* Get info about app updates -$MadelineProto->[help->getCdnConfig](help_getCdnConfig.md)(\[\]) === [$CdnConfig](../types/CdnConfig.md) +* Get CDN configuration -$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) +* Get server configuration -$MadelineProto->[help->getInviteText](help_getInviteText.md)(\[\]) === [$help\_InviteText](../types/help_InviteText.md) +* Get invitation text -$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) +* Get nearest datacenter -$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) +* Get info of support user -$MadelineProto->[help->getTermsOfService](help_getTermsOfService.md)(\[\]) === [$help\_TermsOfService](../types/help_TermsOfService.md) +* Get terms of service -$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) +* Log data for developer of this app -$MadelineProto->[help->setBotUpdatesStatus](help_setBotUpdatesStatus.md)(\['pending_updates_count' => [int](../types/int.md), 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Set the update status of webhook *** -

$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), 'system_lang_code' => [string](../types/string.md), 'lang_pack' => [string](../types/string.md), 'lang_code' => [string](../types/string.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Initializes connection and save information on the user's device and application. *** -

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invokes a query after successfull completion of one of the previous queries. *** -

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Result type returned by a current query. *** -

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invoke this method with layer X *** -

$MadelineProto->[invokeWithoutUpdates](invokeWithoutUpdates.md)(\['query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invoke with method without returning updates in the socket *** -

$MadelineProto->[langpack->getDifference](langpack_getDifference.md)(\['from_version' => [int](../types/int.md), \]) === [$LangPackDifference](../types/LangPackDifference.md) +

* Get language pack updates -$MadelineProto->[langpack->getLangPack](langpack_getLangPack.md)(\['lang_code' => [string](../types/string.md), \]) === [$LangPackDifference](../types/LangPackDifference.md) +* Get language pack -$MadelineProto->[langpack->getLanguages](langpack_getLanguages.md)(\[\]) === [$Vector\_of\_LangPackLanguage](../types/LangPackLanguage.md) +* Get available languages -$MadelineProto->[langpack->getStrings](langpack_getStrings.md)(\['lang_code' => [string](../types/string.md), 'keys' => \[[string](../types/string.md)\], \]) === [$Vector\_of\_LangPackString](../types/LangPackString.md) +* Get language pack strings *** -

$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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Add a user to a normal chat (use channels->inviteToChannel for supergroups) -$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md) +* Check if an invitation link is valid -$MadelineProto->[messages->clearRecentStickers](messages_clearRecentStickers.md)(\['attached' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Clear all recent stickers -$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Create a chat (not supergroup) -$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md) +* Delete a user from a chat (not supergroup) -$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['just_clear' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Delete chat history -$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['revoke' => [Bool](../types/Bool.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Delete messages -$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Edit admin permissions -$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) +* Edit the photo of a normal chat (not supergroup) -$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Edit the title of a normal chat (not supergroup) -$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) +* Edit a sent inline message -$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) +* Edit a message -$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) +* Export chat invite -$MadelineProto->[messages->faveSticker](messages_faveSticker.md)(\['id' => [InputDocument](../types/InputDocument.md), 'unfave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Add a sticker to favorites -$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) +* Forward message -$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'with_my_score' => [Bool](../types/Bool.md), 'from_peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], 'to_peer' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) +* Forward messages -$MadelineProto->[messages->getAllChats](messages_getAllChats.md)(\['except_ids' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get all chats (not supergroups or channels) -$MadelineProto->[messages->getAllDrafts](messages_getAllDrafts.md)(\[\]) === [$Updates](../types/Updates.md) +* Get all message drafts -$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) +* Get all stickerpacks -$MadelineProto->[messages->getArchivedStickers](messages_getArchivedStickers.md)(\['masks' => [Bool](../types/Bool.md), 'offset_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), \]) === [$messages\_ArchivedStickers](../types/messages_ArchivedStickers.md) +* Get all archived stickers -$MadelineProto->[messages->getAttachedStickers](messages_getAttachedStickers.md)(\['media' => [InputStickeredMedia](../types/InputStickeredMedia.md), \]) === [$Vector\_of\_StickerSetCovered](../types/StickerSetCovered.md) +* Get stickers attachable to images -$MadelineProto->[messages->getBotCallbackAnswer](messages_getBotCallbackAnswer.md)(\['game' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'msg_id' => [int](../types/int.md), 'data' => [bytes](../types/bytes.md), \]) === [$messages\_BotCallbackAnswer](../types/messages_BotCallbackAnswer.md) +* Get the callback answer of a bot (after clicking a button) -$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get info about chats -$MadelineProto->[messages->getCommonChats](messages_getCommonChats.md)(\['user_id' => [InputUser](../types/InputUser.md), 'max_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get chats in common with a user -$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) +* You cannot use this method directly, instead use $MadelineProto->get_dh_config(); -$MadelineProto->[messages->getDialogs](messages_getDialogs.md)(\['exclude_pinned' => [Bool](../types/Bool.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) +* Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html -$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) +* Get document by SHA256 hash -$MadelineProto->[messages->getFavedStickers](messages_getFavedStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_FavedStickers](../types/messages_FavedStickers.md) +* Get favorite stickers -$MadelineProto->[messages->getFeaturedStickers](messages_getFeaturedStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_FeaturedStickers](../types/messages_FeaturedStickers.md) +* Get featured stickers -$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) +* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[messages->getGameHighScores](messages_getGameHighScores.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_HighScores](../types/messages_HighScores.md) +* Get high scores of a game -$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) +* Get previous messages of a group -$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) +* Call inline bot -$MadelineProto->[messages->getInlineGameHighScores](messages_getInlineGameHighScores.md)(\['id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_HighScores](../types/messages_HighScores.md) +* Get high scores of a game sent in an inline message -$MadelineProto->[messages->getMaskStickers](messages_getMaskStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) +* Get masks -$MadelineProto->[messages->getMessageEditData](messages_getMessageEditData.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$messages\_MessageEditData](../types/messages_MessageEditData.md) +* Check if about to edit a message or a media caption -$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get messages -$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) +* Get and increase message views -$MadelineProto->[messages->getPeerDialogs](messages_getPeerDialogs.md)(\['peers' => \[[InputPeer](../types/InputPeer.md)\], \]) === [$messages\_PeerDialogs](../types/messages_PeerDialogs.md) +* Get dialog info of peers -$MadelineProto->[messages->getPeerSettings](messages_getPeerSettings.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$PeerSettings](../types/PeerSettings.md) +* Get the settings of apeer -$MadelineProto->[messages->getPinnedDialogs](messages_getPinnedDialogs.md)(\[\]) === [$messages\_PeerDialogs](../types/messages_PeerDialogs.md) +* Get pinned dialogs -$MadelineProto->[messages->getRecentStickers](messages_getRecentStickers.md)(\['attached' => [Bool](../types/Bool.md), 'hash' => [int](../types/int.md), \]) === [$messages\_RecentStickers](../types/messages_RecentStickers.md) +* Get recent stickers -$MadelineProto->[messages->getSavedGifs](messages_getSavedGifs.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_SavedGifs](../types/messages_SavedGifs.md) +* Get saved gifs -$MadelineProto->[messages->getStickerSet](messages_getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) +* Get a stickerset -$MadelineProto->[messages->getUnreadMentions](messages_getUnreadMentions.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset_id' => [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) +* Get unread mentions -$MadelineProto->[messages->getWebPage](messages_getWebPage.md)(\['url' => [string](../types/string.md), 'hash' => [int](../types/int.md), \]) === [$WebPage](../types/WebPage.md) +* Get webpage preview -$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) === [$MessageMedia](../types/MessageMedia.md) +* Get webpage preview -$MadelineProto->[messages->hideReportSpam](messages_hideReportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Hide report spam popup -$MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Import chat invite -$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'archived' => [Bool](../types/Bool.md), \]) === [$messages\_StickerSetInstallResult](../types/messages_StickerSetInstallResult.md) +* Add a sticker set -$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) +* Convert chat to supergroup -$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Mark messages as read in secret chats -$MadelineProto->[messages->readFeaturedStickers](messages_readFeaturedStickers.md)(\['id' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) +* Mark new featured stickers as read -$MadelineProto->[messages->readHistory](messages_readHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Mark messages as read -$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Mark message as read -$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_ReceivedNotifyMessage](../types/ReceivedNotifyMessage.md) +* Mark messages as read -$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) +* You cannot use this method directly -$MadelineProto->[messages->reorderPinnedDialogs](messages_reorderPinnedDialogs.md)(\['force' => [Bool](../types/Bool.md), 'order' => \[[InputPeer](../types/InputPeer.md)\], \]) === [$Bool](../types/Bool.md) +* Reorder pinned dialogs -$MadelineProto->[messages->reorderStickerSets](messages_reorderStickerSets.md)(\['masks' => [Bool](../types/Bool.md), 'order' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) +* Reorder sticker sets -$MadelineProto->[messages->reportEncryptedSpam](messages_reportEncryptedSpam.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), \]) === [$Bool](../types/Bool.md) +* Report for spam a secret chat -$MadelineProto->[messages->reportSpam](messages_reportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Report a peer for spam -$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$MadelineProto->[messages->saveDraft](messages_saveDraft.md)(\['no_webpage' => [Bool](../types/Bool.md), 'reply_to_msg_id' => [int](../types/int.md), 'peer' => [InputPeer](../types/InputPeer.md), 'message' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Bool](../types/Bool.md) +* Save a message draft -$MadelineProto->[messages->saveGif](messages_saveGif.md)(\['id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Save a GIF -$MadelineProto->[messages->saveRecentSticker](messages_saveRecentSticker.md)(\['attached' => [Bool](../types/Bool.md), 'id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Add a sticker to recent stickers -$MadelineProto->[messages->search](messages_search.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'q' => [string](../types/string.md), 'from_id' => [InputUser](../types/InputUser.md), 'filter' => [MessagesFilter](../types/MessagesFilter.md), 'min_date' => [int](../types/int.md), 'max_date' => [int](../types/int.md), 'offset_id' => [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) +* Search peers or messages -$MadelineProto->[messages->searchGifs](messages_searchGifs.md)(\['q' => [string](../types/string.md), 'offset' => [int](../types/int.md), \]) === [$messages\_FoundGifs](../types/messages_FoundGifs.md) +* Search gifs -$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) +* Global message search -$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send message to secret chat -$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) +* Send a file to a secret chat -$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send a service message to a secret chat -$MadelineProto->[messages->sendInlineBotResult](messages_sendInlineBotResult.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'query_id' => [long](../types/long.md), 'id' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Send a received bot result to the chat -$MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'media' => [InputMedia](../types/InputMedia.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \]) === [$Updates](../types/Updates.md) +* Send a media -$MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Updates](../types/Updates.md) +* Send a message -$MadelineProto->[messages->sendScreenshotNotification](messages_sendScreenshotNotification.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) +* Send screenshot notification -$MadelineProto->[messages->setBotCallbackAnswer](messages_setBotCallbackAnswer.md)(\['alert' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'message' => [string](../types/string.md), 'url' => [string](../types/string.md), 'cache_time' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Bots only: set the callback answer (after a button was clicked) -$MadelineProto->[messages->setBotPrecheckoutResults](messages_setBotPrecheckoutResults.md)(\['success' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'error' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Bots only: set precheckout results -$MadelineProto->[messages->setBotShippingResults](messages_setBotShippingResults.md)(\['query_id' => [long](../types/long.md), 'error' => [string](../types/string.md), 'shipping_options' => \[[ShippingOption](../types/ShippingOption.md)\], \]) === [$Bool](../types/Bool.md) +* Bots only: set shipping results -$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Send typing notification to secret chat -$MadelineProto->[messages->setGameScore](messages_setGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'force' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) +* Set the game score -$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) +* Bots only: set the results of an inline query -$MadelineProto->[messages->setInlineGameScore](messages_setInlineGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'force' => [Bool](../types/Bool.md), 'id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Set the game score of an inline message -$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) +* Change typing status -$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) +* Start a bot -$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Enable all users are admins in normal groups (not supergroups) -$MadelineProto->[messages->toggleDialogPin](messages_toggleDialogPin.md)(\['pinned' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Pin or unpin dialog -$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) +* Remove a sticker set -$MadelineProto->[messages->uploadMedia](messages_uploadMedia.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'media' => [InputMedia](../types/InputMedia.md), \]) === [$MessageMedia](../types/MessageMedia.md) +* Upload a file without sending it to anyone *** -

$MadelineProto->[payments->clearSavedInfo](payments_clearSavedInfo.md)(\['credentials' => [Bool](../types/Bool.md), 'info' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +

* Clear saved payments info -$MadelineProto->[payments->getPaymentForm](payments_getPaymentForm.md)(\['msg_id' => [int](../types/int.md), \]) === [$payments\_PaymentForm](../types/payments_PaymentForm.md) +* Get payment form -$MadelineProto->[payments->getPaymentReceipt](payments_getPaymentReceipt.md)(\['msg_id' => [int](../types/int.md), \]) === [$payments\_PaymentReceipt](../types/payments_PaymentReceipt.md) +* Get payment receipt -$MadelineProto->[payments->getSavedInfo](payments_getSavedInfo.md)(\[\]) === [$payments\_SavedInfo](../types/payments_SavedInfo.md) +* Get saved payments info -$MadelineProto->[payments->sendPaymentForm](payments_sendPaymentForm.md)(\['msg_id' => [int](../types/int.md), 'requested_info_id' => [string](../types/string.md), 'shipping_option_id' => [string](../types/string.md), 'credentials' => [InputPaymentCredentials](../types/InputPaymentCredentials.md), \]) === [$payments\_PaymentResult](../types/payments_PaymentResult.md) +* Bots only: send payment form -$MadelineProto->[payments->validateRequestedInfo](payments_validateRequestedInfo.md)(\['save' => [Bool](../types/Bool.md), 'msg_id' => [int](../types/int.md), 'info' => [PaymentRequestedInfo](../types/PaymentRequestedInfo.md), \]) === [$payments\_ValidatedRequestedInfo](../types/payments_ValidatedRequestedInfo.md) +* Validate requested payment info *** -

$MadelineProto->[phone->acceptCall](phone_acceptCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'g_b' => [bytes](../types/bytes.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) +

* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls -$MadelineProto->[phone->confirmCall](phone_confirmCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'g_a' => [bytes](../types/bytes.md), 'key_fingerprint' => [long](../types/long.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls -$MadelineProto->[phone->discardCall](phone_discardCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'duration' => [int](../types/int.md), 'reason' => [PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md), 'connection_id' => [long](../types/long.md), \]) === [$Updates](../types/Updates.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls -$MadelineProto->[phone->getCallConfig](phone_getCallConfig.md)(\[\]) === [$DataJSON](../types/DataJSON.md) +* Get call configuration -$MadelineProto->[phone->receivedCall](phone_receivedCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), \]) === [$Bool](../types/Bool.md) +* Notify server that you received a call (server will refuse all incoming calls until the current call is over) -$MadelineProto->[phone->requestCall](phone_requestCall.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a_hash' => [bytes](../types/bytes.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls -$MadelineProto->[phone->saveCallDebug](phone_saveCallDebug.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'debug' => [DataJSON](../types/DataJSON.md), \]) === [$Bool](../types/Bool.md) +* Save call debugging info -$MadelineProto->[phone->setCallRating](phone_setCallRating.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'rating' => [int](../types/int.md), 'comment' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Set phone call rating *** -

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) +

* Delete profile photos -$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) +* Get the profile photos of a user -$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) +* Update the profile photo (use photos->uploadProfilePhoto to upload the photo) -$MadelineProto->[photos->uploadProfilePhoto](photos_uploadProfilePhoto.md)(\['file' => [InputFile](../types/InputFile.md), \]) === [$photos\_Photo](../types/photos_Photo.md) +* Upload profile photo *** -

$MadelineProto->[ping](ping.md)(\['ping_id' => [long](../types/long.md), \]) === [$Pong](../types/Pong.md) +

* pings the server -$MadelineProto->[ping_delay_disconnect](ping_delay_disconnect.md)(\['ping_id' => [long](../types/long.md), 'disconnect_delay' => [int](../types/int.md), \]) === [$Pong](../types/Pong.md) +* Pings the server and causes disconection if the same method is not called within ping_disconnect_delay *** -

$MadelineProto->[req_DH_params](req_DH_params.md)(\['nonce' => [int128](../types/int128.md), 'server_nonce' => [int128](../types/int128.md), 'p' => [string](../types/string.md), 'q' => [string](../types/string.md), 'public_key_fingerprint' => [long](../types/long.md), 'encrypted_data' => [string](../types/string.md), \]) === [$Server\_DH\_Params](../types/Server_DH_Params.md) +

* Requests Diffie-hellman parameters for key exchange -$MadelineProto->[req_pq](req_pq.md)(\['nonce' => [int128](../types/int128.md), \]) === [$ResPQ](../types/ResPQ.md) +* Requests PQ for factorization *** -

$MadelineProto->[rpc_drop_answer](rpc_drop_answer.md)(\['req_msg_id' => [long](../types/long.md), \]) === [$RpcDropAnswer](../types/RpcDropAnswer.md) +

* Do not send answer to provided request *** -

$MadelineProto->[set_client_DH_params](set_client_DH_params.md)(\['nonce' => [int128](../types/int128.md), 'server_nonce' => [int128](../types/int128.md), 'encrypted_data' => [string](../types/string.md), \]) === [$Set\_client\_DH\_params\_answer](../types/Set_client_DH_params_answer.md) +

* Sets client diffie-hellman parameters *** -

$MadelineProto->[stickers->addStickerToSet](stickers_addStickerToSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'sticker' => [InputStickerSetItem](../types/InputStickerSetItem.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) +

* Add sticker to stickerset -$MadelineProto->[stickers->changeStickerPosition](stickers_changeStickerPosition.md)(\['sticker' => [InputDocument](../types/InputDocument.md), 'position' => [int](../types/int.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) +* Change sticker position in photo -$MadelineProto->[stickers->createStickerSet](stickers_createStickerSet.md)(\['masks' => [Bool](../types/Bool.md), 'user_id' => [InputUser](../types/InputUser.md), 'title' => [string](../types/string.md), 'short_name' => [string](../types/string.md), 'stickers' => \[[InputStickerSetItem](../types/InputStickerSetItem.md)\], \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) +* Create stickerset -$MadelineProto->[stickers->removeStickerFromSet](stickers_removeStickerFromSet.md)(\['sticker' => [InputDocument](../types/InputDocument.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) +* Remove sticker from stickerset *** -

$MadelineProto->[updates->getChannelDifference](updates_getChannelDifference.md)(\['force' => [Bool](../types/Bool.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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates -$MadelineProto->[updates->getDifference](updates_getDifference.md)(\['pts' => [int](../types/int.md), 'pts_total_limit' => [int](../types/int.md), 'date' => [int](../types/int.md), 'qts' => [int](../types/int.md), \]) === [$updates\_Difference](../types/updates_Difference.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates -$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates *** -

$MadelineProto->[upload->getCdnFile](upload_getCdnFile.md)(\['file_token' => [bytes](../types/bytes.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$upload\_CdnFile](../types/upload_CdnFile.md) +

* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$MadelineProto->[upload->getCdnFileHashes](upload_getCdnFileHashes.md)(\['file_token' => [bytes](../types/bytes.md), 'offset' => [int](../types/int.md), \]) === [$Vector\_of\_CdnFileHash](../types/CdnFileHash.md) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$MadelineProto->[upload->getWebFile](upload_getWebFile.md)(\['location' => [InputWebFileLocation](../types/InputWebFileLocation.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$upload\_WebFile](../types/upload_WebFile.md) +* Download a file through telegram -$MadelineProto->[upload->reuploadCdnFile](upload_reuploadCdnFile.md)(\['file_token' => [bytes](../types/bytes.md), 'request_token' => [bytes](../types/bytes.md), \]) === [$Vector\_of\_CdnFileHash](../types/CdnFileHash.md) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info *** -

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) +

* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) +* Get info about users diff --git a/old_docs/API_docs_v71/methods/account_changePhone.md b/old_docs/API_docs_v71/methods/account_changePhone.md index aeb5c4bc..65f0b0d0 100644 --- a/old_docs/API_docs_v71/methods/account_changePhone.md +++ b/old_docs/API_docs_v71/methods/account_changePhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); diff --git a/old_docs/API_docs_v71/methods/account_checkUsername.md b/old_docs/API_docs_v71/methods/account_checkUsername.md index 0124bb38..08107762 100644 --- a/old_docs/API_docs_v71/methods/account_checkUsername.md +++ b/old_docs/API_docs_v71/methods/account_checkUsername.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v71/methods/account_confirmPhone.md b/old_docs/API_docs_v71/methods/account_confirmPhone.md index c6a1dba6..68490f35 100644 --- a/old_docs/API_docs_v71/methods/account_confirmPhone.md +++ b/old_docs/API_docs_v71/methods/account_confirmPhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->confirmPhone(['phone_code_hash' => 'string', 'phone_code' => 'string', ]); diff --git a/old_docs/API_docs_v71/methods/account_deleteAccount.md b/old_docs/API_docs_v71/methods/account_deleteAccount.md index e8b46c24..3a6f4700 100644 --- a/old_docs/API_docs_v71/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v71/methods/account_deleteAccount.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); diff --git a/old_docs/API_docs_v71/methods/account_getAccountTTL.md b/old_docs/API_docs_v71/methods/account_getAccountTTL.md index 0cdd0b98..ab6a6ea1 100644 --- a/old_docs/API_docs_v71/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v71/methods/account_getAccountTTL.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); diff --git a/old_docs/API_docs_v71/methods/account_getAuthorizations.md b/old_docs/API_docs_v71/methods/account_getAuthorizations.md index f92db8fe..303203e4 100644 --- a/old_docs/API_docs_v71/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v71/methods/account_getAuthorizations.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_Authorizations = $MadelineProto->account->getAuthorizations(); diff --git a/old_docs/API_docs_v71/methods/account_getNotifySettings.md b/old_docs/API_docs_v71/methods/account_getNotifySettings.md index f00be12c..ad492f49 100644 --- a/old_docs/API_docs_v71/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v71/methods/account_getNotifySettings.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); diff --git a/old_docs/API_docs_v71/methods/account_getPassword.md b/old_docs/API_docs_v71/methods/account_getPassword.md index c189421d..2692dab1 100644 --- a/old_docs/API_docs_v71/methods/account_getPassword.md +++ b/old_docs/API_docs_v71/methods/account_getPassword.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_Password = $MadelineProto->account->getPassword(); diff --git a/old_docs/API_docs_v71/methods/account_getPasswordSettings.md b/old_docs/API_docs_v71/methods/account_getPasswordSettings.md index 96cb953e..2039d405 100644 --- a/old_docs/API_docs_v71/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v71/methods/account_getPasswordSettings.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PasswordSettings = $MadelineProto->account->getPasswordSettings(['current_password_hash' => 'bytes', ]); diff --git a/old_docs/API_docs_v71/methods/account_getPrivacy.md b/old_docs/API_docs_v71/methods/account_getPrivacy.md index 979bfb94..5480ffbb 100644 --- a/old_docs/API_docs_v71/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v71/methods/account_getPrivacy.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); diff --git a/old_docs/API_docs_v71/methods/account_getTmpPassword.md b/old_docs/API_docs_v71/methods/account_getTmpPassword.md index a90f9b2b..01b1ebfc 100644 --- a/old_docs/API_docs_v71/methods/account_getTmpPassword.md +++ b/old_docs/API_docs_v71/methods/account_getTmpPassword.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_TmpPassword = $MadelineProto->account->getTmpPassword(['password_hash' => 'bytes', 'period' => int, ]); diff --git a/old_docs/API_docs_v71/methods/account_getWallPapers.md b/old_docs/API_docs_v71/methods/account_getWallPapers.md index 89b281be..7c8bff39 100644 --- a/old_docs/API_docs_v71/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v71/methods/account_getWallPapers.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); diff --git a/old_docs/API_docs_v71/methods/account_registerDevice.md b/old_docs/API_docs_v71/methods/account_registerDevice.md index cd28abcd..4e148a7f 100644 --- a/old_docs/API_docs_v71/methods/account_registerDevice.md +++ b/old_docs/API_docs_v71/methods/account_registerDevice.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', ]); diff --git a/old_docs/API_docs_v71/methods/account_reportPeer.md b/old_docs/API_docs_v71/methods/account_reportPeer.md index a07c87d0..c5fe7073 100644 --- a/old_docs/API_docs_v71/methods/account_reportPeer.md +++ b/old_docs/API_docs_v71/methods/account_reportPeer.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->reportPeer(['peer' => InputPeer, 'reason' => ReportReason, ]); diff --git a/old_docs/API_docs_v71/methods/account_resetAuthorization.md b/old_docs/API_docs_v71/methods/account_resetAuthorization.md index 4155d3c8..543aee08 100644 --- a/old_docs/API_docs_v71/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v71/methods/account_resetAuthorization.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetAuthorization(['hash' => long, ]); diff --git a/old_docs/API_docs_v71/methods/account_resetNotifySettings.md b/old_docs/API_docs_v71/methods/account_resetNotifySettings.md index ccc836a9..557373b0 100644 --- a/old_docs/API_docs_v71/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v71/methods/account_resetNotifySettings.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); diff --git a/old_docs/API_docs_v71/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v71/methods/account_sendChangePhoneCode.md index c9f9c174..bdf7331f 100644 --- a/old_docs/API_docs_v71/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v71/methods/account_sendChangePhoneCode.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendChangePhoneCode(['allow_flashcall' => Bool, 'phone_number' => 'string', 'current_number' => Bool, ]); diff --git a/old_docs/API_docs_v71/methods/account_sendConfirmPhoneCode.md b/old_docs/API_docs_v71/methods/account_sendConfirmPhoneCode.md index 3785ba75..86035d19 100644 --- a/old_docs/API_docs_v71/methods/account_sendConfirmPhoneCode.md +++ b/old_docs/API_docs_v71/methods/account_sendConfirmPhoneCode.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendConfirmPhoneCode(['allow_flashcall' => Bool, 'hash' => 'string', 'current_number' => Bool, ]); diff --git a/old_docs/API_docs_v71/methods/account_setAccountTTL.md b/old_docs/API_docs_v71/methods/account_setAccountTTL.md index 5100e62e..bacdd77a 100644 --- a/old_docs/API_docs_v71/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v71/methods/account_setAccountTTL.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); diff --git a/old_docs/API_docs_v71/methods/account_setPrivacy.md b/old_docs/API_docs_v71/methods/account_setPrivacy.md index fbcedae7..6e24ded7 100644 --- a/old_docs/API_docs_v71/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v71/methods/account_setPrivacy.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); diff --git a/old_docs/API_docs_v71/methods/account_unregisterDevice.md b/old_docs/API_docs_v71/methods/account_unregisterDevice.md index 1d2b7670..b666d91a 100644 --- a/old_docs/API_docs_v71/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v71/methods/account_unregisterDevice.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); diff --git a/old_docs/API_docs_v71/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v71/methods/account_updateDeviceLocked.md index ef816501..cd52093a 100644 --- a/old_docs/API_docs_v71/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v71/methods/account_updateDeviceLocked.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); diff --git a/old_docs/API_docs_v71/methods/account_updateNotifySettings.md b/old_docs/API_docs_v71/methods/account_updateNotifySettings.md index 18cbdb75..db020309 100644 --- a/old_docs/API_docs_v71/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v71/methods/account_updateNotifySettings.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); diff --git a/old_docs/API_docs_v71/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v71/methods/account_updatePasswordSettings.md index 0754dd63..8af1e37f 100644 --- a/old_docs/API_docs_v71/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v71/methods/account_updatePasswordSettings.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updatePasswordSettings(['current_password_hash' => 'bytes', 'new_settings' => account_PasswordInputSettings, ]); diff --git a/old_docs/API_docs_v71/methods/account_updateProfile.md b/old_docs/API_docs_v71/methods/account_updateProfile.md index e24ef2f5..59629188 100644 --- a/old_docs/API_docs_v71/methods/account_updateProfile.md +++ b/old_docs/API_docs_v71/methods/account_updateProfile.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', 'about' => 'string', ]); diff --git a/old_docs/API_docs_v71/methods/account_updateStatus.md b/old_docs/API_docs_v71/methods/account_updateStatus.md index 4b049e65..50b99b1e 100644 --- a/old_docs/API_docs_v71/methods/account_updateStatus.md +++ b/old_docs/API_docs_v71/methods/account_updateStatus.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); diff --git a/old_docs/API_docs_v71/methods/account_updateUsername.md b/old_docs/API_docs_v71/methods/account_updateUsername.md index 08d2abe0..7276e2aa 100644 --- a/old_docs/API_docs_v71/methods/account_updateUsername.md +++ b/old_docs/API_docs_v71/methods/account_updateUsername.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v71/methods/api_README.md b/old_docs/API_docs_v71/methods/api_README.md new file mode 100644 index 00000000..19fdc91d --- /dev/null +++ b/old_docs/API_docs_v71/methods/api_README.md @@ -0,0 +1,550 @@ +--- +title: Methods +description: List of methods +--- +# Methods +[Back to API documentation index](..) + +[Go to the new description-version method index](index.html) + +$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); + +$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); + +$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); + +$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); + +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); + + +$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); + +$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); + +$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); + +$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); + +$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); + + +$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); + +$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); + +*** +

$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) + +$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->confirmPhone](account_confirmPhone.md)(\['phone_code_hash' => [string](../types/string.md), 'phone_code' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) + +$MadelineProto->[account->getAuthorizations](account_getAuthorizations.md)(\[\]) === [$account\_Authorizations](../types/account_Authorizations.md) + +$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) + +$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md) + +$MadelineProto->[account->getPasswordSettings](account_getPasswordSettings.md)(\['current_password_hash' => [bytes](../types/bytes.md), \]) === [$account\_PasswordSettings](../types/account_PasswordSettings.md) + +$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->getTmpPassword](account_getTmpPassword.md)(\['password_hash' => [bytes](../types/bytes.md), 'period' => [int](../types/int.md), \]) === [$account\_TmpPassword](../types/account_TmpPassword.md) + +$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) + +$MadelineProto->[account->registerDevice](account_registerDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->reportPeer](account_reportPeer.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reason' => [ReportReason](../types/ReportReason.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[account->sendConfirmPhoneCode](account_sendConfirmPhoneCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'hash' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) + +$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$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) + +$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) + +*** +

$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) + +$MadelineProto->[auth->cancelCode](auth_cancelCode.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) + +$MadelineProto->[auth->dropTempAuthKeys](auth_dropTempAuthKeys.md)(\['except_auth_keys' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) + +$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$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) + +$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->recoverPassword](auth_recoverPassword.md)(\['code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->requestPasswordRecovery](auth_requestPasswordRecovery.md)(\[\]) === [$auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) + +$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) + +$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->sendCode](auth_sendCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'phone_number' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), 'api_id' => [int](../types/int.md), 'api_hash' => [string](../types/string.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) + +$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$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) + +*** +

$MadelineProto->[bots->answerWebhookJSONQuery](bots_answerWebhookJSONQuery.md)(\['query_id' => [long](../types/long.md), 'data' => [DataJSON](../types/DataJSON.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[bots->sendCustomRequest](bots_sendCustomRequest.md)(\['custom_method' => [string](../types/string.md), 'params' => [DataJSON](../types/DataJSON.md), \]) === [$DataJSON](../types/DataJSON.md) + +*** +

$MadelineProto->[channels->checkUsername](channels_checkUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->deleteChannel](channels_deleteChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->deleteMessages](channels_deleteMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[channels->deleteUserHistory](channels_deleteUserHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[channels->editAbout](channels_editAbout.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'about' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[channels->editAdmin](channels_editAdmin.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), 'admin_rights' => [ChannelAdminRights](../types/ChannelAdminRights.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->editBanned](channels_editBanned.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), 'banned_rights' => [ChannelBannedRights](../types/ChannelBannedRights.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->editPhoto](channels_editPhoto.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->editTitle](channels_editTitle.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->exportInvite](channels_exportInvite.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) + +$MadelineProto->[channels->exportMessageLink](channels_exportMessageLink.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => [int](../types/int.md), \]) === [$ExportedMessageLink](../types/ExportedMessageLink.md) + +$MadelineProto->[channels->getAdminLog](channels_getAdminLog.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'q' => [string](../types/string.md), 'events_filter' => [ChannelAdminLogEventsFilter](../types/ChannelAdminLogEventsFilter.md), 'admins' => \[[InputUser](../types/InputUser.md)\], 'max_id' => [long](../types/long.md), 'min_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), \]) === [$channels\_AdminLogResults](../types/channels_AdminLogResults.md) + +$MadelineProto->[channels->getAdminedPublicChannels](channels_getAdminedPublicChannels.md)(\[\]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[channels->getChannels](channels_getChannels.md)(\['id' => \[[InputChannel](../types/InputChannel.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[channels->getFullChannel](channels_getFullChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$MadelineProto->[channels->getMessages](channels_getMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) + +$MadelineProto->[channels->getParticipant](channels_getParticipant.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) + +$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) + +$MadelineProto->[channels->inviteToChannel](channels_inviteToChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'users' => \[[InputUser](../types/InputUser.md)\], \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->joinChannel](channels_joinChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->leaveChannel](channels_leaveChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->readHistory](channels_readHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[channels->readMessageContents](channels_readMessageContents.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->setStickers](channels_setStickers.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[channels->toggleInvites](channels_toggleInvites.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->toggleSignatures](channels_toggleSignatures.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$MadelineProto->[channels->updateUsername](channels_updateUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) + +$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) + +$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) + +$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [int](../types/int.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) + +$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) + +$MadelineProto->[contacts->getTopPeers](contacts_getTopPeers.md)(\['correspondents' => [Bool](../types/Bool.md), 'bots_pm' => [Bool](../types/Bool.md), 'bots_inline' => [Bool](../types/Bool.md), 'phone_calls' => [Bool](../types/Bool.md), 'groups' => [Bool](../types/Bool.md), 'channels' => [Bool](../types/Bool.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'hash' => [int](../types/int.md), \]) === [$contacts\_TopPeers](../types/contacts_TopPeers.md) + +$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) + +$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) + +$MadelineProto->[contacts->resetSaved](contacts_resetSaved.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->resetTopPeerRating](contacts_resetTopPeerRating.md)(\['category' => [TopPeerCategory](../types/TopPeerCategory.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) + +$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) + +$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[contest->saveDeveloperInfo](contest_saveDeveloperInfo.md)(\['vk_id' => [int](../types/int.md), 'name' => [string](../types/string.md), 'phone_number' => [string](../types/string.md), 'age' => [int](../types/int.md), 'city' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[destroy_auth_key](destroy_auth_key.md)(\[\]) === [$DestroyAuthKeyRes](../types/DestroyAuthKeyRes.md) + +$MadelineProto->[destroy_session](destroy_session.md)(\['session_id' => [long](../types/long.md), \]) === [$DestroySessionRes](../types/DestroySessionRes.md) + +*** +

$MadelineProto->[get_future_salts](get_future_salts.md)(\['num' => [int](../types/int.md), \]) === [$FutureSalts](../types/FutureSalts.md) + +*** +

$MadelineProto->[help->getAppChangelog](help_getAppChangelog.md)(\['prev_app_version' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[help->getAppUpdate](help_getAppUpdate.md)(\[\]) === [$help\_AppUpdate](../types/help_AppUpdate.md) + +$MadelineProto->[help->getCdnConfig](help_getCdnConfig.md)(\[\]) === [$CdnConfig](../types/CdnConfig.md) + +$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) + +$MadelineProto->[help->getInviteText](help_getInviteText.md)(\[\]) === [$help\_InviteText](../types/help_InviteText.md) + +$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) + +$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) + +$MadelineProto->[help->getTermsOfService](help_getTermsOfService.md)(\[\]) === [$help\_TermsOfService](../types/help_TermsOfService.md) + +$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[help->setBotUpdatesStatus](help_setBotUpdatesStatus.md)(\['pending_updates_count' => [int](../types/int.md), 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +*** +

$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), 'system_lang_code' => [string](../types/string.md), 'lang_pack' => [string](../types/string.md), 'lang_code' => [string](../types/string.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeWithoutUpdates](invokeWithoutUpdates.md)(\['query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[langpack->getDifference](langpack_getDifference.md)(\['from_version' => [int](../types/int.md), \]) === [$LangPackDifference](../types/LangPackDifference.md) + +$MadelineProto->[langpack->getLangPack](langpack_getLangPack.md)(\['lang_code' => [string](../types/string.md), \]) === [$LangPackDifference](../types/LangPackDifference.md) + +$MadelineProto->[langpack->getLanguages](langpack_getLanguages.md)(\[\]) === [$Vector\_of\_LangPackLanguage](../types/LangPackLanguage.md) + +$MadelineProto->[langpack->getStrings](langpack_getStrings.md)(\['lang_code' => [string](../types/string.md), 'keys' => \[[string](../types/string.md)\], \]) === [$Vector\_of\_LangPackString](../types/LangPackString.md) + +*** +

$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) + +$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) + +$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md) + +$MadelineProto->[messages->clearRecentStickers](messages_clearRecentStickers.md)(\['attached' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['just_clear' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['revoke' => [Bool](../types/Bool.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$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) + +$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) + +$MadelineProto->[messages->faveSticker](messages_faveSticker.md)(\['id' => [InputDocument](../types/InputDocument.md), 'unfave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'with_my_score' => [Bool](../types/Bool.md), 'from_peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], 'to_peer' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->getAllChats](messages_getAllChats.md)(\['except_ids' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[messages->getAllDrafts](messages_getAllDrafts.md)(\[\]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) + +$MadelineProto->[messages->getArchivedStickers](messages_getArchivedStickers.md)(\['masks' => [Bool](../types/Bool.md), 'offset_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), \]) === [$messages\_ArchivedStickers](../types/messages_ArchivedStickers.md) + +$MadelineProto->[messages->getAttachedStickers](messages_getAttachedStickers.md)(\['media' => [InputStickeredMedia](../types/InputStickeredMedia.md), \]) === [$Vector\_of\_StickerSetCovered](../types/StickerSetCovered.md) + +$MadelineProto->[messages->getBotCallbackAnswer](messages_getBotCallbackAnswer.md)(\['game' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'msg_id' => [int](../types/int.md), 'data' => [bytes](../types/bytes.md), \]) === [$messages\_BotCallbackAnswer](../types/messages_BotCallbackAnswer.md) + +$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[messages->getCommonChats](messages_getCommonChats.md)(\['user_id' => [InputUser](../types/InputUser.md), 'max_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) + +$MadelineProto->[messages->getDialogs](messages_getDialogs.md)(\['exclude_pinned' => [Bool](../types/Bool.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) + +$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) + +$MadelineProto->[messages->getFavedStickers](messages_getFavedStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_FavedStickers](../types/messages_FavedStickers.md) + +$MadelineProto->[messages->getFeaturedStickers](messages_getFeaturedStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_FeaturedStickers](../types/messages_FeaturedStickers.md) + +$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$MadelineProto->[messages->getGameHighScores](messages_getGameHighScores.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_HighScores](../types/messages_HighScores.md) + +$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) + +$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) + +$MadelineProto->[messages->getInlineGameHighScores](messages_getInlineGameHighScores.md)(\['id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_HighScores](../types/messages_HighScores.md) + +$MadelineProto->[messages->getMaskStickers](messages_getMaskStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) + +$MadelineProto->[messages->getMessageEditData](messages_getMessageEditData.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$messages\_MessageEditData](../types/messages_MessageEditData.md) + +$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) + +$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) + +$MadelineProto->[messages->getPeerDialogs](messages_getPeerDialogs.md)(\['peers' => \[[InputPeer](../types/InputPeer.md)\], \]) === [$messages\_PeerDialogs](../types/messages_PeerDialogs.md) + +$MadelineProto->[messages->getPeerSettings](messages_getPeerSettings.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$PeerSettings](../types/PeerSettings.md) + +$MadelineProto->[messages->getPinnedDialogs](messages_getPinnedDialogs.md)(\[\]) === [$messages\_PeerDialogs](../types/messages_PeerDialogs.md) + +$MadelineProto->[messages->getRecentStickers](messages_getRecentStickers.md)(\['attached' => [Bool](../types/Bool.md), 'hash' => [int](../types/int.md), \]) === [$messages\_RecentStickers](../types/messages_RecentStickers.md) + +$MadelineProto->[messages->getSavedGifs](messages_getSavedGifs.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_SavedGifs](../types/messages_SavedGifs.md) + +$MadelineProto->[messages->getStickerSet](messages_getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +$MadelineProto->[messages->getUnreadMentions](messages_getUnreadMentions.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset_id' => [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) + +$MadelineProto->[messages->getWebPage](messages_getWebPage.md)(\['url' => [string](../types/string.md), 'hash' => [int](../types/int.md), \]) === [$WebPage](../types/WebPage.md) + +$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) === [$MessageMedia](../types/MessageMedia.md) + +$MadelineProto->[messages->hideReportSpam](messages_hideReportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'archived' => [Bool](../types/Bool.md), \]) === [$messages\_StickerSetInstallResult](../types/messages_StickerSetInstallResult.md) + +$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->readFeaturedStickers](messages_readFeaturedStickers.md)(\['id' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->readHistory](messages_readHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_ReceivedNotifyMessage](../types/ReceivedNotifyMessage.md) + +$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) + +$MadelineProto->[messages->reorderPinnedDialogs](messages_reorderPinnedDialogs.md)(\['force' => [Bool](../types/Bool.md), 'order' => \[[InputPeer](../types/InputPeer.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->reorderStickerSets](messages_reorderStickerSets.md)(\['masks' => [Bool](../types/Bool.md), 'order' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->reportEncryptedSpam](messages_reportEncryptedSpam.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->reportSpam](messages_reportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) + +$MadelineProto->[messages->saveDraft](messages_saveDraft.md)(\['no_webpage' => [Bool](../types/Bool.md), 'reply_to_msg_id' => [int](../types/int.md), 'peer' => [InputPeer](../types/InputPeer.md), 'message' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->saveGif](messages_saveGif.md)(\['id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->saveRecentSticker](messages_saveRecentSticker.md)(\['attached' => [Bool](../types/Bool.md), 'id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->search](messages_search.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'q' => [string](../types/string.md), 'from_id' => [InputUser](../types/InputUser.md), 'filter' => [MessagesFilter](../types/MessagesFilter.md), 'min_date' => [int](../types/int.md), 'max_date' => [int](../types/int.md), 'offset_id' => [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) + +$MadelineProto->[messages->searchGifs](messages_searchGifs.md)(\['q' => [string](../types/string.md), 'offset' => [int](../types/int.md), \]) === [$messages\_FoundGifs](../types/messages_FoundGifs.md) + +$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) + +$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$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) + +$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$MadelineProto->[messages->sendInlineBotResult](messages_sendInlineBotResult.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'query_id' => [long](../types/long.md), 'id' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'media' => [InputMedia](../types/InputMedia.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->sendScreenshotNotification](messages_sendScreenshotNotification.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->setBotCallbackAnswer](messages_setBotCallbackAnswer.md)(\['alert' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'message' => [string](../types/string.md), 'url' => [string](../types/string.md), 'cache_time' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setBotPrecheckoutResults](messages_setBotPrecheckoutResults.md)(\['success' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'error' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setBotShippingResults](messages_setBotShippingResults.md)(\['query_id' => [long](../types/long.md), 'error' => [string](../types/string.md), 'shipping_options' => \[[ShippingOption](../types/ShippingOption.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setGameScore](messages_setGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'force' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$MadelineProto->[messages->setInlineGameScore](messages_setInlineGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'force' => [Bool](../types/Bool.md), 'id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->toggleDialogPin](messages_toggleDialogPin.md)(\['pinned' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->uploadMedia](messages_uploadMedia.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'media' => [InputMedia](../types/InputMedia.md), \]) === [$MessageMedia](../types/MessageMedia.md) + +*** +

$MadelineProto->[payments->clearSavedInfo](payments_clearSavedInfo.md)(\['credentials' => [Bool](../types/Bool.md), 'info' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[payments->getPaymentForm](payments_getPaymentForm.md)(\['msg_id' => [int](../types/int.md), \]) === [$payments\_PaymentForm](../types/payments_PaymentForm.md) + +$MadelineProto->[payments->getPaymentReceipt](payments_getPaymentReceipt.md)(\['msg_id' => [int](../types/int.md), \]) === [$payments\_PaymentReceipt](../types/payments_PaymentReceipt.md) + +$MadelineProto->[payments->getSavedInfo](payments_getSavedInfo.md)(\[\]) === [$payments\_SavedInfo](../types/payments_SavedInfo.md) + +$MadelineProto->[payments->sendPaymentForm](payments_sendPaymentForm.md)(\['msg_id' => [int](../types/int.md), 'requested_info_id' => [string](../types/string.md), 'shipping_option_id' => [string](../types/string.md), 'credentials' => [InputPaymentCredentials](../types/InputPaymentCredentials.md), \]) === [$payments\_PaymentResult](../types/payments_PaymentResult.md) + +$MadelineProto->[payments->validateRequestedInfo](payments_validateRequestedInfo.md)(\['save' => [Bool](../types/Bool.md), 'msg_id' => [int](../types/int.md), 'info' => [PaymentRequestedInfo](../types/PaymentRequestedInfo.md), \]) === [$payments\_ValidatedRequestedInfo](../types/payments_ValidatedRequestedInfo.md) + +*** +

$MadelineProto->[phone->acceptCall](phone_acceptCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'g_b' => [bytes](../types/bytes.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) + +$MadelineProto->[phone->confirmCall](phone_confirmCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'g_a' => [bytes](../types/bytes.md), 'key_fingerprint' => [long](../types/long.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) + +$MadelineProto->[phone->discardCall](phone_discardCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'duration' => [int](../types/int.md), 'reason' => [PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md), 'connection_id' => [long](../types/long.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[phone->getCallConfig](phone_getCallConfig.md)(\[\]) === [$DataJSON](../types/DataJSON.md) + +$MadelineProto->[phone->receivedCall](phone_receivedCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[phone->requestCall](phone_requestCall.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a_hash' => [bytes](../types/bytes.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) + +$MadelineProto->[phone->saveCallDebug](phone_saveCallDebug.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'debug' => [DataJSON](../types/DataJSON.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[phone->setCallRating](phone_setCallRating.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'rating' => [int](../types/int.md), 'comment' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +*** +

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) + +$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) + +$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) + +$MadelineProto->[photos->uploadProfilePhoto](photos_uploadProfilePhoto.md)(\['file' => [InputFile](../types/InputFile.md), \]) === [$photos\_Photo](../types/photos_Photo.md) + +*** +

$MadelineProto->[ping](ping.md)(\['ping_id' => [long](../types/long.md), \]) === [$Pong](../types/Pong.md) + +$MadelineProto->[ping_delay_disconnect](ping_delay_disconnect.md)(\['ping_id' => [long](../types/long.md), 'disconnect_delay' => [int](../types/int.md), \]) === [$Pong](../types/Pong.md) + +*** +

$MadelineProto->[req_DH_params](req_DH_params.md)(\['nonce' => [int128](../types/int128.md), 'server_nonce' => [int128](../types/int128.md), 'p' => [string](../types/string.md), 'q' => [string](../types/string.md), 'public_key_fingerprint' => [long](../types/long.md), 'encrypted_data' => [string](../types/string.md), \]) === [$Server\_DH\_Params](../types/Server_DH_Params.md) + +$MadelineProto->[req_pq](req_pq.md)(\['nonce' => [int128](../types/int128.md), \]) === [$ResPQ](../types/ResPQ.md) + +*** +

$MadelineProto->[rpc_drop_answer](rpc_drop_answer.md)(\['req_msg_id' => [long](../types/long.md), \]) === [$RpcDropAnswer](../types/RpcDropAnswer.md) + +*** +

$MadelineProto->[set_client_DH_params](set_client_DH_params.md)(\['nonce' => [int128](../types/int128.md), 'server_nonce' => [int128](../types/int128.md), 'encrypted_data' => [string](../types/string.md), \]) === [$Set\_client\_DH\_params\_answer](../types/Set_client_DH_params_answer.md) + +*** +

$MadelineProto->[stickers->addStickerToSet](stickers_addStickerToSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'sticker' => [InputStickerSetItem](../types/InputStickerSetItem.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +$MadelineProto->[stickers->changeStickerPosition](stickers_changeStickerPosition.md)(\['sticker' => [InputDocument](../types/InputDocument.md), 'position' => [int](../types/int.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +$MadelineProto->[stickers->createStickerSet](stickers_createStickerSet.md)(\['masks' => [Bool](../types/Bool.md), 'user_id' => [InputUser](../types/InputUser.md), 'title' => [string](../types/string.md), 'short_name' => [string](../types/string.md), 'stickers' => \[[InputStickerSetItem](../types/InputStickerSetItem.md)\], \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +$MadelineProto->[stickers->removeStickerFromSet](stickers_removeStickerFromSet.md)(\['sticker' => [InputDocument](../types/InputDocument.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +*** +

$MadelineProto->[updates->getChannelDifference](updates_getChannelDifference.md)(\['force' => [Bool](../types/Bool.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) + +$MadelineProto->[updates->getDifference](updates_getDifference.md)(\['pts' => [int](../types/int.md), 'pts_total_limit' => [int](../types/int.md), 'date' => [int](../types/int.md), 'qts' => [int](../types/int.md), \]) === [$updates\_Difference](../types/updates_Difference.md) + +$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) + +*** +

$MadelineProto->[upload->getCdnFile](upload_getCdnFile.md)(\['file_token' => [bytes](../types/bytes.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$upload\_CdnFile](../types/upload_CdnFile.md) + +$MadelineProto->[upload->getCdnFileHashes](upload_getCdnFileHashes.md)(\['file_token' => [bytes](../types/bytes.md), 'offset' => [int](../types/int.md), \]) === [$Vector\_of\_CdnFileHash](../types/CdnFileHash.md) + +$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) + +$MadelineProto->[upload->getWebFile](upload_getWebFile.md)(\['location' => [InputWebFileLocation](../types/InputWebFileLocation.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$upload\_WebFile](../types/upload_WebFile.md) + +$MadelineProto->[upload->reuploadCdnFile](upload_reuploadCdnFile.md)(\['file_token' => [bytes](../types/bytes.md), 'request_token' => [bytes](../types/bytes.md), \]) === [$Vector\_of\_CdnFileHash](../types/CdnFileHash.md) + +$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) + +$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) + +*** +

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) + +$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) + diff --git a/old_docs/API_docs_v71/methods/auth_cancelCode.md b/old_docs/API_docs_v71/methods/auth_cancelCode.md index 2ad15548..52b85d4c 100644 --- a/old_docs/API_docs_v71/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v71/methods/auth_cancelCode.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->cancelCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v71/methods/auth_checkPhone.md b/old_docs/API_docs_v71/methods/auth_checkPhone.md index 291221de..1826ce63 100644 --- a/old_docs/API_docs_v71/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v71/methods/auth_checkPhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); diff --git a/old_docs/API_docs_v71/methods/auth_dropTempAuthKeys.md b/old_docs/API_docs_v71/methods/auth_dropTempAuthKeys.md index 6474bbb3..5aa98b3b 100644 --- a/old_docs/API_docs_v71/methods/auth_dropTempAuthKeys.md +++ b/old_docs/API_docs_v71/methods/auth_dropTempAuthKeys.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->dropTempAuthKeys(['except_auth_keys' => [long, long], ]); diff --git a/old_docs/API_docs_v71/methods/auth_recoverPassword.md b/old_docs/API_docs_v71/methods/auth_recoverPassword.md index cdc9bd7d..5e37b0f3 100644 --- a/old_docs/API_docs_v71/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v71/methods/auth_recoverPassword.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_Authorization = $MadelineProto->auth->recoverPassword(['code' => 'string', ]); diff --git a/old_docs/API_docs_v71/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v71/methods/auth_requestPasswordRecovery.md index e18c6c93..c69d0c49 100644 --- a/old_docs/API_docs_v71/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v71/methods/auth_requestPasswordRecovery.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_PasswordRecovery = $MadelineProto->auth->requestPasswordRecovery(); diff --git a/old_docs/API_docs_v71/methods/auth_resendCode.md b/old_docs/API_docs_v71/methods/auth_resendCode.md index de437402..253480a3 100644 --- a/old_docs/API_docs_v71/methods/auth_resendCode.md +++ b/old_docs/API_docs_v71/methods/auth_resendCode.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_SentCode = $MadelineProto->auth->resendCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v71/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v71/methods/auth_resetAuthorizations.md index 47feea16..a46c880d 100644 --- a/old_docs/API_docs_v71/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v71/methods/auth_resetAuthorizations.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); diff --git a/old_docs/API_docs_v71/methods/auth_sendInvites.md b/old_docs/API_docs_v71/methods/auth_sendInvites.md index be32fe6b..9b88b4a3 100644 --- a/old_docs/API_docs_v71/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v71/methods/auth_sendInvites.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); diff --git a/old_docs/API_docs_v71/methods/bots_answerWebhookJSONQuery.md b/old_docs/API_docs_v71/methods/bots_answerWebhookJSONQuery.md index 61056bb4..40cb0477 100644 --- a/old_docs/API_docs_v71/methods/bots_answerWebhookJSONQuery.md +++ b/old_docs/API_docs_v71/methods/bots_answerWebhookJSONQuery.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->bots->answerWebhookJSONQuery(['query_id' => long, 'data' => DataJSON, ]); diff --git a/old_docs/API_docs_v71/methods/bots_sendCustomRequest.md b/old_docs/API_docs_v71/methods/bots_sendCustomRequest.md index fc8e764d..5a7f4e86 100644 --- a/old_docs/API_docs_v71/methods/bots_sendCustomRequest.md +++ b/old_docs/API_docs_v71/methods/bots_sendCustomRequest.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $DataJSON = $MadelineProto->bots->sendCustomRequest(['custom_method' => 'string', 'params' => DataJSON, ]); diff --git a/old_docs/API_docs_v71/methods/channels_checkUsername.md b/old_docs/API_docs_v71/methods/channels_checkUsername.md index 7bc7c245..7e3d5a89 100644 --- a/old_docs/API_docs_v71/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v71/methods/channels_checkUsername.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->checkUsername(['channel' => InputChannel, 'username' => 'string', ]); diff --git a/old_docs/API_docs_v71/methods/channels_createChannel.md b/old_docs/API_docs_v71/methods/channels_createChannel.md index 1305e4fb..a5ddc379 100644 --- a/old_docs/API_docs_v71/methods/channels_createChannel.md +++ b/old_docs/API_docs_v71/methods/channels_createChannel.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->createChannel(['broadcast' => Bool, 'megagroup' => Bool, 'title' => 'string', 'about' => 'string', ]); diff --git a/old_docs/API_docs_v71/methods/channels_deleteChannel.md b/old_docs/API_docs_v71/methods/channels_deleteChannel.md index e660d25c..69dad9a3 100644 --- a/old_docs/API_docs_v71/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v71/methods/channels_deleteChannel.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->deleteChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v71/methods/channels_deleteMessages.md b/old_docs/API_docs_v71/methods/channels_deleteMessages.md index fb9d3cc2..b12270b3 100644 --- a/old_docs/API_docs_v71/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v71/methods/channels_deleteMessages.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v71/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v71/methods/channels_deleteUserHistory.md index fbe34341..75f531bb 100644 --- a/old_docs/API_docs_v71/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v71/methods/channels_deleteUserHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->channels->deleteUserHistory(['channel' => InputChannel, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v71/methods/channels_editAbout.md b/old_docs/API_docs_v71/methods/channels_editAbout.md index 8908f29e..67521065 100644 --- a/old_docs/API_docs_v71/methods/channels_editAbout.md +++ b/old_docs/API_docs_v71/methods/channels_editAbout.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->editAbout(['channel' => InputChannel, 'about' => 'string', ]); diff --git a/old_docs/API_docs_v71/methods/channels_editAdmin.md b/old_docs/API_docs_v71/methods/channels_editAdmin.md index dcec7d2f..7cecbd64 100644 --- a/old_docs/API_docs_v71/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v71/methods/channels_editAdmin.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editAdmin(['channel' => InputChannel, 'user_id' => InputUser, 'admin_rights' => ChannelAdminRights, ]); diff --git a/old_docs/API_docs_v71/methods/channels_editBanned.md b/old_docs/API_docs_v71/methods/channels_editBanned.md index 9859bcae..ca9f2596 100644 --- a/old_docs/API_docs_v71/methods/channels_editBanned.md +++ b/old_docs/API_docs_v71/methods/channels_editBanned.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editBanned(['channel' => InputChannel, 'user_id' => InputUser, 'banned_rights' => ChannelBannedRights, ]); diff --git a/old_docs/API_docs_v71/methods/channels_editPhoto.md b/old_docs/API_docs_v71/methods/channels_editPhoto.md index 9ccd864f..c854c64a 100644 --- a/old_docs/API_docs_v71/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v71/methods/channels_editPhoto.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editPhoto(['channel' => InputChannel, 'photo' => InputChatPhoto, ]); diff --git a/old_docs/API_docs_v71/methods/channels_editTitle.md b/old_docs/API_docs_v71/methods/channels_editTitle.md index b1024faf..9bc6773e 100644 --- a/old_docs/API_docs_v71/methods/channels_editTitle.md +++ b/old_docs/API_docs_v71/methods/channels_editTitle.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editTitle(['channel' => InputChannel, 'title' => 'string', ]); diff --git a/old_docs/API_docs_v71/methods/channels_exportInvite.md b/old_docs/API_docs_v71/methods/channels_exportInvite.md index f0c737d5..ca65dcc8 100644 --- a/old_docs/API_docs_v71/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v71/methods/channels_exportInvite.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedChatInvite = $MadelineProto->channels->exportInvite(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v71/methods/channels_exportMessageLink.md b/old_docs/API_docs_v71/methods/channels_exportMessageLink.md index f910b594..b4a3c645 100644 --- a/old_docs/API_docs_v71/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v71/methods/channels_exportMessageLink.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedMessageLink = $MadelineProto->channels->exportMessageLink(['channel' => InputChannel, 'id' => int, ]); diff --git a/old_docs/API_docs_v71/methods/channels_getAdminLog.md b/old_docs/API_docs_v71/methods/channels_getAdminLog.md index 8aa33d23..4a419778 100644 --- a/old_docs/API_docs_v71/methods/channels_getAdminLog.md +++ b/old_docs/API_docs_v71/methods/channels_getAdminLog.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $channels_AdminLogResults = $MadelineProto->channels->getAdminLog(['channel' => InputChannel, 'q' => 'string', 'events_filter' => ChannelAdminLogEventsFilter, 'admins' => [InputUser, InputUser], 'max_id' => long, 'min_id' => long, 'limit' => int, ]); diff --git a/old_docs/API_docs_v71/methods/channels_getAdminedPublicChannels.md b/old_docs/API_docs_v71/methods/channels_getAdminedPublicChannels.md index 9646f529..febc44f9 100644 --- a/old_docs/API_docs_v71/methods/channels_getAdminedPublicChannels.md +++ b/old_docs/API_docs_v71/methods/channels_getAdminedPublicChannels.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->channels->getAdminedPublicChannels(); diff --git a/old_docs/API_docs_v71/methods/channels_getChannels.md b/old_docs/API_docs_v71/methods/channels_getChannels.md index 9cd9e798..af22556f 100644 --- a/old_docs/API_docs_v71/methods/channels_getChannels.md +++ b/old_docs/API_docs_v71/methods/channels_getChannels.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel, InputChannel], ]); diff --git a/old_docs/API_docs_v71/methods/channels_getMessages.md b/old_docs/API_docs_v71/methods/channels_getMessages.md index cc944fe5..eda13d0b 100644 --- a/old_docs/API_docs_v71/methods/channels_getMessages.md +++ b/old_docs/API_docs_v71/methods/channels_getMessages.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v71/methods/channels_getParticipant.md b/old_docs/API_docs_v71/methods/channels_getParticipant.md index db9b1fc6..be5fe96a 100644 --- a/old_docs/API_docs_v71/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v71/methods/channels_getParticipant.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $channels_ChannelParticipant = $MadelineProto->channels->getParticipant(['channel' => InputChannel, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v71/methods/channels_getParticipants.md b/old_docs/API_docs_v71/methods/channels_getParticipants.md index 96662466..6a27016b 100644 --- a/old_docs/API_docs_v71/methods/channels_getParticipants.md +++ b/old_docs/API_docs_v71/methods/channels_getParticipants.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $channels_ChannelParticipants = $MadelineProto->channels->getParticipants(['channel' => InputChannel, 'filter' => ChannelParticipantsFilter, 'offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v71/methods/channels_inviteToChannel.md b/old_docs/API_docs_v71/methods/channels_inviteToChannel.md index 676f800c..e7d12db7 100644 --- a/old_docs/API_docs_v71/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v71/methods/channels_inviteToChannel.md @@ -52,12 +52,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v71/methods/channels_joinChannel.md b/old_docs/API_docs_v71/methods/channels_joinChannel.md index 721f707c..3ac2b326 100644 --- a/old_docs/API_docs_v71/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v71/methods/channels_joinChannel.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->joinChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v71/methods/channels_leaveChannel.md b/old_docs/API_docs_v71/methods/channels_leaveChannel.md index 7f02e08c..95b60a90 100644 --- a/old_docs/API_docs_v71/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v71/methods/channels_leaveChannel.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->leaveChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v71/methods/channels_readHistory.md b/old_docs/API_docs_v71/methods/channels_readHistory.md index cca891f0..c6b14541 100644 --- a/old_docs/API_docs_v71/methods/channels_readHistory.md +++ b/old_docs/API_docs_v71/methods/channels_readHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->readHistory(['channel' => InputChannel, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v71/methods/channels_readMessageContents.md b/old_docs/API_docs_v71/methods/channels_readMessageContents.md index 861844c4..aa9893c2 100644 --- a/old_docs/API_docs_v71/methods/channels_readMessageContents.md +++ b/old_docs/API_docs_v71/methods/channels_readMessageContents.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->readMessageContents(['channel' => InputChannel, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v71/methods/channels_reportSpam.md b/old_docs/API_docs_v71/methods/channels_reportSpam.md index 09af14e0..ca5c28f5 100644 --- a/old_docs/API_docs_v71/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v71/methods/channels_reportSpam.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v71/methods/channels_setStickers.md b/old_docs/API_docs_v71/methods/channels_setStickers.md index 9ed5bd55..d9be32a4 100644 --- a/old_docs/API_docs_v71/methods/channels_setStickers.md +++ b/old_docs/API_docs_v71/methods/channels_setStickers.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->setStickers(['channel' => InputChannel, 'stickerset' => InputStickerSet, ]); diff --git a/old_docs/API_docs_v71/methods/channels_toggleInvites.md b/old_docs/API_docs_v71/methods/channels_toggleInvites.md index 5b541f67..e9e6450d 100644 --- a/old_docs/API_docs_v71/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v71/methods/channels_toggleInvites.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->toggleInvites(['channel' => InputChannel, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v71/methods/channels_toggleSignatures.md b/old_docs/API_docs_v71/methods/channels_toggleSignatures.md index f233a8e1..36d1eccb 100644 --- a/old_docs/API_docs_v71/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v71/methods/channels_toggleSignatures.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->toggleSignatures(['channel' => InputChannel, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v71/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v71/methods/channels_updatePinnedMessage.md index f06d1f0f..f8d10ece 100644 --- a/old_docs/API_docs_v71/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v71/methods/channels_updatePinnedMessage.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->updatePinnedMessage(['silent' => Bool, 'channel' => InputChannel, 'id' => int, ]); diff --git a/old_docs/API_docs_v71/methods/channels_updateUsername.md b/old_docs/API_docs_v71/methods/channels_updateUsername.md index ad34490a..2093b6ce 100644 --- a/old_docs/API_docs_v71/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v71/methods/channels_updateUsername.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->updateUsername(['channel' => InputChannel, 'username' => 'string', ]); diff --git a/old_docs/API_docs_v71/methods/contacts_block.md b/old_docs/API_docs_v71/methods/contacts_block.md index d0729d30..e592cace 100644 --- a/old_docs/API_docs_v71/methods/contacts_block.md +++ b/old_docs/API_docs_v71/methods/contacts_block.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v71/methods/contacts_deleteContact.md b/old_docs/API_docs_v71/methods/contacts_deleteContact.md index b8c17544..1a3f2a27 100644 --- a/old_docs/API_docs_v71/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v71/methods/contacts_deleteContact.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v71/methods/contacts_deleteContacts.md b/old_docs/API_docs_v71/methods/contacts_deleteContacts.md index 64c69460..f6627599 100644 --- a/old_docs/API_docs_v71/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v71/methods/contacts_deleteContacts.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v71/methods/contacts_exportCard.md b/old_docs/API_docs_v71/methods/contacts_exportCard.md index b05f57ce..1d2129f3 100644 --- a/old_docs/API_docs_v71/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v71/methods/contacts_exportCard.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); diff --git a/old_docs/API_docs_v71/methods/contacts_getBlocked.md b/old_docs/API_docs_v71/methods/contacts_getBlocked.md index d7d8c5cc..44d24aba 100644 --- a/old_docs/API_docs_v71/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v71/methods/contacts_getBlocked.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v71/methods/contacts_getContacts.md b/old_docs/API_docs_v71/methods/contacts_getContacts.md index 3e06bea4..589572dc 100644 --- a/old_docs/API_docs_v71/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v71/methods/contacts_getContacts.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => int, ]); diff --git a/old_docs/API_docs_v71/methods/contacts_getStatuses.md b/old_docs/API_docs_v71/methods/contacts_getStatuses.md index b927a140..5cef3084 100644 --- a/old_docs/API_docs_v71/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v71/methods/contacts_getStatuses.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); diff --git a/old_docs/API_docs_v71/methods/contacts_getTopPeers.md b/old_docs/API_docs_v71/methods/contacts_getTopPeers.md index 226d3aa0..4958e6b2 100644 --- a/old_docs/API_docs_v71/methods/contacts_getTopPeers.md +++ b/old_docs/API_docs_v71/methods/contacts_getTopPeers.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_TopPeers = $MadelineProto->contacts->getTopPeers(['correspondents' => Bool, 'bots_pm' => Bool, 'bots_inline' => Bool, 'phone_calls' => Bool, 'groups' => Bool, 'channels' => Bool, 'offset' => int, 'limit' => int, 'hash' => int, ]); diff --git a/old_docs/API_docs_v71/methods/contacts_importCard.md b/old_docs/API_docs_v71/methods/contacts_importCard.md index 81a1e138..89c96657 100644 --- a/old_docs/API_docs_v71/methods/contacts_importCard.md +++ b/old_docs/API_docs_v71/methods/contacts_importCard.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); diff --git a/old_docs/API_docs_v71/methods/contacts_importContacts.md b/old_docs/API_docs_v71/methods/contacts_importContacts.md index 16ecd74b..ccc0eada 100644 --- a/old_docs/API_docs_v71/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v71/methods/contacts_importContacts.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], ]); diff --git a/old_docs/API_docs_v71/methods/contacts_resetSaved.md b/old_docs/API_docs_v71/methods/contacts_resetSaved.md index 50034ace..d6d9d95d 100644 --- a/old_docs/API_docs_v71/methods/contacts_resetSaved.md +++ b/old_docs/API_docs_v71/methods/contacts_resetSaved.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->resetSaved(); diff --git a/old_docs/API_docs_v71/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v71/methods/contacts_resetTopPeerRating.md index 4b485921..4b5e96f1 100644 --- a/old_docs/API_docs_v71/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v71/methods/contacts_resetTopPeerRating.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->resetTopPeerRating(['category' => TopPeerCategory, 'peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v71/methods/contacts_search.md b/old_docs/API_docs_v71/methods/contacts_search.md index 68daecd6..64ff748e 100644 --- a/old_docs/API_docs_v71/methods/contacts_search.md +++ b/old_docs/API_docs_v71/methods/contacts_search.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); diff --git a/old_docs/API_docs_v71/methods/contacts_unblock.md b/old_docs/API_docs_v71/methods/contacts_unblock.md index f7d151b9..ec72ae2d 100644 --- a/old_docs/API_docs_v71/methods/contacts_unblock.md +++ b/old_docs/API_docs_v71/methods/contacts_unblock.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v71/methods/contest_saveDeveloperInfo.md b/old_docs/API_docs_v71/methods/contest_saveDeveloperInfo.md index 3e40c0f3..5d82a4be 100644 --- a/old_docs/API_docs_v71/methods/contest_saveDeveloperInfo.md +++ b/old_docs/API_docs_v71/methods/contest_saveDeveloperInfo.md @@ -33,12 +33,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contest->saveDeveloperInfo(['vk_id' => int, 'name' => 'string', 'phone_number' => 'string', 'age' => int, 'city' => 'string', ]); diff --git a/old_docs/API_docs_v71/methods/destroy_auth_key.md b/old_docs/API_docs_v71/methods/destroy_auth_key.md index eb6ba218..dbcc7b23 100644 --- a/old_docs/API_docs_v71/methods/destroy_auth_key.md +++ b/old_docs/API_docs_v71/methods/destroy_auth_key.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $DestroyAuthKeyRes = $MadelineProto->destroy_auth_key(); diff --git a/old_docs/API_docs_v71/methods/destroy_session.md b/old_docs/API_docs_v71/methods/destroy_session.md index 326e8d8e..b74fbd11 100644 --- a/old_docs/API_docs_v71/methods/destroy_session.md +++ b/old_docs/API_docs_v71/methods/destroy_session.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $DestroySessionRes = $MadelineProto->destroy_session(['session_id' => long, ]); diff --git a/old_docs/API_docs_v71/methods/get_future_salts.md b/old_docs/API_docs_v71/methods/get_future_salts.md index 9d4be95e..e8451015 100644 --- a/old_docs/API_docs_v71/methods/get_future_salts.md +++ b/old_docs/API_docs_v71/methods/get_future_salts.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $FutureSalts = $MadelineProto->get_future_salts(['num' => int, ]); diff --git a/old_docs/API_docs_v71/methods/help_getAppChangelog.md b/old_docs/API_docs_v71/methods/help_getAppChangelog.md index 477df2f8..eda473a6 100644 --- a/old_docs/API_docs_v71/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v71/methods/help_getAppChangelog.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->help->getAppChangelog(['prev_app_version' => 'string', ]); diff --git a/old_docs/API_docs_v71/methods/help_getAppUpdate.md b/old_docs/API_docs_v71/methods/help_getAppUpdate.md index b88906ae..c6a42922 100644 --- a/old_docs/API_docs_v71/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v71/methods/help_getAppUpdate.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(); diff --git a/old_docs/API_docs_v71/methods/help_getCdnConfig.md b/old_docs/API_docs_v71/methods/help_getCdnConfig.md index 809ea1fb..b98949ed 100644 --- a/old_docs/API_docs_v71/methods/help_getCdnConfig.md +++ b/old_docs/API_docs_v71/methods/help_getCdnConfig.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $CdnConfig = $MadelineProto->help->getCdnConfig(); diff --git a/old_docs/API_docs_v71/methods/help_getConfig.md b/old_docs/API_docs_v71/methods/help_getConfig.md index 16e25c68..ca4bfc25 100644 --- a/old_docs/API_docs_v71/methods/help_getConfig.md +++ b/old_docs/API_docs_v71/methods/help_getConfig.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); diff --git a/old_docs/API_docs_v71/methods/help_getInviteText.md b/old_docs/API_docs_v71/methods/help_getInviteText.md index 6b226bff..7311b7fb 100644 --- a/old_docs/API_docs_v71/methods/help_getInviteText.md +++ b/old_docs/API_docs_v71/methods/help_getInviteText.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(); diff --git a/old_docs/API_docs_v71/methods/help_getNearestDc.md b/old_docs/API_docs_v71/methods/help_getNearestDc.md index 35a8bf91..458f60ab 100644 --- a/old_docs/API_docs_v71/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v71/methods/help_getNearestDc.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); diff --git a/old_docs/API_docs_v71/methods/help_getSupport.md b/old_docs/API_docs_v71/methods/help_getSupport.md index a5bab0f2..9ee25b00 100644 --- a/old_docs/API_docs_v71/methods/help_getSupport.md +++ b/old_docs/API_docs_v71/methods/help_getSupport.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); diff --git a/old_docs/API_docs_v71/methods/help_getTermsOfService.md b/old_docs/API_docs_v71/methods/help_getTermsOfService.md index 487cd83a..4dea9f79 100644 --- a/old_docs/API_docs_v71/methods/help_getTermsOfService.md +++ b/old_docs/API_docs_v71/methods/help_getTermsOfService.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_TermsOfService = $MadelineProto->help->getTermsOfService(); diff --git a/old_docs/API_docs_v71/methods/help_saveAppLog.md b/old_docs/API_docs_v71/methods/help_saveAppLog.md index 0165b6e3..a7884c47 100644 --- a/old_docs/API_docs_v71/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v71/methods/help_saveAppLog.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); diff --git a/old_docs/API_docs_v71/methods/help_setBotUpdatesStatus.md b/old_docs/API_docs_v71/methods/help_setBotUpdatesStatus.md index ff314b5c..a1a3ab1b 100644 --- a/old_docs/API_docs_v71/methods/help_setBotUpdatesStatus.md +++ b/old_docs/API_docs_v71/methods/help_setBotUpdatesStatus.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->help->setBotUpdatesStatus(['pending_updates_count' => int, 'message' => 'string', ]); diff --git a/old_docs/API_docs_v71/methods/initConnection.md b/old_docs/API_docs_v71/methods/initConnection.md index d1d725e7..c66aa8b1 100644 --- a/old_docs/API_docs_v71/methods/initConnection.md +++ b/old_docs/API_docs_v71/methods/initConnection.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->initConnection(['api_id' => int, 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'system_lang_code' => 'string', 'lang_pack' => 'string', 'lang_code' => 'string', 'query' => !X, ]); diff --git a/old_docs/API_docs_v71/methods/invokeAfterMsg.md b/old_docs/API_docs_v71/methods/invokeAfterMsg.md index e33a2c93..8e953e78 100644 --- a/old_docs/API_docs_v71/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v71/methods/invokeAfterMsg.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); diff --git a/old_docs/API_docs_v71/methods/invokeAfterMsgs.md b/old_docs/API_docs_v71/methods/invokeAfterMsgs.md index 3150a613..bc8a83b7 100644 --- a/old_docs/API_docs_v71/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v71/methods/invokeAfterMsgs.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); diff --git a/old_docs/API_docs_v71/methods/invokeWithLayer.md b/old_docs/API_docs_v71/methods/invokeWithLayer.md index 71d02abb..8a0c4e79 100644 --- a/old_docs/API_docs_v71/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v71/methods/invokeWithLayer.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); diff --git a/old_docs/API_docs_v71/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v71/methods/invokeWithoutUpdates.md index 2bab236a..2d90a776 100644 --- a/old_docs/API_docs_v71/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v71/methods/invokeWithoutUpdates.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeWithoutUpdates(['query' => !X, ]); diff --git a/old_docs/API_docs_v71/methods/langpack_getDifference.md b/old_docs/API_docs_v71/methods/langpack_getDifference.md index 0eed6475..0a6512e4 100644 --- a/old_docs/API_docs_v71/methods/langpack_getDifference.md +++ b/old_docs/API_docs_v71/methods/langpack_getDifference.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $LangPackDifference = $MadelineProto->langpack->getDifference(['from_version' => int, ]); diff --git a/old_docs/API_docs_v71/methods/langpack_getLangPack.md b/old_docs/API_docs_v71/methods/langpack_getLangPack.md index 4f26fd7a..45a9ca47 100644 --- a/old_docs/API_docs_v71/methods/langpack_getLangPack.md +++ b/old_docs/API_docs_v71/methods/langpack_getLangPack.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $LangPackDifference = $MadelineProto->langpack->getLangPack(['lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v71/methods/langpack_getLanguages.md b/old_docs/API_docs_v71/methods/langpack_getLanguages.md index 6e8dab41..b573a5eb 100644 --- a/old_docs/API_docs_v71/methods/langpack_getLanguages.md +++ b/old_docs/API_docs_v71/methods/langpack_getLanguages.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_LangPackLanguage = $MadelineProto->langpack->getLanguages(); diff --git a/old_docs/API_docs_v71/methods/langpack_getStrings.md b/old_docs/API_docs_v71/methods/langpack_getStrings.md index 40612baf..841b02db 100644 --- a/old_docs/API_docs_v71/methods/langpack_getStrings.md +++ b/old_docs/API_docs_v71/methods/langpack_getStrings.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_LangPackString = $MadelineProto->langpack->getStrings(['lang_code' => 'string', 'keys' => ['string', 'string'], ]); diff --git a/old_docs/API_docs_v71/methods/messages_addChatUser.md b/old_docs/API_docs_v71/methods/messages_addChatUser.md index 3e4c5ccc..c6ef275f 100644 --- a/old_docs/API_docs_v71/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v71/methods/messages_addChatUser.md @@ -46,12 +46,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); diff --git a/old_docs/API_docs_v71/methods/messages_checkChatInvite.md b/old_docs/API_docs_v71/methods/messages_checkChatInvite.md index de1d9ff4..cea63313 100644 --- a/old_docs/API_docs_v71/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v71/methods/messages_checkChatInvite.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ChatInvite = $MadelineProto->messages->checkChatInvite(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v71/methods/messages_clearRecentStickers.md b/old_docs/API_docs_v71/methods/messages_clearRecentStickers.md index 9c1b3754..1d6ec8c9 100644 --- a/old_docs/API_docs_v71/methods/messages_clearRecentStickers.md +++ b/old_docs/API_docs_v71/methods/messages_clearRecentStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->clearRecentStickers(['attached' => Bool, ]); diff --git a/old_docs/API_docs_v71/methods/messages_createChat.md b/old_docs/API_docs_v71/methods/messages_createChat.md index 68c0263a..966f58dc 100644 --- a/old_docs/API_docs_v71/methods/messages_createChat.md +++ b/old_docs/API_docs_v71/methods/messages_createChat.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); diff --git a/old_docs/API_docs_v71/methods/messages_deleteChatUser.md b/old_docs/API_docs_v71/methods/messages_deleteChatUser.md index 0a6830de..9a9227ba 100644 --- a/old_docs/API_docs_v71/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v71/methods/messages_deleteChatUser.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v71/methods/messages_deleteHistory.md b/old_docs/API_docs_v71/methods/messages_deleteHistory.md index e44433c1..45e9890d 100644 --- a/old_docs/API_docs_v71/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v71/methods/messages_deleteHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['just_clear' => Bool, 'peer' => InputPeer, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v71/methods/messages_deleteMessages.md b/old_docs/API_docs_v71/methods/messages_deleteMessages.md index 0da41180..c8670444 100644 --- a/old_docs/API_docs_v71/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v71/methods/messages_deleteMessages.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['revoke' => Bool, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v71/methods/messages_editChatAdmin.md b/old_docs/API_docs_v71/methods/messages_editChatAdmin.md index 7916f8b1..5bba0559 100644 --- a/old_docs/API_docs_v71/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v71/methods/messages_editChatAdmin.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]); diff --git a/old_docs/API_docs_v71/methods/messages_editChatPhoto.md b/old_docs/API_docs_v71/methods/messages_editChatPhoto.md index 122913c4..5827a5cc 100644 --- a/old_docs/API_docs_v71/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v71/methods/messages_editChatPhoto.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); diff --git a/old_docs/API_docs_v71/methods/messages_editChatTitle.md b/old_docs/API_docs_v71/methods/messages_editChatTitle.md index 3a1e974b..2e69d790 100644 --- a/old_docs/API_docs_v71/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v71/methods/messages_editChatTitle.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); diff --git a/old_docs/API_docs_v71/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v71/methods/messages_editInlineBotMessage.md index 2237fb20..73c8a2c4 100644 --- a/old_docs/API_docs_v71/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v71/methods/messages_editInlineBotMessage.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->editInlineBotMessage(['no_webpage' => Bool, 'id' => InputBotInlineMessageID, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v71/methods/messages_editMessage.md b/old_docs/API_docs_v71/methods/messages_editMessage.md index 177438a5..ad639325 100644 --- a/old_docs/API_docs_v71/methods/messages_editMessage.md +++ b/old_docs/API_docs_v71/methods/messages_editMessage.md @@ -51,12 +51,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editMessage(['no_webpage' => Bool, 'peer' => InputPeer, 'id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v71/methods/messages_exportChatInvite.md b/old_docs/API_docs_v71/methods/messages_exportChatInvite.md index 98685d96..ec80e207 100644 --- a/old_docs/API_docs_v71/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v71/methods/messages_exportChatInvite.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]); diff --git a/old_docs/API_docs_v71/methods/messages_faveSticker.md b/old_docs/API_docs_v71/methods/messages_faveSticker.md index c1ffb16a..ee1eb66a 100644 --- a/old_docs/API_docs_v71/methods/messages_faveSticker.md +++ b/old_docs/API_docs_v71/methods/messages_faveSticker.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->faveSticker(['id' => InputDocument, 'unfave' => Bool, ]); diff --git a/old_docs/API_docs_v71/methods/messages_forwardMessage.md b/old_docs/API_docs_v71/methods/messages_forwardMessage.md index 45b7a07f..d6916437 100644 --- a/old_docs/API_docs_v71/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v71/methods/messages_forwardMessage.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); diff --git a/old_docs/API_docs_v71/methods/messages_forwardMessages.md b/old_docs/API_docs_v71/methods/messages_forwardMessages.md index efe58e67..b99e1d31 100644 --- a/old_docs/API_docs_v71/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v71/methods/messages_forwardMessages.md @@ -62,12 +62,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessages(['silent' => Bool, 'background' => Bool, 'with_my_score' => Bool, 'from_peer' => InputPeer, 'id' => [int, int], 'to_peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v71/methods/messages_getAllChats.md b/old_docs/API_docs_v71/methods/messages_getAllChats.md index 127456e4..513fc06f 100644 --- a/old_docs/API_docs_v71/methods/messages_getAllChats.md +++ b/old_docs/API_docs_v71/methods/messages_getAllChats.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getAllChats(['except_ids' => [int, int], ]); diff --git a/old_docs/API_docs_v71/methods/messages_getAllDrafts.md b/old_docs/API_docs_v71/methods/messages_getAllDrafts.md index 2c0ecd42..43a95bb2 100644 --- a/old_docs/API_docs_v71/methods/messages_getAllDrafts.md +++ b/old_docs/API_docs_v71/methods/messages_getAllDrafts.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->getAllDrafts(); diff --git a/old_docs/API_docs_v71/methods/messages_getAllStickers.md b/old_docs/API_docs_v71/methods/messages_getAllStickers.md index 16fdba6c..2ba37a91 100644 --- a/old_docs/API_docs_v71/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v71/methods/messages_getAllStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => int, ]); diff --git a/old_docs/API_docs_v71/methods/messages_getArchivedStickers.md b/old_docs/API_docs_v71/methods/messages_getArchivedStickers.md index f037e1bc..ee36b542 100644 --- a/old_docs/API_docs_v71/methods/messages_getArchivedStickers.md +++ b/old_docs/API_docs_v71/methods/messages_getArchivedStickers.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_ArchivedStickers = $MadelineProto->messages->getArchivedStickers(['masks' => Bool, 'offset_id' => long, 'limit' => int, ]); diff --git a/old_docs/API_docs_v71/methods/messages_getAttachedStickers.md b/old_docs/API_docs_v71/methods/messages_getAttachedStickers.md index 890680cd..9f8a66c5 100644 --- a/old_docs/API_docs_v71/methods/messages_getAttachedStickers.md +++ b/old_docs/API_docs_v71/methods/messages_getAttachedStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_StickerSetCovered = $MadelineProto->messages->getAttachedStickers(['media' => InputStickeredMedia, ]); diff --git a/old_docs/API_docs_v71/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v71/methods/messages_getBotCallbackAnswer.md index 09c283f5..0136227f 100644 --- a/old_docs/API_docs_v71/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v71/methods/messages_getBotCallbackAnswer.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_BotCallbackAnswer = $MadelineProto->messages->getBotCallbackAnswer(['game' => Bool, 'peer' => InputPeer, 'msg_id' => int, 'data' => 'bytes', ]); diff --git a/old_docs/API_docs_v71/methods/messages_getChats.md b/old_docs/API_docs_v71/methods/messages_getChats.md index 290438a1..e84c7193 100644 --- a/old_docs/API_docs_v71/methods/messages_getChats.md +++ b/old_docs/API_docs_v71/methods/messages_getChats.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v71/methods/messages_getCommonChats.md b/old_docs/API_docs_v71/methods/messages_getCommonChats.md index e6eca283..15ed6713 100644 --- a/old_docs/API_docs_v71/methods/messages_getCommonChats.md +++ b/old_docs/API_docs_v71/methods/messages_getCommonChats.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getCommonChats(['user_id' => InputUser, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v71/methods/messages_getDialogs.md b/old_docs/API_docs_v71/methods/messages_getDialogs.md index e100228b..53f9ac62 100644 --- a/old_docs/API_docs_v71/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v71/methods/messages_getDialogs.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['exclude_pinned' => Bool, 'offset_date' => int, 'offset_id' => int, 'offset_peer' => InputPeer, 'limit' => int, ]); diff --git a/old_docs/API_docs_v71/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v71/methods/messages_getDocumentByHash.md index 1af5bad4..ad8e22be 100644 --- a/old_docs/API_docs_v71/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v71/methods/messages_getDocumentByHash.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Document = $MadelineProto->messages->getDocumentByHash(['sha256' => 'bytes', 'size' => int, 'mime_type' => 'string', ]); diff --git a/old_docs/API_docs_v71/methods/messages_getFavedStickers.md b/old_docs/API_docs_v71/methods/messages_getFavedStickers.md index 1be542be..8ef3e565 100644 --- a/old_docs/API_docs_v71/methods/messages_getFavedStickers.md +++ b/old_docs/API_docs_v71/methods/messages_getFavedStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_FavedStickers = $MadelineProto->messages->getFavedStickers(['hash' => int, ]); diff --git a/old_docs/API_docs_v71/methods/messages_getFeaturedStickers.md b/old_docs/API_docs_v71/methods/messages_getFeaturedStickers.md index 512f2e85..8e49e1ef 100644 --- a/old_docs/API_docs_v71/methods/messages_getFeaturedStickers.md +++ b/old_docs/API_docs_v71/methods/messages_getFeaturedStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_FeaturedStickers = $MadelineProto->messages->getFeaturedStickers(['hash' => int, ]); diff --git a/old_docs/API_docs_v71/methods/messages_getGameHighScores.md b/old_docs/API_docs_v71/methods/messages_getGameHighScores.md index 5137baea..113e4647 100644 --- a/old_docs/API_docs_v71/methods/messages_getGameHighScores.md +++ b/old_docs/API_docs_v71/methods/messages_getGameHighScores.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_HighScores = $MadelineProto->messages->getGameHighScores(['peer' => InputPeer, 'id' => int, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v71/methods/messages_getHistory.md b/old_docs/API_docs_v71/methods/messages_getHistory.md index dfae66e6..851d2680 100644 --- a/old_docs/API_docs_v71/methods/messages_getHistory.md +++ b/old_docs/API_docs_v71/methods/messages_getHistory.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getHistory(['peer' => InputPeer, 'offset_id' => int, 'offset_date' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); diff --git a/old_docs/API_docs_v71/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v71/methods/messages_getInlineBotResults.md index 8ab5bf78..4d86caf5 100644 --- a/old_docs/API_docs_v71/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v71/methods/messages_getInlineBotResults.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_BotResults = $MadelineProto->messages->getInlineBotResults(['bot' => InputUser, 'peer' => InputPeer, 'geo_point' => InputGeoPoint, 'query' => 'string', 'offset' => 'string', ]); diff --git a/old_docs/API_docs_v71/methods/messages_getInlineGameHighScores.md b/old_docs/API_docs_v71/methods/messages_getInlineGameHighScores.md index 790bfdd9..d5a80005 100644 --- a/old_docs/API_docs_v71/methods/messages_getInlineGameHighScores.md +++ b/old_docs/API_docs_v71/methods/messages_getInlineGameHighScores.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_HighScores = $MadelineProto->messages->getInlineGameHighScores(['id' => InputBotInlineMessageID, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v71/methods/messages_getMaskStickers.md b/old_docs/API_docs_v71/methods/messages_getMaskStickers.md index f4ed9411..70e2e6d4 100644 --- a/old_docs/API_docs_v71/methods/messages_getMaskStickers.md +++ b/old_docs/API_docs_v71/methods/messages_getMaskStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getMaskStickers(['hash' => int, ]); diff --git a/old_docs/API_docs_v71/methods/messages_getMessageEditData.md b/old_docs/API_docs_v71/methods/messages_getMessageEditData.md index 12e71bee..34f8534f 100644 --- a/old_docs/API_docs_v71/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v71/methods/messages_getMessageEditData.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_MessageEditData = $MadelineProto->messages->getMessageEditData(['peer' => InputPeer, 'id' => int, ]); diff --git a/old_docs/API_docs_v71/methods/messages_getMessages.md b/old_docs/API_docs_v71/methods/messages_getMessages.md index 86d1da8a..d538cb5f 100644 --- a/old_docs/API_docs_v71/methods/messages_getMessages.md +++ b/old_docs/API_docs_v71/methods/messages_getMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v71/methods/messages_getMessagesViews.md b/old_docs/API_docs_v71/methods/messages_getMessagesViews.md index b8d78c85..934adc16 100644 --- a/old_docs/API_docs_v71/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v71/methods/messages_getMessagesViews.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int, int], 'increment' => Bool, ]); diff --git a/old_docs/API_docs_v71/methods/messages_getPeerDialogs.md b/old_docs/API_docs_v71/methods/messages_getPeerDialogs.md index da82cfc6..063b6e7d 100644 --- a/old_docs/API_docs_v71/methods/messages_getPeerDialogs.md +++ b/old_docs/API_docs_v71/methods/messages_getPeerDialogs.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_PeerDialogs = $MadelineProto->messages->getPeerDialogs(['peers' => [InputPeer, InputPeer], ]); diff --git a/old_docs/API_docs_v71/methods/messages_getPeerSettings.md b/old_docs/API_docs_v71/methods/messages_getPeerSettings.md index f1f2a3bb..a18126f0 100644 --- a/old_docs/API_docs_v71/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v71/methods/messages_getPeerSettings.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $PeerSettings = $MadelineProto->messages->getPeerSettings(['peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v71/methods/messages_getPinnedDialogs.md b/old_docs/API_docs_v71/methods/messages_getPinnedDialogs.md index d12779fe..3f49ed75 100644 --- a/old_docs/API_docs_v71/methods/messages_getPinnedDialogs.md +++ b/old_docs/API_docs_v71/methods/messages_getPinnedDialogs.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_PeerDialogs = $MadelineProto->messages->getPinnedDialogs(); diff --git a/old_docs/API_docs_v71/methods/messages_getRecentStickers.md b/old_docs/API_docs_v71/methods/messages_getRecentStickers.md index d76a2160..0c5ae0c6 100644 --- a/old_docs/API_docs_v71/methods/messages_getRecentStickers.md +++ b/old_docs/API_docs_v71/methods/messages_getRecentStickers.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_RecentStickers = $MadelineProto->messages->getRecentStickers(['attached' => Bool, 'hash' => int, ]); diff --git a/old_docs/API_docs_v71/methods/messages_getSavedGifs.md b/old_docs/API_docs_v71/methods/messages_getSavedGifs.md index f61348ce..38585538 100644 --- a/old_docs/API_docs_v71/methods/messages_getSavedGifs.md +++ b/old_docs/API_docs_v71/methods/messages_getSavedGifs.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => int, ]); diff --git a/old_docs/API_docs_v71/methods/messages_getStickerSet.md b/old_docs/API_docs_v71/methods/messages_getStickerSet.md index c86807e4..c9140ab2 100644 --- a/old_docs/API_docs_v71/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v71/methods/messages_getStickerSet.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSet = $MadelineProto->messages->getStickerSet(['stickerset' => InputStickerSet, ]); diff --git a/old_docs/API_docs_v71/methods/messages_getUnreadMentions.md b/old_docs/API_docs_v71/methods/messages_getUnreadMentions.md index d318506c..b8d7b5a5 100644 --- a/old_docs/API_docs_v71/methods/messages_getUnreadMentions.md +++ b/old_docs/API_docs_v71/methods/messages_getUnreadMentions.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getUnreadMentions(['peer' => InputPeer, 'offset_id' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); diff --git a/old_docs/API_docs_v71/methods/messages_getWebPage.md b/old_docs/API_docs_v71/methods/messages_getWebPage.md index 129f8f06..19ca94b9 100644 --- a/old_docs/API_docs_v71/methods/messages_getWebPage.md +++ b/old_docs/API_docs_v71/methods/messages_getWebPage.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $WebPage = $MadelineProto->messages->getWebPage(['url' => 'string', 'hash' => int, ]); diff --git a/old_docs/API_docs_v71/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v71/methods/messages_getWebPagePreview.md index d01bdd32..e8b20c5d 100644 --- a/old_docs/API_docs_v71/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v71/methods/messages_getWebPagePreview.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $MessageMedia = $MadelineProto->messages->getWebPagePreview(['message' => 'string', ]); diff --git a/old_docs/API_docs_v71/methods/messages_hideReportSpam.md b/old_docs/API_docs_v71/methods/messages_hideReportSpam.md index 856770cb..30523f2a 100644 --- a/old_docs/API_docs_v71/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v71/methods/messages_hideReportSpam.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->hideReportSpam(['peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v71/methods/messages_importChatInvite.md b/old_docs/API_docs_v71/methods/messages_importChatInvite.md index 0d6cd7c8..b1830a9b 100644 --- a/old_docs/API_docs_v71/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v71/methods/messages_importChatInvite.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->importChatInvite(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v71/methods/messages_installStickerSet.md b/old_docs/API_docs_v71/methods/messages_installStickerSet.md index 9f6f098c..20f90b71 100644 --- a/old_docs/API_docs_v71/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v71/methods/messages_installStickerSet.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSetInstallResult = $MadelineProto->messages->installStickerSet(['stickerset' => InputStickerSet, 'archived' => Bool, ]); diff --git a/old_docs/API_docs_v71/methods/messages_migrateChat.md b/old_docs/API_docs_v71/methods/messages_migrateChat.md index db57adfa..22ccfcc1 100644 --- a/old_docs/API_docs_v71/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v71/methods/messages_migrateChat.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]); diff --git a/old_docs/API_docs_v71/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v71/methods/messages_readEncryptedHistory.md index 39b110e3..2ba4cca4 100644 --- a/old_docs/API_docs_v71/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v71/methods/messages_readEncryptedHistory.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); diff --git a/old_docs/API_docs_v71/methods/messages_readFeaturedStickers.md b/old_docs/API_docs_v71/methods/messages_readFeaturedStickers.md index 4035c76d..050371da 100644 --- a/old_docs/API_docs_v71/methods/messages_readFeaturedStickers.md +++ b/old_docs/API_docs_v71/methods/messages_readFeaturedStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->readFeaturedStickers(['id' => [long, long], ]); diff --git a/old_docs/API_docs_v71/methods/messages_readHistory.md b/old_docs/API_docs_v71/methods/messages_readHistory.md index 3de17061..26b608af 100644 --- a/old_docs/API_docs_v71/methods/messages_readHistory.md +++ b/old_docs/API_docs_v71/methods/messages_readHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v71/methods/messages_readMessageContents.md b/old_docs/API_docs_v71/methods/messages_readMessageContents.md index 9bb1bee8..a09cb63e 100644 --- a/old_docs/API_docs_v71/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v71/methods/messages_readMessageContents.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v71/methods/messages_receivedMessages.md b/old_docs/API_docs_v71/methods/messages_receivedMessages.md index 7aab635f..b5e87992 100644 --- a/old_docs/API_docs_v71/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v71/methods/messages_receivedMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_ReceivedNotifyMessage = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); diff --git a/old_docs/API_docs_v71/methods/messages_reorderPinnedDialogs.md b/old_docs/API_docs_v71/methods/messages_reorderPinnedDialogs.md index 710caf10..94d3b2d4 100644 --- a/old_docs/API_docs_v71/methods/messages_reorderPinnedDialogs.md +++ b/old_docs/API_docs_v71/methods/messages_reorderPinnedDialogs.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reorderPinnedDialogs(['force' => Bool, 'order' => [InputPeer, InputPeer], ]); diff --git a/old_docs/API_docs_v71/methods/messages_reorderStickerSets.md b/old_docs/API_docs_v71/methods/messages_reorderStickerSets.md index ddc78dd0..66f5e682 100644 --- a/old_docs/API_docs_v71/methods/messages_reorderStickerSets.md +++ b/old_docs/API_docs_v71/methods/messages_reorderStickerSets.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reorderStickerSets(['masks' => Bool, 'order' => [long, long], ]); diff --git a/old_docs/API_docs_v71/methods/messages_reportEncryptedSpam.md b/old_docs/API_docs_v71/methods/messages_reportEncryptedSpam.md index 58b684d1..cd03c35c 100644 --- a/old_docs/API_docs_v71/methods/messages_reportEncryptedSpam.md +++ b/old_docs/API_docs_v71/methods/messages_reportEncryptedSpam.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reportEncryptedSpam(['peer' => InputEncryptedChat, ]); diff --git a/old_docs/API_docs_v71/methods/messages_reportSpam.md b/old_docs/API_docs_v71/methods/messages_reportSpam.md index 2e2b1177..09c1e63b 100644 --- a/old_docs/API_docs_v71/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v71/methods/messages_reportSpam.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reportSpam(['peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v71/methods/messages_saveDraft.md b/old_docs/API_docs_v71/methods/messages_saveDraft.md index bbeed707..59b33b03 100644 --- a/old_docs/API_docs_v71/methods/messages_saveDraft.md +++ b/old_docs/API_docs_v71/methods/messages_saveDraft.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->saveDraft(['no_webpage' => Bool, 'reply_to_msg_id' => int, 'peer' => InputPeer, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v71/methods/messages_saveGif.md b/old_docs/API_docs_v71/methods/messages_saveGif.md index 6f608c4c..145039e7 100644 --- a/old_docs/API_docs_v71/methods/messages_saveGif.md +++ b/old_docs/API_docs_v71/methods/messages_saveGif.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->saveGif(['id' => InputDocument, 'unsave' => Bool, ]); diff --git a/old_docs/API_docs_v71/methods/messages_saveRecentSticker.md b/old_docs/API_docs_v71/methods/messages_saveRecentSticker.md index 81ad5d48..55757080 100644 --- a/old_docs/API_docs_v71/methods/messages_saveRecentSticker.md +++ b/old_docs/API_docs_v71/methods/messages_saveRecentSticker.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->saveRecentSticker(['attached' => Bool, 'id' => InputDocument, 'unsave' => Bool, ]); diff --git a/old_docs/API_docs_v71/methods/messages_search.md b/old_docs/API_docs_v71/methods/messages_search.md index 9cab5783..9253828a 100644 --- a/old_docs/API_docs_v71/methods/messages_search.md +++ b/old_docs/API_docs_v71/methods/messages_search.md @@ -52,12 +52,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->search(['peer' => InputPeer, 'q' => 'string', 'from_id' => InputUser, 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset_id' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); diff --git a/old_docs/API_docs_v71/methods/messages_searchGifs.md b/old_docs/API_docs_v71/methods/messages_searchGifs.md index 103ebfeb..9677bf24 100644 --- a/old_docs/API_docs_v71/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v71/methods/messages_searchGifs.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_FoundGifs = $MadelineProto->messages->searchGifs(['q' => 'string', 'offset' => int, ]); diff --git a/old_docs/API_docs_v71/methods/messages_searchGlobal.md b/old_docs/API_docs_v71/methods/messages_searchGlobal.md index 0edd1e40..6ad4aec0 100644 --- a/old_docs/API_docs_v71/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v71/methods/messages_searchGlobal.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->searchGlobal(['q' => 'string', 'offset_date' => int, 'offset_peer' => InputPeer, 'offset_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v71/methods/messages_sendEncrypted.md b/old_docs/API_docs_v71/methods/messages_sendEncrypted.md index d48f88d7..76305f32 100644 --- a/old_docs/API_docs_v71/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v71/methods/messages_sendEncrypted.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v71/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v71/methods/messages_sendEncryptedFile.md index 4fd0648e..8db2ead9 100644 --- a/old_docs/API_docs_v71/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v71/methods/messages_sendEncryptedFile.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); diff --git a/old_docs/API_docs_v71/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v71/methods/messages_sendEncryptedService.md index d66894bf..c7836c94 100644 --- a/old_docs/API_docs_v71/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v71/methods/messages_sendEncryptedService.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v71/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v71/methods/messages_sendInlineBotResult.md index 386ac7e3..1a12322c 100644 --- a/old_docs/API_docs_v71/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v71/methods/messages_sendInlineBotResult.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendInlineBotResult(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'query_id' => long, 'id' => 'string', ]); diff --git a/old_docs/API_docs_v71/methods/messages_sendMedia.md b/old_docs/API_docs_v71/methods/messages_sendMedia.md index 0b5cf9b6..770d1b65 100644 --- a/old_docs/API_docs_v71/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v71/methods/messages_sendMedia.md @@ -63,12 +63,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendMedia(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, 'reply_markup' => ReplyMarkup, ]); diff --git a/old_docs/API_docs_v71/methods/messages_sendMessage.md b/old_docs/API_docs_v71/methods/messages_sendMessage.md index c4dc8894..83dc6c8b 100644 --- a/old_docs/API_docs_v71/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v71/methods/messages_sendMessage.md @@ -65,12 +65,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendMessage(['no_webpage' => Bool, 'silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v71/methods/messages_sendScreenshotNotification.md b/old_docs/API_docs_v71/methods/messages_sendScreenshotNotification.md index f64f1682..e823fd52 100644 --- a/old_docs/API_docs_v71/methods/messages_sendScreenshotNotification.md +++ b/old_docs/API_docs_v71/methods/messages_sendScreenshotNotification.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendScreenshotNotification(['peer' => InputPeer, 'reply_to_msg_id' => int, ]); diff --git a/old_docs/API_docs_v71/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v71/methods/messages_setBotCallbackAnswer.md index e6dc6b09..e221ccca 100644 --- a/old_docs/API_docs_v71/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v71/methods/messages_setBotCallbackAnswer.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setBotCallbackAnswer(['alert' => Bool, 'query_id' => long, 'message' => 'string', 'url' => 'string', 'cache_time' => int, ]); diff --git a/old_docs/API_docs_v71/methods/messages_setBotPrecheckoutResults.md b/old_docs/API_docs_v71/methods/messages_setBotPrecheckoutResults.md index 722bff81..7e3fc3c2 100644 --- a/old_docs/API_docs_v71/methods/messages_setBotPrecheckoutResults.md +++ b/old_docs/API_docs_v71/methods/messages_setBotPrecheckoutResults.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setBotPrecheckoutResults(['success' => Bool, 'query_id' => long, 'error' => 'string', ]); diff --git a/old_docs/API_docs_v71/methods/messages_setBotShippingResults.md b/old_docs/API_docs_v71/methods/messages_setBotShippingResults.md index d364a04d..3d9f0ae2 100644 --- a/old_docs/API_docs_v71/methods/messages_setBotShippingResults.md +++ b/old_docs/API_docs_v71/methods/messages_setBotShippingResults.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setBotShippingResults(['query_id' => long, 'error' => 'string', 'shipping_options' => [ShippingOption, ShippingOption], ]); diff --git a/old_docs/API_docs_v71/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v71/methods/messages_setEncryptedTyping.md index e9afe99c..4e7450eb 100644 --- a/old_docs/API_docs_v71/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v71/methods/messages_setEncryptedTyping.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); diff --git a/old_docs/API_docs_v71/methods/messages_setGameScore.md b/old_docs/API_docs_v71/methods/messages_setGameScore.md index aa1f4f0c..90594a1d 100644 --- a/old_docs/API_docs_v71/methods/messages_setGameScore.md +++ b/old_docs/API_docs_v71/methods/messages_setGameScore.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->setGameScore(['edit_message' => Bool, 'force' => Bool, 'peer' => InputPeer, 'id' => int, 'user_id' => InputUser, 'score' => int, ]); diff --git a/old_docs/API_docs_v71/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v71/methods/messages_setInlineBotResults.md index 79493009..d4ba6e65 100644 --- a/old_docs/API_docs_v71/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v71/methods/messages_setInlineBotResults.md @@ -52,12 +52,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setInlineBotResults(['gallery' => Bool, 'private' => Bool, 'query_id' => long, 'results' => [InputBotInlineResult, InputBotInlineResult], 'cache_time' => int, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, ]); diff --git a/old_docs/API_docs_v71/methods/messages_setInlineGameScore.md b/old_docs/API_docs_v71/methods/messages_setInlineGameScore.md index 385c8308..2b7326f3 100644 --- a/old_docs/API_docs_v71/methods/messages_setInlineGameScore.md +++ b/old_docs/API_docs_v71/methods/messages_setInlineGameScore.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setInlineGameScore(['edit_message' => Bool, 'force' => Bool, 'id' => InputBotInlineMessageID, 'user_id' => InputUser, 'score' => int, ]); diff --git a/old_docs/API_docs_v71/methods/messages_setTyping.md b/old_docs/API_docs_v71/methods/messages_setTyping.md index bea4982b..a2b94823 100644 --- a/old_docs/API_docs_v71/methods/messages_setTyping.md +++ b/old_docs/API_docs_v71/methods/messages_setTyping.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); diff --git a/old_docs/API_docs_v71/methods/messages_startBot.md b/old_docs/API_docs_v71/methods/messages_startBot.md index 94a4d86a..50d6f475 100644 --- a/old_docs/API_docs_v71/methods/messages_startBot.md +++ b/old_docs/API_docs_v71/methods/messages_startBot.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'peer' => InputPeer, 'start_param' => 'string', ]); diff --git a/old_docs/API_docs_v71/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v71/methods/messages_toggleChatAdmins.md index ab591fd9..349ea0e6 100644 --- a/old_docs/API_docs_v71/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v71/methods/messages_toggleChatAdmins.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => InputPeer, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v71/methods/messages_toggleDialogPin.md b/old_docs/API_docs_v71/methods/messages_toggleDialogPin.md index 2bd6a03d..14332533 100644 --- a/old_docs/API_docs_v71/methods/messages_toggleDialogPin.md +++ b/old_docs/API_docs_v71/methods/messages_toggleDialogPin.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->toggleDialogPin(['pinned' => Bool, 'peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v71/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v71/methods/messages_uninstallStickerSet.md index 6d04e847..26b2fbb3 100644 --- a/old_docs/API_docs_v71/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v71/methods/messages_uninstallStickerSet.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->uninstallStickerSet(['stickerset' => InputStickerSet, ]); diff --git a/old_docs/API_docs_v71/methods/messages_uploadMedia.md b/old_docs/API_docs_v71/methods/messages_uploadMedia.md index c982a860..c09da017 100644 --- a/old_docs/API_docs_v71/methods/messages_uploadMedia.md +++ b/old_docs/API_docs_v71/methods/messages_uploadMedia.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $MessageMedia = $MadelineProto->messages->uploadMedia(['peer' => InputPeer, 'media' => InputMedia, ]); diff --git a/old_docs/API_docs_v71/methods/payments_clearSavedInfo.md b/old_docs/API_docs_v71/methods/payments_clearSavedInfo.md index 44050dde..8b83266f 100644 --- a/old_docs/API_docs_v71/methods/payments_clearSavedInfo.md +++ b/old_docs/API_docs_v71/methods/payments_clearSavedInfo.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->payments->clearSavedInfo(['credentials' => Bool, 'info' => Bool, ]); diff --git a/old_docs/API_docs_v71/methods/payments_getPaymentForm.md b/old_docs/API_docs_v71/methods/payments_getPaymentForm.md index 16a32d11..3bdb9ff2 100644 --- a/old_docs/API_docs_v71/methods/payments_getPaymentForm.md +++ b/old_docs/API_docs_v71/methods/payments_getPaymentForm.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $payments_PaymentForm = $MadelineProto->payments->getPaymentForm(['msg_id' => int, ]); diff --git a/old_docs/API_docs_v71/methods/payments_getPaymentReceipt.md b/old_docs/API_docs_v71/methods/payments_getPaymentReceipt.md index 857585f6..a881aeb7 100644 --- a/old_docs/API_docs_v71/methods/payments_getPaymentReceipt.md +++ b/old_docs/API_docs_v71/methods/payments_getPaymentReceipt.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $payments_PaymentReceipt = $MadelineProto->payments->getPaymentReceipt(['msg_id' => int, ]); diff --git a/old_docs/API_docs_v71/methods/payments_getSavedInfo.md b/old_docs/API_docs_v71/methods/payments_getSavedInfo.md index 04ac7374..ec1a071b 100644 --- a/old_docs/API_docs_v71/methods/payments_getSavedInfo.md +++ b/old_docs/API_docs_v71/methods/payments_getSavedInfo.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $payments_SavedInfo = $MadelineProto->payments->getSavedInfo(); diff --git a/old_docs/API_docs_v71/methods/payments_sendPaymentForm.md b/old_docs/API_docs_v71/methods/payments_sendPaymentForm.md index 0a9df99f..79758b56 100644 --- a/old_docs/API_docs_v71/methods/payments_sendPaymentForm.md +++ b/old_docs/API_docs_v71/methods/payments_sendPaymentForm.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $payments_PaymentResult = $MadelineProto->payments->sendPaymentForm(['msg_id' => int, 'requested_info_id' => 'string', 'shipping_option_id' => 'string', 'credentials' => InputPaymentCredentials, ]); diff --git a/old_docs/API_docs_v71/methods/payments_validateRequestedInfo.md b/old_docs/API_docs_v71/methods/payments_validateRequestedInfo.md index e36f0e42..d473f97c 100644 --- a/old_docs/API_docs_v71/methods/payments_validateRequestedInfo.md +++ b/old_docs/API_docs_v71/methods/payments_validateRequestedInfo.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $payments_ValidatedRequestedInfo = $MadelineProto->payments->validateRequestedInfo(['save' => Bool, 'msg_id' => int, 'info' => PaymentRequestedInfo, ]); diff --git a/old_docs/API_docs_v71/methods/phone_getCallConfig.md b/old_docs/API_docs_v71/methods/phone_getCallConfig.md index cac622a0..6969c1a3 100644 --- a/old_docs/API_docs_v71/methods/phone_getCallConfig.md +++ b/old_docs/API_docs_v71/methods/phone_getCallConfig.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $DataJSON = $MadelineProto->phone->getCallConfig(); diff --git a/old_docs/API_docs_v71/methods/phone_receivedCall.md b/old_docs/API_docs_v71/methods/phone_receivedCall.md index 27e3b462..17095622 100644 --- a/old_docs/API_docs_v71/methods/phone_receivedCall.md +++ b/old_docs/API_docs_v71/methods/phone_receivedCall.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->phone->receivedCall(['peer' => InputPhoneCall, ]); diff --git a/old_docs/API_docs_v71/methods/phone_saveCallDebug.md b/old_docs/API_docs_v71/methods/phone_saveCallDebug.md index 760ad9d5..0ff049a8 100644 --- a/old_docs/API_docs_v71/methods/phone_saveCallDebug.md +++ b/old_docs/API_docs_v71/methods/phone_saveCallDebug.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->phone->saveCallDebug(['peer' => InputPhoneCall, 'debug' => DataJSON, ]); diff --git a/old_docs/API_docs_v71/methods/phone_setCallRating.md b/old_docs/API_docs_v71/methods/phone_setCallRating.md index b32ba333..d0aab7e0 100644 --- a/old_docs/API_docs_v71/methods/phone_setCallRating.md +++ b/old_docs/API_docs_v71/methods/phone_setCallRating.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->phone->setCallRating(['peer' => InputPhoneCall, 'rating' => int, 'comment' => 'string', ]); diff --git a/old_docs/API_docs_v71/methods/photos_deletePhotos.md b/old_docs/API_docs_v71/methods/photos_deletePhotos.md index b9daca10..937aadd5 100644 --- a/old_docs/API_docs_v71/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v71/methods/photos_deletePhotos.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); diff --git a/old_docs/API_docs_v71/methods/photos_getUserPhotos.md b/old_docs/API_docs_v71/methods/photos_getUserPhotos.md index ea27a44f..d1c15e90 100644 --- a/old_docs/API_docs_v71/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v71/methods/photos_getUserPhotos.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => long, 'limit' => int, ]); diff --git a/old_docs/API_docs_v71/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v71/methods/photos_updateProfilePhoto.md index 7f0a4c69..2ac8b60d 100644 --- a/old_docs/API_docs_v71/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v71/methods/photos_updateProfilePhoto.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, ]); diff --git a/old_docs/API_docs_v71/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v71/methods/photos_uploadProfilePhoto.md index efa08bb0..c7ec3063 100644 --- a/old_docs/API_docs_v71/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v71/methods/photos_uploadProfilePhoto.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, ]); diff --git a/old_docs/API_docs_v71/methods/ping.md b/old_docs/API_docs_v71/methods/ping.md index 4ad52852..f987ae89 100644 --- a/old_docs/API_docs_v71/methods/ping.md +++ b/old_docs/API_docs_v71/methods/ping.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Pong = $MadelineProto->ping(['ping_id' => long, ]); diff --git a/old_docs/API_docs_v71/methods/ping_delay_disconnect.md b/old_docs/API_docs_v71/methods/ping_delay_disconnect.md index b0951488..5b1c115d 100644 --- a/old_docs/API_docs_v71/methods/ping_delay_disconnect.md +++ b/old_docs/API_docs_v71/methods/ping_delay_disconnect.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Pong = $MadelineProto->ping_delay_disconnect(['ping_id' => long, 'disconnect_delay' => int, ]); diff --git a/old_docs/API_docs_v71/methods/req_DH_params.md b/old_docs/API_docs_v71/methods/req_DH_params.md index bb821ef9..f0b45851 100644 --- a/old_docs/API_docs_v71/methods/req_DH_params.md +++ b/old_docs/API_docs_v71/methods/req_DH_params.md @@ -34,12 +34,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Server_DH_Params = $MadelineProto->req_DH_params(['nonce' => int128, 'server_nonce' => int128, 'p' => 'string', 'q' => 'string', 'public_key_fingerprint' => long, 'encrypted_data' => 'string', ]); diff --git a/old_docs/API_docs_v71/methods/req_pq.md b/old_docs/API_docs_v71/methods/req_pq.md index 72a31c0b..0873d9a2 100644 --- a/old_docs/API_docs_v71/methods/req_pq.md +++ b/old_docs/API_docs_v71/methods/req_pq.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ResPQ = $MadelineProto->req_pq(['nonce' => int128, ]); diff --git a/old_docs/API_docs_v71/methods/rpc_drop_answer.md b/old_docs/API_docs_v71/methods/rpc_drop_answer.md index 381d7ee4..27f98bca 100644 --- a/old_docs/API_docs_v71/methods/rpc_drop_answer.md +++ b/old_docs/API_docs_v71/methods/rpc_drop_answer.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $RpcDropAnswer = $MadelineProto->rpc_drop_answer(['req_msg_id' => long, ]); diff --git a/old_docs/API_docs_v71/methods/set_client_DH_params.md b/old_docs/API_docs_v71/methods/set_client_DH_params.md index 6abb9a51..cf8ab321 100644 --- a/old_docs/API_docs_v71/methods/set_client_DH_params.md +++ b/old_docs/API_docs_v71/methods/set_client_DH_params.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Set_client_DH_params_answer = $MadelineProto->set_client_DH_params(['nonce' => int128, 'server_nonce' => int128, 'encrypted_data' => 'string', ]); diff --git a/old_docs/API_docs_v71/methods/stickers_addStickerToSet.md b/old_docs/API_docs_v71/methods/stickers_addStickerToSet.md index 1f90028c..7c4191d8 100644 --- a/old_docs/API_docs_v71/methods/stickers_addStickerToSet.md +++ b/old_docs/API_docs_v71/methods/stickers_addStickerToSet.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSet = $MadelineProto->stickers->addStickerToSet(['stickerset' => InputStickerSet, 'sticker' => InputStickerSetItem, ]); diff --git a/old_docs/API_docs_v71/methods/stickers_changeStickerPosition.md b/old_docs/API_docs_v71/methods/stickers_changeStickerPosition.md index 45552df9..d25129c5 100644 --- a/old_docs/API_docs_v71/methods/stickers_changeStickerPosition.md +++ b/old_docs/API_docs_v71/methods/stickers_changeStickerPosition.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSet = $MadelineProto->stickers->changeStickerPosition(['sticker' => InputDocument, 'position' => int, ]); diff --git a/old_docs/API_docs_v71/methods/stickers_createStickerSet.md b/old_docs/API_docs_v71/methods/stickers_createStickerSet.md index c4e85852..95775849 100644 --- a/old_docs/API_docs_v71/methods/stickers_createStickerSet.md +++ b/old_docs/API_docs_v71/methods/stickers_createStickerSet.md @@ -48,12 +48,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSet = $MadelineProto->stickers->createStickerSet(['masks' => Bool, 'user_id' => InputUser, 'title' => 'string', 'short_name' => 'string', 'stickers' => [InputStickerSetItem, InputStickerSetItem], ]); diff --git a/old_docs/API_docs_v71/methods/stickers_removeStickerFromSet.md b/old_docs/API_docs_v71/methods/stickers_removeStickerFromSet.md index 4ae30345..73ed78d5 100644 --- a/old_docs/API_docs_v71/methods/stickers_removeStickerFromSet.md +++ b/old_docs/API_docs_v71/methods/stickers_removeStickerFromSet.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSet = $MadelineProto->stickers->removeStickerFromSet(['sticker' => InputDocument, ]); diff --git a/old_docs/API_docs_v71/methods/upload_getWebFile.md b/old_docs/API_docs_v71/methods/upload_getWebFile.md index e864e4b7..11634633 100644 --- a/old_docs/API_docs_v71/methods/upload_getWebFile.md +++ b/old_docs/API_docs_v71/methods/upload_getWebFile.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $upload_WebFile = $MadelineProto->upload->getWebFile(['location' => InputWebFileLocation, 'offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v71/methods/users_getUsers.md b/old_docs/API_docs_v71/methods/users_getUsers.md index ef1c7fd8..bce13ee6 100644 --- a/old_docs/API_docs_v71/methods/users_getUsers.md +++ b/old_docs/API_docs_v71/methods/users_getUsers.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v72/README.md b/old_docs/API_docs_v72/README.md index ce980a9f..baf9c1a1 100644 --- a/old_docs/API_docs_v72/README.md +++ b/old_docs/API_docs_v72/README.md @@ -4,11 +4,11 @@ description: MadelineProto API documentation (layer v72) --- # MadelineProto API documentation (layer v72) +[Back to main documentation](..) + + [Methods](methods/) [Constructors](constructors/) -[Types](types/) - - -[Back to main documentation](..) +[Types](types/) \ No newline at end of file diff --git a/old_docs/API_docs_v72/methods/README.md b/old_docs/API_docs_v72/methods/README.md index 892bbd35..7c5406eb 100644 --- a/old_docs/API_docs_v72/methods/README.md +++ b/old_docs/API_docs_v72/methods/README.md @@ -1,559 +1,554 @@ --- title: Methods -description: List of methods +description: What do you want to do? --- -# Methods -[Back to API documentation index](..) +# What do you want to do? +[Go back to API documentation index](..) +[Go to the old code-version method index](api_index.html) -$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); +* [Logout](https://docs.madelineproto.xyz/logout.html) -$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); +* [Login](https://docs.madelineproto.xyz/docs/LOGIN.html) -$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); +* [Get all chats, broadcast a message to all chats](https://docs.madelineproto.xyz/docs/DIALOGS.html) -$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); +* [Get the full participant list of a channel/group/supergroup](https://docs.madelineproto.xyz/get_pwr_chat.html) -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); +* [Get full info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_full_info.html) +* [Get info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_info.html) -$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); +* [Get info about the currently logged-in user](https://docs.madelineproto.xyz/get_self.html) -$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); +* [Upload or download files up to 1.5 GB](https://docs.madelineproto.xyz/docs/FILES.html) -$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); +* [Make a phone call and play a song](https://docs.madelineproto.xyz/docs/CALLS.html) -$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); - -$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); - - -$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); - -$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); +* [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) *** -

$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) +

* Change the phone number associated to this account -$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Check if this username is available -$MadelineProto->[account->confirmPhone](account_confirmPhone.md)(\['phone_code_hash' => [string](../types/string.md), 'phone_code' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode -$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Delete this account -$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) +* Get account TTL -$MadelineProto->[account->getAuthorizations](account_getAuthorizations.md)(\[\]) === [$account\_Authorizations](../types/account_Authorizations.md) +* Get all logged-in authorizations -$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) +* Get notification settings -$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md) +* Get the current password -$MadelineProto->[account->getPasswordSettings](account_getPasswordSettings.md)(\['current_password_hash' => [bytes](../types/bytes.md), \]) === [$account\_PasswordSettings](../types/account_PasswordSettings.md) +* Get the current 2FA settings -$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Get privacy settings -$MadelineProto->[account->getTmpPassword](account_getTmpPassword.md)(\['password_hash' => [bytes](../types/bytes.md), 'period' => [int](../types/int.md), \]) === [$account\_TmpPassword](../types/account_TmpPassword.md) +* Get temporary password for buying products through bots -$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) +* Returns a list of available wallpapers. -$MadelineProto->[account->registerDevice](account_registerDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Register device for push notifications -$MadelineProto->[account->reportPeer](account_reportPeer.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reason' => [ReportReason](../types/ReportReason.md), \]) === [$Bool](../types/Bool.md) +* Report for spam -$MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) +* Delete a certain session -$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) +* Reset all notification settings -$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) +* Change the phone number -$MadelineProto->[account->sendConfirmPhoneCode](account_sendConfirmPhoneCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'hash' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) +* Send confirmation phone code -$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) +* Set account TTL -$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Set privacy settings -$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Stop sending PUSH notifications to app -$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Disable all notifications for a certain period -$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) +* Change notification settings -$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) +* Update the 2FA password settings -$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) +* Update profile info -$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Update online status -$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) +* Update this user's username *** -

$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) +

* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info -$MadelineProto->[auth->cancelCode](auth_cancelCode.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Invalidate sent phone code -$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) +* Check if this phone number is registered on telegram -$MadelineProto->[auth->dropTempAuthKeys](auth_dropTempAuthKeys.md)(\['except_auth_keys' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) +* Delete all temporary authorization keys except the ones provided -$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) +* You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$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) +* You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->recoverPassword](auth_recoverPassword.md)(\['code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account -$MadelineProto->[auth->requestPasswordRecovery](auth_requestPasswordRecovery.md)(\[\]) === [$auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) +* Send an email to recover the 2FA password -$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) +* Resend the SMS verification code -$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) +* Delete all logged-in sessions. -$MadelineProto->[auth->sendCode](auth_sendCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'phone_number' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), 'api_id' => [int](../types/int.md), 'api_hash' => [string](../types/string.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) +* Use phone_login instead -$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Invite friends to telegram! -$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) +* You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) -$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) +* You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) *** -

$MadelineProto->[bots->answerWebhookJSONQuery](bots_answerWebhookJSONQuery.md)(\['query_id' => [long](../types/long.md), 'data' => [DataJSON](../types/DataJSON.md), \]) === [$Bool](../types/Bool.md) +

* Send webhook request via bot API -$MadelineProto->[bots->sendCustomRequest](bots_sendCustomRequest.md)(\['custom_method' => [string](../types/string.md), 'params' => [DataJSON](../types/DataJSON.md), \]) === [$DataJSON](../types/DataJSON.md) +* Send a custom request to the bot API *** -

$MadelineProto->[channels->checkUsername](channels_checkUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +

* Check if this username is free and can be assigned to a channel/supergroup -$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) +* Create channel/supergroup -$MadelineProto->[channels->deleteChannel](channels_deleteChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Delete a channel/supergroup -$MadelineProto->[channels->deleteHistory](channels_deleteHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Delete the history of a supergroup/channel -$MadelineProto->[channels->deleteMessages](channels_deleteMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Delete channel/supergroup messages -$MadelineProto->[channels->deleteUserHistory](channels_deleteUserHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Delete all messages of a user in a channel/supergroup -$MadelineProto->[channels->editAbout](channels_editAbout.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'about' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Edit the about text of a channel/supergroup -$MadelineProto->[channels->editAdmin](channels_editAdmin.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), 'admin_rights' => [ChannelAdminRights](../types/ChannelAdminRights.md), \]) === [$Updates](../types/Updates.md) +* Edit admin permissions of a user in a channel/supergroup -$MadelineProto->[channels->editBanned](channels_editBanned.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), 'banned_rights' => [ChannelBannedRights](../types/ChannelBannedRights.md), \]) === [$Updates](../types/Updates.md) +* Kick or ban a user from a channel/supergroup -$MadelineProto->[channels->editPhoto](channels_editPhoto.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) +* Edit the photo of a supergroup/channel -$MadelineProto->[channels->editTitle](channels_editTitle.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Edit the title of a supergroup/channel -$MadelineProto->[channels->exportInvite](channels_exportInvite.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) +* Export the invite link of a channel -$MadelineProto->[channels->exportMessageLink](channels_exportMessageLink.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => [int](../types/int.md), \]) === [$ExportedMessageLink](../types/ExportedMessageLink.md) +* Get the link of a message in a channel -$MadelineProto->[channels->getAdminLog](channels_getAdminLog.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'q' => [string](../types/string.md), 'events_filter' => [ChannelAdminLogEventsFilter](../types/ChannelAdminLogEventsFilter.md), 'admins' => \[[InputUser](../types/InputUser.md)\], 'max_id' => [long](../types/long.md), 'min_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), \]) === [$channels\_AdminLogResults](../types/channels_AdminLogResults.md) +* Get admin log of a channel/supergroup -$MadelineProto->[channels->getAdminedPublicChannels](channels_getAdminedPublicChannels.md)(\[\]) === [$messages\_Chats](../types/messages_Chats.md) +* Get all supergroups/channels where you're admin -$MadelineProto->[channels->getChannels](channels_getChannels.md)(\['id' => \[[InputChannel](../types/InputChannel.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get info about multiple channels/supergroups -$MadelineProto->[channels->getFullChannel](channels_getFullChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) +* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[channels->getMessages](channels_getMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get channel/supergroup messages -$MadelineProto->[channels->getParticipant](channels_getParticipant.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) +* Get info about a certain channel/supergroup participant -$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), 'hash' => [int](../types/int.md), \]) === [$channels\_ChannelParticipants](../types/channels_ChannelParticipants.md) +* Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead) -$MadelineProto->[channels->inviteToChannel](channels_inviteToChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'users' => \[[InputUser](../types/InputUser.md)\], \]) === [$Updates](../types/Updates.md) +* Add users to channel/supergroup -$MadelineProto->[channels->joinChannel](channels_joinChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Join a channel/supergroup -$MadelineProto->[channels->leaveChannel](channels_leaveChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Leave a channel/supergroup -$MadelineProto->[channels->readHistory](channels_readHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Mark channel/supergroup history as read -$MadelineProto->[channels->readMessageContents](channels_readMessageContents.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$Bool](../types/Bool.md) +* Mark channel/supergroup messages as read -$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) +* Report a supergroup/channel for spam -$MadelineProto->[channels->setStickers](channels_setStickers.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) +* Set the supergroup/channel stickerpack -$MadelineProto->[channels->toggleInvites](channels_toggleInvites.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Allow or disallow any user to invite users to this channel/supergroup -$MadelineProto->[channels->togglePreHistoryHidden](channels_togglePreHistoryHidden.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Enable or disable hidden history for new channel/supergroup users -$MadelineProto->[channels->toggleSignatures](channels_toggleSignatures.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Toggle channel signatures -$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) +* Set the pinned message of a channel/supergroup -$MadelineProto->[channels->updateUsername](channels_updateUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Update the username of a supergroup/channel *** -

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +

* Block a user -$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) +* Delete a contact -$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) +* Delete multiple contacts -$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) +* Export contact as card -$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) +* Get blocked users -$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [int](../types/int.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) +* Get info about a certain contact -$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) +* Get online status of all users -$MadelineProto->[contacts->getTopPeers](contacts_getTopPeers.md)(\['correspondents' => [Bool](../types/Bool.md), 'bots_pm' => [Bool](../types/Bool.md), 'bots_inline' => [Bool](../types/Bool.md), 'phone_calls' => [Bool](../types/Bool.md), 'groups' => [Bool](../types/Bool.md), 'channels' => [Bool](../types/Bool.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'hash' => [int](../types/int.md), \]) === [$contacts\_TopPeers](../types/contacts_TopPeers.md) +* Get most used chats -$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) +* Import card as contact -$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) +* Add phone number as contact -$MadelineProto->[contacts->resetSaved](contacts_resetSaved.md)(\[\]) === [$Bool](../types/Bool.md) +* Reset saved contacts -$MadelineProto->[contacts->resetTopPeerRating](contacts_resetTopPeerRating.md)(\['category' => [TopPeerCategory](../types/TopPeerCategory.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Reset top peer rating for a certain category/peer -$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) +* You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) +* Search contacts -$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +* Unblock a user *** -

$MadelineProto->[contest->saveDeveloperInfo](contest_saveDeveloperInfo.md)(\['vk_id' => [int](../types/int.md), 'name' => [string](../types/string.md), 'phone_number' => [string](../types/string.md), 'age' => [int](../types/int.md), 'city' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +

* Save developer info for telegram contest *** -

$MadelineProto->[destroy_auth_key](destroy_auth_key.md)(\[\]) === [$DestroyAuthKeyRes](../types/DestroyAuthKeyRes.md) +

* Destroy current authorization key -$MadelineProto->[destroy_session](destroy_session.md)(\['session_id' => [long](../types/long.md), \]) === [$DestroySessionRes](../types/DestroySessionRes.md) +* Destroy the current MTProto session *** -

$MadelineProto->[get_future_salts](get_future_salts.md)(\['num' => [int](../types/int.md), \]) === [$FutureSalts](../types/FutureSalts.md) +

* Get future salts *** -

$MadelineProto->[help->getAppChangelog](help_getAppChangelog.md)(\['prev_app_version' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +

* Get the changelog of this app -$MadelineProto->[help->getAppUpdate](help_getAppUpdate.md)(\[\]) === [$help\_AppUpdate](../types/help_AppUpdate.md) +* Get info about app updates -$MadelineProto->[help->getCdnConfig](help_getCdnConfig.md)(\[\]) === [$CdnConfig](../types/CdnConfig.md) +* Get CDN configuration -$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) +* Get server configuration -$MadelineProto->[help->getInviteText](help_getInviteText.md)(\[\]) === [$help\_InviteText](../types/help_InviteText.md) +* Get invitation text -$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) +* Get nearest datacenter -$MadelineProto->[help->getRecentMeUrls](help_getRecentMeUrls.md)(\['referer' => [string](../types/string.md), \]) === [$help\_RecentMeUrls](../types/help_RecentMeUrls.md) +* Get recent t.me URLs -$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) +* Get info of support user -$MadelineProto->[help->getTermsOfService](help_getTermsOfService.md)(\[\]) === [$help\_TermsOfService](../types/help_TermsOfService.md) +* Get terms of service -$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) +* Log data for developer of this app -$MadelineProto->[help->setBotUpdatesStatus](help_setBotUpdatesStatus.md)(\['pending_updates_count' => [int](../types/int.md), 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Set the update status of webhook *** -

$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), 'system_lang_code' => [string](../types/string.md), 'lang_pack' => [string](../types/string.md), 'lang_code' => [string](../types/string.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Initializes connection and save information on the user's device and application. *** -

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invokes a query after successfull completion of one of the previous queries. *** -

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Result type returned by a current query. *** -

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invoke this method with layer X *** -

$MadelineProto->[invokeWithoutUpdates](invokeWithoutUpdates.md)(\['query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invoke with method without returning updates in the socket *** -

$MadelineProto->[langpack->getDifference](langpack_getDifference.md)(\['from_version' => [int](../types/int.md), \]) === [$LangPackDifference](../types/LangPackDifference.md) +

* Get language pack updates -$MadelineProto->[langpack->getLangPack](langpack_getLangPack.md)(\['lang_code' => [string](../types/string.md), \]) === [$LangPackDifference](../types/LangPackDifference.md) +* Get language pack -$MadelineProto->[langpack->getLanguages](langpack_getLanguages.md)(\[\]) === [$Vector\_of\_LangPackLanguage](../types/LangPackLanguage.md) +* Get available languages -$MadelineProto->[langpack->getStrings](langpack_getStrings.md)(\['lang_code' => [string](../types/string.md), 'keys' => \[[string](../types/string.md)\], \]) === [$Vector\_of\_LangPackString](../types/LangPackString.md) +* Get language pack strings *** -

$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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Add a user to a normal chat (use channels->inviteToChannel for supergroups) -$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md) +* Check if an invitation link is valid -$MadelineProto->[messages->clearRecentStickers](messages_clearRecentStickers.md)(\['attached' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Clear all recent stickers -$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Create a chat (not supergroup) -$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md) +* Delete a user from a chat (not supergroup) -$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['just_clear' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Delete chat history -$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['revoke' => [Bool](../types/Bool.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Delete messages -$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Edit admin permissions -$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) +* Edit the photo of a normal chat (not supergroup) -$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Edit the title of a normal chat (not supergroup) -$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) +* Edit a sent inline message -$MadelineProto->[messages->editMessage](messages_editMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'stop_geo_live' => [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)\], 'geo_point' => [InputGeoPoint](../types/InputGeoPoint.md), \]) === [$Updates](../types/Updates.md) +* Edit a message -$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) +* Export chat invite -$MadelineProto->[messages->faveSticker](messages_faveSticker.md)(\['id' => [InputDocument](../types/InputDocument.md), 'unfave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Add a sticker to favorites -$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) +* Forward message -$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'with_my_score' => [Bool](../types/Bool.md), 'from_peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], 'to_peer' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) +* Forward messages -$MadelineProto->[messages->getAllChats](messages_getAllChats.md)(\['except_ids' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get all chats (not supergroups or channels) -$MadelineProto->[messages->getAllDrafts](messages_getAllDrafts.md)(\[\]) === [$Updates](../types/Updates.md) +* Get all message drafts -$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) +* Get all stickerpacks -$MadelineProto->[messages->getArchivedStickers](messages_getArchivedStickers.md)(\['masks' => [Bool](../types/Bool.md), 'offset_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), \]) === [$messages\_ArchivedStickers](../types/messages_ArchivedStickers.md) +* Get all archived stickers -$MadelineProto->[messages->getAttachedStickers](messages_getAttachedStickers.md)(\['media' => [InputStickeredMedia](../types/InputStickeredMedia.md), \]) === [$Vector\_of\_StickerSetCovered](../types/StickerSetCovered.md) +* Get stickers attachable to images -$MadelineProto->[messages->getBotCallbackAnswer](messages_getBotCallbackAnswer.md)(\['game' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'msg_id' => [int](../types/int.md), 'data' => [bytes](../types/bytes.md), \]) === [$messages\_BotCallbackAnswer](../types/messages_BotCallbackAnswer.md) +* Get the callback answer of a bot (after clicking a button) -$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get info about chats -$MadelineProto->[messages->getCommonChats](messages_getCommonChats.md)(\['user_id' => [InputUser](../types/InputUser.md), 'max_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get chats in common with a user -$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) +* You cannot use this method directly, instead use $MadelineProto->get_dh_config(); -$MadelineProto->[messages->getDialogs](messages_getDialogs.md)(\['exclude_pinned' => [Bool](../types/Bool.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) +* Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html -$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) +* Get document by SHA256 hash -$MadelineProto->[messages->getFavedStickers](messages_getFavedStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_FavedStickers](../types/messages_FavedStickers.md) +* Get favorite stickers -$MadelineProto->[messages->getFeaturedStickers](messages_getFeaturedStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_FeaturedStickers](../types/messages_FeaturedStickers.md) +* Get featured stickers -$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) +* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[messages->getGameHighScores](messages_getGameHighScores.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_HighScores](../types/messages_HighScores.md) +* Get high scores of a game -$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) +* Get previous messages of a group -$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) +* Call inline bot -$MadelineProto->[messages->getInlineGameHighScores](messages_getInlineGameHighScores.md)(\['id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_HighScores](../types/messages_HighScores.md) +* Get high scores of a game sent in an inline message -$MadelineProto->[messages->getMaskStickers](messages_getMaskStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) +* Get masks -$MadelineProto->[messages->getMessageEditData](messages_getMessageEditData.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$messages\_MessageEditData](../types/messages_MessageEditData.md) +* Check if about to edit a message or a media caption -$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get messages -$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) +* Get and increase message views -$MadelineProto->[messages->getPeerDialogs](messages_getPeerDialogs.md)(\['peers' => \[[InputPeer](../types/InputPeer.md)\], \]) === [$messages\_PeerDialogs](../types/messages_PeerDialogs.md) +* Get dialog info of peers -$MadelineProto->[messages->getPeerSettings](messages_getPeerSettings.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$PeerSettings](../types/PeerSettings.md) +* Get the settings of apeer -$MadelineProto->[messages->getPinnedDialogs](messages_getPinnedDialogs.md)(\[\]) === [$messages\_PeerDialogs](../types/messages_PeerDialogs.md) +* Get pinned dialogs -$MadelineProto->[messages->getRecentLocations](messages_getRecentLocations.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get recent locations -$MadelineProto->[messages->getRecentStickers](messages_getRecentStickers.md)(\['attached' => [Bool](../types/Bool.md), 'hash' => [int](../types/int.md), \]) === [$messages\_RecentStickers](../types/messages_RecentStickers.md) +* Get recent stickers -$MadelineProto->[messages->getSavedGifs](messages_getSavedGifs.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_SavedGifs](../types/messages_SavedGifs.md) +* Get saved gifs -$MadelineProto->[messages->getStickerSet](messages_getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) +* Get a stickerset -$MadelineProto->[messages->getUnreadMentions](messages_getUnreadMentions.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset_id' => [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) +* Get unread mentions -$MadelineProto->[messages->getWebPage](messages_getWebPage.md)(\['url' => [string](../types/string.md), 'hash' => [int](../types/int.md), \]) === [$WebPage](../types/WebPage.md) +* Get webpage preview -$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) === [$MessageMedia](../types/MessageMedia.md) +* Get webpage preview -$MadelineProto->[messages->hideReportSpam](messages_hideReportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Hide report spam popup -$MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Import chat invite -$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'archived' => [Bool](../types/Bool.md), \]) === [$messages\_StickerSetInstallResult](../types/messages_StickerSetInstallResult.md) +* Add a sticker set -$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) +* Convert chat to supergroup -$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Mark messages as read in secret chats -$MadelineProto->[messages->readFeaturedStickers](messages_readFeaturedStickers.md)(\['id' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) +* Mark new featured stickers as read -$MadelineProto->[messages->readHistory](messages_readHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Mark messages as read -$MadelineProto->[messages->readMentions](messages_readMentions.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Mark mentions as read -$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Mark message as read -$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_ReceivedNotifyMessage](../types/ReceivedNotifyMessage.md) +* Mark messages as read -$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) +* You cannot use this method directly -$MadelineProto->[messages->reorderPinnedDialogs](messages_reorderPinnedDialogs.md)(\['force' => [Bool](../types/Bool.md), 'order' => \[[InputPeer](../types/InputPeer.md)\], \]) === [$Bool](../types/Bool.md) +* Reorder pinned dialogs -$MadelineProto->[messages->reorderStickerSets](messages_reorderStickerSets.md)(\['masks' => [Bool](../types/Bool.md), 'order' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) +* Reorder sticker sets -$MadelineProto->[messages->reportEncryptedSpam](messages_reportEncryptedSpam.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), \]) === [$Bool](../types/Bool.md) +* Report for spam a secret chat -$MadelineProto->[messages->reportSpam](messages_reportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Report a peer for spam -$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$MadelineProto->[messages->saveDraft](messages_saveDraft.md)(\['no_webpage' => [Bool](../types/Bool.md), 'reply_to_msg_id' => [int](../types/int.md), 'peer' => [InputPeer](../types/InputPeer.md), 'message' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Bool](../types/Bool.md) +* Save a message draft -$MadelineProto->[messages->saveGif](messages_saveGif.md)(\['id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Save a GIF -$MadelineProto->[messages->saveRecentSticker](messages_saveRecentSticker.md)(\['attached' => [Bool](../types/Bool.md), 'id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Add a sticker to recent stickers -$MadelineProto->[messages->search](messages_search.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'q' => [string](../types/string.md), 'from_id' => [InputUser](../types/InputUser.md), 'filter' => [MessagesFilter](../types/MessagesFilter.md), 'min_date' => [int](../types/int.md), 'max_date' => [int](../types/int.md), 'offset_id' => [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) +* Search peers or messages -$MadelineProto->[messages->searchGifs](messages_searchGifs.md)(\['q' => [string](../types/string.md), 'offset' => [int](../types/int.md), \]) === [$messages\_FoundGifs](../types/messages_FoundGifs.md) +* Search gifs -$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) +* Global message search -$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send message to secret chat -$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) +* Send a file to a secret chat -$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send a service message to a secret chat -$MadelineProto->[messages->sendInlineBotResult](messages_sendInlineBotResult.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'query_id' => [long](../types/long.md), 'id' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Send a received bot result to the chat -$MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'media' => [InputMedia](../types/InputMedia.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \]) === [$Updates](../types/Updates.md) +* Send a media -$MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Updates](../types/Updates.md) +* Send a message -$MadelineProto->[messages->sendScreenshotNotification](messages_sendScreenshotNotification.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) +* Send screenshot notification -$MadelineProto->[messages->setBotCallbackAnswer](messages_setBotCallbackAnswer.md)(\['alert' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'message' => [string](../types/string.md), 'url' => [string](../types/string.md), 'cache_time' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Bots only: set the callback answer (after a button was clicked) -$MadelineProto->[messages->setBotPrecheckoutResults](messages_setBotPrecheckoutResults.md)(\['success' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'error' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Bots only: set precheckout results -$MadelineProto->[messages->setBotShippingResults](messages_setBotShippingResults.md)(\['query_id' => [long](../types/long.md), 'error' => [string](../types/string.md), 'shipping_options' => \[[ShippingOption](../types/ShippingOption.md)\], \]) === [$Bool](../types/Bool.md) +* Bots only: set shipping results -$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Send typing notification to secret chat -$MadelineProto->[messages->setGameScore](messages_setGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'force' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) +* Set the game score -$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) +* Bots only: set the results of an inline query -$MadelineProto->[messages->setInlineGameScore](messages_setInlineGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'force' => [Bool](../types/Bool.md), 'id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Set the game score of an inline message -$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) +* Change typing status -$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) +* Start a bot -$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Enable all users are admins in normal groups (not supergroups) -$MadelineProto->[messages->toggleDialogPin](messages_toggleDialogPin.md)(\['pinned' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Pin or unpin dialog -$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) +* Remove a sticker set -$MadelineProto->[messages->uploadMedia](messages_uploadMedia.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'media' => [InputMedia](../types/InputMedia.md), \]) === [$MessageMedia](../types/MessageMedia.md) +* Upload a file without sending it to anyone *** -

$MadelineProto->[payments->clearSavedInfo](payments_clearSavedInfo.md)(\['credentials' => [Bool](../types/Bool.md), 'info' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +

* Clear saved payments info -$MadelineProto->[payments->getPaymentForm](payments_getPaymentForm.md)(\['msg_id' => [int](../types/int.md), \]) === [$payments\_PaymentForm](../types/payments_PaymentForm.md) +* Get payment form -$MadelineProto->[payments->getPaymentReceipt](payments_getPaymentReceipt.md)(\['msg_id' => [int](../types/int.md), \]) === [$payments\_PaymentReceipt](../types/payments_PaymentReceipt.md) +* Get payment receipt -$MadelineProto->[payments->getSavedInfo](payments_getSavedInfo.md)(\[\]) === [$payments\_SavedInfo](../types/payments_SavedInfo.md) +* Get saved payments info -$MadelineProto->[payments->sendPaymentForm](payments_sendPaymentForm.md)(\['msg_id' => [int](../types/int.md), 'requested_info_id' => [string](../types/string.md), 'shipping_option_id' => [string](../types/string.md), 'credentials' => [InputPaymentCredentials](../types/InputPaymentCredentials.md), \]) === [$payments\_PaymentResult](../types/payments_PaymentResult.md) +* Bots only: send payment form -$MadelineProto->[payments->validateRequestedInfo](payments_validateRequestedInfo.md)(\['save' => [Bool](../types/Bool.md), 'msg_id' => [int](../types/int.md), 'info' => [PaymentRequestedInfo](../types/PaymentRequestedInfo.md), \]) === [$payments\_ValidatedRequestedInfo](../types/payments_ValidatedRequestedInfo.md) +* Validate requested payment info *** -

$MadelineProto->[phone->acceptCall](phone_acceptCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'g_b' => [bytes](../types/bytes.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) +

* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls -$MadelineProto->[phone->confirmCall](phone_confirmCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'g_a' => [bytes](../types/bytes.md), 'key_fingerprint' => [long](../types/long.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls -$MadelineProto->[phone->discardCall](phone_discardCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'duration' => [int](../types/int.md), 'reason' => [PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md), 'connection_id' => [long](../types/long.md), \]) === [$Updates](../types/Updates.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls -$MadelineProto->[phone->getCallConfig](phone_getCallConfig.md)(\[\]) === [$DataJSON](../types/DataJSON.md) +* Get call configuration -$MadelineProto->[phone->receivedCall](phone_receivedCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), \]) === [$Bool](../types/Bool.md) +* Notify server that you received a call (server will refuse all incoming calls until the current call is over) -$MadelineProto->[phone->requestCall](phone_requestCall.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a_hash' => [bytes](../types/bytes.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls -$MadelineProto->[phone->saveCallDebug](phone_saveCallDebug.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'debug' => [DataJSON](../types/DataJSON.md), \]) === [$Bool](../types/Bool.md) +* Save call debugging info -$MadelineProto->[phone->setCallRating](phone_setCallRating.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'rating' => [int](../types/int.md), 'comment' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Set phone call rating *** -

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) +

* Delete profile photos -$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) +* Get the profile photos of a user -$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) +* Update the profile photo (use photos->uploadProfilePhoto to upload the photo) -$MadelineProto->[photos->uploadProfilePhoto](photos_uploadProfilePhoto.md)(\['file' => [InputFile](../types/InputFile.md), \]) === [$photos\_Photo](../types/photos_Photo.md) +* Upload profile photo *** -

$MadelineProto->[ping](ping.md)(\['ping_id' => [long](../types/long.md), \]) === [$Pong](../types/Pong.md) +

* pings the server -$MadelineProto->[ping_delay_disconnect](ping_delay_disconnect.md)(\['ping_id' => [long](../types/long.md), 'disconnect_delay' => [int](../types/int.md), \]) === [$Pong](../types/Pong.md) +* Pings the server and causes disconection if the same method is not called within ping_disconnect_delay *** -

$MadelineProto->[req_DH_params](req_DH_params.md)(\['nonce' => [int128](../types/int128.md), 'server_nonce' => [int128](../types/int128.md), 'p' => [string](../types/string.md), 'q' => [string](../types/string.md), 'public_key_fingerprint' => [long](../types/long.md), 'encrypted_data' => [string](../types/string.md), \]) === [$Server\_DH\_Params](../types/Server_DH_Params.md) +

* Requests Diffie-hellman parameters for key exchange -$MadelineProto->[req_pq](req_pq.md)(\['nonce' => [int128](../types/int128.md), \]) === [$ResPQ](../types/ResPQ.md) +* Requests PQ for factorization *** -

$MadelineProto->[rpc_drop_answer](rpc_drop_answer.md)(\['req_msg_id' => [long](../types/long.md), \]) === [$RpcDropAnswer](../types/RpcDropAnswer.md) +

* Do not send answer to provided request *** -

$MadelineProto->[set_client_DH_params](set_client_DH_params.md)(\['nonce' => [int128](../types/int128.md), 'server_nonce' => [int128](../types/int128.md), 'encrypted_data' => [string](../types/string.md), \]) === [$Set\_client\_DH\_params\_answer](../types/Set_client_DH_params_answer.md) +

* Sets client diffie-hellman parameters *** -

$MadelineProto->[stickers->addStickerToSet](stickers_addStickerToSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'sticker' => [InputStickerSetItem](../types/InputStickerSetItem.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) +

* Add sticker to stickerset -$MadelineProto->[stickers->changeStickerPosition](stickers_changeStickerPosition.md)(\['sticker' => [InputDocument](../types/InputDocument.md), 'position' => [int](../types/int.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) +* Change sticker position in photo -$MadelineProto->[stickers->createStickerSet](stickers_createStickerSet.md)(\['masks' => [Bool](../types/Bool.md), 'user_id' => [InputUser](../types/InputUser.md), 'title' => [string](../types/string.md), 'short_name' => [string](../types/string.md), 'stickers' => \[[InputStickerSetItem](../types/InputStickerSetItem.md)\], \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) +* Create stickerset -$MadelineProto->[stickers->removeStickerFromSet](stickers_removeStickerFromSet.md)(\['sticker' => [InputDocument](../types/InputDocument.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) +* Remove sticker from stickerset *** -

$MadelineProto->[updates->getChannelDifference](updates_getChannelDifference.md)(\['force' => [Bool](../types/Bool.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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates -$MadelineProto->[updates->getDifference](updates_getDifference.md)(\['pts' => [int](../types/int.md), 'pts_total_limit' => [int](../types/int.md), 'date' => [int](../types/int.md), 'qts' => [int](../types/int.md), \]) === [$updates\_Difference](../types/updates_Difference.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates -$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates *** -

$MadelineProto->[upload->getCdnFile](upload_getCdnFile.md)(\['file_token' => [bytes](../types/bytes.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$upload\_CdnFile](../types/upload_CdnFile.md) +

* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$MadelineProto->[upload->getCdnFileHashes](upload_getCdnFileHashes.md)(\['file_token' => [bytes](../types/bytes.md), 'offset' => [int](../types/int.md), \]) === [$Vector\_of\_CdnFileHash](../types/CdnFileHash.md) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$MadelineProto->[upload->getWebFile](upload_getWebFile.md)(\['location' => [InputWebFileLocation](../types/InputWebFileLocation.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$upload\_WebFile](../types/upload_WebFile.md) +* Download a file through telegram -$MadelineProto->[upload->reuploadCdnFile](upload_reuploadCdnFile.md)(\['file_token' => [bytes](../types/bytes.md), 'request_token' => [bytes](../types/bytes.md), \]) === [$Vector\_of\_CdnFileHash](../types/CdnFileHash.md) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info *** -

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) +

* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) +* Get info about users diff --git a/old_docs/API_docs_v72/methods/account_changePhone.md b/old_docs/API_docs_v72/methods/account_changePhone.md index aeb5c4bc..65f0b0d0 100644 --- a/old_docs/API_docs_v72/methods/account_changePhone.md +++ b/old_docs/API_docs_v72/methods/account_changePhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); diff --git a/old_docs/API_docs_v72/methods/account_checkUsername.md b/old_docs/API_docs_v72/methods/account_checkUsername.md index 0124bb38..08107762 100644 --- a/old_docs/API_docs_v72/methods/account_checkUsername.md +++ b/old_docs/API_docs_v72/methods/account_checkUsername.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v72/methods/account_confirmPhone.md b/old_docs/API_docs_v72/methods/account_confirmPhone.md index c6a1dba6..68490f35 100644 --- a/old_docs/API_docs_v72/methods/account_confirmPhone.md +++ b/old_docs/API_docs_v72/methods/account_confirmPhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->confirmPhone(['phone_code_hash' => 'string', 'phone_code' => 'string', ]); diff --git a/old_docs/API_docs_v72/methods/account_deleteAccount.md b/old_docs/API_docs_v72/methods/account_deleteAccount.md index e8b46c24..3a6f4700 100644 --- a/old_docs/API_docs_v72/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v72/methods/account_deleteAccount.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); diff --git a/old_docs/API_docs_v72/methods/account_getAccountTTL.md b/old_docs/API_docs_v72/methods/account_getAccountTTL.md index 0cdd0b98..ab6a6ea1 100644 --- a/old_docs/API_docs_v72/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v72/methods/account_getAccountTTL.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); diff --git a/old_docs/API_docs_v72/methods/account_getAuthorizations.md b/old_docs/API_docs_v72/methods/account_getAuthorizations.md index f92db8fe..303203e4 100644 --- a/old_docs/API_docs_v72/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v72/methods/account_getAuthorizations.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_Authorizations = $MadelineProto->account->getAuthorizations(); diff --git a/old_docs/API_docs_v72/methods/account_getNotifySettings.md b/old_docs/API_docs_v72/methods/account_getNotifySettings.md index f00be12c..ad492f49 100644 --- a/old_docs/API_docs_v72/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v72/methods/account_getNotifySettings.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); diff --git a/old_docs/API_docs_v72/methods/account_getPassword.md b/old_docs/API_docs_v72/methods/account_getPassword.md index c189421d..2692dab1 100644 --- a/old_docs/API_docs_v72/methods/account_getPassword.md +++ b/old_docs/API_docs_v72/methods/account_getPassword.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_Password = $MadelineProto->account->getPassword(); diff --git a/old_docs/API_docs_v72/methods/account_getPasswordSettings.md b/old_docs/API_docs_v72/methods/account_getPasswordSettings.md index 96cb953e..2039d405 100644 --- a/old_docs/API_docs_v72/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v72/methods/account_getPasswordSettings.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PasswordSettings = $MadelineProto->account->getPasswordSettings(['current_password_hash' => 'bytes', ]); diff --git a/old_docs/API_docs_v72/methods/account_getPrivacy.md b/old_docs/API_docs_v72/methods/account_getPrivacy.md index 979bfb94..5480ffbb 100644 --- a/old_docs/API_docs_v72/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v72/methods/account_getPrivacy.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); diff --git a/old_docs/API_docs_v72/methods/account_getTmpPassword.md b/old_docs/API_docs_v72/methods/account_getTmpPassword.md index a90f9b2b..01b1ebfc 100644 --- a/old_docs/API_docs_v72/methods/account_getTmpPassword.md +++ b/old_docs/API_docs_v72/methods/account_getTmpPassword.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_TmpPassword = $MadelineProto->account->getTmpPassword(['password_hash' => 'bytes', 'period' => int, ]); diff --git a/old_docs/API_docs_v72/methods/account_getWallPapers.md b/old_docs/API_docs_v72/methods/account_getWallPapers.md index 89b281be..7c8bff39 100644 --- a/old_docs/API_docs_v72/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v72/methods/account_getWallPapers.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); diff --git a/old_docs/API_docs_v72/methods/account_registerDevice.md b/old_docs/API_docs_v72/methods/account_registerDevice.md index cd28abcd..4e148a7f 100644 --- a/old_docs/API_docs_v72/methods/account_registerDevice.md +++ b/old_docs/API_docs_v72/methods/account_registerDevice.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', ]); diff --git a/old_docs/API_docs_v72/methods/account_reportPeer.md b/old_docs/API_docs_v72/methods/account_reportPeer.md index a07c87d0..c5fe7073 100644 --- a/old_docs/API_docs_v72/methods/account_reportPeer.md +++ b/old_docs/API_docs_v72/methods/account_reportPeer.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->reportPeer(['peer' => InputPeer, 'reason' => ReportReason, ]); diff --git a/old_docs/API_docs_v72/methods/account_resetAuthorization.md b/old_docs/API_docs_v72/methods/account_resetAuthorization.md index 4155d3c8..543aee08 100644 --- a/old_docs/API_docs_v72/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v72/methods/account_resetAuthorization.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetAuthorization(['hash' => long, ]); diff --git a/old_docs/API_docs_v72/methods/account_resetNotifySettings.md b/old_docs/API_docs_v72/methods/account_resetNotifySettings.md index ccc836a9..557373b0 100644 --- a/old_docs/API_docs_v72/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v72/methods/account_resetNotifySettings.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); diff --git a/old_docs/API_docs_v72/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v72/methods/account_sendChangePhoneCode.md index c9f9c174..bdf7331f 100644 --- a/old_docs/API_docs_v72/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v72/methods/account_sendChangePhoneCode.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendChangePhoneCode(['allow_flashcall' => Bool, 'phone_number' => 'string', 'current_number' => Bool, ]); diff --git a/old_docs/API_docs_v72/methods/account_sendConfirmPhoneCode.md b/old_docs/API_docs_v72/methods/account_sendConfirmPhoneCode.md index 3785ba75..86035d19 100644 --- a/old_docs/API_docs_v72/methods/account_sendConfirmPhoneCode.md +++ b/old_docs/API_docs_v72/methods/account_sendConfirmPhoneCode.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendConfirmPhoneCode(['allow_flashcall' => Bool, 'hash' => 'string', 'current_number' => Bool, ]); diff --git a/old_docs/API_docs_v72/methods/account_setAccountTTL.md b/old_docs/API_docs_v72/methods/account_setAccountTTL.md index 5100e62e..bacdd77a 100644 --- a/old_docs/API_docs_v72/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v72/methods/account_setAccountTTL.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); diff --git a/old_docs/API_docs_v72/methods/account_setPrivacy.md b/old_docs/API_docs_v72/methods/account_setPrivacy.md index fbcedae7..6e24ded7 100644 --- a/old_docs/API_docs_v72/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v72/methods/account_setPrivacy.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); diff --git a/old_docs/API_docs_v72/methods/account_unregisterDevice.md b/old_docs/API_docs_v72/methods/account_unregisterDevice.md index 1d2b7670..b666d91a 100644 --- a/old_docs/API_docs_v72/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v72/methods/account_unregisterDevice.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); diff --git a/old_docs/API_docs_v72/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v72/methods/account_updateDeviceLocked.md index ef816501..cd52093a 100644 --- a/old_docs/API_docs_v72/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v72/methods/account_updateDeviceLocked.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); diff --git a/old_docs/API_docs_v72/methods/account_updateNotifySettings.md b/old_docs/API_docs_v72/methods/account_updateNotifySettings.md index 18cbdb75..db020309 100644 --- a/old_docs/API_docs_v72/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v72/methods/account_updateNotifySettings.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); diff --git a/old_docs/API_docs_v72/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v72/methods/account_updatePasswordSettings.md index 0754dd63..8af1e37f 100644 --- a/old_docs/API_docs_v72/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v72/methods/account_updatePasswordSettings.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updatePasswordSettings(['current_password_hash' => 'bytes', 'new_settings' => account_PasswordInputSettings, ]); diff --git a/old_docs/API_docs_v72/methods/account_updateProfile.md b/old_docs/API_docs_v72/methods/account_updateProfile.md index e24ef2f5..59629188 100644 --- a/old_docs/API_docs_v72/methods/account_updateProfile.md +++ b/old_docs/API_docs_v72/methods/account_updateProfile.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', 'about' => 'string', ]); diff --git a/old_docs/API_docs_v72/methods/account_updateStatus.md b/old_docs/API_docs_v72/methods/account_updateStatus.md index 4b049e65..50b99b1e 100644 --- a/old_docs/API_docs_v72/methods/account_updateStatus.md +++ b/old_docs/API_docs_v72/methods/account_updateStatus.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); diff --git a/old_docs/API_docs_v72/methods/account_updateUsername.md b/old_docs/API_docs_v72/methods/account_updateUsername.md index 08d2abe0..7276e2aa 100644 --- a/old_docs/API_docs_v72/methods/account_updateUsername.md +++ b/old_docs/API_docs_v72/methods/account_updateUsername.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v72/methods/api_README.md b/old_docs/API_docs_v72/methods/api_README.md new file mode 100644 index 00000000..acd06647 --- /dev/null +++ b/old_docs/API_docs_v72/methods/api_README.md @@ -0,0 +1,560 @@ +--- +title: Methods +description: List of methods +--- +# Methods +[Back to API documentation index](..) + +[Go to the new description-version method index](index.html) + +$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); + +$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); + +$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); + +$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); + +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); + + +$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); + +$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); + +$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); + +$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); + +$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); + + +$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); + +$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); + +*** +

$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) + +$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->confirmPhone](account_confirmPhone.md)(\['phone_code_hash' => [string](../types/string.md), 'phone_code' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) + +$MadelineProto->[account->getAuthorizations](account_getAuthorizations.md)(\[\]) === [$account\_Authorizations](../types/account_Authorizations.md) + +$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) + +$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md) + +$MadelineProto->[account->getPasswordSettings](account_getPasswordSettings.md)(\['current_password_hash' => [bytes](../types/bytes.md), \]) === [$account\_PasswordSettings](../types/account_PasswordSettings.md) + +$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->getTmpPassword](account_getTmpPassword.md)(\['password_hash' => [bytes](../types/bytes.md), 'period' => [int](../types/int.md), \]) === [$account\_TmpPassword](../types/account_TmpPassword.md) + +$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) + +$MadelineProto->[account->registerDevice](account_registerDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->reportPeer](account_reportPeer.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reason' => [ReportReason](../types/ReportReason.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[account->sendConfirmPhoneCode](account_sendConfirmPhoneCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'hash' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) + +$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$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) + +$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) + +*** +

$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) + +$MadelineProto->[auth->cancelCode](auth_cancelCode.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) + +$MadelineProto->[auth->dropTempAuthKeys](auth_dropTempAuthKeys.md)(\['except_auth_keys' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) + +$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$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) + +$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->recoverPassword](auth_recoverPassword.md)(\['code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->requestPasswordRecovery](auth_requestPasswordRecovery.md)(\[\]) === [$auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) + +$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) + +$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->sendCode](auth_sendCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'phone_number' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), 'api_id' => [int](../types/int.md), 'api_hash' => [string](../types/string.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) + +$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$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) + +*** +

$MadelineProto->[bots->answerWebhookJSONQuery](bots_answerWebhookJSONQuery.md)(\['query_id' => [long](../types/long.md), 'data' => [DataJSON](../types/DataJSON.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[bots->sendCustomRequest](bots_sendCustomRequest.md)(\['custom_method' => [string](../types/string.md), 'params' => [DataJSON](../types/DataJSON.md), \]) === [$DataJSON](../types/DataJSON.md) + +*** +

$MadelineProto->[channels->checkUsername](channels_checkUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->deleteChannel](channels_deleteChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->deleteHistory](channels_deleteHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[channels->deleteMessages](channels_deleteMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[channels->deleteUserHistory](channels_deleteUserHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[channels->editAbout](channels_editAbout.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'about' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[channels->editAdmin](channels_editAdmin.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), 'admin_rights' => [ChannelAdminRights](../types/ChannelAdminRights.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->editBanned](channels_editBanned.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), 'banned_rights' => [ChannelBannedRights](../types/ChannelBannedRights.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->editPhoto](channels_editPhoto.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->editTitle](channels_editTitle.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->exportInvite](channels_exportInvite.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) + +$MadelineProto->[channels->exportMessageLink](channels_exportMessageLink.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => [int](../types/int.md), \]) === [$ExportedMessageLink](../types/ExportedMessageLink.md) + +$MadelineProto->[channels->getAdminLog](channels_getAdminLog.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'q' => [string](../types/string.md), 'events_filter' => [ChannelAdminLogEventsFilter](../types/ChannelAdminLogEventsFilter.md), 'admins' => \[[InputUser](../types/InputUser.md)\], 'max_id' => [long](../types/long.md), 'min_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), \]) === [$channels\_AdminLogResults](../types/channels_AdminLogResults.md) + +$MadelineProto->[channels->getAdminedPublicChannels](channels_getAdminedPublicChannels.md)(\[\]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[channels->getChannels](channels_getChannels.md)(\['id' => \[[InputChannel](../types/InputChannel.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[channels->getFullChannel](channels_getFullChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$MadelineProto->[channels->getMessages](channels_getMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) + +$MadelineProto->[channels->getParticipant](channels_getParticipant.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) + +$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), 'hash' => [int](../types/int.md), \]) === [$channels\_ChannelParticipants](../types/channels_ChannelParticipants.md) + +$MadelineProto->[channels->inviteToChannel](channels_inviteToChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'users' => \[[InputUser](../types/InputUser.md)\], \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->joinChannel](channels_joinChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->leaveChannel](channels_leaveChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->readHistory](channels_readHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[channels->readMessageContents](channels_readMessageContents.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->setStickers](channels_setStickers.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[channels->toggleInvites](channels_toggleInvites.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->togglePreHistoryHidden](channels_togglePreHistoryHidden.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->toggleSignatures](channels_toggleSignatures.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$MadelineProto->[channels->updateUsername](channels_updateUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) + +$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) + +$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) + +$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [int](../types/int.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) + +$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) + +$MadelineProto->[contacts->getTopPeers](contacts_getTopPeers.md)(\['correspondents' => [Bool](../types/Bool.md), 'bots_pm' => [Bool](../types/Bool.md), 'bots_inline' => [Bool](../types/Bool.md), 'phone_calls' => [Bool](../types/Bool.md), 'groups' => [Bool](../types/Bool.md), 'channels' => [Bool](../types/Bool.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'hash' => [int](../types/int.md), \]) === [$contacts\_TopPeers](../types/contacts_TopPeers.md) + +$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) + +$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) + +$MadelineProto->[contacts->resetSaved](contacts_resetSaved.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->resetTopPeerRating](contacts_resetTopPeerRating.md)(\['category' => [TopPeerCategory](../types/TopPeerCategory.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) + +$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) + +$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[contest->saveDeveloperInfo](contest_saveDeveloperInfo.md)(\['vk_id' => [int](../types/int.md), 'name' => [string](../types/string.md), 'phone_number' => [string](../types/string.md), 'age' => [int](../types/int.md), 'city' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[destroy_auth_key](destroy_auth_key.md)(\[\]) === [$DestroyAuthKeyRes](../types/DestroyAuthKeyRes.md) + +$MadelineProto->[destroy_session](destroy_session.md)(\['session_id' => [long](../types/long.md), \]) === [$DestroySessionRes](../types/DestroySessionRes.md) + +*** +

$MadelineProto->[get_future_salts](get_future_salts.md)(\['num' => [int](../types/int.md), \]) === [$FutureSalts](../types/FutureSalts.md) + +*** +

$MadelineProto->[help->getAppChangelog](help_getAppChangelog.md)(\['prev_app_version' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[help->getAppUpdate](help_getAppUpdate.md)(\[\]) === [$help\_AppUpdate](../types/help_AppUpdate.md) + +$MadelineProto->[help->getCdnConfig](help_getCdnConfig.md)(\[\]) === [$CdnConfig](../types/CdnConfig.md) + +$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) + +$MadelineProto->[help->getInviteText](help_getInviteText.md)(\[\]) === [$help\_InviteText](../types/help_InviteText.md) + +$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) + +$MadelineProto->[help->getRecentMeUrls](help_getRecentMeUrls.md)(\['referer' => [string](../types/string.md), \]) === [$help\_RecentMeUrls](../types/help_RecentMeUrls.md) + +$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) + +$MadelineProto->[help->getTermsOfService](help_getTermsOfService.md)(\[\]) === [$help\_TermsOfService](../types/help_TermsOfService.md) + +$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[help->setBotUpdatesStatus](help_setBotUpdatesStatus.md)(\['pending_updates_count' => [int](../types/int.md), 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +*** +

$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), 'system_lang_code' => [string](../types/string.md), 'lang_pack' => [string](../types/string.md), 'lang_code' => [string](../types/string.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeWithoutUpdates](invokeWithoutUpdates.md)(\['query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[langpack->getDifference](langpack_getDifference.md)(\['from_version' => [int](../types/int.md), \]) === [$LangPackDifference](../types/LangPackDifference.md) + +$MadelineProto->[langpack->getLangPack](langpack_getLangPack.md)(\['lang_code' => [string](../types/string.md), \]) === [$LangPackDifference](../types/LangPackDifference.md) + +$MadelineProto->[langpack->getLanguages](langpack_getLanguages.md)(\[\]) === [$Vector\_of\_LangPackLanguage](../types/LangPackLanguage.md) + +$MadelineProto->[langpack->getStrings](langpack_getStrings.md)(\['lang_code' => [string](../types/string.md), 'keys' => \[[string](../types/string.md)\], \]) === [$Vector\_of\_LangPackString](../types/LangPackString.md) + +*** +

$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) + +$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) + +$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md) + +$MadelineProto->[messages->clearRecentStickers](messages_clearRecentStickers.md)(\['attached' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['just_clear' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['revoke' => [Bool](../types/Bool.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$MadelineProto->[messages->editMessage](messages_editMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'stop_geo_live' => [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)\], 'geo_point' => [InputGeoPoint](../types/InputGeoPoint.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) + +$MadelineProto->[messages->faveSticker](messages_faveSticker.md)(\['id' => [InputDocument](../types/InputDocument.md), 'unfave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'with_my_score' => [Bool](../types/Bool.md), 'from_peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], 'to_peer' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->getAllChats](messages_getAllChats.md)(\['except_ids' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[messages->getAllDrafts](messages_getAllDrafts.md)(\[\]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) + +$MadelineProto->[messages->getArchivedStickers](messages_getArchivedStickers.md)(\['masks' => [Bool](../types/Bool.md), 'offset_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), \]) === [$messages\_ArchivedStickers](../types/messages_ArchivedStickers.md) + +$MadelineProto->[messages->getAttachedStickers](messages_getAttachedStickers.md)(\['media' => [InputStickeredMedia](../types/InputStickeredMedia.md), \]) === [$Vector\_of\_StickerSetCovered](../types/StickerSetCovered.md) + +$MadelineProto->[messages->getBotCallbackAnswer](messages_getBotCallbackAnswer.md)(\['game' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'msg_id' => [int](../types/int.md), 'data' => [bytes](../types/bytes.md), \]) === [$messages\_BotCallbackAnswer](../types/messages_BotCallbackAnswer.md) + +$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[messages->getCommonChats](messages_getCommonChats.md)(\['user_id' => [InputUser](../types/InputUser.md), 'max_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) + +$MadelineProto->[messages->getDialogs](messages_getDialogs.md)(\['exclude_pinned' => [Bool](../types/Bool.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) + +$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) + +$MadelineProto->[messages->getFavedStickers](messages_getFavedStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_FavedStickers](../types/messages_FavedStickers.md) + +$MadelineProto->[messages->getFeaturedStickers](messages_getFeaturedStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_FeaturedStickers](../types/messages_FeaturedStickers.md) + +$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$MadelineProto->[messages->getGameHighScores](messages_getGameHighScores.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_HighScores](../types/messages_HighScores.md) + +$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) + +$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) + +$MadelineProto->[messages->getInlineGameHighScores](messages_getInlineGameHighScores.md)(\['id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_HighScores](../types/messages_HighScores.md) + +$MadelineProto->[messages->getMaskStickers](messages_getMaskStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) + +$MadelineProto->[messages->getMessageEditData](messages_getMessageEditData.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$messages\_MessageEditData](../types/messages_MessageEditData.md) + +$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) + +$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) + +$MadelineProto->[messages->getPeerDialogs](messages_getPeerDialogs.md)(\['peers' => \[[InputPeer](../types/InputPeer.md)\], \]) === [$messages\_PeerDialogs](../types/messages_PeerDialogs.md) + +$MadelineProto->[messages->getPeerSettings](messages_getPeerSettings.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$PeerSettings](../types/PeerSettings.md) + +$MadelineProto->[messages->getPinnedDialogs](messages_getPinnedDialogs.md)(\[\]) === [$messages\_PeerDialogs](../types/messages_PeerDialogs.md) + +$MadelineProto->[messages->getRecentLocations](messages_getRecentLocations.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Messages](../types/messages_Messages.md) + +$MadelineProto->[messages->getRecentStickers](messages_getRecentStickers.md)(\['attached' => [Bool](../types/Bool.md), 'hash' => [int](../types/int.md), \]) === [$messages\_RecentStickers](../types/messages_RecentStickers.md) + +$MadelineProto->[messages->getSavedGifs](messages_getSavedGifs.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_SavedGifs](../types/messages_SavedGifs.md) + +$MadelineProto->[messages->getStickerSet](messages_getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +$MadelineProto->[messages->getUnreadMentions](messages_getUnreadMentions.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset_id' => [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) + +$MadelineProto->[messages->getWebPage](messages_getWebPage.md)(\['url' => [string](../types/string.md), 'hash' => [int](../types/int.md), \]) === [$WebPage](../types/WebPage.md) + +$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) === [$MessageMedia](../types/MessageMedia.md) + +$MadelineProto->[messages->hideReportSpam](messages_hideReportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'archived' => [Bool](../types/Bool.md), \]) === [$messages\_StickerSetInstallResult](../types/messages_StickerSetInstallResult.md) + +$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->readFeaturedStickers](messages_readFeaturedStickers.md)(\['id' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->readHistory](messages_readHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->readMentions](messages_readMentions.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_ReceivedNotifyMessage](../types/ReceivedNotifyMessage.md) + +$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) + +$MadelineProto->[messages->reorderPinnedDialogs](messages_reorderPinnedDialogs.md)(\['force' => [Bool](../types/Bool.md), 'order' => \[[InputPeer](../types/InputPeer.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->reorderStickerSets](messages_reorderStickerSets.md)(\['masks' => [Bool](../types/Bool.md), 'order' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->reportEncryptedSpam](messages_reportEncryptedSpam.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->reportSpam](messages_reportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) + +$MadelineProto->[messages->saveDraft](messages_saveDraft.md)(\['no_webpage' => [Bool](../types/Bool.md), 'reply_to_msg_id' => [int](../types/int.md), 'peer' => [InputPeer](../types/InputPeer.md), 'message' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->saveGif](messages_saveGif.md)(\['id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->saveRecentSticker](messages_saveRecentSticker.md)(\['attached' => [Bool](../types/Bool.md), 'id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->search](messages_search.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'q' => [string](../types/string.md), 'from_id' => [InputUser](../types/InputUser.md), 'filter' => [MessagesFilter](../types/MessagesFilter.md), 'min_date' => [int](../types/int.md), 'max_date' => [int](../types/int.md), 'offset_id' => [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) + +$MadelineProto->[messages->searchGifs](messages_searchGifs.md)(\['q' => [string](../types/string.md), 'offset' => [int](../types/int.md), \]) === [$messages\_FoundGifs](../types/messages_FoundGifs.md) + +$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) + +$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$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) + +$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$MadelineProto->[messages->sendInlineBotResult](messages_sendInlineBotResult.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'query_id' => [long](../types/long.md), 'id' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'media' => [InputMedia](../types/InputMedia.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->sendScreenshotNotification](messages_sendScreenshotNotification.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->setBotCallbackAnswer](messages_setBotCallbackAnswer.md)(\['alert' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'message' => [string](../types/string.md), 'url' => [string](../types/string.md), 'cache_time' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setBotPrecheckoutResults](messages_setBotPrecheckoutResults.md)(\['success' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'error' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setBotShippingResults](messages_setBotShippingResults.md)(\['query_id' => [long](../types/long.md), 'error' => [string](../types/string.md), 'shipping_options' => \[[ShippingOption](../types/ShippingOption.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setGameScore](messages_setGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'force' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$MadelineProto->[messages->setInlineGameScore](messages_setInlineGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'force' => [Bool](../types/Bool.md), 'id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->toggleDialogPin](messages_toggleDialogPin.md)(\['pinned' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->uploadMedia](messages_uploadMedia.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'media' => [InputMedia](../types/InputMedia.md), \]) === [$MessageMedia](../types/MessageMedia.md) + +*** +

$MadelineProto->[payments->clearSavedInfo](payments_clearSavedInfo.md)(\['credentials' => [Bool](../types/Bool.md), 'info' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[payments->getPaymentForm](payments_getPaymentForm.md)(\['msg_id' => [int](../types/int.md), \]) === [$payments\_PaymentForm](../types/payments_PaymentForm.md) + +$MadelineProto->[payments->getPaymentReceipt](payments_getPaymentReceipt.md)(\['msg_id' => [int](../types/int.md), \]) === [$payments\_PaymentReceipt](../types/payments_PaymentReceipt.md) + +$MadelineProto->[payments->getSavedInfo](payments_getSavedInfo.md)(\[\]) === [$payments\_SavedInfo](../types/payments_SavedInfo.md) + +$MadelineProto->[payments->sendPaymentForm](payments_sendPaymentForm.md)(\['msg_id' => [int](../types/int.md), 'requested_info_id' => [string](../types/string.md), 'shipping_option_id' => [string](../types/string.md), 'credentials' => [InputPaymentCredentials](../types/InputPaymentCredentials.md), \]) === [$payments\_PaymentResult](../types/payments_PaymentResult.md) + +$MadelineProto->[payments->validateRequestedInfo](payments_validateRequestedInfo.md)(\['save' => [Bool](../types/Bool.md), 'msg_id' => [int](../types/int.md), 'info' => [PaymentRequestedInfo](../types/PaymentRequestedInfo.md), \]) === [$payments\_ValidatedRequestedInfo](../types/payments_ValidatedRequestedInfo.md) + +*** +

$MadelineProto->[phone->acceptCall](phone_acceptCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'g_b' => [bytes](../types/bytes.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) + +$MadelineProto->[phone->confirmCall](phone_confirmCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'g_a' => [bytes](../types/bytes.md), 'key_fingerprint' => [long](../types/long.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) + +$MadelineProto->[phone->discardCall](phone_discardCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'duration' => [int](../types/int.md), 'reason' => [PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md), 'connection_id' => [long](../types/long.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[phone->getCallConfig](phone_getCallConfig.md)(\[\]) === [$DataJSON](../types/DataJSON.md) + +$MadelineProto->[phone->receivedCall](phone_receivedCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[phone->requestCall](phone_requestCall.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a_hash' => [bytes](../types/bytes.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) + +$MadelineProto->[phone->saveCallDebug](phone_saveCallDebug.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'debug' => [DataJSON](../types/DataJSON.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[phone->setCallRating](phone_setCallRating.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'rating' => [int](../types/int.md), 'comment' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +*** +

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) + +$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) + +$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) + +$MadelineProto->[photos->uploadProfilePhoto](photos_uploadProfilePhoto.md)(\['file' => [InputFile](../types/InputFile.md), \]) === [$photos\_Photo](../types/photos_Photo.md) + +*** +

$MadelineProto->[ping](ping.md)(\['ping_id' => [long](../types/long.md), \]) === [$Pong](../types/Pong.md) + +$MadelineProto->[ping_delay_disconnect](ping_delay_disconnect.md)(\['ping_id' => [long](../types/long.md), 'disconnect_delay' => [int](../types/int.md), \]) === [$Pong](../types/Pong.md) + +*** +

$MadelineProto->[req_DH_params](req_DH_params.md)(\['nonce' => [int128](../types/int128.md), 'server_nonce' => [int128](../types/int128.md), 'p' => [string](../types/string.md), 'q' => [string](../types/string.md), 'public_key_fingerprint' => [long](../types/long.md), 'encrypted_data' => [string](../types/string.md), \]) === [$Server\_DH\_Params](../types/Server_DH_Params.md) + +$MadelineProto->[req_pq](req_pq.md)(\['nonce' => [int128](../types/int128.md), \]) === [$ResPQ](../types/ResPQ.md) + +*** +

$MadelineProto->[rpc_drop_answer](rpc_drop_answer.md)(\['req_msg_id' => [long](../types/long.md), \]) === [$RpcDropAnswer](../types/RpcDropAnswer.md) + +*** +

$MadelineProto->[set_client_DH_params](set_client_DH_params.md)(\['nonce' => [int128](../types/int128.md), 'server_nonce' => [int128](../types/int128.md), 'encrypted_data' => [string](../types/string.md), \]) === [$Set\_client\_DH\_params\_answer](../types/Set_client_DH_params_answer.md) + +*** +

$MadelineProto->[stickers->addStickerToSet](stickers_addStickerToSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'sticker' => [InputStickerSetItem](../types/InputStickerSetItem.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +$MadelineProto->[stickers->changeStickerPosition](stickers_changeStickerPosition.md)(\['sticker' => [InputDocument](../types/InputDocument.md), 'position' => [int](../types/int.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +$MadelineProto->[stickers->createStickerSet](stickers_createStickerSet.md)(\['masks' => [Bool](../types/Bool.md), 'user_id' => [InputUser](../types/InputUser.md), 'title' => [string](../types/string.md), 'short_name' => [string](../types/string.md), 'stickers' => \[[InputStickerSetItem](../types/InputStickerSetItem.md)\], \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +$MadelineProto->[stickers->removeStickerFromSet](stickers_removeStickerFromSet.md)(\['sticker' => [InputDocument](../types/InputDocument.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +*** +

$MadelineProto->[updates->getChannelDifference](updates_getChannelDifference.md)(\['force' => [Bool](../types/Bool.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) + +$MadelineProto->[updates->getDifference](updates_getDifference.md)(\['pts' => [int](../types/int.md), 'pts_total_limit' => [int](../types/int.md), 'date' => [int](../types/int.md), 'qts' => [int](../types/int.md), \]) === [$updates\_Difference](../types/updates_Difference.md) + +$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) + +*** +

$MadelineProto->[upload->getCdnFile](upload_getCdnFile.md)(\['file_token' => [bytes](../types/bytes.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$upload\_CdnFile](../types/upload_CdnFile.md) + +$MadelineProto->[upload->getCdnFileHashes](upload_getCdnFileHashes.md)(\['file_token' => [bytes](../types/bytes.md), 'offset' => [int](../types/int.md), \]) === [$Vector\_of\_CdnFileHash](../types/CdnFileHash.md) + +$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) + +$MadelineProto->[upload->getWebFile](upload_getWebFile.md)(\['location' => [InputWebFileLocation](../types/InputWebFileLocation.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$upload\_WebFile](../types/upload_WebFile.md) + +$MadelineProto->[upload->reuploadCdnFile](upload_reuploadCdnFile.md)(\['file_token' => [bytes](../types/bytes.md), 'request_token' => [bytes](../types/bytes.md), \]) === [$Vector\_of\_CdnFileHash](../types/CdnFileHash.md) + +$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) + +$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) + +*** +

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) + +$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) + diff --git a/old_docs/API_docs_v72/methods/auth_cancelCode.md b/old_docs/API_docs_v72/methods/auth_cancelCode.md index 2ad15548..52b85d4c 100644 --- a/old_docs/API_docs_v72/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v72/methods/auth_cancelCode.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->cancelCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v72/methods/auth_checkPhone.md b/old_docs/API_docs_v72/methods/auth_checkPhone.md index 291221de..1826ce63 100644 --- a/old_docs/API_docs_v72/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v72/methods/auth_checkPhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); diff --git a/old_docs/API_docs_v72/methods/auth_dropTempAuthKeys.md b/old_docs/API_docs_v72/methods/auth_dropTempAuthKeys.md index 6474bbb3..5aa98b3b 100644 --- a/old_docs/API_docs_v72/methods/auth_dropTempAuthKeys.md +++ b/old_docs/API_docs_v72/methods/auth_dropTempAuthKeys.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->dropTempAuthKeys(['except_auth_keys' => [long, long], ]); diff --git a/old_docs/API_docs_v72/methods/auth_recoverPassword.md b/old_docs/API_docs_v72/methods/auth_recoverPassword.md index cdc9bd7d..5e37b0f3 100644 --- a/old_docs/API_docs_v72/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v72/methods/auth_recoverPassword.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_Authorization = $MadelineProto->auth->recoverPassword(['code' => 'string', ]); diff --git a/old_docs/API_docs_v72/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v72/methods/auth_requestPasswordRecovery.md index e18c6c93..c69d0c49 100644 --- a/old_docs/API_docs_v72/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v72/methods/auth_requestPasswordRecovery.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_PasswordRecovery = $MadelineProto->auth->requestPasswordRecovery(); diff --git a/old_docs/API_docs_v72/methods/auth_resendCode.md b/old_docs/API_docs_v72/methods/auth_resendCode.md index de437402..253480a3 100644 --- a/old_docs/API_docs_v72/methods/auth_resendCode.md +++ b/old_docs/API_docs_v72/methods/auth_resendCode.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_SentCode = $MadelineProto->auth->resendCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v72/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v72/methods/auth_resetAuthorizations.md index 47feea16..a46c880d 100644 --- a/old_docs/API_docs_v72/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v72/methods/auth_resetAuthorizations.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); diff --git a/old_docs/API_docs_v72/methods/auth_sendInvites.md b/old_docs/API_docs_v72/methods/auth_sendInvites.md index be32fe6b..9b88b4a3 100644 --- a/old_docs/API_docs_v72/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v72/methods/auth_sendInvites.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); diff --git a/old_docs/API_docs_v72/methods/bots_answerWebhookJSONQuery.md b/old_docs/API_docs_v72/methods/bots_answerWebhookJSONQuery.md index 61056bb4..40cb0477 100644 --- a/old_docs/API_docs_v72/methods/bots_answerWebhookJSONQuery.md +++ b/old_docs/API_docs_v72/methods/bots_answerWebhookJSONQuery.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->bots->answerWebhookJSONQuery(['query_id' => long, 'data' => DataJSON, ]); diff --git a/old_docs/API_docs_v72/methods/bots_sendCustomRequest.md b/old_docs/API_docs_v72/methods/bots_sendCustomRequest.md index fc8e764d..5a7f4e86 100644 --- a/old_docs/API_docs_v72/methods/bots_sendCustomRequest.md +++ b/old_docs/API_docs_v72/methods/bots_sendCustomRequest.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $DataJSON = $MadelineProto->bots->sendCustomRequest(['custom_method' => 'string', 'params' => DataJSON, ]); diff --git a/old_docs/API_docs_v72/methods/channels_checkUsername.md b/old_docs/API_docs_v72/methods/channels_checkUsername.md index 7bc7c245..7e3d5a89 100644 --- a/old_docs/API_docs_v72/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v72/methods/channels_checkUsername.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->checkUsername(['channel' => InputChannel, 'username' => 'string', ]); diff --git a/old_docs/API_docs_v72/methods/channels_createChannel.md b/old_docs/API_docs_v72/methods/channels_createChannel.md index 1305e4fb..a5ddc379 100644 --- a/old_docs/API_docs_v72/methods/channels_createChannel.md +++ b/old_docs/API_docs_v72/methods/channels_createChannel.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->createChannel(['broadcast' => Bool, 'megagroup' => Bool, 'title' => 'string', 'about' => 'string', ]); diff --git a/old_docs/API_docs_v72/methods/channels_deleteChannel.md b/old_docs/API_docs_v72/methods/channels_deleteChannel.md index e660d25c..69dad9a3 100644 --- a/old_docs/API_docs_v72/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v72/methods/channels_deleteChannel.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->deleteChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v72/methods/channels_deleteHistory.md b/old_docs/API_docs_v72/methods/channels_deleteHistory.md index 55a5e371..856a32e8 100644 --- a/old_docs/API_docs_v72/methods/channels_deleteHistory.md +++ b/old_docs/API_docs_v72/methods/channels_deleteHistory.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->deleteHistory(['channel' => InputChannel, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v72/methods/channels_deleteMessages.md b/old_docs/API_docs_v72/methods/channels_deleteMessages.md index fb9d3cc2..b12270b3 100644 --- a/old_docs/API_docs_v72/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v72/methods/channels_deleteMessages.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v72/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v72/methods/channels_deleteUserHistory.md index fbe34341..75f531bb 100644 --- a/old_docs/API_docs_v72/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v72/methods/channels_deleteUserHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->channels->deleteUserHistory(['channel' => InputChannel, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v72/methods/channels_editAbout.md b/old_docs/API_docs_v72/methods/channels_editAbout.md index 8908f29e..67521065 100644 --- a/old_docs/API_docs_v72/methods/channels_editAbout.md +++ b/old_docs/API_docs_v72/methods/channels_editAbout.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->editAbout(['channel' => InputChannel, 'about' => 'string', ]); diff --git a/old_docs/API_docs_v72/methods/channels_editAdmin.md b/old_docs/API_docs_v72/methods/channels_editAdmin.md index dcec7d2f..7cecbd64 100644 --- a/old_docs/API_docs_v72/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v72/methods/channels_editAdmin.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editAdmin(['channel' => InputChannel, 'user_id' => InputUser, 'admin_rights' => ChannelAdminRights, ]); diff --git a/old_docs/API_docs_v72/methods/channels_editBanned.md b/old_docs/API_docs_v72/methods/channels_editBanned.md index 9859bcae..ca9f2596 100644 --- a/old_docs/API_docs_v72/methods/channels_editBanned.md +++ b/old_docs/API_docs_v72/methods/channels_editBanned.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editBanned(['channel' => InputChannel, 'user_id' => InputUser, 'banned_rights' => ChannelBannedRights, ]); diff --git a/old_docs/API_docs_v72/methods/channels_editPhoto.md b/old_docs/API_docs_v72/methods/channels_editPhoto.md index 9ccd864f..c854c64a 100644 --- a/old_docs/API_docs_v72/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v72/methods/channels_editPhoto.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editPhoto(['channel' => InputChannel, 'photo' => InputChatPhoto, ]); diff --git a/old_docs/API_docs_v72/methods/channels_editTitle.md b/old_docs/API_docs_v72/methods/channels_editTitle.md index b1024faf..9bc6773e 100644 --- a/old_docs/API_docs_v72/methods/channels_editTitle.md +++ b/old_docs/API_docs_v72/methods/channels_editTitle.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editTitle(['channel' => InputChannel, 'title' => 'string', ]); diff --git a/old_docs/API_docs_v72/methods/channels_exportInvite.md b/old_docs/API_docs_v72/methods/channels_exportInvite.md index f0c737d5..ca65dcc8 100644 --- a/old_docs/API_docs_v72/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v72/methods/channels_exportInvite.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedChatInvite = $MadelineProto->channels->exportInvite(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v72/methods/channels_exportMessageLink.md b/old_docs/API_docs_v72/methods/channels_exportMessageLink.md index f910b594..b4a3c645 100644 --- a/old_docs/API_docs_v72/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v72/methods/channels_exportMessageLink.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedMessageLink = $MadelineProto->channels->exportMessageLink(['channel' => InputChannel, 'id' => int, ]); diff --git a/old_docs/API_docs_v72/methods/channels_getAdminLog.md b/old_docs/API_docs_v72/methods/channels_getAdminLog.md index 8aa33d23..4a419778 100644 --- a/old_docs/API_docs_v72/methods/channels_getAdminLog.md +++ b/old_docs/API_docs_v72/methods/channels_getAdminLog.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $channels_AdminLogResults = $MadelineProto->channels->getAdminLog(['channel' => InputChannel, 'q' => 'string', 'events_filter' => ChannelAdminLogEventsFilter, 'admins' => [InputUser, InputUser], 'max_id' => long, 'min_id' => long, 'limit' => int, ]); diff --git a/old_docs/API_docs_v72/methods/channels_getAdminedPublicChannels.md b/old_docs/API_docs_v72/methods/channels_getAdminedPublicChannels.md index 9646f529..febc44f9 100644 --- a/old_docs/API_docs_v72/methods/channels_getAdminedPublicChannels.md +++ b/old_docs/API_docs_v72/methods/channels_getAdminedPublicChannels.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->channels->getAdminedPublicChannels(); diff --git a/old_docs/API_docs_v72/methods/channels_getChannels.md b/old_docs/API_docs_v72/methods/channels_getChannels.md index 9cd9e798..af22556f 100644 --- a/old_docs/API_docs_v72/methods/channels_getChannels.md +++ b/old_docs/API_docs_v72/methods/channels_getChannels.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel, InputChannel], ]); diff --git a/old_docs/API_docs_v72/methods/channels_getMessages.md b/old_docs/API_docs_v72/methods/channels_getMessages.md index cc944fe5..eda13d0b 100644 --- a/old_docs/API_docs_v72/methods/channels_getMessages.md +++ b/old_docs/API_docs_v72/methods/channels_getMessages.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v72/methods/channels_getParticipant.md b/old_docs/API_docs_v72/methods/channels_getParticipant.md index db9b1fc6..be5fe96a 100644 --- a/old_docs/API_docs_v72/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v72/methods/channels_getParticipant.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $channels_ChannelParticipant = $MadelineProto->channels->getParticipant(['channel' => InputChannel, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v72/methods/channels_getParticipants.md b/old_docs/API_docs_v72/methods/channels_getParticipants.md index 9b2b6c2a..3772ef4b 100644 --- a/old_docs/API_docs_v72/methods/channels_getParticipants.md +++ b/old_docs/API_docs_v72/methods/channels_getParticipants.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $channels_ChannelParticipants = $MadelineProto->channels->getParticipants(['channel' => InputChannel, 'filter' => ChannelParticipantsFilter, 'offset' => int, 'limit' => int, 'hash' => int, ]); diff --git a/old_docs/API_docs_v72/methods/channels_inviteToChannel.md b/old_docs/API_docs_v72/methods/channels_inviteToChannel.md index 676f800c..e7d12db7 100644 --- a/old_docs/API_docs_v72/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v72/methods/channels_inviteToChannel.md @@ -52,12 +52,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v72/methods/channels_joinChannel.md b/old_docs/API_docs_v72/methods/channels_joinChannel.md index 721f707c..3ac2b326 100644 --- a/old_docs/API_docs_v72/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v72/methods/channels_joinChannel.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->joinChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v72/methods/channels_leaveChannel.md b/old_docs/API_docs_v72/methods/channels_leaveChannel.md index 7f02e08c..95b60a90 100644 --- a/old_docs/API_docs_v72/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v72/methods/channels_leaveChannel.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->leaveChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v72/methods/channels_readHistory.md b/old_docs/API_docs_v72/methods/channels_readHistory.md index cca891f0..c6b14541 100644 --- a/old_docs/API_docs_v72/methods/channels_readHistory.md +++ b/old_docs/API_docs_v72/methods/channels_readHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->readHistory(['channel' => InputChannel, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v72/methods/channels_readMessageContents.md b/old_docs/API_docs_v72/methods/channels_readMessageContents.md index 861844c4..aa9893c2 100644 --- a/old_docs/API_docs_v72/methods/channels_readMessageContents.md +++ b/old_docs/API_docs_v72/methods/channels_readMessageContents.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->readMessageContents(['channel' => InputChannel, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v72/methods/channels_reportSpam.md b/old_docs/API_docs_v72/methods/channels_reportSpam.md index 09af14e0..ca5c28f5 100644 --- a/old_docs/API_docs_v72/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v72/methods/channels_reportSpam.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v72/methods/channels_setStickers.md b/old_docs/API_docs_v72/methods/channels_setStickers.md index 9ed5bd55..d9be32a4 100644 --- a/old_docs/API_docs_v72/methods/channels_setStickers.md +++ b/old_docs/API_docs_v72/methods/channels_setStickers.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->setStickers(['channel' => InputChannel, 'stickerset' => InputStickerSet, ]); diff --git a/old_docs/API_docs_v72/methods/channels_toggleInvites.md b/old_docs/API_docs_v72/methods/channels_toggleInvites.md index 5b541f67..e9e6450d 100644 --- a/old_docs/API_docs_v72/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v72/methods/channels_toggleInvites.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->toggleInvites(['channel' => InputChannel, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v72/methods/channels_togglePreHistoryHidden.md b/old_docs/API_docs_v72/methods/channels_togglePreHistoryHidden.md index 9327de90..d07784de 100644 --- a/old_docs/API_docs_v72/methods/channels_togglePreHistoryHidden.md +++ b/old_docs/API_docs_v72/methods/channels_togglePreHistoryHidden.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->togglePreHistoryHidden(['channel' => InputChannel, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v72/methods/channels_toggleSignatures.md b/old_docs/API_docs_v72/methods/channels_toggleSignatures.md index f233a8e1..36d1eccb 100644 --- a/old_docs/API_docs_v72/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v72/methods/channels_toggleSignatures.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->toggleSignatures(['channel' => InputChannel, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v72/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v72/methods/channels_updatePinnedMessage.md index f06d1f0f..f8d10ece 100644 --- a/old_docs/API_docs_v72/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v72/methods/channels_updatePinnedMessage.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->updatePinnedMessage(['silent' => Bool, 'channel' => InputChannel, 'id' => int, ]); diff --git a/old_docs/API_docs_v72/methods/channels_updateUsername.md b/old_docs/API_docs_v72/methods/channels_updateUsername.md index ad34490a..2093b6ce 100644 --- a/old_docs/API_docs_v72/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v72/methods/channels_updateUsername.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->updateUsername(['channel' => InputChannel, 'username' => 'string', ]); diff --git a/old_docs/API_docs_v72/methods/contacts_block.md b/old_docs/API_docs_v72/methods/contacts_block.md index d0729d30..e592cace 100644 --- a/old_docs/API_docs_v72/methods/contacts_block.md +++ b/old_docs/API_docs_v72/methods/contacts_block.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v72/methods/contacts_deleteContact.md b/old_docs/API_docs_v72/methods/contacts_deleteContact.md index b8c17544..1a3f2a27 100644 --- a/old_docs/API_docs_v72/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v72/methods/contacts_deleteContact.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v72/methods/contacts_deleteContacts.md b/old_docs/API_docs_v72/methods/contacts_deleteContacts.md index 64c69460..f6627599 100644 --- a/old_docs/API_docs_v72/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v72/methods/contacts_deleteContacts.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v72/methods/contacts_exportCard.md b/old_docs/API_docs_v72/methods/contacts_exportCard.md index b05f57ce..1d2129f3 100644 --- a/old_docs/API_docs_v72/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v72/methods/contacts_exportCard.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); diff --git a/old_docs/API_docs_v72/methods/contacts_getBlocked.md b/old_docs/API_docs_v72/methods/contacts_getBlocked.md index d7d8c5cc..44d24aba 100644 --- a/old_docs/API_docs_v72/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v72/methods/contacts_getBlocked.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v72/methods/contacts_getContacts.md b/old_docs/API_docs_v72/methods/contacts_getContacts.md index 3e06bea4..589572dc 100644 --- a/old_docs/API_docs_v72/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v72/methods/contacts_getContacts.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => int, ]); diff --git a/old_docs/API_docs_v72/methods/contacts_getStatuses.md b/old_docs/API_docs_v72/methods/contacts_getStatuses.md index b927a140..5cef3084 100644 --- a/old_docs/API_docs_v72/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v72/methods/contacts_getStatuses.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); diff --git a/old_docs/API_docs_v72/methods/contacts_getTopPeers.md b/old_docs/API_docs_v72/methods/contacts_getTopPeers.md index 226d3aa0..4958e6b2 100644 --- a/old_docs/API_docs_v72/methods/contacts_getTopPeers.md +++ b/old_docs/API_docs_v72/methods/contacts_getTopPeers.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_TopPeers = $MadelineProto->contacts->getTopPeers(['correspondents' => Bool, 'bots_pm' => Bool, 'bots_inline' => Bool, 'phone_calls' => Bool, 'groups' => Bool, 'channels' => Bool, 'offset' => int, 'limit' => int, 'hash' => int, ]); diff --git a/old_docs/API_docs_v72/methods/contacts_importCard.md b/old_docs/API_docs_v72/methods/contacts_importCard.md index 81a1e138..89c96657 100644 --- a/old_docs/API_docs_v72/methods/contacts_importCard.md +++ b/old_docs/API_docs_v72/methods/contacts_importCard.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); diff --git a/old_docs/API_docs_v72/methods/contacts_importContacts.md b/old_docs/API_docs_v72/methods/contacts_importContacts.md index 16ecd74b..ccc0eada 100644 --- a/old_docs/API_docs_v72/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v72/methods/contacts_importContacts.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], ]); diff --git a/old_docs/API_docs_v72/methods/contacts_resetSaved.md b/old_docs/API_docs_v72/methods/contacts_resetSaved.md index 50034ace..d6d9d95d 100644 --- a/old_docs/API_docs_v72/methods/contacts_resetSaved.md +++ b/old_docs/API_docs_v72/methods/contacts_resetSaved.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->resetSaved(); diff --git a/old_docs/API_docs_v72/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v72/methods/contacts_resetTopPeerRating.md index 4b485921..4b5e96f1 100644 --- a/old_docs/API_docs_v72/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v72/methods/contacts_resetTopPeerRating.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->resetTopPeerRating(['category' => TopPeerCategory, 'peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v72/methods/contacts_search.md b/old_docs/API_docs_v72/methods/contacts_search.md index 68daecd6..64ff748e 100644 --- a/old_docs/API_docs_v72/methods/contacts_search.md +++ b/old_docs/API_docs_v72/methods/contacts_search.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); diff --git a/old_docs/API_docs_v72/methods/contacts_unblock.md b/old_docs/API_docs_v72/methods/contacts_unblock.md index f7d151b9..ec72ae2d 100644 --- a/old_docs/API_docs_v72/methods/contacts_unblock.md +++ b/old_docs/API_docs_v72/methods/contacts_unblock.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v72/methods/contest_saveDeveloperInfo.md b/old_docs/API_docs_v72/methods/contest_saveDeveloperInfo.md index 3e40c0f3..5d82a4be 100644 --- a/old_docs/API_docs_v72/methods/contest_saveDeveloperInfo.md +++ b/old_docs/API_docs_v72/methods/contest_saveDeveloperInfo.md @@ -33,12 +33,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contest->saveDeveloperInfo(['vk_id' => int, 'name' => 'string', 'phone_number' => 'string', 'age' => int, 'city' => 'string', ]); diff --git a/old_docs/API_docs_v72/methods/destroy_auth_key.md b/old_docs/API_docs_v72/methods/destroy_auth_key.md index eb6ba218..dbcc7b23 100644 --- a/old_docs/API_docs_v72/methods/destroy_auth_key.md +++ b/old_docs/API_docs_v72/methods/destroy_auth_key.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $DestroyAuthKeyRes = $MadelineProto->destroy_auth_key(); diff --git a/old_docs/API_docs_v72/methods/destroy_session.md b/old_docs/API_docs_v72/methods/destroy_session.md index 326e8d8e..b74fbd11 100644 --- a/old_docs/API_docs_v72/methods/destroy_session.md +++ b/old_docs/API_docs_v72/methods/destroy_session.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $DestroySessionRes = $MadelineProto->destroy_session(['session_id' => long, ]); diff --git a/old_docs/API_docs_v72/methods/get_future_salts.md b/old_docs/API_docs_v72/methods/get_future_salts.md index 9d4be95e..e8451015 100644 --- a/old_docs/API_docs_v72/methods/get_future_salts.md +++ b/old_docs/API_docs_v72/methods/get_future_salts.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $FutureSalts = $MadelineProto->get_future_salts(['num' => int, ]); diff --git a/old_docs/API_docs_v72/methods/help_getAppChangelog.md b/old_docs/API_docs_v72/methods/help_getAppChangelog.md index 477df2f8..eda473a6 100644 --- a/old_docs/API_docs_v72/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v72/methods/help_getAppChangelog.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->help->getAppChangelog(['prev_app_version' => 'string', ]); diff --git a/old_docs/API_docs_v72/methods/help_getAppUpdate.md b/old_docs/API_docs_v72/methods/help_getAppUpdate.md index b88906ae..c6a42922 100644 --- a/old_docs/API_docs_v72/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v72/methods/help_getAppUpdate.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(); diff --git a/old_docs/API_docs_v72/methods/help_getCdnConfig.md b/old_docs/API_docs_v72/methods/help_getCdnConfig.md index 809ea1fb..b98949ed 100644 --- a/old_docs/API_docs_v72/methods/help_getCdnConfig.md +++ b/old_docs/API_docs_v72/methods/help_getCdnConfig.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $CdnConfig = $MadelineProto->help->getCdnConfig(); diff --git a/old_docs/API_docs_v72/methods/help_getConfig.md b/old_docs/API_docs_v72/methods/help_getConfig.md index 16e25c68..ca4bfc25 100644 --- a/old_docs/API_docs_v72/methods/help_getConfig.md +++ b/old_docs/API_docs_v72/methods/help_getConfig.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); diff --git a/old_docs/API_docs_v72/methods/help_getInviteText.md b/old_docs/API_docs_v72/methods/help_getInviteText.md index 6b226bff..7311b7fb 100644 --- a/old_docs/API_docs_v72/methods/help_getInviteText.md +++ b/old_docs/API_docs_v72/methods/help_getInviteText.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(); diff --git a/old_docs/API_docs_v72/methods/help_getNearestDc.md b/old_docs/API_docs_v72/methods/help_getNearestDc.md index 35a8bf91..458f60ab 100644 --- a/old_docs/API_docs_v72/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v72/methods/help_getNearestDc.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); diff --git a/old_docs/API_docs_v72/methods/help_getRecentMeUrls.md b/old_docs/API_docs_v72/methods/help_getRecentMeUrls.md index 43a47dad..29d2e21f 100644 --- a/old_docs/API_docs_v72/methods/help_getRecentMeUrls.md +++ b/old_docs/API_docs_v72/methods/help_getRecentMeUrls.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_RecentMeUrls = $MadelineProto->help->getRecentMeUrls(['referer' => 'string', ]); diff --git a/old_docs/API_docs_v72/methods/help_getSupport.md b/old_docs/API_docs_v72/methods/help_getSupport.md index a5bab0f2..9ee25b00 100644 --- a/old_docs/API_docs_v72/methods/help_getSupport.md +++ b/old_docs/API_docs_v72/methods/help_getSupport.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); diff --git a/old_docs/API_docs_v72/methods/help_getTermsOfService.md b/old_docs/API_docs_v72/methods/help_getTermsOfService.md index 487cd83a..4dea9f79 100644 --- a/old_docs/API_docs_v72/methods/help_getTermsOfService.md +++ b/old_docs/API_docs_v72/methods/help_getTermsOfService.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_TermsOfService = $MadelineProto->help->getTermsOfService(); diff --git a/old_docs/API_docs_v72/methods/help_saveAppLog.md b/old_docs/API_docs_v72/methods/help_saveAppLog.md index 0165b6e3..a7884c47 100644 --- a/old_docs/API_docs_v72/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v72/methods/help_saveAppLog.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); diff --git a/old_docs/API_docs_v72/methods/help_setBotUpdatesStatus.md b/old_docs/API_docs_v72/methods/help_setBotUpdatesStatus.md index ff314b5c..a1a3ab1b 100644 --- a/old_docs/API_docs_v72/methods/help_setBotUpdatesStatus.md +++ b/old_docs/API_docs_v72/methods/help_setBotUpdatesStatus.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->help->setBotUpdatesStatus(['pending_updates_count' => int, 'message' => 'string', ]); diff --git a/old_docs/API_docs_v72/methods/initConnection.md b/old_docs/API_docs_v72/methods/initConnection.md index d1d725e7..c66aa8b1 100644 --- a/old_docs/API_docs_v72/methods/initConnection.md +++ b/old_docs/API_docs_v72/methods/initConnection.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->initConnection(['api_id' => int, 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'system_lang_code' => 'string', 'lang_pack' => 'string', 'lang_code' => 'string', 'query' => !X, ]); diff --git a/old_docs/API_docs_v72/methods/invokeAfterMsg.md b/old_docs/API_docs_v72/methods/invokeAfterMsg.md index e33a2c93..8e953e78 100644 --- a/old_docs/API_docs_v72/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v72/methods/invokeAfterMsg.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); diff --git a/old_docs/API_docs_v72/methods/invokeAfterMsgs.md b/old_docs/API_docs_v72/methods/invokeAfterMsgs.md index 3150a613..bc8a83b7 100644 --- a/old_docs/API_docs_v72/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v72/methods/invokeAfterMsgs.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); diff --git a/old_docs/API_docs_v72/methods/invokeWithLayer.md b/old_docs/API_docs_v72/methods/invokeWithLayer.md index 71d02abb..8a0c4e79 100644 --- a/old_docs/API_docs_v72/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v72/methods/invokeWithLayer.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); diff --git a/old_docs/API_docs_v72/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v72/methods/invokeWithoutUpdates.md index 2bab236a..2d90a776 100644 --- a/old_docs/API_docs_v72/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v72/methods/invokeWithoutUpdates.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeWithoutUpdates(['query' => !X, ]); diff --git a/old_docs/API_docs_v72/methods/langpack_getDifference.md b/old_docs/API_docs_v72/methods/langpack_getDifference.md index 0eed6475..0a6512e4 100644 --- a/old_docs/API_docs_v72/methods/langpack_getDifference.md +++ b/old_docs/API_docs_v72/methods/langpack_getDifference.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $LangPackDifference = $MadelineProto->langpack->getDifference(['from_version' => int, ]); diff --git a/old_docs/API_docs_v72/methods/langpack_getLangPack.md b/old_docs/API_docs_v72/methods/langpack_getLangPack.md index 4f26fd7a..45a9ca47 100644 --- a/old_docs/API_docs_v72/methods/langpack_getLangPack.md +++ b/old_docs/API_docs_v72/methods/langpack_getLangPack.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $LangPackDifference = $MadelineProto->langpack->getLangPack(['lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v72/methods/langpack_getLanguages.md b/old_docs/API_docs_v72/methods/langpack_getLanguages.md index 6e8dab41..b573a5eb 100644 --- a/old_docs/API_docs_v72/methods/langpack_getLanguages.md +++ b/old_docs/API_docs_v72/methods/langpack_getLanguages.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_LangPackLanguage = $MadelineProto->langpack->getLanguages(); diff --git a/old_docs/API_docs_v72/methods/langpack_getStrings.md b/old_docs/API_docs_v72/methods/langpack_getStrings.md index 40612baf..841b02db 100644 --- a/old_docs/API_docs_v72/methods/langpack_getStrings.md +++ b/old_docs/API_docs_v72/methods/langpack_getStrings.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_LangPackString = $MadelineProto->langpack->getStrings(['lang_code' => 'string', 'keys' => ['string', 'string'], ]); diff --git a/old_docs/API_docs_v72/methods/messages_addChatUser.md b/old_docs/API_docs_v72/methods/messages_addChatUser.md index 3e4c5ccc..c6ef275f 100644 --- a/old_docs/API_docs_v72/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v72/methods/messages_addChatUser.md @@ -46,12 +46,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); diff --git a/old_docs/API_docs_v72/methods/messages_checkChatInvite.md b/old_docs/API_docs_v72/methods/messages_checkChatInvite.md index de1d9ff4..cea63313 100644 --- a/old_docs/API_docs_v72/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v72/methods/messages_checkChatInvite.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ChatInvite = $MadelineProto->messages->checkChatInvite(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v72/methods/messages_clearRecentStickers.md b/old_docs/API_docs_v72/methods/messages_clearRecentStickers.md index 9c1b3754..1d6ec8c9 100644 --- a/old_docs/API_docs_v72/methods/messages_clearRecentStickers.md +++ b/old_docs/API_docs_v72/methods/messages_clearRecentStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->clearRecentStickers(['attached' => Bool, ]); diff --git a/old_docs/API_docs_v72/methods/messages_createChat.md b/old_docs/API_docs_v72/methods/messages_createChat.md index 68c0263a..966f58dc 100644 --- a/old_docs/API_docs_v72/methods/messages_createChat.md +++ b/old_docs/API_docs_v72/methods/messages_createChat.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); diff --git a/old_docs/API_docs_v72/methods/messages_deleteChatUser.md b/old_docs/API_docs_v72/methods/messages_deleteChatUser.md index 0a6830de..9a9227ba 100644 --- a/old_docs/API_docs_v72/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v72/methods/messages_deleteChatUser.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v72/methods/messages_deleteHistory.md b/old_docs/API_docs_v72/methods/messages_deleteHistory.md index e44433c1..45e9890d 100644 --- a/old_docs/API_docs_v72/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v72/methods/messages_deleteHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['just_clear' => Bool, 'peer' => InputPeer, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v72/methods/messages_deleteMessages.md b/old_docs/API_docs_v72/methods/messages_deleteMessages.md index 0da41180..c8670444 100644 --- a/old_docs/API_docs_v72/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v72/methods/messages_deleteMessages.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['revoke' => Bool, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v72/methods/messages_editChatAdmin.md b/old_docs/API_docs_v72/methods/messages_editChatAdmin.md index 7916f8b1..5bba0559 100644 --- a/old_docs/API_docs_v72/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v72/methods/messages_editChatAdmin.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]); diff --git a/old_docs/API_docs_v72/methods/messages_editChatPhoto.md b/old_docs/API_docs_v72/methods/messages_editChatPhoto.md index 122913c4..5827a5cc 100644 --- a/old_docs/API_docs_v72/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v72/methods/messages_editChatPhoto.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); diff --git a/old_docs/API_docs_v72/methods/messages_editChatTitle.md b/old_docs/API_docs_v72/methods/messages_editChatTitle.md index 3a1e974b..2e69d790 100644 --- a/old_docs/API_docs_v72/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v72/methods/messages_editChatTitle.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); diff --git a/old_docs/API_docs_v72/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v72/methods/messages_editInlineBotMessage.md index 2237fb20..73c8a2c4 100644 --- a/old_docs/API_docs_v72/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v72/methods/messages_editInlineBotMessage.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->editInlineBotMessage(['no_webpage' => Bool, 'id' => InputBotInlineMessageID, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v72/methods/messages_editMessage.md b/old_docs/API_docs_v72/methods/messages_editMessage.md index f2533fc2..e3178d97 100644 --- a/old_docs/API_docs_v72/methods/messages_editMessage.md +++ b/old_docs/API_docs_v72/methods/messages_editMessage.md @@ -53,12 +53,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editMessage(['no_webpage' => Bool, 'stop_geo_live' => Bool, 'peer' => InputPeer, 'id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', 'geo_point' => InputGeoPoint, ]); diff --git a/old_docs/API_docs_v72/methods/messages_exportChatInvite.md b/old_docs/API_docs_v72/methods/messages_exportChatInvite.md index 98685d96..ec80e207 100644 --- a/old_docs/API_docs_v72/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v72/methods/messages_exportChatInvite.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]); diff --git a/old_docs/API_docs_v72/methods/messages_faveSticker.md b/old_docs/API_docs_v72/methods/messages_faveSticker.md index c1ffb16a..ee1eb66a 100644 --- a/old_docs/API_docs_v72/methods/messages_faveSticker.md +++ b/old_docs/API_docs_v72/methods/messages_faveSticker.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->faveSticker(['id' => InputDocument, 'unfave' => Bool, ]); diff --git a/old_docs/API_docs_v72/methods/messages_forwardMessage.md b/old_docs/API_docs_v72/methods/messages_forwardMessage.md index 45b7a07f..d6916437 100644 --- a/old_docs/API_docs_v72/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v72/methods/messages_forwardMessage.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); diff --git a/old_docs/API_docs_v72/methods/messages_forwardMessages.md b/old_docs/API_docs_v72/methods/messages_forwardMessages.md index efe58e67..b99e1d31 100644 --- a/old_docs/API_docs_v72/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v72/methods/messages_forwardMessages.md @@ -62,12 +62,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessages(['silent' => Bool, 'background' => Bool, 'with_my_score' => Bool, 'from_peer' => InputPeer, 'id' => [int, int], 'to_peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v72/methods/messages_getAllChats.md b/old_docs/API_docs_v72/methods/messages_getAllChats.md index 127456e4..513fc06f 100644 --- a/old_docs/API_docs_v72/methods/messages_getAllChats.md +++ b/old_docs/API_docs_v72/methods/messages_getAllChats.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getAllChats(['except_ids' => [int, int], ]); diff --git a/old_docs/API_docs_v72/methods/messages_getAllDrafts.md b/old_docs/API_docs_v72/methods/messages_getAllDrafts.md index 2c0ecd42..43a95bb2 100644 --- a/old_docs/API_docs_v72/methods/messages_getAllDrafts.md +++ b/old_docs/API_docs_v72/methods/messages_getAllDrafts.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->getAllDrafts(); diff --git a/old_docs/API_docs_v72/methods/messages_getAllStickers.md b/old_docs/API_docs_v72/methods/messages_getAllStickers.md index 16fdba6c..2ba37a91 100644 --- a/old_docs/API_docs_v72/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v72/methods/messages_getAllStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => int, ]); diff --git a/old_docs/API_docs_v72/methods/messages_getArchivedStickers.md b/old_docs/API_docs_v72/methods/messages_getArchivedStickers.md index f037e1bc..ee36b542 100644 --- a/old_docs/API_docs_v72/methods/messages_getArchivedStickers.md +++ b/old_docs/API_docs_v72/methods/messages_getArchivedStickers.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_ArchivedStickers = $MadelineProto->messages->getArchivedStickers(['masks' => Bool, 'offset_id' => long, 'limit' => int, ]); diff --git a/old_docs/API_docs_v72/methods/messages_getAttachedStickers.md b/old_docs/API_docs_v72/methods/messages_getAttachedStickers.md index 890680cd..9f8a66c5 100644 --- a/old_docs/API_docs_v72/methods/messages_getAttachedStickers.md +++ b/old_docs/API_docs_v72/methods/messages_getAttachedStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_StickerSetCovered = $MadelineProto->messages->getAttachedStickers(['media' => InputStickeredMedia, ]); diff --git a/old_docs/API_docs_v72/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v72/methods/messages_getBotCallbackAnswer.md index 09c283f5..0136227f 100644 --- a/old_docs/API_docs_v72/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v72/methods/messages_getBotCallbackAnswer.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_BotCallbackAnswer = $MadelineProto->messages->getBotCallbackAnswer(['game' => Bool, 'peer' => InputPeer, 'msg_id' => int, 'data' => 'bytes', ]); diff --git a/old_docs/API_docs_v72/methods/messages_getChats.md b/old_docs/API_docs_v72/methods/messages_getChats.md index 290438a1..e84c7193 100644 --- a/old_docs/API_docs_v72/methods/messages_getChats.md +++ b/old_docs/API_docs_v72/methods/messages_getChats.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v72/methods/messages_getCommonChats.md b/old_docs/API_docs_v72/methods/messages_getCommonChats.md index e6eca283..15ed6713 100644 --- a/old_docs/API_docs_v72/methods/messages_getCommonChats.md +++ b/old_docs/API_docs_v72/methods/messages_getCommonChats.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getCommonChats(['user_id' => InputUser, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v72/methods/messages_getDialogs.md b/old_docs/API_docs_v72/methods/messages_getDialogs.md index e100228b..53f9ac62 100644 --- a/old_docs/API_docs_v72/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v72/methods/messages_getDialogs.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['exclude_pinned' => Bool, 'offset_date' => int, 'offset_id' => int, 'offset_peer' => InputPeer, 'limit' => int, ]); diff --git a/old_docs/API_docs_v72/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v72/methods/messages_getDocumentByHash.md index 1af5bad4..ad8e22be 100644 --- a/old_docs/API_docs_v72/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v72/methods/messages_getDocumentByHash.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Document = $MadelineProto->messages->getDocumentByHash(['sha256' => 'bytes', 'size' => int, 'mime_type' => 'string', ]); diff --git a/old_docs/API_docs_v72/methods/messages_getFavedStickers.md b/old_docs/API_docs_v72/methods/messages_getFavedStickers.md index 1be542be..8ef3e565 100644 --- a/old_docs/API_docs_v72/methods/messages_getFavedStickers.md +++ b/old_docs/API_docs_v72/methods/messages_getFavedStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_FavedStickers = $MadelineProto->messages->getFavedStickers(['hash' => int, ]); diff --git a/old_docs/API_docs_v72/methods/messages_getFeaturedStickers.md b/old_docs/API_docs_v72/methods/messages_getFeaturedStickers.md index 512f2e85..8e49e1ef 100644 --- a/old_docs/API_docs_v72/methods/messages_getFeaturedStickers.md +++ b/old_docs/API_docs_v72/methods/messages_getFeaturedStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_FeaturedStickers = $MadelineProto->messages->getFeaturedStickers(['hash' => int, ]); diff --git a/old_docs/API_docs_v72/methods/messages_getGameHighScores.md b/old_docs/API_docs_v72/methods/messages_getGameHighScores.md index 5137baea..113e4647 100644 --- a/old_docs/API_docs_v72/methods/messages_getGameHighScores.md +++ b/old_docs/API_docs_v72/methods/messages_getGameHighScores.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_HighScores = $MadelineProto->messages->getGameHighScores(['peer' => InputPeer, 'id' => int, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v72/methods/messages_getHistory.md b/old_docs/API_docs_v72/methods/messages_getHistory.md index dfae66e6..851d2680 100644 --- a/old_docs/API_docs_v72/methods/messages_getHistory.md +++ b/old_docs/API_docs_v72/methods/messages_getHistory.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getHistory(['peer' => InputPeer, 'offset_id' => int, 'offset_date' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); diff --git a/old_docs/API_docs_v72/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v72/methods/messages_getInlineBotResults.md index 8ab5bf78..4d86caf5 100644 --- a/old_docs/API_docs_v72/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v72/methods/messages_getInlineBotResults.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_BotResults = $MadelineProto->messages->getInlineBotResults(['bot' => InputUser, 'peer' => InputPeer, 'geo_point' => InputGeoPoint, 'query' => 'string', 'offset' => 'string', ]); diff --git a/old_docs/API_docs_v72/methods/messages_getInlineGameHighScores.md b/old_docs/API_docs_v72/methods/messages_getInlineGameHighScores.md index 790bfdd9..d5a80005 100644 --- a/old_docs/API_docs_v72/methods/messages_getInlineGameHighScores.md +++ b/old_docs/API_docs_v72/methods/messages_getInlineGameHighScores.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_HighScores = $MadelineProto->messages->getInlineGameHighScores(['id' => InputBotInlineMessageID, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v72/methods/messages_getMaskStickers.md b/old_docs/API_docs_v72/methods/messages_getMaskStickers.md index f4ed9411..70e2e6d4 100644 --- a/old_docs/API_docs_v72/methods/messages_getMaskStickers.md +++ b/old_docs/API_docs_v72/methods/messages_getMaskStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getMaskStickers(['hash' => int, ]); diff --git a/old_docs/API_docs_v72/methods/messages_getMessageEditData.md b/old_docs/API_docs_v72/methods/messages_getMessageEditData.md index 12e71bee..34f8534f 100644 --- a/old_docs/API_docs_v72/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v72/methods/messages_getMessageEditData.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_MessageEditData = $MadelineProto->messages->getMessageEditData(['peer' => InputPeer, 'id' => int, ]); diff --git a/old_docs/API_docs_v72/methods/messages_getMessages.md b/old_docs/API_docs_v72/methods/messages_getMessages.md index 86d1da8a..d538cb5f 100644 --- a/old_docs/API_docs_v72/methods/messages_getMessages.md +++ b/old_docs/API_docs_v72/methods/messages_getMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v72/methods/messages_getMessagesViews.md b/old_docs/API_docs_v72/methods/messages_getMessagesViews.md index b8d78c85..934adc16 100644 --- a/old_docs/API_docs_v72/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v72/methods/messages_getMessagesViews.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int, int], 'increment' => Bool, ]); diff --git a/old_docs/API_docs_v72/methods/messages_getPeerDialogs.md b/old_docs/API_docs_v72/methods/messages_getPeerDialogs.md index da82cfc6..063b6e7d 100644 --- a/old_docs/API_docs_v72/methods/messages_getPeerDialogs.md +++ b/old_docs/API_docs_v72/methods/messages_getPeerDialogs.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_PeerDialogs = $MadelineProto->messages->getPeerDialogs(['peers' => [InputPeer, InputPeer], ]); diff --git a/old_docs/API_docs_v72/methods/messages_getPeerSettings.md b/old_docs/API_docs_v72/methods/messages_getPeerSettings.md index f1f2a3bb..a18126f0 100644 --- a/old_docs/API_docs_v72/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v72/methods/messages_getPeerSettings.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $PeerSettings = $MadelineProto->messages->getPeerSettings(['peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v72/methods/messages_getPinnedDialogs.md b/old_docs/API_docs_v72/methods/messages_getPinnedDialogs.md index d12779fe..3f49ed75 100644 --- a/old_docs/API_docs_v72/methods/messages_getPinnedDialogs.md +++ b/old_docs/API_docs_v72/methods/messages_getPinnedDialogs.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_PeerDialogs = $MadelineProto->messages->getPinnedDialogs(); diff --git a/old_docs/API_docs_v72/methods/messages_getRecentLocations.md b/old_docs/API_docs_v72/methods/messages_getRecentLocations.md index 1f73943d..a1bad267 100644 --- a/old_docs/API_docs_v72/methods/messages_getRecentLocations.md +++ b/old_docs/API_docs_v72/methods/messages_getRecentLocations.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getRecentLocations(['peer' => InputPeer, 'limit' => int, ]); diff --git a/old_docs/API_docs_v72/methods/messages_getRecentStickers.md b/old_docs/API_docs_v72/methods/messages_getRecentStickers.md index d76a2160..0c5ae0c6 100644 --- a/old_docs/API_docs_v72/methods/messages_getRecentStickers.md +++ b/old_docs/API_docs_v72/methods/messages_getRecentStickers.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_RecentStickers = $MadelineProto->messages->getRecentStickers(['attached' => Bool, 'hash' => int, ]); diff --git a/old_docs/API_docs_v72/methods/messages_getSavedGifs.md b/old_docs/API_docs_v72/methods/messages_getSavedGifs.md index f61348ce..38585538 100644 --- a/old_docs/API_docs_v72/methods/messages_getSavedGifs.md +++ b/old_docs/API_docs_v72/methods/messages_getSavedGifs.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => int, ]); diff --git a/old_docs/API_docs_v72/methods/messages_getStickerSet.md b/old_docs/API_docs_v72/methods/messages_getStickerSet.md index c86807e4..c9140ab2 100644 --- a/old_docs/API_docs_v72/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v72/methods/messages_getStickerSet.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSet = $MadelineProto->messages->getStickerSet(['stickerset' => InputStickerSet, ]); diff --git a/old_docs/API_docs_v72/methods/messages_getUnreadMentions.md b/old_docs/API_docs_v72/methods/messages_getUnreadMentions.md index d318506c..b8d7b5a5 100644 --- a/old_docs/API_docs_v72/methods/messages_getUnreadMentions.md +++ b/old_docs/API_docs_v72/methods/messages_getUnreadMentions.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getUnreadMentions(['peer' => InputPeer, 'offset_id' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); diff --git a/old_docs/API_docs_v72/methods/messages_getWebPage.md b/old_docs/API_docs_v72/methods/messages_getWebPage.md index 129f8f06..19ca94b9 100644 --- a/old_docs/API_docs_v72/methods/messages_getWebPage.md +++ b/old_docs/API_docs_v72/methods/messages_getWebPage.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $WebPage = $MadelineProto->messages->getWebPage(['url' => 'string', 'hash' => int, ]); diff --git a/old_docs/API_docs_v72/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v72/methods/messages_getWebPagePreview.md index d01bdd32..e8b20c5d 100644 --- a/old_docs/API_docs_v72/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v72/methods/messages_getWebPagePreview.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $MessageMedia = $MadelineProto->messages->getWebPagePreview(['message' => 'string', ]); diff --git a/old_docs/API_docs_v72/methods/messages_hideReportSpam.md b/old_docs/API_docs_v72/methods/messages_hideReportSpam.md index 856770cb..30523f2a 100644 --- a/old_docs/API_docs_v72/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v72/methods/messages_hideReportSpam.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->hideReportSpam(['peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v72/methods/messages_importChatInvite.md b/old_docs/API_docs_v72/methods/messages_importChatInvite.md index 0d6cd7c8..b1830a9b 100644 --- a/old_docs/API_docs_v72/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v72/methods/messages_importChatInvite.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->importChatInvite(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v72/methods/messages_installStickerSet.md b/old_docs/API_docs_v72/methods/messages_installStickerSet.md index 9f6f098c..20f90b71 100644 --- a/old_docs/API_docs_v72/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v72/methods/messages_installStickerSet.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSetInstallResult = $MadelineProto->messages->installStickerSet(['stickerset' => InputStickerSet, 'archived' => Bool, ]); diff --git a/old_docs/API_docs_v72/methods/messages_migrateChat.md b/old_docs/API_docs_v72/methods/messages_migrateChat.md index db57adfa..22ccfcc1 100644 --- a/old_docs/API_docs_v72/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v72/methods/messages_migrateChat.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]); diff --git a/old_docs/API_docs_v72/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v72/methods/messages_readEncryptedHistory.md index 39b110e3..2ba4cca4 100644 --- a/old_docs/API_docs_v72/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v72/methods/messages_readEncryptedHistory.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); diff --git a/old_docs/API_docs_v72/methods/messages_readFeaturedStickers.md b/old_docs/API_docs_v72/methods/messages_readFeaturedStickers.md index 4035c76d..050371da 100644 --- a/old_docs/API_docs_v72/methods/messages_readFeaturedStickers.md +++ b/old_docs/API_docs_v72/methods/messages_readFeaturedStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->readFeaturedStickers(['id' => [long, long], ]); diff --git a/old_docs/API_docs_v72/methods/messages_readHistory.md b/old_docs/API_docs_v72/methods/messages_readHistory.md index 3de17061..26b608af 100644 --- a/old_docs/API_docs_v72/methods/messages_readHistory.md +++ b/old_docs/API_docs_v72/methods/messages_readHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v72/methods/messages_readMentions.md b/old_docs/API_docs_v72/methods/messages_readMentions.md index e30fbfaf..de7bc42b 100644 --- a/old_docs/API_docs_v72/methods/messages_readMentions.md +++ b/old_docs/API_docs_v72/methods/messages_readMentions.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->readMentions(['peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v72/methods/messages_readMessageContents.md b/old_docs/API_docs_v72/methods/messages_readMessageContents.md index 9bb1bee8..a09cb63e 100644 --- a/old_docs/API_docs_v72/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v72/methods/messages_readMessageContents.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v72/methods/messages_receivedMessages.md b/old_docs/API_docs_v72/methods/messages_receivedMessages.md index 7aab635f..b5e87992 100644 --- a/old_docs/API_docs_v72/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v72/methods/messages_receivedMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_ReceivedNotifyMessage = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); diff --git a/old_docs/API_docs_v72/methods/messages_reorderPinnedDialogs.md b/old_docs/API_docs_v72/methods/messages_reorderPinnedDialogs.md index 710caf10..94d3b2d4 100644 --- a/old_docs/API_docs_v72/methods/messages_reorderPinnedDialogs.md +++ b/old_docs/API_docs_v72/methods/messages_reorderPinnedDialogs.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reorderPinnedDialogs(['force' => Bool, 'order' => [InputPeer, InputPeer], ]); diff --git a/old_docs/API_docs_v72/methods/messages_reorderStickerSets.md b/old_docs/API_docs_v72/methods/messages_reorderStickerSets.md index ddc78dd0..66f5e682 100644 --- a/old_docs/API_docs_v72/methods/messages_reorderStickerSets.md +++ b/old_docs/API_docs_v72/methods/messages_reorderStickerSets.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reorderStickerSets(['masks' => Bool, 'order' => [long, long], ]); diff --git a/old_docs/API_docs_v72/methods/messages_reportEncryptedSpam.md b/old_docs/API_docs_v72/methods/messages_reportEncryptedSpam.md index 58b684d1..cd03c35c 100644 --- a/old_docs/API_docs_v72/methods/messages_reportEncryptedSpam.md +++ b/old_docs/API_docs_v72/methods/messages_reportEncryptedSpam.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reportEncryptedSpam(['peer' => InputEncryptedChat, ]); diff --git a/old_docs/API_docs_v72/methods/messages_reportSpam.md b/old_docs/API_docs_v72/methods/messages_reportSpam.md index 2e2b1177..09c1e63b 100644 --- a/old_docs/API_docs_v72/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v72/methods/messages_reportSpam.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reportSpam(['peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v72/methods/messages_saveDraft.md b/old_docs/API_docs_v72/methods/messages_saveDraft.md index bbeed707..59b33b03 100644 --- a/old_docs/API_docs_v72/methods/messages_saveDraft.md +++ b/old_docs/API_docs_v72/methods/messages_saveDraft.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->saveDraft(['no_webpage' => Bool, 'reply_to_msg_id' => int, 'peer' => InputPeer, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v72/methods/messages_saveGif.md b/old_docs/API_docs_v72/methods/messages_saveGif.md index 6f608c4c..145039e7 100644 --- a/old_docs/API_docs_v72/methods/messages_saveGif.md +++ b/old_docs/API_docs_v72/methods/messages_saveGif.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->saveGif(['id' => InputDocument, 'unsave' => Bool, ]); diff --git a/old_docs/API_docs_v72/methods/messages_saveRecentSticker.md b/old_docs/API_docs_v72/methods/messages_saveRecentSticker.md index 81ad5d48..55757080 100644 --- a/old_docs/API_docs_v72/methods/messages_saveRecentSticker.md +++ b/old_docs/API_docs_v72/methods/messages_saveRecentSticker.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->saveRecentSticker(['attached' => Bool, 'id' => InputDocument, 'unsave' => Bool, ]); diff --git a/old_docs/API_docs_v72/methods/messages_search.md b/old_docs/API_docs_v72/methods/messages_search.md index 9cab5783..9253828a 100644 --- a/old_docs/API_docs_v72/methods/messages_search.md +++ b/old_docs/API_docs_v72/methods/messages_search.md @@ -52,12 +52,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->search(['peer' => InputPeer, 'q' => 'string', 'from_id' => InputUser, 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset_id' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); diff --git a/old_docs/API_docs_v72/methods/messages_searchGifs.md b/old_docs/API_docs_v72/methods/messages_searchGifs.md index 103ebfeb..9677bf24 100644 --- a/old_docs/API_docs_v72/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v72/methods/messages_searchGifs.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_FoundGifs = $MadelineProto->messages->searchGifs(['q' => 'string', 'offset' => int, ]); diff --git a/old_docs/API_docs_v72/methods/messages_searchGlobal.md b/old_docs/API_docs_v72/methods/messages_searchGlobal.md index 0edd1e40..6ad4aec0 100644 --- a/old_docs/API_docs_v72/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v72/methods/messages_searchGlobal.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->searchGlobal(['q' => 'string', 'offset_date' => int, 'offset_peer' => InputPeer, 'offset_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v72/methods/messages_sendEncrypted.md b/old_docs/API_docs_v72/methods/messages_sendEncrypted.md index d48f88d7..76305f32 100644 --- a/old_docs/API_docs_v72/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v72/methods/messages_sendEncrypted.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v72/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v72/methods/messages_sendEncryptedFile.md index 4fd0648e..8db2ead9 100644 --- a/old_docs/API_docs_v72/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v72/methods/messages_sendEncryptedFile.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); diff --git a/old_docs/API_docs_v72/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v72/methods/messages_sendEncryptedService.md index d66894bf..c7836c94 100644 --- a/old_docs/API_docs_v72/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v72/methods/messages_sendEncryptedService.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v72/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v72/methods/messages_sendInlineBotResult.md index 386ac7e3..1a12322c 100644 --- a/old_docs/API_docs_v72/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v72/methods/messages_sendInlineBotResult.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendInlineBotResult(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'query_id' => long, 'id' => 'string', ]); diff --git a/old_docs/API_docs_v72/methods/messages_sendMedia.md b/old_docs/API_docs_v72/methods/messages_sendMedia.md index 0b5cf9b6..770d1b65 100644 --- a/old_docs/API_docs_v72/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v72/methods/messages_sendMedia.md @@ -63,12 +63,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendMedia(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, 'reply_markup' => ReplyMarkup, ]); diff --git a/old_docs/API_docs_v72/methods/messages_sendMessage.md b/old_docs/API_docs_v72/methods/messages_sendMessage.md index c4dc8894..83dc6c8b 100644 --- a/old_docs/API_docs_v72/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v72/methods/messages_sendMessage.md @@ -65,12 +65,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendMessage(['no_webpage' => Bool, 'silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v72/methods/messages_sendScreenshotNotification.md b/old_docs/API_docs_v72/methods/messages_sendScreenshotNotification.md index f64f1682..e823fd52 100644 --- a/old_docs/API_docs_v72/methods/messages_sendScreenshotNotification.md +++ b/old_docs/API_docs_v72/methods/messages_sendScreenshotNotification.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendScreenshotNotification(['peer' => InputPeer, 'reply_to_msg_id' => int, ]); diff --git a/old_docs/API_docs_v72/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v72/methods/messages_setBotCallbackAnswer.md index e6dc6b09..e221ccca 100644 --- a/old_docs/API_docs_v72/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v72/methods/messages_setBotCallbackAnswer.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setBotCallbackAnswer(['alert' => Bool, 'query_id' => long, 'message' => 'string', 'url' => 'string', 'cache_time' => int, ]); diff --git a/old_docs/API_docs_v72/methods/messages_setBotPrecheckoutResults.md b/old_docs/API_docs_v72/methods/messages_setBotPrecheckoutResults.md index 722bff81..7e3fc3c2 100644 --- a/old_docs/API_docs_v72/methods/messages_setBotPrecheckoutResults.md +++ b/old_docs/API_docs_v72/methods/messages_setBotPrecheckoutResults.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setBotPrecheckoutResults(['success' => Bool, 'query_id' => long, 'error' => 'string', ]); diff --git a/old_docs/API_docs_v72/methods/messages_setBotShippingResults.md b/old_docs/API_docs_v72/methods/messages_setBotShippingResults.md index d364a04d..3d9f0ae2 100644 --- a/old_docs/API_docs_v72/methods/messages_setBotShippingResults.md +++ b/old_docs/API_docs_v72/methods/messages_setBotShippingResults.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setBotShippingResults(['query_id' => long, 'error' => 'string', 'shipping_options' => [ShippingOption, ShippingOption], ]); diff --git a/old_docs/API_docs_v72/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v72/methods/messages_setEncryptedTyping.md index e9afe99c..4e7450eb 100644 --- a/old_docs/API_docs_v72/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v72/methods/messages_setEncryptedTyping.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); diff --git a/old_docs/API_docs_v72/methods/messages_setGameScore.md b/old_docs/API_docs_v72/methods/messages_setGameScore.md index aa1f4f0c..90594a1d 100644 --- a/old_docs/API_docs_v72/methods/messages_setGameScore.md +++ b/old_docs/API_docs_v72/methods/messages_setGameScore.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->setGameScore(['edit_message' => Bool, 'force' => Bool, 'peer' => InputPeer, 'id' => int, 'user_id' => InputUser, 'score' => int, ]); diff --git a/old_docs/API_docs_v72/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v72/methods/messages_setInlineBotResults.md index 79493009..d4ba6e65 100644 --- a/old_docs/API_docs_v72/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v72/methods/messages_setInlineBotResults.md @@ -52,12 +52,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setInlineBotResults(['gallery' => Bool, 'private' => Bool, 'query_id' => long, 'results' => [InputBotInlineResult, InputBotInlineResult], 'cache_time' => int, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, ]); diff --git a/old_docs/API_docs_v72/methods/messages_setInlineGameScore.md b/old_docs/API_docs_v72/methods/messages_setInlineGameScore.md index 385c8308..2b7326f3 100644 --- a/old_docs/API_docs_v72/methods/messages_setInlineGameScore.md +++ b/old_docs/API_docs_v72/methods/messages_setInlineGameScore.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setInlineGameScore(['edit_message' => Bool, 'force' => Bool, 'id' => InputBotInlineMessageID, 'user_id' => InputUser, 'score' => int, ]); diff --git a/old_docs/API_docs_v72/methods/messages_setTyping.md b/old_docs/API_docs_v72/methods/messages_setTyping.md index bea4982b..a2b94823 100644 --- a/old_docs/API_docs_v72/methods/messages_setTyping.md +++ b/old_docs/API_docs_v72/methods/messages_setTyping.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); diff --git a/old_docs/API_docs_v72/methods/messages_startBot.md b/old_docs/API_docs_v72/methods/messages_startBot.md index 94a4d86a..50d6f475 100644 --- a/old_docs/API_docs_v72/methods/messages_startBot.md +++ b/old_docs/API_docs_v72/methods/messages_startBot.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'peer' => InputPeer, 'start_param' => 'string', ]); diff --git a/old_docs/API_docs_v72/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v72/methods/messages_toggleChatAdmins.md index ab591fd9..349ea0e6 100644 --- a/old_docs/API_docs_v72/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v72/methods/messages_toggleChatAdmins.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => InputPeer, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v72/methods/messages_toggleDialogPin.md b/old_docs/API_docs_v72/methods/messages_toggleDialogPin.md index 2bd6a03d..14332533 100644 --- a/old_docs/API_docs_v72/methods/messages_toggleDialogPin.md +++ b/old_docs/API_docs_v72/methods/messages_toggleDialogPin.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->toggleDialogPin(['pinned' => Bool, 'peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v72/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v72/methods/messages_uninstallStickerSet.md index 6d04e847..26b2fbb3 100644 --- a/old_docs/API_docs_v72/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v72/methods/messages_uninstallStickerSet.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->uninstallStickerSet(['stickerset' => InputStickerSet, ]); diff --git a/old_docs/API_docs_v72/methods/messages_uploadMedia.md b/old_docs/API_docs_v72/methods/messages_uploadMedia.md index c982a860..c09da017 100644 --- a/old_docs/API_docs_v72/methods/messages_uploadMedia.md +++ b/old_docs/API_docs_v72/methods/messages_uploadMedia.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $MessageMedia = $MadelineProto->messages->uploadMedia(['peer' => InputPeer, 'media' => InputMedia, ]); diff --git a/old_docs/API_docs_v72/methods/payments_clearSavedInfo.md b/old_docs/API_docs_v72/methods/payments_clearSavedInfo.md index 44050dde..8b83266f 100644 --- a/old_docs/API_docs_v72/methods/payments_clearSavedInfo.md +++ b/old_docs/API_docs_v72/methods/payments_clearSavedInfo.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->payments->clearSavedInfo(['credentials' => Bool, 'info' => Bool, ]); diff --git a/old_docs/API_docs_v72/methods/payments_getPaymentForm.md b/old_docs/API_docs_v72/methods/payments_getPaymentForm.md index 16a32d11..3bdb9ff2 100644 --- a/old_docs/API_docs_v72/methods/payments_getPaymentForm.md +++ b/old_docs/API_docs_v72/methods/payments_getPaymentForm.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $payments_PaymentForm = $MadelineProto->payments->getPaymentForm(['msg_id' => int, ]); diff --git a/old_docs/API_docs_v72/methods/payments_getPaymentReceipt.md b/old_docs/API_docs_v72/methods/payments_getPaymentReceipt.md index 857585f6..a881aeb7 100644 --- a/old_docs/API_docs_v72/methods/payments_getPaymentReceipt.md +++ b/old_docs/API_docs_v72/methods/payments_getPaymentReceipt.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $payments_PaymentReceipt = $MadelineProto->payments->getPaymentReceipt(['msg_id' => int, ]); diff --git a/old_docs/API_docs_v72/methods/payments_getSavedInfo.md b/old_docs/API_docs_v72/methods/payments_getSavedInfo.md index 04ac7374..ec1a071b 100644 --- a/old_docs/API_docs_v72/methods/payments_getSavedInfo.md +++ b/old_docs/API_docs_v72/methods/payments_getSavedInfo.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $payments_SavedInfo = $MadelineProto->payments->getSavedInfo(); diff --git a/old_docs/API_docs_v72/methods/payments_sendPaymentForm.md b/old_docs/API_docs_v72/methods/payments_sendPaymentForm.md index 0a9df99f..79758b56 100644 --- a/old_docs/API_docs_v72/methods/payments_sendPaymentForm.md +++ b/old_docs/API_docs_v72/methods/payments_sendPaymentForm.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $payments_PaymentResult = $MadelineProto->payments->sendPaymentForm(['msg_id' => int, 'requested_info_id' => 'string', 'shipping_option_id' => 'string', 'credentials' => InputPaymentCredentials, ]); diff --git a/old_docs/API_docs_v72/methods/payments_validateRequestedInfo.md b/old_docs/API_docs_v72/methods/payments_validateRequestedInfo.md index e36f0e42..d473f97c 100644 --- a/old_docs/API_docs_v72/methods/payments_validateRequestedInfo.md +++ b/old_docs/API_docs_v72/methods/payments_validateRequestedInfo.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $payments_ValidatedRequestedInfo = $MadelineProto->payments->validateRequestedInfo(['save' => Bool, 'msg_id' => int, 'info' => PaymentRequestedInfo, ]); diff --git a/old_docs/API_docs_v72/methods/phone_getCallConfig.md b/old_docs/API_docs_v72/methods/phone_getCallConfig.md index cac622a0..6969c1a3 100644 --- a/old_docs/API_docs_v72/methods/phone_getCallConfig.md +++ b/old_docs/API_docs_v72/methods/phone_getCallConfig.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $DataJSON = $MadelineProto->phone->getCallConfig(); diff --git a/old_docs/API_docs_v72/methods/phone_receivedCall.md b/old_docs/API_docs_v72/methods/phone_receivedCall.md index 27e3b462..17095622 100644 --- a/old_docs/API_docs_v72/methods/phone_receivedCall.md +++ b/old_docs/API_docs_v72/methods/phone_receivedCall.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->phone->receivedCall(['peer' => InputPhoneCall, ]); diff --git a/old_docs/API_docs_v72/methods/phone_saveCallDebug.md b/old_docs/API_docs_v72/methods/phone_saveCallDebug.md index 760ad9d5..0ff049a8 100644 --- a/old_docs/API_docs_v72/methods/phone_saveCallDebug.md +++ b/old_docs/API_docs_v72/methods/phone_saveCallDebug.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->phone->saveCallDebug(['peer' => InputPhoneCall, 'debug' => DataJSON, ]); diff --git a/old_docs/API_docs_v72/methods/phone_setCallRating.md b/old_docs/API_docs_v72/methods/phone_setCallRating.md index b32ba333..d0aab7e0 100644 --- a/old_docs/API_docs_v72/methods/phone_setCallRating.md +++ b/old_docs/API_docs_v72/methods/phone_setCallRating.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->phone->setCallRating(['peer' => InputPhoneCall, 'rating' => int, 'comment' => 'string', ]); diff --git a/old_docs/API_docs_v72/methods/photos_deletePhotos.md b/old_docs/API_docs_v72/methods/photos_deletePhotos.md index b9daca10..937aadd5 100644 --- a/old_docs/API_docs_v72/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v72/methods/photos_deletePhotos.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); diff --git a/old_docs/API_docs_v72/methods/photos_getUserPhotos.md b/old_docs/API_docs_v72/methods/photos_getUserPhotos.md index ea27a44f..d1c15e90 100644 --- a/old_docs/API_docs_v72/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v72/methods/photos_getUserPhotos.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => long, 'limit' => int, ]); diff --git a/old_docs/API_docs_v72/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v72/methods/photos_updateProfilePhoto.md index 7f0a4c69..2ac8b60d 100644 --- a/old_docs/API_docs_v72/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v72/methods/photos_updateProfilePhoto.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, ]); diff --git a/old_docs/API_docs_v72/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v72/methods/photos_uploadProfilePhoto.md index efa08bb0..c7ec3063 100644 --- a/old_docs/API_docs_v72/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v72/methods/photos_uploadProfilePhoto.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, ]); diff --git a/old_docs/API_docs_v72/methods/ping.md b/old_docs/API_docs_v72/methods/ping.md index 4ad52852..f987ae89 100644 --- a/old_docs/API_docs_v72/methods/ping.md +++ b/old_docs/API_docs_v72/methods/ping.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Pong = $MadelineProto->ping(['ping_id' => long, ]); diff --git a/old_docs/API_docs_v72/methods/ping_delay_disconnect.md b/old_docs/API_docs_v72/methods/ping_delay_disconnect.md index b0951488..5b1c115d 100644 --- a/old_docs/API_docs_v72/methods/ping_delay_disconnect.md +++ b/old_docs/API_docs_v72/methods/ping_delay_disconnect.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Pong = $MadelineProto->ping_delay_disconnect(['ping_id' => long, 'disconnect_delay' => int, ]); diff --git a/old_docs/API_docs_v72/methods/req_DH_params.md b/old_docs/API_docs_v72/methods/req_DH_params.md index bb821ef9..f0b45851 100644 --- a/old_docs/API_docs_v72/methods/req_DH_params.md +++ b/old_docs/API_docs_v72/methods/req_DH_params.md @@ -34,12 +34,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Server_DH_Params = $MadelineProto->req_DH_params(['nonce' => int128, 'server_nonce' => int128, 'p' => 'string', 'q' => 'string', 'public_key_fingerprint' => long, 'encrypted_data' => 'string', ]); diff --git a/old_docs/API_docs_v72/methods/req_pq.md b/old_docs/API_docs_v72/methods/req_pq.md index 72a31c0b..0873d9a2 100644 --- a/old_docs/API_docs_v72/methods/req_pq.md +++ b/old_docs/API_docs_v72/methods/req_pq.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ResPQ = $MadelineProto->req_pq(['nonce' => int128, ]); diff --git a/old_docs/API_docs_v72/methods/rpc_drop_answer.md b/old_docs/API_docs_v72/methods/rpc_drop_answer.md index 381d7ee4..27f98bca 100644 --- a/old_docs/API_docs_v72/methods/rpc_drop_answer.md +++ b/old_docs/API_docs_v72/methods/rpc_drop_answer.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $RpcDropAnswer = $MadelineProto->rpc_drop_answer(['req_msg_id' => long, ]); diff --git a/old_docs/API_docs_v72/methods/set_client_DH_params.md b/old_docs/API_docs_v72/methods/set_client_DH_params.md index 6abb9a51..cf8ab321 100644 --- a/old_docs/API_docs_v72/methods/set_client_DH_params.md +++ b/old_docs/API_docs_v72/methods/set_client_DH_params.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Set_client_DH_params_answer = $MadelineProto->set_client_DH_params(['nonce' => int128, 'server_nonce' => int128, 'encrypted_data' => 'string', ]); diff --git a/old_docs/API_docs_v72/methods/stickers_addStickerToSet.md b/old_docs/API_docs_v72/methods/stickers_addStickerToSet.md index 1f90028c..7c4191d8 100644 --- a/old_docs/API_docs_v72/methods/stickers_addStickerToSet.md +++ b/old_docs/API_docs_v72/methods/stickers_addStickerToSet.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSet = $MadelineProto->stickers->addStickerToSet(['stickerset' => InputStickerSet, 'sticker' => InputStickerSetItem, ]); diff --git a/old_docs/API_docs_v72/methods/stickers_changeStickerPosition.md b/old_docs/API_docs_v72/methods/stickers_changeStickerPosition.md index 45552df9..d25129c5 100644 --- a/old_docs/API_docs_v72/methods/stickers_changeStickerPosition.md +++ b/old_docs/API_docs_v72/methods/stickers_changeStickerPosition.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSet = $MadelineProto->stickers->changeStickerPosition(['sticker' => InputDocument, 'position' => int, ]); diff --git a/old_docs/API_docs_v72/methods/stickers_createStickerSet.md b/old_docs/API_docs_v72/methods/stickers_createStickerSet.md index c4e85852..95775849 100644 --- a/old_docs/API_docs_v72/methods/stickers_createStickerSet.md +++ b/old_docs/API_docs_v72/methods/stickers_createStickerSet.md @@ -48,12 +48,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSet = $MadelineProto->stickers->createStickerSet(['masks' => Bool, 'user_id' => InputUser, 'title' => 'string', 'short_name' => 'string', 'stickers' => [InputStickerSetItem, InputStickerSetItem], ]); diff --git a/old_docs/API_docs_v72/methods/stickers_removeStickerFromSet.md b/old_docs/API_docs_v72/methods/stickers_removeStickerFromSet.md index 4ae30345..73ed78d5 100644 --- a/old_docs/API_docs_v72/methods/stickers_removeStickerFromSet.md +++ b/old_docs/API_docs_v72/methods/stickers_removeStickerFromSet.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSet = $MadelineProto->stickers->removeStickerFromSet(['sticker' => InputDocument, ]); diff --git a/old_docs/API_docs_v72/methods/upload_getWebFile.md b/old_docs/API_docs_v72/methods/upload_getWebFile.md index e864e4b7..11634633 100644 --- a/old_docs/API_docs_v72/methods/upload_getWebFile.md +++ b/old_docs/API_docs_v72/methods/upload_getWebFile.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $upload_WebFile = $MadelineProto->upload->getWebFile(['location' => InputWebFileLocation, 'offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v72/methods/users_getUsers.md b/old_docs/API_docs_v72/methods/users_getUsers.md index ef1c7fd8..bce13ee6 100644 --- a/old_docs/API_docs_v72/methods/users_getUsers.md +++ b/old_docs/API_docs_v72/methods/users_getUsers.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v73/README.md b/old_docs/API_docs_v73/README.md index 0d7a8cf2..99a27274 100644 --- a/old_docs/API_docs_v73/README.md +++ b/old_docs/API_docs_v73/README.md @@ -4,11 +4,11 @@ description: MadelineProto API documentation (layer v73) --- # MadelineProto API documentation (layer v73) +[Back to main documentation](..) + + [Methods](methods/) [Constructors](constructors/) -[Types](types/) - - -[Back to main documentation](..) +[Types](types/) \ No newline at end of file diff --git a/old_docs/API_docs_v73/methods/README.md b/old_docs/API_docs_v73/methods/README.md index 1004e4b7..5b69e4e5 100644 --- a/old_docs/API_docs_v73/methods/README.md +++ b/old_docs/API_docs_v73/methods/README.md @@ -1,536 +1,531 @@ --- title: Methods -description: List of methods +description: What do you want to do? --- -# Methods -[Back to API documentation index](..) +# What do you want to do? +[Go back to API documentation index](..) +[Go to the old code-version method index](api_index.html) -$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); +* [Logout](https://docs.madelineproto.xyz/logout.html) -$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); +* [Login](https://docs.madelineproto.xyz/docs/LOGIN.html) -$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); +* [Get all chats, broadcast a message to all chats](https://docs.madelineproto.xyz/docs/DIALOGS.html) -$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); +* [Get the full participant list of a channel/group/supergroup](https://docs.madelineproto.xyz/get_pwr_chat.html) -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); +* [Get full info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_full_info.html) +* [Get info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_info.html) -$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); +* [Get info about the currently logged-in user](https://docs.madelineproto.xyz/get_self.html) -$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); +* [Upload or download files up to 1.5 GB](https://docs.madelineproto.xyz/docs/FILES.html) -$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); +* [Make a phone call and play a song](https://docs.madelineproto.xyz/docs/CALLS.html) -$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); - -$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); - - -$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); - -$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); +* [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) *** -

$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) +

* Change the phone number associated to this account -$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Check if this username is available -$MadelineProto->[account->confirmPhone](account_confirmPhone.md)(\['phone_code_hash' => [string](../types/string.md), 'phone_code' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode -$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Delete this account -$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) +* Get account TTL -$MadelineProto->[account->getAuthorizations](account_getAuthorizations.md)(\[\]) === [$account\_Authorizations](../types/account_Authorizations.md) +* Get all logged-in authorizations -$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) +* Get notification settings -$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md) +* Get the current password -$MadelineProto->[account->getPasswordSettings](account_getPasswordSettings.md)(\['current_password_hash' => [bytes](../types/bytes.md), \]) === [$account\_PasswordSettings](../types/account_PasswordSettings.md) +* Get the current 2FA settings -$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Get privacy settings -$MadelineProto->[account->getTmpPassword](account_getTmpPassword.md)(\['password_hash' => [bytes](../types/bytes.md), 'period' => [int](../types/int.md), \]) === [$account\_TmpPassword](../types/account_TmpPassword.md) +* Get temporary password for buying products through bots -$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) +* Returns a list of available wallpapers. -$MadelineProto->[account->registerDevice](account_registerDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Register device for push notifications -$MadelineProto->[account->reportPeer](account_reportPeer.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reason' => [ReportReason](../types/ReportReason.md), \]) === [$Bool](../types/Bool.md) +* Report for spam -$MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) +* Delete a certain session -$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) +* Reset all notification settings -$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) +* Change the phone number -$MadelineProto->[account->sendConfirmPhoneCode](account_sendConfirmPhoneCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'hash' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) +* Send confirmation phone code -$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) +* Set account TTL -$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) +* Set privacy settings -$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Stop sending PUSH notifications to app -$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Disable all notifications for a certain period -$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) +* Change notification settings -$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) +* Update the 2FA password settings -$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) +* Update profile info -$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Update online status -$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) +* Update this user's username *** -

$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) +

* You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info -$MadelineProto->[auth->cancelCode](auth_cancelCode.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Invalidate sent phone code -$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) +* Check if this phone number is registered on telegram -$MadelineProto->[auth->dropTempAuthKeys](auth_dropTempAuthKeys.md)(\['except_auth_keys' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) +* Delete all temporary authorization keys except the ones provided -$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) +* You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html -$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) +* You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[auth->recoverPassword](auth_recoverPassword.md)(\['code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) +* Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account -$MadelineProto->[auth->requestPasswordRecovery](auth_requestPasswordRecovery.md)(\[\]) === [$auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) +* Send an email to recover the 2FA password -$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) +* Resend the SMS verification code -$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) +* Delete all logged-in sessions. -$MadelineProto->[auth->sendCode](auth_sendCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'phone_number' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), 'api_id' => [int](../types/int.md), 'api_hash' => [string](../types/string.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) +* Use phone_login instead -$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Invite friends to telegram! -$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) +* You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) -$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) +* You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) *** -

$MadelineProto->[bots->answerWebhookJSONQuery](bots_answerWebhookJSONQuery.md)(\['query_id' => [long](../types/long.md), 'data' => [DataJSON](../types/DataJSON.md), \]) === [$Bool](../types/Bool.md) +

* Send webhook request via bot API -$MadelineProto->[bots->sendCustomRequest](bots_sendCustomRequest.md)(\['custom_method' => [string](../types/string.md), 'params' => [DataJSON](../types/DataJSON.md), \]) === [$DataJSON](../types/DataJSON.md) +* Send a custom request to the bot API *** -

$MadelineProto->[channels->checkUsername](channels_checkUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +

* Check if this username is free and can be assigned to a channel/supergroup -$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) +* Create channel/supergroup -$MadelineProto->[channels->deleteChannel](channels_deleteChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Delete a channel/supergroup -$MadelineProto->[channels->deleteHistory](channels_deleteHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Delete the history of a supergroup/channel -$MadelineProto->[channels->deleteMessages](channels_deleteMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Delete channel/supergroup messages -$MadelineProto->[channels->deleteUserHistory](channels_deleteUserHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Delete all messages of a user in a channel/supergroup -$MadelineProto->[channels->editAbout](channels_editAbout.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'about' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Edit the about text of a channel/supergroup -$MadelineProto->[channels->editAdmin](channels_editAdmin.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), 'admin_rights' => [ChannelAdminRights](../types/ChannelAdminRights.md), \]) === [$Updates](../types/Updates.md) +* Edit admin permissions of a user in a channel/supergroup -$MadelineProto->[channels->editBanned](channels_editBanned.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), 'banned_rights' => [ChannelBannedRights](../types/ChannelBannedRights.md), \]) === [$Updates](../types/Updates.md) +* Kick or ban a user from a channel/supergroup -$MadelineProto->[channels->editPhoto](channels_editPhoto.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) +* Edit the photo of a supergroup/channel -$MadelineProto->[channels->editTitle](channels_editTitle.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Edit the title of a supergroup/channel -$MadelineProto->[channels->exportInvite](channels_exportInvite.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) +* Export the invite link of a channel -$MadelineProto->[channels->exportMessageLink](channels_exportMessageLink.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => [int](../types/int.md), \]) === [$ExportedMessageLink](../types/ExportedMessageLink.md) +* Get the link of a message in a channel -$MadelineProto->[channels->getAdminLog](channels_getAdminLog.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'q' => [string](../types/string.md), 'events_filter' => [ChannelAdminLogEventsFilter](../types/ChannelAdminLogEventsFilter.md), 'admins' => \[[InputUser](../types/InputUser.md)\], 'max_id' => [long](../types/long.md), 'min_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), \]) === [$channels\_AdminLogResults](../types/channels_AdminLogResults.md) +* Get admin log of a channel/supergroup -$MadelineProto->[channels->getAdminedPublicChannels](channels_getAdminedPublicChannels.md)(\[\]) === [$messages\_Chats](../types/messages_Chats.md) +* Get all supergroups/channels where you're admin -$MadelineProto->[channels->getChannels](channels_getChannels.md)(\['id' => \[[InputChannel](../types/InputChannel.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get info about multiple channels/supergroups -$MadelineProto->[channels->getFullChannel](channels_getFullChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) +* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[channels->getMessages](channels_getMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get channel/supergroup messages -$MadelineProto->[channels->getParticipant](channels_getParticipant.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) +* Get info about a certain channel/supergroup participant -$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), 'hash' => [int](../types/int.md), \]) === [$channels\_ChannelParticipants](../types/channels_ChannelParticipants.md) +* Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead) -$MadelineProto->[channels->inviteToChannel](channels_inviteToChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'users' => \[[InputUser](../types/InputUser.md)\], \]) === [$Updates](../types/Updates.md) +* Add users to channel/supergroup -$MadelineProto->[channels->joinChannel](channels_joinChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Join a channel/supergroup -$MadelineProto->[channels->leaveChannel](channels_leaveChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) +* Leave a channel/supergroup -$MadelineProto->[channels->readHistory](channels_readHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Mark channel/supergroup history as read -$MadelineProto->[channels->readMessageContents](channels_readMessageContents.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$Bool](../types/Bool.md) +* Mark channel/supergroup messages as read -$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) +* Report a supergroup/channel for spam -$MadelineProto->[channels->setStickers](channels_setStickers.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) +* Set the supergroup/channel stickerpack -$MadelineProto->[channels->toggleInvites](channels_toggleInvites.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Allow or disallow any user to invite users to this channel/supergroup -$MadelineProto->[channels->togglePreHistoryHidden](channels_togglePreHistoryHidden.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Enable or disable hidden history for new channel/supergroup users -$MadelineProto->[channels->toggleSignatures](channels_toggleSignatures.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Toggle channel signatures -$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) +* Set the pinned message of a channel/supergroup -$MadelineProto->[channels->updateUsername](channels_updateUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Update the username of a supergroup/channel *** -

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +

* Block a user -$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) +* Delete a contact -$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) +* Delete multiple contacts -$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) +* Export contact as card -$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) +* Get blocked users -$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [int](../types/int.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) +* Get info about a certain contact -$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) +* Get online status of all users -$MadelineProto->[contacts->getTopPeers](contacts_getTopPeers.md)(\['correspondents' => [Bool](../types/Bool.md), 'bots_pm' => [Bool](../types/Bool.md), 'bots_inline' => [Bool](../types/Bool.md), 'phone_calls' => [Bool](../types/Bool.md), 'groups' => [Bool](../types/Bool.md), 'channels' => [Bool](../types/Bool.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'hash' => [int](../types/int.md), \]) === [$contacts\_TopPeers](../types/contacts_TopPeers.md) +* Get most used chats -$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) +* Import card as contact -$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) +* Add phone number as contact -$MadelineProto->[contacts->resetSaved](contacts_resetSaved.md)(\[\]) === [$Bool](../types/Bool.md) +* Reset saved contacts -$MadelineProto->[contacts->resetTopPeerRating](contacts_resetTopPeerRating.md)(\['category' => [TopPeerCategory](../types/TopPeerCategory.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Reset top peer rating for a certain category/peer -$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) +* You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) +* Search contacts -$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) +* Unblock a user *** -

$MadelineProto->[help->getAppChangelog](help_getAppChangelog.md)(\['prev_app_version' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +

* Get the changelog of this app -$MadelineProto->[help->getAppUpdate](help_getAppUpdate.md)(\[\]) === [$help\_AppUpdate](../types/help_AppUpdate.md) +* Get info about app updates -$MadelineProto->[help->getCdnConfig](help_getCdnConfig.md)(\[\]) === [$CdnConfig](../types/CdnConfig.md) +* Get CDN configuration -$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) +* Get server configuration -$MadelineProto->[help->getInviteText](help_getInviteText.md)(\[\]) === [$help\_InviteText](../types/help_InviteText.md) +* Get invitation text -$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) +* Get nearest datacenter -$MadelineProto->[help->getRecentMeUrls](help_getRecentMeUrls.md)(\['referer' => [string](../types/string.md), \]) === [$help\_RecentMeUrls](../types/help_RecentMeUrls.md) +* Get recent t.me URLs -$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) +* Get info of support user -$MadelineProto->[help->getTermsOfService](help_getTermsOfService.md)(\[\]) === [$help\_TermsOfService](../types/help_TermsOfService.md) +* Get terms of service -$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) +* Log data for developer of this app -$MadelineProto->[help->setBotUpdatesStatus](help_setBotUpdatesStatus.md)(\['pending_updates_count' => [int](../types/int.md), 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Set the update status of webhook *** -

$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), 'system_lang_code' => [string](../types/string.md), 'lang_pack' => [string](../types/string.md), 'lang_code' => [string](../types/string.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Initializes connection and save information on the user's device and application. *** -

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invokes a query after successfull completion of one of the previous queries. *** -

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Result type returned by a current query. *** -

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invoke this method with layer X *** -

$MadelineProto->[invokeWithoutUpdates](invokeWithoutUpdates.md)(\['query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) +

* Invoke with method without returning updates in the socket *** -

$MadelineProto->[langpack->getDifference](langpack_getDifference.md)(\['from_version' => [int](../types/int.md), \]) === [$LangPackDifference](../types/LangPackDifference.md) +

* Get language pack updates -$MadelineProto->[langpack->getLangPack](langpack_getLangPack.md)(\['lang_code' => [string](../types/string.md), \]) === [$LangPackDifference](../types/LangPackDifference.md) +* Get language pack -$MadelineProto->[langpack->getLanguages](langpack_getLanguages.md)(\[\]) === [$Vector\_of\_LangPackLanguage](../types/LangPackLanguage.md) +* Get available languages -$MadelineProto->[langpack->getStrings](langpack_getStrings.md)(\['lang_code' => [string](../types/string.md), 'keys' => \[[string](../types/string.md)\], \]) === [$Vector\_of\_LangPackString](../types/LangPackString.md) +* Get language pack strings *** -

$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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Add a user to a normal chat (use channels->inviteToChannel for supergroups) -$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md) +* Check if an invitation link is valid -$MadelineProto->[messages->clearRecentStickers](messages_clearRecentStickers.md)(\['attached' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Clear all recent stickers -$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Create a chat (not supergroup) -$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md) +* Delete a user from a chat (not supergroup) -$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['just_clear' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Delete chat history -$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['revoke' => [Bool](../types/Bool.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Delete messages -$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$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) +* Edit admin permissions -$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) +* Edit the photo of a normal chat (not supergroup) -$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Edit the title of a normal chat (not supergroup) -$MadelineProto->[messages->editInlineBotMessage](messages_editInlineBotMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'stop_geo_live' => [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)\], 'geo_point' => [InputGeoPoint](../types/InputGeoPoint.md), \]) === [$Bool](../types/Bool.md) +* Edit a sent inline message -$MadelineProto->[messages->editMessage](messages_editMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'stop_geo_live' => [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)\], 'geo_point' => [InputGeoPoint](../types/InputGeoPoint.md), \]) === [$Updates](../types/Updates.md) +* Edit a message -$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) +* Export chat invite -$MadelineProto->[messages->faveSticker](messages_faveSticker.md)(\['id' => [InputDocument](../types/InputDocument.md), 'unfave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Add a sticker to favorites -$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) +* Forward message -$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'with_my_score' => [Bool](../types/Bool.md), 'grouped' => [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) +* Forward messages -$MadelineProto->[messages->getAllChats](messages_getAllChats.md)(\['except_ids' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get all chats (not supergroups or channels) -$MadelineProto->[messages->getAllDrafts](messages_getAllDrafts.md)(\[\]) === [$Updates](../types/Updates.md) +* Get all message drafts -$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) +* Get all stickerpacks -$MadelineProto->[messages->getArchivedStickers](messages_getArchivedStickers.md)(\['masks' => [Bool](../types/Bool.md), 'offset_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), \]) === [$messages\_ArchivedStickers](../types/messages_ArchivedStickers.md) +* Get all archived stickers -$MadelineProto->[messages->getAttachedStickers](messages_getAttachedStickers.md)(\['media' => [InputStickeredMedia](../types/InputStickeredMedia.md), \]) === [$Vector\_of\_StickerSetCovered](../types/StickerSetCovered.md) +* Get stickers attachable to images -$MadelineProto->[messages->getBotCallbackAnswer](messages_getBotCallbackAnswer.md)(\['game' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'msg_id' => [int](../types/int.md), 'data' => [bytes](../types/bytes.md), \]) === [$messages\_BotCallbackAnswer](../types/messages_BotCallbackAnswer.md) +* Get the callback answer of a bot (after clicking a button) -$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get info about chats -$MadelineProto->[messages->getCommonChats](messages_getCommonChats.md)(\['user_id' => [InputUser](../types/InputUser.md), 'max_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Chats](../types/messages_Chats.md) +* Get chats in common with a user -$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) +* You cannot use this method directly, instead use $MadelineProto->get_dh_config(); -$MadelineProto->[messages->getDialogs](messages_getDialogs.md)(\['exclude_pinned' => [Bool](../types/Bool.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) +* Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html -$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) +* Get document by SHA256 hash -$MadelineProto->[messages->getFavedStickers](messages_getFavedStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_FavedStickers](../types/messages_FavedStickers.md) +* Get favorite stickers -$MadelineProto->[messages->getFeaturedStickers](messages_getFeaturedStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_FeaturedStickers](../types/messages_FeaturedStickers.md) +* Get featured stickers -$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) +* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[messages->getGameHighScores](messages_getGameHighScores.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_HighScores](../types/messages_HighScores.md) +* Get high scores of a game -$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), 'hash' => [int](../types/int.md), \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get previous messages of a group -$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) +* Call inline bot -$MadelineProto->[messages->getInlineGameHighScores](messages_getInlineGameHighScores.md)(\['id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_HighScores](../types/messages_HighScores.md) +* Get high scores of a game sent in an inline message -$MadelineProto->[messages->getMaskStickers](messages_getMaskStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) +* Get masks -$MadelineProto->[messages->getMessageEditData](messages_getMessageEditData.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$messages\_MessageEditData](../types/messages_MessageEditData.md) +* Check if about to edit a message or a media caption -$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get messages -$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) +* Get and increase message views -$MadelineProto->[messages->getPeerDialogs](messages_getPeerDialogs.md)(\['peers' => \[[InputPeer](../types/InputPeer.md)\], \]) === [$messages\_PeerDialogs](../types/messages_PeerDialogs.md) +* Get dialog info of peers -$MadelineProto->[messages->getPeerSettings](messages_getPeerSettings.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$PeerSettings](../types/PeerSettings.md) +* Get the settings of apeer -$MadelineProto->[messages->getPinnedDialogs](messages_getPinnedDialogs.md)(\[\]) === [$messages\_PeerDialogs](../types/messages_PeerDialogs.md) +* Get pinned dialogs -$MadelineProto->[messages->getRecentLocations](messages_getRecentLocations.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Messages](../types/messages_Messages.md) +* Get recent locations -$MadelineProto->[messages->getRecentStickers](messages_getRecentStickers.md)(\['attached' => [Bool](../types/Bool.md), 'hash' => [int](../types/int.md), \]) === [$messages\_RecentStickers](../types/messages_RecentStickers.md) +* Get recent stickers -$MadelineProto->[messages->getSavedGifs](messages_getSavedGifs.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_SavedGifs](../types/messages_SavedGifs.md) +* Get saved gifs -$MadelineProto->[messages->getStickerSet](messages_getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) +* Get a stickerset -$MadelineProto->[messages->getUnreadMentions](messages_getUnreadMentions.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset_id' => [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) +* Get unread mentions -$MadelineProto->[messages->getWebPage](messages_getWebPage.md)(\['url' => [string](../types/string.md), 'hash' => [int](../types/int.md), \]) === [$WebPage](../types/WebPage.md) +* Get webpage preview -$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) === [$MessageMedia](../types/MessageMedia.md) +* Get webpage preview -$MadelineProto->[messages->hideReportSpam](messages_hideReportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Hide report spam popup -$MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Import chat invite -$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'archived' => [Bool](../types/Bool.md), \]) === [$messages\_StickerSetInstallResult](../types/messages_StickerSetInstallResult.md) +* Add a sticker set -$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) +* Convert chat to supergroup -$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Mark messages as read in secret chats -$MadelineProto->[messages->readFeaturedStickers](messages_readFeaturedStickers.md)(\['id' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) +* Mark new featured stickers as read -$MadelineProto->[messages->readHistory](messages_readHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Mark messages as read -$MadelineProto->[messages->readMentions](messages_readMentions.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) +* Mark mentions as read -$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) +* Mark message as read -$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_ReceivedNotifyMessage](../types/ReceivedNotifyMessage.md) +* Mark messages as read -$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) +* You cannot use this method directly -$MadelineProto->[messages->reorderPinnedDialogs](messages_reorderPinnedDialogs.md)(\['force' => [Bool](../types/Bool.md), 'order' => \[[InputPeer](../types/InputPeer.md)\], \]) === [$Bool](../types/Bool.md) +* Reorder pinned dialogs -$MadelineProto->[messages->reorderStickerSets](messages_reorderStickerSets.md)(\['masks' => [Bool](../types/Bool.md), 'order' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) +* Reorder sticker sets -$MadelineProto->[messages->reportEncryptedSpam](messages_reportEncryptedSpam.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), \]) === [$Bool](../types/Bool.md) +* Report for spam a secret chat -$MadelineProto->[messages->reportSpam](messages_reportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Report a peer for spam -$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats -$MadelineProto->[messages->saveDraft](messages_saveDraft.md)(\['no_webpage' => [Bool](../types/Bool.md), 'reply_to_msg_id' => [int](../types/int.md), 'peer' => [InputPeer](../types/InputPeer.md), 'message' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Bool](../types/Bool.md) +* Save a message draft -$MadelineProto->[messages->saveGif](messages_saveGif.md)(\['id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Save a GIF -$MadelineProto->[messages->saveRecentSticker](messages_saveRecentSticker.md)(\['attached' => [Bool](../types/Bool.md), 'id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Add a sticker to recent stickers -$MadelineProto->[messages->search](messages_search.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'q' => [string](../types/string.md), 'from_id' => [InputUser](../types/InputUser.md), 'filter' => [MessagesFilter](../types/MessagesFilter.md), 'min_date' => [int](../types/int.md), 'max_date' => [int](../types/int.md), 'offset_id' => [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) +* Search peers or messages -$MadelineProto->[messages->searchGifs](messages_searchGifs.md)(\['q' => [string](../types/string.md), 'offset' => [int](../types/int.md), \]) === [$messages\_FoundGifs](../types/messages_FoundGifs.md) +* Search gifs -$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) +* Global message search -$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send message to secret chat -$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) +* Send a file to a secret chat -$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) +* Send a service message to a secret chat -$MadelineProto->[messages->sendInlineBotResult](messages_sendInlineBotResult.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'query_id' => [long](../types/long.md), 'id' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Send a received bot result to the chat -$MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'media' => [InputMedia](../types/InputMedia.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \]) === [$Updates](../types/Updates.md) +* Send a media -$MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Updates](../types/Updates.md) +* Send a message -$MadelineProto->[messages->sendMultiMedia](messages_sendMultiMedia.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'multi_media' => \[[InputSingleMedia](../types/InputSingleMedia.md)\], \]) === [$Updates](../types/Updates.md) +* Send an album -$MadelineProto->[messages->sendScreenshotNotification](messages_sendScreenshotNotification.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) +* Send screenshot notification -$MadelineProto->[messages->setBotCallbackAnswer](messages_setBotCallbackAnswer.md)(\['alert' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'message' => [string](../types/string.md), 'url' => [string](../types/string.md), 'cache_time' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Bots only: set the callback answer (after a button was clicked) -$MadelineProto->[messages->setBotPrecheckoutResults](messages_setBotPrecheckoutResults.md)(\['success' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'error' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) +* Bots only: set precheckout results -$MadelineProto->[messages->setBotShippingResults](messages_setBotShippingResults.md)(\['query_id' => [long](../types/long.md), 'error' => [string](../types/string.md), 'shipping_options' => \[[ShippingOption](../types/ShippingOption.md)\], \]) === [$Bool](../types/Bool.md) +* Bots only: set shipping results -$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +* Send typing notification to secret chat -$MadelineProto->[messages->setGameScore](messages_setGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'force' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) +* Set the game score -$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) +* Bots only: set the results of an inline query -$MadelineProto->[messages->setInlineGameScore](messages_setInlineGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'force' => [Bool](../types/Bool.md), 'id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) +* Set the game score of an inline message -$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) +* Change typing status -$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) +* Start a bot -$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) +* Enable all users are admins in normal groups (not supergroups) -$MadelineProto->[messages->toggleDialogPin](messages_toggleDialogPin.md)(\['pinned' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) +* Pin or unpin dialog -$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) +* Remove a sticker set -$MadelineProto->[messages->uploadEncryptedFile](messages_uploadEncryptedFile.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'file' => [InputEncryptedFile](../types/InputEncryptedFile.md), \]) === [$EncryptedFile](../types/EncryptedFile.md) +* Upload a secret chat file without sending it to anyone -$MadelineProto->[messages->uploadMedia](messages_uploadMedia.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'media' => [InputMedia](../types/InputMedia.md), \]) === [$MessageMedia](../types/MessageMedia.md) +* Upload a file without sending it to anyone *** -

$MadelineProto->[payments->clearSavedInfo](payments_clearSavedInfo.md)(\['credentials' => [Bool](../types/Bool.md), 'info' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) +

* Clear saved payments info -$MadelineProto->[payments->getPaymentForm](payments_getPaymentForm.md)(\['msg_id' => [int](../types/int.md), \]) === [$payments\_PaymentForm](../types/payments_PaymentForm.md) +* Get payment form -$MadelineProto->[payments->getPaymentReceipt](payments_getPaymentReceipt.md)(\['msg_id' => [int](../types/int.md), \]) === [$payments\_PaymentReceipt](../types/payments_PaymentReceipt.md) +* Get payment receipt -$MadelineProto->[payments->getSavedInfo](payments_getSavedInfo.md)(\[\]) === [$payments\_SavedInfo](../types/payments_SavedInfo.md) +* Get saved payments info -$MadelineProto->[payments->sendPaymentForm](payments_sendPaymentForm.md)(\['msg_id' => [int](../types/int.md), 'requested_info_id' => [string](../types/string.md), 'shipping_option_id' => [string](../types/string.md), 'credentials' => [InputPaymentCredentials](../types/InputPaymentCredentials.md), \]) === [$payments\_PaymentResult](../types/payments_PaymentResult.md) +* Bots only: send payment form -$MadelineProto->[payments->validateRequestedInfo](payments_validateRequestedInfo.md)(\['save' => [Bool](../types/Bool.md), 'msg_id' => [int](../types/int.md), 'info' => [PaymentRequestedInfo](../types/PaymentRequestedInfo.md), \]) === [$payments\_ValidatedRequestedInfo](../types/payments_ValidatedRequestedInfo.md) +* Validate requested payment info *** -

$MadelineProto->[phone->acceptCall](phone_acceptCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'g_b' => [bytes](../types/bytes.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) +

* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls -$MadelineProto->[phone->confirmCall](phone_confirmCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'g_a' => [bytes](../types/bytes.md), 'key_fingerprint' => [long](../types/long.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls -$MadelineProto->[phone->discardCall](phone_discardCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'duration' => [int](../types/int.md), 'reason' => [PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md), 'connection_id' => [long](../types/long.md), \]) === [$Updates](../types/Updates.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls -$MadelineProto->[phone->getCallConfig](phone_getCallConfig.md)(\[\]) === [$DataJSON](../types/DataJSON.md) +* Get call configuration -$MadelineProto->[phone->receivedCall](phone_receivedCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), \]) === [$Bool](../types/Bool.md) +* Notify server that you received a call (server will refuse all incoming calls until the current call is over) -$MadelineProto->[phone->requestCall](phone_requestCall.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a_hash' => [bytes](../types/bytes.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls -$MadelineProto->[phone->saveCallDebug](phone_saveCallDebug.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'debug' => [DataJSON](../types/DataJSON.md), \]) === [$Bool](../types/Bool.md) +* Save call debugging info -$MadelineProto->[phone->setCallRating](phone_setCallRating.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'rating' => [int](../types/int.md), 'comment' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) +* Set phone call rating *** -

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) +

* Delete profile photos -$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) +* Get the profile photos of a user -$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) +* Update the profile photo (use photos->uploadProfilePhoto to upload the photo) -$MadelineProto->[photos->uploadProfilePhoto](photos_uploadProfilePhoto.md)(\['file' => [InputFile](../types/InputFile.md), \]) === [$photos\_Photo](../types/photos_Photo.md) +* Upload profile photo *** -

$MadelineProto->[stickers->addStickerToSet](stickers_addStickerToSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'sticker' => [InputStickerSetItem](../types/InputStickerSetItem.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) +

* Add sticker to stickerset -$MadelineProto->[stickers->changeStickerPosition](stickers_changeStickerPosition.md)(\['sticker' => [InputDocument](../types/InputDocument.md), 'position' => [int](../types/int.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) +* Change sticker position in photo -$MadelineProto->[stickers->createStickerSet](stickers_createStickerSet.md)(\['masks' => [Bool](../types/Bool.md), 'user_id' => [InputUser](../types/InputUser.md), 'title' => [string](../types/string.md), 'short_name' => [string](../types/string.md), 'stickers' => \[[InputStickerSetItem](../types/InputStickerSetItem.md)\], \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) +* Create stickerset -$MadelineProto->[stickers->removeStickerFromSet](stickers_removeStickerFromSet.md)(\['sticker' => [InputDocument](../types/InputDocument.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) +* Remove sticker from stickerset *** -

$MadelineProto->[updates->getChannelDifference](updates_getChannelDifference.md)(\['force' => [Bool](../types/Bool.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) +

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates -$MadelineProto->[updates->getDifference](updates_getDifference.md)(\['pts' => [int](../types/int.md), 'pts_total_limit' => [int](../types/int.md), 'date' => [int](../types/int.md), 'qts' => [int](../types/int.md), \]) === [$updates\_Difference](../types/updates_Difference.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates -$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) +* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates *** -

$MadelineProto->[upload->getCdnFile](upload_getCdnFile.md)(\['file_token' => [bytes](../types/bytes.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$upload\_CdnFile](../types/upload_CdnFile.md) +

* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$MadelineProto->[upload->getCdnFileHashes](upload_getCdnFileHashes.md)(\['file_token' => [bytes](../types/bytes.md), 'offset' => [int](../types/int.md), \]) === [$Vector\_of\_CdnFileHash](../types/CdnFileHash.md) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$MadelineProto->[upload->getWebFile](upload_getWebFile.md)(\['location' => [InputWebFileLocation](../types/InputWebFileLocation.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$upload\_WebFile](../types/upload_WebFile.md) +* Download a file through telegram -$MadelineProto->[upload->reuploadCdnFile](upload_reuploadCdnFile.md)(\['file_token' => [bytes](../types/bytes.md), 'request_token' => [bytes](../types/bytes.md), \]) === [$Vector\_of\_CdnFileHash](../types/CdnFileHash.md) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info -$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) +* You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info *** -

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) +

* You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info) -$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) +* Get info about users diff --git a/old_docs/API_docs_v73/methods/account_changePhone.md b/old_docs/API_docs_v73/methods/account_changePhone.md index aeb5c4bc..65f0b0d0 100644 --- a/old_docs/API_docs_v73/methods/account_changePhone.md +++ b/old_docs/API_docs_v73/methods/account_changePhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]); diff --git a/old_docs/API_docs_v73/methods/account_checkUsername.md b/old_docs/API_docs_v73/methods/account_checkUsername.md index 0124bb38..08107762 100644 --- a/old_docs/API_docs_v73/methods/account_checkUsername.md +++ b/old_docs/API_docs_v73/methods/account_checkUsername.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v73/methods/account_confirmPhone.md b/old_docs/API_docs_v73/methods/account_confirmPhone.md index c6a1dba6..68490f35 100644 --- a/old_docs/API_docs_v73/methods/account_confirmPhone.md +++ b/old_docs/API_docs_v73/methods/account_confirmPhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->confirmPhone(['phone_code_hash' => 'string', 'phone_code' => 'string', ]); diff --git a/old_docs/API_docs_v73/methods/account_deleteAccount.md b/old_docs/API_docs_v73/methods/account_deleteAccount.md index e8b46c24..3a6f4700 100644 --- a/old_docs/API_docs_v73/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v73/methods/account_deleteAccount.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]); diff --git a/old_docs/API_docs_v73/methods/account_getAccountTTL.md b/old_docs/API_docs_v73/methods/account_getAccountTTL.md index 0cdd0b98..ab6a6ea1 100644 --- a/old_docs/API_docs_v73/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v73/methods/account_getAccountTTL.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $AccountDaysTTL = $MadelineProto->account->getAccountTTL(); diff --git a/old_docs/API_docs_v73/methods/account_getAuthorizations.md b/old_docs/API_docs_v73/methods/account_getAuthorizations.md index f92db8fe..303203e4 100644 --- a/old_docs/API_docs_v73/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v73/methods/account_getAuthorizations.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_Authorizations = $MadelineProto->account->getAuthorizations(); diff --git a/old_docs/API_docs_v73/methods/account_getNotifySettings.md b/old_docs/API_docs_v73/methods/account_getNotifySettings.md index f00be12c..ad492f49 100644 --- a/old_docs/API_docs_v73/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v73/methods/account_getNotifySettings.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]); diff --git a/old_docs/API_docs_v73/methods/account_getPassword.md b/old_docs/API_docs_v73/methods/account_getPassword.md index c189421d..2692dab1 100644 --- a/old_docs/API_docs_v73/methods/account_getPassword.md +++ b/old_docs/API_docs_v73/methods/account_getPassword.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_Password = $MadelineProto->account->getPassword(); diff --git a/old_docs/API_docs_v73/methods/account_getPasswordSettings.md b/old_docs/API_docs_v73/methods/account_getPasswordSettings.md index 96cb953e..2039d405 100644 --- a/old_docs/API_docs_v73/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v73/methods/account_getPasswordSettings.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PasswordSettings = $MadelineProto->account->getPasswordSettings(['current_password_hash' => 'bytes', ]); diff --git a/old_docs/API_docs_v73/methods/account_getPrivacy.md b/old_docs/API_docs_v73/methods/account_getPrivacy.md index 979bfb94..5480ffbb 100644 --- a/old_docs/API_docs_v73/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v73/methods/account_getPrivacy.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]); diff --git a/old_docs/API_docs_v73/methods/account_getTmpPassword.md b/old_docs/API_docs_v73/methods/account_getTmpPassword.md index a90f9b2b..01b1ebfc 100644 --- a/old_docs/API_docs_v73/methods/account_getTmpPassword.md +++ b/old_docs/API_docs_v73/methods/account_getTmpPassword.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_TmpPassword = $MadelineProto->account->getTmpPassword(['password_hash' => 'bytes', 'period' => int, ]); diff --git a/old_docs/API_docs_v73/methods/account_getWallPapers.md b/old_docs/API_docs_v73/methods/account_getWallPapers.md index 89b281be..7c8bff39 100644 --- a/old_docs/API_docs_v73/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v73/methods/account_getWallPapers.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_WallPaper = $MadelineProto->account->getWallPapers(); diff --git a/old_docs/API_docs_v73/methods/account_registerDevice.md b/old_docs/API_docs_v73/methods/account_registerDevice.md index cd28abcd..4e148a7f 100644 --- a/old_docs/API_docs_v73/methods/account_registerDevice.md +++ b/old_docs/API_docs_v73/methods/account_registerDevice.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', ]); diff --git a/old_docs/API_docs_v73/methods/account_reportPeer.md b/old_docs/API_docs_v73/methods/account_reportPeer.md index a07c87d0..c5fe7073 100644 --- a/old_docs/API_docs_v73/methods/account_reportPeer.md +++ b/old_docs/API_docs_v73/methods/account_reportPeer.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->reportPeer(['peer' => InputPeer, 'reason' => ReportReason, ]); diff --git a/old_docs/API_docs_v73/methods/account_resetAuthorization.md b/old_docs/API_docs_v73/methods/account_resetAuthorization.md index 4155d3c8..543aee08 100644 --- a/old_docs/API_docs_v73/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v73/methods/account_resetAuthorization.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetAuthorization(['hash' => long, ]); diff --git a/old_docs/API_docs_v73/methods/account_resetNotifySettings.md b/old_docs/API_docs_v73/methods/account_resetNotifySettings.md index ccc836a9..557373b0 100644 --- a/old_docs/API_docs_v73/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v73/methods/account_resetNotifySettings.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->resetNotifySettings(); diff --git a/old_docs/API_docs_v73/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v73/methods/account_sendChangePhoneCode.md index c9f9c174..bdf7331f 100644 --- a/old_docs/API_docs_v73/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v73/methods/account_sendChangePhoneCode.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendChangePhoneCode(['allow_flashcall' => Bool, 'phone_number' => 'string', 'current_number' => Bool, ]); diff --git a/old_docs/API_docs_v73/methods/account_sendConfirmPhoneCode.md b/old_docs/API_docs_v73/methods/account_sendConfirmPhoneCode.md index 3785ba75..86035d19 100644 --- a/old_docs/API_docs_v73/methods/account_sendConfirmPhoneCode.md +++ b/old_docs/API_docs_v73/methods/account_sendConfirmPhoneCode.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_SentCode = $MadelineProto->account->sendConfirmPhoneCode(['allow_flashcall' => Bool, 'hash' => 'string', 'current_number' => Bool, ]); diff --git a/old_docs/API_docs_v73/methods/account_setAccountTTL.md b/old_docs/API_docs_v73/methods/account_setAccountTTL.md index 5100e62e..bacdd77a 100644 --- a/old_docs/API_docs_v73/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v73/methods/account_setAccountTTL.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]); diff --git a/old_docs/API_docs_v73/methods/account_setPrivacy.md b/old_docs/API_docs_v73/methods/account_setPrivacy.md index fbcedae7..6e24ded7 100644 --- a/old_docs/API_docs_v73/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v73/methods/account_setPrivacy.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule, InputPrivacyRule], ]); diff --git a/old_docs/API_docs_v73/methods/account_unregisterDevice.md b/old_docs/API_docs_v73/methods/account_unregisterDevice.md index 1d2b7670..b666d91a 100644 --- a/old_docs/API_docs_v73/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v73/methods/account_unregisterDevice.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]); diff --git a/old_docs/API_docs_v73/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v73/methods/account_updateDeviceLocked.md index ef816501..cd52093a 100644 --- a/old_docs/API_docs_v73/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v73/methods/account_updateDeviceLocked.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]); diff --git a/old_docs/API_docs_v73/methods/account_updateNotifySettings.md b/old_docs/API_docs_v73/methods/account_updateNotifySettings.md index 18cbdb75..db020309 100644 --- a/old_docs/API_docs_v73/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v73/methods/account_updateNotifySettings.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]); diff --git a/old_docs/API_docs_v73/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v73/methods/account_updatePasswordSettings.md index 0754dd63..8af1e37f 100644 --- a/old_docs/API_docs_v73/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v73/methods/account_updatePasswordSettings.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updatePasswordSettings(['current_password_hash' => 'bytes', 'new_settings' => account_PasswordInputSettings, ]); diff --git a/old_docs/API_docs_v73/methods/account_updateProfile.md b/old_docs/API_docs_v73/methods/account_updateProfile.md index e24ef2f5..59629188 100644 --- a/old_docs/API_docs_v73/methods/account_updateProfile.md +++ b/old_docs/API_docs_v73/methods/account_updateProfile.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', 'about' => 'string', ]); diff --git a/old_docs/API_docs_v73/methods/account_updateStatus.md b/old_docs/API_docs_v73/methods/account_updateStatus.md index 4b049e65..50b99b1e 100644 --- a/old_docs/API_docs_v73/methods/account_updateStatus.md +++ b/old_docs/API_docs_v73/methods/account_updateStatus.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]); diff --git a/old_docs/API_docs_v73/methods/account_updateUsername.md b/old_docs/API_docs_v73/methods/account_updateUsername.md index 08d2abe0..7276e2aa 100644 --- a/old_docs/API_docs_v73/methods/account_updateUsername.md +++ b/old_docs/API_docs_v73/methods/account_updateUsername.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->account->updateUsername(['username' => 'string', ]); diff --git a/old_docs/API_docs_v73/methods/api_README.md b/old_docs/API_docs_v73/methods/api_README.md new file mode 100644 index 00000000..4f7068be --- /dev/null +++ b/old_docs/API_docs_v73/methods/api_README.md @@ -0,0 +1,537 @@ +--- +title: Methods +description: List of methods +--- +# Methods +[Back to API documentation index](..) + +[Go to the new description-version method index](index.html) + +$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); + +$MadelineProto->[phone_login](https://docs.madelineproto.xyz/phone_login.html)($number); + +$MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_phone_login.html)($code); + +$MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); + +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); + + +$MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); + +$MadelineProto->[get_pwr_chat](https://docs.madelineproto.xyz/get_pwr_chat.html)($id); + +$MadelineProto->[get_info](https://docs.madelineproto.xyz/get_info.html)($id); + +$MadelineProto->[get_full_info](https://docs.madelineproto.xyz/get_full_info.html)($id); + +$MadelineProto->[get_self](https://docs.madelineproto.xyz/get_self.html)(); + + +$MadelineProto->[request_call](https://docs.madelineproto.xyz/request_call.html)($id); + +$MadelineProto->[request_secret_chat](https://docs.madelineproto.xyz/request_secret_chat.html)($id); + +*** +

$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) + +$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->confirmPhone](account_confirmPhone.md)(\['phone_code_hash' => [string](../types/string.md), 'phone_code' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md) + +$MadelineProto->[account->getAuthorizations](account_getAuthorizations.md)(\[\]) === [$account\_Authorizations](../types/account_Authorizations.md) + +$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md) + +$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md) + +$MadelineProto->[account->getPasswordSettings](account_getPasswordSettings.md)(\['current_password_hash' => [bytes](../types/bytes.md), \]) === [$account\_PasswordSettings](../types/account_PasswordSettings.md) + +$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->getTmpPassword](account_getTmpPassword.md)(\['password_hash' => [bytes](../types/bytes.md), 'period' => [int](../types/int.md), \]) === [$account\_TmpPassword](../types/account_TmpPassword.md) + +$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md) + +$MadelineProto->[account->registerDevice](account_registerDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->reportPeer](account_reportPeer.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reason' => [ReportReason](../types/ReportReason.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[account->sendConfirmPhoneCode](account_sendConfirmPhoneCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'hash' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) + +$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md) + +$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$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) + +$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md) + +*** +

$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) + +$MadelineProto->[auth->cancelCode](auth_cancelCode.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md) + +$MadelineProto->[auth->dropTempAuthKeys](auth_dropTempAuthKeys.md)(\['except_auth_keys' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md) + +$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$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) + +$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->recoverPassword](auth_recoverPassword.md)(\['code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md) + +$MadelineProto->[auth->requestPasswordRecovery](auth_requestPasswordRecovery.md)(\[\]) === [$auth\_PasswordRecovery](../types/auth_PasswordRecovery.md) + +$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) + +$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[auth->sendCode](auth_sendCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'phone_number' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), 'api_id' => [int](../types/int.md), 'api_hash' => [string](../types/string.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md) + +$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$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) + +*** +

$MadelineProto->[bots->answerWebhookJSONQuery](bots_answerWebhookJSONQuery.md)(\['query_id' => [long](../types/long.md), 'data' => [DataJSON](../types/DataJSON.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[bots->sendCustomRequest](bots_sendCustomRequest.md)(\['custom_method' => [string](../types/string.md), 'params' => [DataJSON](../types/DataJSON.md), \]) === [$DataJSON](../types/DataJSON.md) + +*** +

$MadelineProto->[channels->checkUsername](channels_checkUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->deleteChannel](channels_deleteChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->deleteHistory](channels_deleteHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[channels->deleteMessages](channels_deleteMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[channels->deleteUserHistory](channels_deleteUserHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[channels->editAbout](channels_editAbout.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'about' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[channels->editAdmin](channels_editAdmin.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), 'admin_rights' => [ChannelAdminRights](../types/ChannelAdminRights.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->editBanned](channels_editBanned.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), 'banned_rights' => [ChannelBannedRights](../types/ChannelBannedRights.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->editPhoto](channels_editPhoto.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->editTitle](channels_editTitle.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->exportInvite](channels_exportInvite.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) + +$MadelineProto->[channels->exportMessageLink](channels_exportMessageLink.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => [int](../types/int.md), \]) === [$ExportedMessageLink](../types/ExportedMessageLink.md) + +$MadelineProto->[channels->getAdminLog](channels_getAdminLog.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'q' => [string](../types/string.md), 'events_filter' => [ChannelAdminLogEventsFilter](../types/ChannelAdminLogEventsFilter.md), 'admins' => \[[InputUser](../types/InputUser.md)\], 'max_id' => [long](../types/long.md), 'min_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), \]) === [$channels\_AdminLogResults](../types/channels_AdminLogResults.md) + +$MadelineProto->[channels->getAdminedPublicChannels](channels_getAdminedPublicChannels.md)(\[\]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[channels->getChannels](channels_getChannels.md)(\['id' => \[[InputChannel](../types/InputChannel.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[channels->getFullChannel](channels_getFullChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$MadelineProto->[channels->getMessages](channels_getMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) + +$MadelineProto->[channels->getParticipant](channels_getParticipant.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$channels\_ChannelParticipant](../types/channels_ChannelParticipant.md) + +$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), 'hash' => [int](../types/int.md), \]) === [$channels\_ChannelParticipants](../types/channels_ChannelParticipants.md) + +$MadelineProto->[channels->inviteToChannel](channels_inviteToChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'users' => \[[InputUser](../types/InputUser.md)\], \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->joinChannel](channels_joinChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->leaveChannel](channels_leaveChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->readHistory](channels_readHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[channels->readMessageContents](channels_readMessageContents.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[channels->setStickers](channels_setStickers.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[channels->toggleInvites](channels_toggleInvites.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->togglePreHistoryHidden](channels_togglePreHistoryHidden.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[channels->toggleSignatures](channels_toggleSignatures.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$MadelineProto->[channels->updateUsername](channels_updateUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md) + +$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md) + +$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md) + +$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [int](../types/int.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md) + +$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md) + +$MadelineProto->[contacts->getTopPeers](contacts_getTopPeers.md)(\['correspondents' => [Bool](../types/Bool.md), 'bots_pm' => [Bool](../types/Bool.md), 'bots_inline' => [Bool](../types/Bool.md), 'phone_calls' => [Bool](../types/Bool.md), 'groups' => [Bool](../types/Bool.md), 'channels' => [Bool](../types/Bool.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'hash' => [int](../types/int.md), \]) === [$contacts\_TopPeers](../types/contacts_TopPeers.md) + +$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md) + +$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md) + +$MadelineProto->[contacts->resetSaved](contacts_resetSaved.md)(\[\]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->resetTopPeerRating](contacts_resetTopPeerRating.md)(\['category' => [TopPeerCategory](../types/TopPeerCategory.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md) + +$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) + +$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) + +*** +

$MadelineProto->[help->getAppChangelog](help_getAppChangelog.md)(\['prev_app_version' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[help->getAppUpdate](help_getAppUpdate.md)(\[\]) === [$help\_AppUpdate](../types/help_AppUpdate.md) + +$MadelineProto->[help->getCdnConfig](help_getCdnConfig.md)(\[\]) === [$CdnConfig](../types/CdnConfig.md) + +$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md) + +$MadelineProto->[help->getInviteText](help_getInviteText.md)(\[\]) === [$help\_InviteText](../types/help_InviteText.md) + +$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md) + +$MadelineProto->[help->getRecentMeUrls](help_getRecentMeUrls.md)(\['referer' => [string](../types/string.md), \]) === [$help\_RecentMeUrls](../types/help_RecentMeUrls.md) + +$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md) + +$MadelineProto->[help->getTermsOfService](help_getTermsOfService.md)(\[\]) === [$help\_TermsOfService](../types/help_TermsOfService.md) + +$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[help->setBotUpdatesStatus](help_setBotUpdatesStatus.md)(\['pending_updates_count' => [int](../types/int.md), 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +*** +

$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), 'system_lang_code' => [string](../types/string.md), 'lang_pack' => [string](../types/string.md), 'lang_code' => [string](../types/string.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[invokeWithoutUpdates](invokeWithoutUpdates.md)(\['query' => [!X](../types/!X.md), \]) === [$X](../types/X.md) + +*** +

$MadelineProto->[langpack->getDifference](langpack_getDifference.md)(\['from_version' => [int](../types/int.md), \]) === [$LangPackDifference](../types/LangPackDifference.md) + +$MadelineProto->[langpack->getLangPack](langpack_getLangPack.md)(\['lang_code' => [string](../types/string.md), \]) === [$LangPackDifference](../types/LangPackDifference.md) + +$MadelineProto->[langpack->getLanguages](langpack_getLanguages.md)(\[\]) === [$Vector\_of\_LangPackLanguage](../types/LangPackLanguage.md) + +$MadelineProto->[langpack->getStrings](langpack_getStrings.md)(\['lang_code' => [string](../types/string.md), 'keys' => \[[string](../types/string.md)\], \]) === [$Vector\_of\_LangPackString](../types/LangPackString.md) + +*** +

$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) + +$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) + +$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md) + +$MadelineProto->[messages->clearRecentStickers](messages_clearRecentStickers.md)(\['attached' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['just_clear' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['revoke' => [Bool](../types/Bool.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->editInlineBotMessage](messages_editInlineBotMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'stop_geo_live' => [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)\], 'geo_point' => [InputGeoPoint](../types/InputGeoPoint.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->editMessage](messages_editMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'stop_geo_live' => [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)\], 'geo_point' => [InputGeoPoint](../types/InputGeoPoint.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md) + +$MadelineProto->[messages->faveSticker](messages_faveSticker.md)(\['id' => [InputDocument](../types/InputDocument.md), 'unfave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'with_my_score' => [Bool](../types/Bool.md), 'grouped' => [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) + +$MadelineProto->[messages->getAllChats](messages_getAllChats.md)(\['except_ids' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[messages->getAllDrafts](messages_getAllDrafts.md)(\[\]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) + +$MadelineProto->[messages->getArchivedStickers](messages_getArchivedStickers.md)(\['masks' => [Bool](../types/Bool.md), 'offset_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), \]) === [$messages\_ArchivedStickers](../types/messages_ArchivedStickers.md) + +$MadelineProto->[messages->getAttachedStickers](messages_getAttachedStickers.md)(\['media' => [InputStickeredMedia](../types/InputStickeredMedia.md), \]) === [$Vector\_of\_StickerSetCovered](../types/StickerSetCovered.md) + +$MadelineProto->[messages->getBotCallbackAnswer](messages_getBotCallbackAnswer.md)(\['game' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'msg_id' => [int](../types/int.md), 'data' => [bytes](../types/bytes.md), \]) === [$messages\_BotCallbackAnswer](../types/messages_BotCallbackAnswer.md) + +$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[messages->getCommonChats](messages_getCommonChats.md)(\['user_id' => [InputUser](../types/InputUser.md), 'max_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Chats](../types/messages_Chats.md) + +$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) + +$MadelineProto->[messages->getDialogs](messages_getDialogs.md)(\['exclude_pinned' => [Bool](../types/Bool.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) + +$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) + +$MadelineProto->[messages->getFavedStickers](messages_getFavedStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_FavedStickers](../types/messages_FavedStickers.md) + +$MadelineProto->[messages->getFeaturedStickers](messages_getFeaturedStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_FeaturedStickers](../types/messages_FeaturedStickers.md) + +$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md) + +$MadelineProto->[messages->getGameHighScores](messages_getGameHighScores.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_HighScores](../types/messages_HighScores.md) + +$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), 'hash' => [int](../types/int.md), \]) === [$messages\_Messages](../types/messages_Messages.md) + +$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) + +$MadelineProto->[messages->getInlineGameHighScores](messages_getInlineGameHighScores.md)(\['id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_HighScores](../types/messages_HighScores.md) + +$MadelineProto->[messages->getMaskStickers](messages_getMaskStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md) + +$MadelineProto->[messages->getMessageEditData](messages_getMessageEditData.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$messages\_MessageEditData](../types/messages_MessageEditData.md) + +$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md) + +$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) + +$MadelineProto->[messages->getPeerDialogs](messages_getPeerDialogs.md)(\['peers' => \[[InputPeer](../types/InputPeer.md)\], \]) === [$messages\_PeerDialogs](../types/messages_PeerDialogs.md) + +$MadelineProto->[messages->getPeerSettings](messages_getPeerSettings.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$PeerSettings](../types/PeerSettings.md) + +$MadelineProto->[messages->getPinnedDialogs](messages_getPinnedDialogs.md)(\[\]) === [$messages\_PeerDialogs](../types/messages_PeerDialogs.md) + +$MadelineProto->[messages->getRecentLocations](messages_getRecentLocations.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Messages](../types/messages_Messages.md) + +$MadelineProto->[messages->getRecentStickers](messages_getRecentStickers.md)(\['attached' => [Bool](../types/Bool.md), 'hash' => [int](../types/int.md), \]) === [$messages\_RecentStickers](../types/messages_RecentStickers.md) + +$MadelineProto->[messages->getSavedGifs](messages_getSavedGifs.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_SavedGifs](../types/messages_SavedGifs.md) + +$MadelineProto->[messages->getStickerSet](messages_getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +$MadelineProto->[messages->getUnreadMentions](messages_getUnreadMentions.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset_id' => [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) + +$MadelineProto->[messages->getWebPage](messages_getWebPage.md)(\['url' => [string](../types/string.md), 'hash' => [int](../types/int.md), \]) === [$WebPage](../types/WebPage.md) + +$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) === [$MessageMedia](../types/MessageMedia.md) + +$MadelineProto->[messages->hideReportSpam](messages_hideReportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'archived' => [Bool](../types/Bool.md), \]) === [$messages\_StickerSetInstallResult](../types/messages_StickerSetInstallResult.md) + +$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->readFeaturedStickers](messages_readFeaturedStickers.md)(\['id' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->readHistory](messages_readHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->readMentions](messages_readMentions.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md) + +$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md) + +$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_ReceivedNotifyMessage](../types/ReceivedNotifyMessage.md) + +$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md) + +$MadelineProto->[messages->reorderPinnedDialogs](messages_reorderPinnedDialogs.md)(\['force' => [Bool](../types/Bool.md), 'order' => \[[InputPeer](../types/InputPeer.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->reorderStickerSets](messages_reorderStickerSets.md)(\['masks' => [Bool](../types/Bool.md), 'order' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->reportEncryptedSpam](messages_reportEncryptedSpam.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->reportSpam](messages_reportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md) + +$MadelineProto->[messages->saveDraft](messages_saveDraft.md)(\['no_webpage' => [Bool](../types/Bool.md), 'reply_to_msg_id' => [int](../types/int.md), 'peer' => [InputPeer](../types/InputPeer.md), 'message' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->saveGif](messages_saveGif.md)(\['id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->saveRecentSticker](messages_saveRecentSticker.md)(\['attached' => [Bool](../types/Bool.md), 'id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->search](messages_search.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'q' => [string](../types/string.md), 'from_id' => [InputUser](../types/InputUser.md), 'filter' => [MessagesFilter](../types/MessagesFilter.md), 'min_date' => [int](../types/int.md), 'max_date' => [int](../types/int.md), 'offset_id' => [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) + +$MadelineProto->[messages->searchGifs](messages_searchGifs.md)(\['q' => [string](../types/string.md), 'offset' => [int](../types/int.md), \]) === [$messages\_FoundGifs](../types/messages_FoundGifs.md) + +$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) + +$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$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) + +$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md) + +$MadelineProto->[messages->sendInlineBotResult](messages_sendInlineBotResult.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'query_id' => [long](../types/long.md), 'id' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'media' => [InputMedia](../types/InputMedia.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->sendMultiMedia](messages_sendMultiMedia.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'multi_media' => \[[InputSingleMedia](../types/InputSingleMedia.md)\], \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->sendScreenshotNotification](messages_sendScreenshotNotification.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->setBotCallbackAnswer](messages_setBotCallbackAnswer.md)(\['alert' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'message' => [string](../types/string.md), 'url' => [string](../types/string.md), 'cache_time' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setBotPrecheckoutResults](messages_setBotPrecheckoutResults.md)(\['success' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'error' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setBotShippingResults](messages_setBotShippingResults.md)(\['query_id' => [long](../types/long.md), 'error' => [string](../types/string.md), 'shipping_options' => \[[ShippingOption](../types/ShippingOption.md)\], \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setGameScore](messages_setGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'force' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md) + +$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) + +$MadelineProto->[messages->setInlineGameScore](messages_setInlineGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'force' => [Bool](../types/Bool.md), 'id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md) + +$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) + +$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[messages->toggleDialogPin](messages_toggleDialogPin.md)(\['pinned' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[messages->uploadEncryptedFile](messages_uploadEncryptedFile.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'file' => [InputEncryptedFile](../types/InputEncryptedFile.md), \]) === [$EncryptedFile](../types/EncryptedFile.md) + +$MadelineProto->[messages->uploadMedia](messages_uploadMedia.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'media' => [InputMedia](../types/InputMedia.md), \]) === [$MessageMedia](../types/MessageMedia.md) + +*** +

$MadelineProto->[payments->clearSavedInfo](payments_clearSavedInfo.md)(\['credentials' => [Bool](../types/Bool.md), 'info' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[payments->getPaymentForm](payments_getPaymentForm.md)(\['msg_id' => [int](../types/int.md), \]) === [$payments\_PaymentForm](../types/payments_PaymentForm.md) + +$MadelineProto->[payments->getPaymentReceipt](payments_getPaymentReceipt.md)(\['msg_id' => [int](../types/int.md), \]) === [$payments\_PaymentReceipt](../types/payments_PaymentReceipt.md) + +$MadelineProto->[payments->getSavedInfo](payments_getSavedInfo.md)(\[\]) === [$payments\_SavedInfo](../types/payments_SavedInfo.md) + +$MadelineProto->[payments->sendPaymentForm](payments_sendPaymentForm.md)(\['msg_id' => [int](../types/int.md), 'requested_info_id' => [string](../types/string.md), 'shipping_option_id' => [string](../types/string.md), 'credentials' => [InputPaymentCredentials](../types/InputPaymentCredentials.md), \]) === [$payments\_PaymentResult](../types/payments_PaymentResult.md) + +$MadelineProto->[payments->validateRequestedInfo](payments_validateRequestedInfo.md)(\['save' => [Bool](../types/Bool.md), 'msg_id' => [int](../types/int.md), 'info' => [PaymentRequestedInfo](../types/PaymentRequestedInfo.md), \]) === [$payments\_ValidatedRequestedInfo](../types/payments_ValidatedRequestedInfo.md) + +*** +

$MadelineProto->[phone->acceptCall](phone_acceptCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'g_b' => [bytes](../types/bytes.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) + +$MadelineProto->[phone->confirmCall](phone_confirmCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'g_a' => [bytes](../types/bytes.md), 'key_fingerprint' => [long](../types/long.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) + +$MadelineProto->[phone->discardCall](phone_discardCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'duration' => [int](../types/int.md), 'reason' => [PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md), 'connection_id' => [long](../types/long.md), \]) === [$Updates](../types/Updates.md) + +$MadelineProto->[phone->getCallConfig](phone_getCallConfig.md)(\[\]) === [$DataJSON](../types/DataJSON.md) + +$MadelineProto->[phone->receivedCall](phone_receivedCall.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[phone->requestCall](phone_requestCall.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a_hash' => [bytes](../types/bytes.md), 'protocol' => [PhoneCallProtocol](../types/PhoneCallProtocol.md), \]) === [$phone\_PhoneCall](../types/phone_PhoneCall.md) + +$MadelineProto->[phone->saveCallDebug](phone_saveCallDebug.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'debug' => [DataJSON](../types/DataJSON.md), \]) === [$Bool](../types/Bool.md) + +$MadelineProto->[phone->setCallRating](phone_setCallRating.md)(\['peer' => [InputPhoneCall](../types/InputPhoneCall.md), 'rating' => [int](../types/int.md), 'comment' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md) + +*** +

$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md) + +$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) + +$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md) + +$MadelineProto->[photos->uploadProfilePhoto](photos_uploadProfilePhoto.md)(\['file' => [InputFile](../types/InputFile.md), \]) === [$photos\_Photo](../types/photos_Photo.md) + +*** +

$MadelineProto->[stickers->addStickerToSet](stickers_addStickerToSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'sticker' => [InputStickerSetItem](../types/InputStickerSetItem.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +$MadelineProto->[stickers->changeStickerPosition](stickers_changeStickerPosition.md)(\['sticker' => [InputDocument](../types/InputDocument.md), 'position' => [int](../types/int.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +$MadelineProto->[stickers->createStickerSet](stickers_createStickerSet.md)(\['masks' => [Bool](../types/Bool.md), 'user_id' => [InputUser](../types/InputUser.md), 'title' => [string](../types/string.md), 'short_name' => [string](../types/string.md), 'stickers' => \[[InputStickerSetItem](../types/InputStickerSetItem.md)\], \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +$MadelineProto->[stickers->removeStickerFromSet](stickers_removeStickerFromSet.md)(\['sticker' => [InputDocument](../types/InputDocument.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md) + +*** +

$MadelineProto->[updates->getChannelDifference](updates_getChannelDifference.md)(\['force' => [Bool](../types/Bool.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) + +$MadelineProto->[updates->getDifference](updates_getDifference.md)(\['pts' => [int](../types/int.md), 'pts_total_limit' => [int](../types/int.md), 'date' => [int](../types/int.md), 'qts' => [int](../types/int.md), \]) === [$updates\_Difference](../types/updates_Difference.md) + +$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md) + +*** +

$MadelineProto->[upload->getCdnFile](upload_getCdnFile.md)(\['file_token' => [bytes](../types/bytes.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$upload\_CdnFile](../types/upload_CdnFile.md) + +$MadelineProto->[upload->getCdnFileHashes](upload_getCdnFileHashes.md)(\['file_token' => [bytes](../types/bytes.md), 'offset' => [int](../types/int.md), \]) === [$Vector\_of\_CdnFileHash](../types/CdnFileHash.md) + +$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) + +$MadelineProto->[upload->getWebFile](upload_getWebFile.md)(\['location' => [InputWebFileLocation](../types/InputWebFileLocation.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$upload\_WebFile](../types/upload_WebFile.md) + +$MadelineProto->[upload->reuploadCdnFile](upload_reuploadCdnFile.md)(\['file_token' => [bytes](../types/bytes.md), 'request_token' => [bytes](../types/bytes.md), \]) === [$Vector\_of\_CdnFileHash](../types/CdnFileHash.md) + +$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) + +$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) + +*** +

$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md) + +$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md) + diff --git a/old_docs/API_docs_v73/methods/auth_cancelCode.md b/old_docs/API_docs_v73/methods/auth_cancelCode.md index 2ad15548..52b85d4c 100644 --- a/old_docs/API_docs_v73/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v73/methods/auth_cancelCode.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->cancelCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v73/methods/auth_checkPhone.md b/old_docs/API_docs_v73/methods/auth_checkPhone.md index 291221de..1826ce63 100644 --- a/old_docs/API_docs_v73/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v73/methods/auth_checkPhone.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]); diff --git a/old_docs/API_docs_v73/methods/auth_dropTempAuthKeys.md b/old_docs/API_docs_v73/methods/auth_dropTempAuthKeys.md index 6474bbb3..5aa98b3b 100644 --- a/old_docs/API_docs_v73/methods/auth_dropTempAuthKeys.md +++ b/old_docs/API_docs_v73/methods/auth_dropTempAuthKeys.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->dropTempAuthKeys(['except_auth_keys' => [long, long], ]); diff --git a/old_docs/API_docs_v73/methods/auth_recoverPassword.md b/old_docs/API_docs_v73/methods/auth_recoverPassword.md index cdc9bd7d..5e37b0f3 100644 --- a/old_docs/API_docs_v73/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v73/methods/auth_recoverPassword.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_Authorization = $MadelineProto->auth->recoverPassword(['code' => 'string', ]); diff --git a/old_docs/API_docs_v73/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v73/methods/auth_requestPasswordRecovery.md index e18c6c93..c69d0c49 100644 --- a/old_docs/API_docs_v73/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v73/methods/auth_requestPasswordRecovery.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_PasswordRecovery = $MadelineProto->auth->requestPasswordRecovery(); diff --git a/old_docs/API_docs_v73/methods/auth_resendCode.md b/old_docs/API_docs_v73/methods/auth_resendCode.md index de437402..253480a3 100644 --- a/old_docs/API_docs_v73/methods/auth_resendCode.md +++ b/old_docs/API_docs_v73/methods/auth_resendCode.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $auth_SentCode = $MadelineProto->auth->resendCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]); diff --git a/old_docs/API_docs_v73/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v73/methods/auth_resetAuthorizations.md index 47feea16..a46c880d 100644 --- a/old_docs/API_docs_v73/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v73/methods/auth_resetAuthorizations.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->resetAuthorizations(); diff --git a/old_docs/API_docs_v73/methods/auth_sendInvites.md b/old_docs/API_docs_v73/methods/auth_sendInvites.md index be32fe6b..9b88b4a3 100644 --- a/old_docs/API_docs_v73/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v73/methods/auth_sendInvites.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string', 'string'], 'message' => 'string', ]); diff --git a/old_docs/API_docs_v73/methods/bots_answerWebhookJSONQuery.md b/old_docs/API_docs_v73/methods/bots_answerWebhookJSONQuery.md index 61056bb4..40cb0477 100644 --- a/old_docs/API_docs_v73/methods/bots_answerWebhookJSONQuery.md +++ b/old_docs/API_docs_v73/methods/bots_answerWebhookJSONQuery.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->bots->answerWebhookJSONQuery(['query_id' => long, 'data' => DataJSON, ]); diff --git a/old_docs/API_docs_v73/methods/bots_sendCustomRequest.md b/old_docs/API_docs_v73/methods/bots_sendCustomRequest.md index fc8e764d..5a7f4e86 100644 --- a/old_docs/API_docs_v73/methods/bots_sendCustomRequest.md +++ b/old_docs/API_docs_v73/methods/bots_sendCustomRequest.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $DataJSON = $MadelineProto->bots->sendCustomRequest(['custom_method' => 'string', 'params' => DataJSON, ]); diff --git a/old_docs/API_docs_v73/methods/channels_checkUsername.md b/old_docs/API_docs_v73/methods/channels_checkUsername.md index 7bc7c245..7e3d5a89 100644 --- a/old_docs/API_docs_v73/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v73/methods/channels_checkUsername.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->checkUsername(['channel' => InputChannel, 'username' => 'string', ]); diff --git a/old_docs/API_docs_v73/methods/channels_createChannel.md b/old_docs/API_docs_v73/methods/channels_createChannel.md index 1305e4fb..a5ddc379 100644 --- a/old_docs/API_docs_v73/methods/channels_createChannel.md +++ b/old_docs/API_docs_v73/methods/channels_createChannel.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->createChannel(['broadcast' => Bool, 'megagroup' => Bool, 'title' => 'string', 'about' => 'string', ]); diff --git a/old_docs/API_docs_v73/methods/channels_deleteChannel.md b/old_docs/API_docs_v73/methods/channels_deleteChannel.md index e660d25c..69dad9a3 100644 --- a/old_docs/API_docs_v73/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v73/methods/channels_deleteChannel.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->deleteChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v73/methods/channels_deleteHistory.md b/old_docs/API_docs_v73/methods/channels_deleteHistory.md index 55a5e371..856a32e8 100644 --- a/old_docs/API_docs_v73/methods/channels_deleteHistory.md +++ b/old_docs/API_docs_v73/methods/channels_deleteHistory.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->deleteHistory(['channel' => InputChannel, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v73/methods/channels_deleteMessages.md b/old_docs/API_docs_v73/methods/channels_deleteMessages.md index fb9d3cc2..b12270b3 100644 --- a/old_docs/API_docs_v73/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v73/methods/channels_deleteMessages.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v73/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v73/methods/channels_deleteUserHistory.md index fbe34341..75f531bb 100644 --- a/old_docs/API_docs_v73/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v73/methods/channels_deleteUserHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->channels->deleteUserHistory(['channel' => InputChannel, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v73/methods/channels_editAbout.md b/old_docs/API_docs_v73/methods/channels_editAbout.md index 8908f29e..67521065 100644 --- a/old_docs/API_docs_v73/methods/channels_editAbout.md +++ b/old_docs/API_docs_v73/methods/channels_editAbout.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->editAbout(['channel' => InputChannel, 'about' => 'string', ]); diff --git a/old_docs/API_docs_v73/methods/channels_editAdmin.md b/old_docs/API_docs_v73/methods/channels_editAdmin.md index dcec7d2f..7cecbd64 100644 --- a/old_docs/API_docs_v73/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v73/methods/channels_editAdmin.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editAdmin(['channel' => InputChannel, 'user_id' => InputUser, 'admin_rights' => ChannelAdminRights, ]); diff --git a/old_docs/API_docs_v73/methods/channels_editBanned.md b/old_docs/API_docs_v73/methods/channels_editBanned.md index 9859bcae..ca9f2596 100644 --- a/old_docs/API_docs_v73/methods/channels_editBanned.md +++ b/old_docs/API_docs_v73/methods/channels_editBanned.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editBanned(['channel' => InputChannel, 'user_id' => InputUser, 'banned_rights' => ChannelBannedRights, ]); diff --git a/old_docs/API_docs_v73/methods/channels_editPhoto.md b/old_docs/API_docs_v73/methods/channels_editPhoto.md index 9ccd864f..c854c64a 100644 --- a/old_docs/API_docs_v73/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v73/methods/channels_editPhoto.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editPhoto(['channel' => InputChannel, 'photo' => InputChatPhoto, ]); diff --git a/old_docs/API_docs_v73/methods/channels_editTitle.md b/old_docs/API_docs_v73/methods/channels_editTitle.md index b1024faf..9bc6773e 100644 --- a/old_docs/API_docs_v73/methods/channels_editTitle.md +++ b/old_docs/API_docs_v73/methods/channels_editTitle.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->editTitle(['channel' => InputChannel, 'title' => 'string', ]); diff --git a/old_docs/API_docs_v73/methods/channels_exportInvite.md b/old_docs/API_docs_v73/methods/channels_exportInvite.md index f0c737d5..ca65dcc8 100644 --- a/old_docs/API_docs_v73/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v73/methods/channels_exportInvite.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedChatInvite = $MadelineProto->channels->exportInvite(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v73/methods/channels_exportMessageLink.md b/old_docs/API_docs_v73/methods/channels_exportMessageLink.md index f910b594..b4a3c645 100644 --- a/old_docs/API_docs_v73/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v73/methods/channels_exportMessageLink.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedMessageLink = $MadelineProto->channels->exportMessageLink(['channel' => InputChannel, 'id' => int, ]); diff --git a/old_docs/API_docs_v73/methods/channels_getAdminLog.md b/old_docs/API_docs_v73/methods/channels_getAdminLog.md index 8aa33d23..4a419778 100644 --- a/old_docs/API_docs_v73/methods/channels_getAdminLog.md +++ b/old_docs/API_docs_v73/methods/channels_getAdminLog.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $channels_AdminLogResults = $MadelineProto->channels->getAdminLog(['channel' => InputChannel, 'q' => 'string', 'events_filter' => ChannelAdminLogEventsFilter, 'admins' => [InputUser, InputUser], 'max_id' => long, 'min_id' => long, 'limit' => int, ]); diff --git a/old_docs/API_docs_v73/methods/channels_getAdminedPublicChannels.md b/old_docs/API_docs_v73/methods/channels_getAdminedPublicChannels.md index 9646f529..febc44f9 100644 --- a/old_docs/API_docs_v73/methods/channels_getAdminedPublicChannels.md +++ b/old_docs/API_docs_v73/methods/channels_getAdminedPublicChannels.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->channels->getAdminedPublicChannels(); diff --git a/old_docs/API_docs_v73/methods/channels_getChannels.md b/old_docs/API_docs_v73/methods/channels_getChannels.md index 9cd9e798..af22556f 100644 --- a/old_docs/API_docs_v73/methods/channels_getChannels.md +++ b/old_docs/API_docs_v73/methods/channels_getChannels.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel, InputChannel], ]); diff --git a/old_docs/API_docs_v73/methods/channels_getMessages.md b/old_docs/API_docs_v73/methods/channels_getMessages.md index cc944fe5..eda13d0b 100644 --- a/old_docs/API_docs_v73/methods/channels_getMessages.md +++ b/old_docs/API_docs_v73/methods/channels_getMessages.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v73/methods/channels_getParticipant.md b/old_docs/API_docs_v73/methods/channels_getParticipant.md index db9b1fc6..be5fe96a 100644 --- a/old_docs/API_docs_v73/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v73/methods/channels_getParticipant.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $channels_ChannelParticipant = $MadelineProto->channels->getParticipant(['channel' => InputChannel, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v73/methods/channels_getParticipants.md b/old_docs/API_docs_v73/methods/channels_getParticipants.md index 9b2b6c2a..3772ef4b 100644 --- a/old_docs/API_docs_v73/methods/channels_getParticipants.md +++ b/old_docs/API_docs_v73/methods/channels_getParticipants.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $channels_ChannelParticipants = $MadelineProto->channels->getParticipants(['channel' => InputChannel, 'filter' => ChannelParticipantsFilter, 'offset' => int, 'limit' => int, 'hash' => int, ]); diff --git a/old_docs/API_docs_v73/methods/channels_inviteToChannel.md b/old_docs/API_docs_v73/methods/channels_inviteToChannel.md index 676f800c..e7d12db7 100644 --- a/old_docs/API_docs_v73/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v73/methods/channels_inviteToChannel.md @@ -52,12 +52,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v73/methods/channels_joinChannel.md b/old_docs/API_docs_v73/methods/channels_joinChannel.md index 721f707c..3ac2b326 100644 --- a/old_docs/API_docs_v73/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v73/methods/channels_joinChannel.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->joinChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v73/methods/channels_leaveChannel.md b/old_docs/API_docs_v73/methods/channels_leaveChannel.md index 7f02e08c..95b60a90 100644 --- a/old_docs/API_docs_v73/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v73/methods/channels_leaveChannel.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->leaveChannel(['channel' => InputChannel, ]); diff --git a/old_docs/API_docs_v73/methods/channels_readHistory.md b/old_docs/API_docs_v73/methods/channels_readHistory.md index cca891f0..c6b14541 100644 --- a/old_docs/API_docs_v73/methods/channels_readHistory.md +++ b/old_docs/API_docs_v73/methods/channels_readHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->readHistory(['channel' => InputChannel, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v73/methods/channels_readMessageContents.md b/old_docs/API_docs_v73/methods/channels_readMessageContents.md index 861844c4..aa9893c2 100644 --- a/old_docs/API_docs_v73/methods/channels_readMessageContents.md +++ b/old_docs/API_docs_v73/methods/channels_readMessageContents.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->readMessageContents(['channel' => InputChannel, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v73/methods/channels_reportSpam.md b/old_docs/API_docs_v73/methods/channels_reportSpam.md index 09af14e0..ca5c28f5 100644 --- a/old_docs/API_docs_v73/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v73/methods/channels_reportSpam.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v73/methods/channels_setStickers.md b/old_docs/API_docs_v73/methods/channels_setStickers.md index 9ed5bd55..d9be32a4 100644 --- a/old_docs/API_docs_v73/methods/channels_setStickers.md +++ b/old_docs/API_docs_v73/methods/channels_setStickers.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->setStickers(['channel' => InputChannel, 'stickerset' => InputStickerSet, ]); diff --git a/old_docs/API_docs_v73/methods/channels_toggleInvites.md b/old_docs/API_docs_v73/methods/channels_toggleInvites.md index 5b541f67..e9e6450d 100644 --- a/old_docs/API_docs_v73/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v73/methods/channels_toggleInvites.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->toggleInvites(['channel' => InputChannel, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v73/methods/channels_togglePreHistoryHidden.md b/old_docs/API_docs_v73/methods/channels_togglePreHistoryHidden.md index 9327de90..d07784de 100644 --- a/old_docs/API_docs_v73/methods/channels_togglePreHistoryHidden.md +++ b/old_docs/API_docs_v73/methods/channels_togglePreHistoryHidden.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->togglePreHistoryHidden(['channel' => InputChannel, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v73/methods/channels_toggleSignatures.md b/old_docs/API_docs_v73/methods/channels_toggleSignatures.md index f233a8e1..36d1eccb 100644 --- a/old_docs/API_docs_v73/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v73/methods/channels_toggleSignatures.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->toggleSignatures(['channel' => InputChannel, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v73/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v73/methods/channels_updatePinnedMessage.md index f06d1f0f..f8d10ece 100644 --- a/old_docs/API_docs_v73/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v73/methods/channels_updatePinnedMessage.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->channels->updatePinnedMessage(['silent' => Bool, 'channel' => InputChannel, 'id' => int, ]); diff --git a/old_docs/API_docs_v73/methods/channels_updateUsername.md b/old_docs/API_docs_v73/methods/channels_updateUsername.md index ad34490a..2093b6ce 100644 --- a/old_docs/API_docs_v73/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v73/methods/channels_updateUsername.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->channels->updateUsername(['channel' => InputChannel, 'username' => 'string', ]); diff --git a/old_docs/API_docs_v73/methods/contacts_block.md b/old_docs/API_docs_v73/methods/contacts_block.md index d0729d30..e592cace 100644 --- a/old_docs/API_docs_v73/methods/contacts_block.md +++ b/old_docs/API_docs_v73/methods/contacts_block.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->block(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v73/methods/contacts_deleteContact.md b/old_docs/API_docs_v73/methods/contacts_deleteContact.md index b8c17544..1a3f2a27 100644 --- a/old_docs/API_docs_v73/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v73/methods/contacts_deleteContact.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v73/methods/contacts_deleteContacts.md b/old_docs/API_docs_v73/methods/contacts_deleteContacts.md index 64c69460..f6627599 100644 --- a/old_docs/API_docs_v73/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v73/methods/contacts_deleteContacts.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser, InputUser], ]); diff --git a/old_docs/API_docs_v73/methods/contacts_exportCard.md b/old_docs/API_docs_v73/methods/contacts_exportCard.md index b05f57ce..1d2129f3 100644 --- a/old_docs/API_docs_v73/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v73/methods/contacts_exportCard.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->contacts->exportCard(); diff --git a/old_docs/API_docs_v73/methods/contacts_getBlocked.md b/old_docs/API_docs_v73/methods/contacts_getBlocked.md index d7d8c5cc..44d24aba 100644 --- a/old_docs/API_docs_v73/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v73/methods/contacts_getBlocked.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v73/methods/contacts_getContacts.md b/old_docs/API_docs_v73/methods/contacts_getContacts.md index 3e06bea4..589572dc 100644 --- a/old_docs/API_docs_v73/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v73/methods/contacts_getContacts.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => int, ]); diff --git a/old_docs/API_docs_v73/methods/contacts_getStatuses.md b/old_docs/API_docs_v73/methods/contacts_getStatuses.md index b927a140..5cef3084 100644 --- a/old_docs/API_docs_v73/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v73/methods/contacts_getStatuses.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses(); diff --git a/old_docs/API_docs_v73/methods/contacts_getTopPeers.md b/old_docs/API_docs_v73/methods/contacts_getTopPeers.md index 226d3aa0..4958e6b2 100644 --- a/old_docs/API_docs_v73/methods/contacts_getTopPeers.md +++ b/old_docs/API_docs_v73/methods/contacts_getTopPeers.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_TopPeers = $MadelineProto->contacts->getTopPeers(['correspondents' => Bool, 'bots_pm' => Bool, 'bots_inline' => Bool, 'phone_calls' => Bool, 'groups' => Bool, 'channels' => Bool, 'offset' => int, 'limit' => int, 'hash' => int, ]); diff --git a/old_docs/API_docs_v73/methods/contacts_importCard.md b/old_docs/API_docs_v73/methods/contacts_importCard.md index 81a1e138..89c96657 100644 --- a/old_docs/API_docs_v73/methods/contacts_importCard.md +++ b/old_docs/API_docs_v73/methods/contacts_importCard.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $User = $MadelineProto->contacts->importCard(['export_card' => [int, int], ]); diff --git a/old_docs/API_docs_v73/methods/contacts_importContacts.md b/old_docs/API_docs_v73/methods/contacts_importContacts.md index 16ecd74b..ccc0eada 100644 --- a/old_docs/API_docs_v73/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v73/methods/contacts_importContacts.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact, InputContact], ]); diff --git a/old_docs/API_docs_v73/methods/contacts_resetSaved.md b/old_docs/API_docs_v73/methods/contacts_resetSaved.md index 50034ace..d6d9d95d 100644 --- a/old_docs/API_docs_v73/methods/contacts_resetSaved.md +++ b/old_docs/API_docs_v73/methods/contacts_resetSaved.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->resetSaved(); diff --git a/old_docs/API_docs_v73/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v73/methods/contacts_resetTopPeerRating.md index 4b485921..4b5e96f1 100644 --- a/old_docs/API_docs_v73/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v73/methods/contacts_resetTopPeerRating.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->resetTopPeerRating(['category' => TopPeerCategory, 'peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v73/methods/contacts_search.md b/old_docs/API_docs_v73/methods/contacts_search.md index 68daecd6..64ff748e 100644 --- a/old_docs/API_docs_v73/methods/contacts_search.md +++ b/old_docs/API_docs_v73/methods/contacts_search.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $contacts_Found = $MadelineProto->contacts->search(['q' => 'string', 'limit' => int, ]); diff --git a/old_docs/API_docs_v73/methods/contacts_unblock.md b/old_docs/API_docs_v73/methods/contacts_unblock.md index f7d151b9..ec72ae2d 100644 --- a/old_docs/API_docs_v73/methods/contacts_unblock.md +++ b/old_docs/API_docs_v73/methods/contacts_unblock.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->contacts->unblock(['id' => InputUser, ]); diff --git a/old_docs/API_docs_v73/methods/help_getAppChangelog.md b/old_docs/API_docs_v73/methods/help_getAppChangelog.md index 477df2f8..eda473a6 100644 --- a/old_docs/API_docs_v73/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v73/methods/help_getAppChangelog.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->help->getAppChangelog(['prev_app_version' => 'string', ]); diff --git a/old_docs/API_docs_v73/methods/help_getAppUpdate.md b/old_docs/API_docs_v73/methods/help_getAppUpdate.md index b88906ae..c6a42922 100644 --- a/old_docs/API_docs_v73/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v73/methods/help_getAppUpdate.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_AppUpdate = $MadelineProto->help->getAppUpdate(); diff --git a/old_docs/API_docs_v73/methods/help_getCdnConfig.md b/old_docs/API_docs_v73/methods/help_getCdnConfig.md index 809ea1fb..b98949ed 100644 --- a/old_docs/API_docs_v73/methods/help_getCdnConfig.md +++ b/old_docs/API_docs_v73/methods/help_getCdnConfig.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $CdnConfig = $MadelineProto->help->getCdnConfig(); diff --git a/old_docs/API_docs_v73/methods/help_getConfig.md b/old_docs/API_docs_v73/methods/help_getConfig.md index 16e25c68..ca4bfc25 100644 --- a/old_docs/API_docs_v73/methods/help_getConfig.md +++ b/old_docs/API_docs_v73/methods/help_getConfig.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Config = $MadelineProto->help->getConfig(); diff --git a/old_docs/API_docs_v73/methods/help_getInviteText.md b/old_docs/API_docs_v73/methods/help_getInviteText.md index 6b226bff..7311b7fb 100644 --- a/old_docs/API_docs_v73/methods/help_getInviteText.md +++ b/old_docs/API_docs_v73/methods/help_getInviteText.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_InviteText = $MadelineProto->help->getInviteText(); diff --git a/old_docs/API_docs_v73/methods/help_getNearestDc.md b/old_docs/API_docs_v73/methods/help_getNearestDc.md index 35a8bf91..458f60ab 100644 --- a/old_docs/API_docs_v73/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v73/methods/help_getNearestDc.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $NearestDc = $MadelineProto->help->getNearestDc(); diff --git a/old_docs/API_docs_v73/methods/help_getRecentMeUrls.md b/old_docs/API_docs_v73/methods/help_getRecentMeUrls.md index 43a47dad..29d2e21f 100644 --- a/old_docs/API_docs_v73/methods/help_getRecentMeUrls.md +++ b/old_docs/API_docs_v73/methods/help_getRecentMeUrls.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_RecentMeUrls = $MadelineProto->help->getRecentMeUrls(['referer' => 'string', ]); diff --git a/old_docs/API_docs_v73/methods/help_getSupport.md b/old_docs/API_docs_v73/methods/help_getSupport.md index a5bab0f2..9ee25b00 100644 --- a/old_docs/API_docs_v73/methods/help_getSupport.md +++ b/old_docs/API_docs_v73/methods/help_getSupport.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_Support = $MadelineProto->help->getSupport(); diff --git a/old_docs/API_docs_v73/methods/help_getTermsOfService.md b/old_docs/API_docs_v73/methods/help_getTermsOfService.md index 487cd83a..4dea9f79 100644 --- a/old_docs/API_docs_v73/methods/help_getTermsOfService.md +++ b/old_docs/API_docs_v73/methods/help_getTermsOfService.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $help_TermsOfService = $MadelineProto->help->getTermsOfService(); diff --git a/old_docs/API_docs_v73/methods/help_saveAppLog.md b/old_docs/API_docs_v73/methods/help_saveAppLog.md index 0165b6e3..a7884c47 100644 --- a/old_docs/API_docs_v73/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v73/methods/help_saveAppLog.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->help->saveAppLog(['events' => [InputAppEvent, InputAppEvent], ]); diff --git a/old_docs/API_docs_v73/methods/help_setBotUpdatesStatus.md b/old_docs/API_docs_v73/methods/help_setBotUpdatesStatus.md index ff314b5c..a1a3ab1b 100644 --- a/old_docs/API_docs_v73/methods/help_setBotUpdatesStatus.md +++ b/old_docs/API_docs_v73/methods/help_setBotUpdatesStatus.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->help->setBotUpdatesStatus(['pending_updates_count' => int, 'message' => 'string', ]); diff --git a/old_docs/API_docs_v73/methods/initConnection.md b/old_docs/API_docs_v73/methods/initConnection.md index d1d725e7..c66aa8b1 100644 --- a/old_docs/API_docs_v73/methods/initConnection.md +++ b/old_docs/API_docs_v73/methods/initConnection.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->initConnection(['api_id' => int, 'device_model' => 'string', 'system_version' => 'string', 'app_version' => 'string', 'system_lang_code' => 'string', 'lang_pack' => 'string', 'lang_code' => 'string', 'query' => !X, ]); diff --git a/old_docs/API_docs_v73/methods/invokeAfterMsg.md b/old_docs/API_docs_v73/methods/invokeAfterMsg.md index e33a2c93..8e953e78 100644 --- a/old_docs/API_docs_v73/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v73/methods/invokeAfterMsg.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsg(['msg_id' => long, 'query' => !X, ]); diff --git a/old_docs/API_docs_v73/methods/invokeAfterMsgs.md b/old_docs/API_docs_v73/methods/invokeAfterMsgs.md index 3150a613..bc8a83b7 100644 --- a/old_docs/API_docs_v73/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v73/methods/invokeAfterMsgs.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeAfterMsgs(['msg_ids' => [long, long], 'query' => !X, ]); diff --git a/old_docs/API_docs_v73/methods/invokeWithLayer.md b/old_docs/API_docs_v73/methods/invokeWithLayer.md index 71d02abb..8a0c4e79 100644 --- a/old_docs/API_docs_v73/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v73/methods/invokeWithLayer.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeWithLayer(['layer' => int, 'query' => !X, ]); diff --git a/old_docs/API_docs_v73/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v73/methods/invokeWithoutUpdates.md index 2bab236a..2d90a776 100644 --- a/old_docs/API_docs_v73/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v73/methods/invokeWithoutUpdates.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $X = $MadelineProto->invokeWithoutUpdates(['query' => !X, ]); diff --git a/old_docs/API_docs_v73/methods/langpack_getDifference.md b/old_docs/API_docs_v73/methods/langpack_getDifference.md index 0eed6475..0a6512e4 100644 --- a/old_docs/API_docs_v73/methods/langpack_getDifference.md +++ b/old_docs/API_docs_v73/methods/langpack_getDifference.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $LangPackDifference = $MadelineProto->langpack->getDifference(['from_version' => int, ]); diff --git a/old_docs/API_docs_v73/methods/langpack_getLangPack.md b/old_docs/API_docs_v73/methods/langpack_getLangPack.md index 4f26fd7a..45a9ca47 100644 --- a/old_docs/API_docs_v73/methods/langpack_getLangPack.md +++ b/old_docs/API_docs_v73/methods/langpack_getLangPack.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $LangPackDifference = $MadelineProto->langpack->getLangPack(['lang_code' => 'string', ]); diff --git a/old_docs/API_docs_v73/methods/langpack_getLanguages.md b/old_docs/API_docs_v73/methods/langpack_getLanguages.md index 6e8dab41..b573a5eb 100644 --- a/old_docs/API_docs_v73/methods/langpack_getLanguages.md +++ b/old_docs/API_docs_v73/methods/langpack_getLanguages.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_LangPackLanguage = $MadelineProto->langpack->getLanguages(); diff --git a/old_docs/API_docs_v73/methods/langpack_getStrings.md b/old_docs/API_docs_v73/methods/langpack_getStrings.md index 40612baf..841b02db 100644 --- a/old_docs/API_docs_v73/methods/langpack_getStrings.md +++ b/old_docs/API_docs_v73/methods/langpack_getStrings.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_LangPackString = $MadelineProto->langpack->getStrings(['lang_code' => 'string', 'keys' => ['string', 'string'], ]); diff --git a/old_docs/API_docs_v73/methods/messages_addChatUser.md b/old_docs/API_docs_v73/methods/messages_addChatUser.md index 3e4c5ccc..c6ef275f 100644 --- a/old_docs/API_docs_v73/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v73/methods/messages_addChatUser.md @@ -46,12 +46,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->addChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, 'fwd_limit' => int, ]); diff --git a/old_docs/API_docs_v73/methods/messages_checkChatInvite.md b/old_docs/API_docs_v73/methods/messages_checkChatInvite.md index de1d9ff4..cea63313 100644 --- a/old_docs/API_docs_v73/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v73/methods/messages_checkChatInvite.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ChatInvite = $MadelineProto->messages->checkChatInvite(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v73/methods/messages_clearRecentStickers.md b/old_docs/API_docs_v73/methods/messages_clearRecentStickers.md index 9c1b3754..1d6ec8c9 100644 --- a/old_docs/API_docs_v73/methods/messages_clearRecentStickers.md +++ b/old_docs/API_docs_v73/methods/messages_clearRecentStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->clearRecentStickers(['attached' => Bool, ]); diff --git a/old_docs/API_docs_v73/methods/messages_createChat.md b/old_docs/API_docs_v73/methods/messages_createChat.md index 68c0263a..966f58dc 100644 --- a/old_docs/API_docs_v73/methods/messages_createChat.md +++ b/old_docs/API_docs_v73/methods/messages_createChat.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->createChat(['users' => [InputUser, InputUser], 'title' => 'string', ]); diff --git a/old_docs/API_docs_v73/methods/messages_deleteChatUser.md b/old_docs/API_docs_v73/methods/messages_deleteChatUser.md index 0a6830de..9a9227ba 100644 --- a/old_docs/API_docs_v73/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v73/methods/messages_deleteChatUser.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->deleteChatUser(['chat_id' => InputPeer, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v73/methods/messages_deleteHistory.md b/old_docs/API_docs_v73/methods/messages_deleteHistory.md index e44433c1..45e9890d 100644 --- a/old_docs/API_docs_v73/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v73/methods/messages_deleteHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->deleteHistory(['just_clear' => Bool, 'peer' => InputPeer, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v73/methods/messages_deleteMessages.md b/old_docs/API_docs_v73/methods/messages_deleteMessages.md index 0da41180..c8670444 100644 --- a/old_docs/API_docs_v73/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v73/methods/messages_deleteMessages.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->deleteMessages(['revoke' => Bool, 'id' => [int, int], ]); diff --git a/old_docs/API_docs_v73/methods/messages_editChatAdmin.md b/old_docs/API_docs_v73/methods/messages_editChatAdmin.md index 7916f8b1..5bba0559 100644 --- a/old_docs/API_docs_v73/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v73/methods/messages_editChatAdmin.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->editChatAdmin(['chat_id' => InputPeer, 'user_id' => InputUser, 'is_admin' => Bool, ]); diff --git a/old_docs/API_docs_v73/methods/messages_editChatPhoto.md b/old_docs/API_docs_v73/methods/messages_editChatPhoto.md index 122913c4..5827a5cc 100644 --- a/old_docs/API_docs_v73/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v73/methods/messages_editChatPhoto.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editChatPhoto(['chat_id' => InputPeer, 'photo' => InputChatPhoto, ]); diff --git a/old_docs/API_docs_v73/methods/messages_editChatTitle.md b/old_docs/API_docs_v73/methods/messages_editChatTitle.md index 3a1e974b..2e69d790 100644 --- a/old_docs/API_docs_v73/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v73/methods/messages_editChatTitle.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editChatTitle(['chat_id' => InputPeer, 'title' => 'string', ]); diff --git a/old_docs/API_docs_v73/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v73/methods/messages_editInlineBotMessage.md index 3c7fa055..21a55e36 100644 --- a/old_docs/API_docs_v73/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v73/methods/messages_editInlineBotMessage.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->editInlineBotMessage(['no_webpage' => Bool, 'stop_geo_live' => Bool, 'id' => InputBotInlineMessageID, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', 'geo_point' => InputGeoPoint, ]); diff --git a/old_docs/API_docs_v73/methods/messages_editMessage.md b/old_docs/API_docs_v73/methods/messages_editMessage.md index f2533fc2..e3178d97 100644 --- a/old_docs/API_docs_v73/methods/messages_editMessage.md +++ b/old_docs/API_docs_v73/methods/messages_editMessage.md @@ -53,12 +53,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->editMessage(['no_webpage' => Bool, 'stop_geo_live' => Bool, 'peer' => InputPeer, 'id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', 'geo_point' => InputGeoPoint, ]); diff --git a/old_docs/API_docs_v73/methods/messages_exportChatInvite.md b/old_docs/API_docs_v73/methods/messages_exportChatInvite.md index 98685d96..ec80e207 100644 --- a/old_docs/API_docs_v73/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v73/methods/messages_exportChatInvite.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]); diff --git a/old_docs/API_docs_v73/methods/messages_faveSticker.md b/old_docs/API_docs_v73/methods/messages_faveSticker.md index c1ffb16a..ee1eb66a 100644 --- a/old_docs/API_docs_v73/methods/messages_faveSticker.md +++ b/old_docs/API_docs_v73/methods/messages_faveSticker.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->faveSticker(['id' => InputDocument, 'unfave' => Bool, ]); diff --git a/old_docs/API_docs_v73/methods/messages_forwardMessage.md b/old_docs/API_docs_v73/methods/messages_forwardMessage.md index 45b7a07f..d6916437 100644 --- a/old_docs/API_docs_v73/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v73/methods/messages_forwardMessage.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessage(['peer' => InputPeer, 'id' => int, ]); diff --git a/old_docs/API_docs_v73/methods/messages_forwardMessages.md b/old_docs/API_docs_v73/methods/messages_forwardMessages.md index 11dfd921..2dbcfe21 100644 --- a/old_docs/API_docs_v73/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v73/methods/messages_forwardMessages.md @@ -63,12 +63,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->forwardMessages(['silent' => Bool, 'background' => Bool, 'with_my_score' => Bool, 'grouped' => Bool, 'from_peer' => InputPeer, 'id' => [int, int], 'to_peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v73/methods/messages_getAllChats.md b/old_docs/API_docs_v73/methods/messages_getAllChats.md index 127456e4..513fc06f 100644 --- a/old_docs/API_docs_v73/methods/messages_getAllChats.md +++ b/old_docs/API_docs_v73/methods/messages_getAllChats.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getAllChats(['except_ids' => [int, int], ]); diff --git a/old_docs/API_docs_v73/methods/messages_getAllDrafts.md b/old_docs/API_docs_v73/methods/messages_getAllDrafts.md index 2c0ecd42..43a95bb2 100644 --- a/old_docs/API_docs_v73/methods/messages_getAllDrafts.md +++ b/old_docs/API_docs_v73/methods/messages_getAllDrafts.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->getAllDrafts(); diff --git a/old_docs/API_docs_v73/methods/messages_getAllStickers.md b/old_docs/API_docs_v73/methods/messages_getAllStickers.md index 16fdba6c..2ba37a91 100644 --- a/old_docs/API_docs_v73/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v73/methods/messages_getAllStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getAllStickers(['hash' => int, ]); diff --git a/old_docs/API_docs_v73/methods/messages_getArchivedStickers.md b/old_docs/API_docs_v73/methods/messages_getArchivedStickers.md index f037e1bc..ee36b542 100644 --- a/old_docs/API_docs_v73/methods/messages_getArchivedStickers.md +++ b/old_docs/API_docs_v73/methods/messages_getArchivedStickers.md @@ -31,12 +31,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_ArchivedStickers = $MadelineProto->messages->getArchivedStickers(['masks' => Bool, 'offset_id' => long, 'limit' => int, ]); diff --git a/old_docs/API_docs_v73/methods/messages_getAttachedStickers.md b/old_docs/API_docs_v73/methods/messages_getAttachedStickers.md index 890680cd..9f8a66c5 100644 --- a/old_docs/API_docs_v73/methods/messages_getAttachedStickers.md +++ b/old_docs/API_docs_v73/methods/messages_getAttachedStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_StickerSetCovered = $MadelineProto->messages->getAttachedStickers(['media' => InputStickeredMedia, ]); diff --git a/old_docs/API_docs_v73/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v73/methods/messages_getBotCallbackAnswer.md index 09c283f5..0136227f 100644 --- a/old_docs/API_docs_v73/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v73/methods/messages_getBotCallbackAnswer.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_BotCallbackAnswer = $MadelineProto->messages->getBotCallbackAnswer(['game' => Bool, 'peer' => InputPeer, 'msg_id' => int, 'data' => 'bytes', ]); diff --git a/old_docs/API_docs_v73/methods/messages_getChats.md b/old_docs/API_docs_v73/methods/messages_getChats.md index 290438a1..e84c7193 100644 --- a/old_docs/API_docs_v73/methods/messages_getChats.md +++ b/old_docs/API_docs_v73/methods/messages_getChats.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getChats(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v73/methods/messages_getCommonChats.md b/old_docs/API_docs_v73/methods/messages_getCommonChats.md index e6eca283..15ed6713 100644 --- a/old_docs/API_docs_v73/methods/messages_getCommonChats.md +++ b/old_docs/API_docs_v73/methods/messages_getCommonChats.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Chats = $MadelineProto->messages->getCommonChats(['user_id' => InputUser, 'max_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v73/methods/messages_getDialogs.md b/old_docs/API_docs_v73/methods/messages_getDialogs.md index e100228b..53f9ac62 100644 --- a/old_docs/API_docs_v73/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v73/methods/messages_getDialogs.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Dialogs = $MadelineProto->messages->getDialogs(['exclude_pinned' => Bool, 'offset_date' => int, 'offset_id' => int, 'offset_peer' => InputPeer, 'limit' => int, ]); diff --git a/old_docs/API_docs_v73/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v73/methods/messages_getDocumentByHash.md index 1af5bad4..ad8e22be 100644 --- a/old_docs/API_docs_v73/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v73/methods/messages_getDocumentByHash.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Document = $MadelineProto->messages->getDocumentByHash(['sha256' => 'bytes', 'size' => int, 'mime_type' => 'string', ]); diff --git a/old_docs/API_docs_v73/methods/messages_getFavedStickers.md b/old_docs/API_docs_v73/methods/messages_getFavedStickers.md index 1be542be..8ef3e565 100644 --- a/old_docs/API_docs_v73/methods/messages_getFavedStickers.md +++ b/old_docs/API_docs_v73/methods/messages_getFavedStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_FavedStickers = $MadelineProto->messages->getFavedStickers(['hash' => int, ]); diff --git a/old_docs/API_docs_v73/methods/messages_getFeaturedStickers.md b/old_docs/API_docs_v73/methods/messages_getFeaturedStickers.md index 512f2e85..8e49e1ef 100644 --- a/old_docs/API_docs_v73/methods/messages_getFeaturedStickers.md +++ b/old_docs/API_docs_v73/methods/messages_getFeaturedStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_FeaturedStickers = $MadelineProto->messages->getFeaturedStickers(['hash' => int, ]); diff --git a/old_docs/API_docs_v73/methods/messages_getGameHighScores.md b/old_docs/API_docs_v73/methods/messages_getGameHighScores.md index 5137baea..113e4647 100644 --- a/old_docs/API_docs_v73/methods/messages_getGameHighScores.md +++ b/old_docs/API_docs_v73/methods/messages_getGameHighScores.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_HighScores = $MadelineProto->messages->getGameHighScores(['peer' => InputPeer, 'id' => int, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v73/methods/messages_getHistory.md b/old_docs/API_docs_v73/methods/messages_getHistory.md index 687ab6a8..585a2b52 100644 --- a/old_docs/API_docs_v73/methods/messages_getHistory.md +++ b/old_docs/API_docs_v73/methods/messages_getHistory.md @@ -48,12 +48,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getHistory(['peer' => InputPeer, 'offset_id' => int, 'offset_date' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, 'hash' => int, ]); diff --git a/old_docs/API_docs_v73/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v73/methods/messages_getInlineBotResults.md index 8ab5bf78..4d86caf5 100644 --- a/old_docs/API_docs_v73/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v73/methods/messages_getInlineBotResults.md @@ -43,12 +43,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_BotResults = $MadelineProto->messages->getInlineBotResults(['bot' => InputUser, 'peer' => InputPeer, 'geo_point' => InputGeoPoint, 'query' => 'string', 'offset' => 'string', ]); diff --git a/old_docs/API_docs_v73/methods/messages_getInlineGameHighScores.md b/old_docs/API_docs_v73/methods/messages_getInlineGameHighScores.md index 790bfdd9..d5a80005 100644 --- a/old_docs/API_docs_v73/methods/messages_getInlineGameHighScores.md +++ b/old_docs/API_docs_v73/methods/messages_getInlineGameHighScores.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_HighScores = $MadelineProto->messages->getInlineGameHighScores(['id' => InputBotInlineMessageID, 'user_id' => InputUser, ]); diff --git a/old_docs/API_docs_v73/methods/messages_getMaskStickers.md b/old_docs/API_docs_v73/methods/messages_getMaskStickers.md index f4ed9411..70e2e6d4 100644 --- a/old_docs/API_docs_v73/methods/messages_getMaskStickers.md +++ b/old_docs/API_docs_v73/methods/messages_getMaskStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AllStickers = $MadelineProto->messages->getMaskStickers(['hash' => int, ]); diff --git a/old_docs/API_docs_v73/methods/messages_getMessageEditData.md b/old_docs/API_docs_v73/methods/messages_getMessageEditData.md index 12e71bee..34f8534f 100644 --- a/old_docs/API_docs_v73/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v73/methods/messages_getMessageEditData.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_MessageEditData = $MadelineProto->messages->getMessageEditData(['peer' => InputPeer, 'id' => int, ]); diff --git a/old_docs/API_docs_v73/methods/messages_getMessages.md b/old_docs/API_docs_v73/methods/messages_getMessages.md index 86d1da8a..d538cb5f 100644 --- a/old_docs/API_docs_v73/methods/messages_getMessages.md +++ b/old_docs/API_docs_v73/methods/messages_getMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getMessages(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v73/methods/messages_getMessagesViews.md b/old_docs/API_docs_v73/methods/messages_getMessagesViews.md index b8d78c85..934adc16 100644 --- a/old_docs/API_docs_v73/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v73/methods/messages_getMessagesViews.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_int = $MadelineProto->messages->getMessagesViews(['peer' => InputPeer, 'id' => [int, int], 'increment' => Bool, ]); diff --git a/old_docs/API_docs_v73/methods/messages_getPeerDialogs.md b/old_docs/API_docs_v73/methods/messages_getPeerDialogs.md index da82cfc6..063b6e7d 100644 --- a/old_docs/API_docs_v73/methods/messages_getPeerDialogs.md +++ b/old_docs/API_docs_v73/methods/messages_getPeerDialogs.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_PeerDialogs = $MadelineProto->messages->getPeerDialogs(['peers' => [InputPeer, InputPeer], ]); diff --git a/old_docs/API_docs_v73/methods/messages_getPeerSettings.md b/old_docs/API_docs_v73/methods/messages_getPeerSettings.md index f1f2a3bb..a18126f0 100644 --- a/old_docs/API_docs_v73/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v73/methods/messages_getPeerSettings.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $PeerSettings = $MadelineProto->messages->getPeerSettings(['peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v73/methods/messages_getPinnedDialogs.md b/old_docs/API_docs_v73/methods/messages_getPinnedDialogs.md index d12779fe..3f49ed75 100644 --- a/old_docs/API_docs_v73/methods/messages_getPinnedDialogs.md +++ b/old_docs/API_docs_v73/methods/messages_getPinnedDialogs.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_PeerDialogs = $MadelineProto->messages->getPinnedDialogs(); diff --git a/old_docs/API_docs_v73/methods/messages_getRecentLocations.md b/old_docs/API_docs_v73/methods/messages_getRecentLocations.md index 1f73943d..a1bad267 100644 --- a/old_docs/API_docs_v73/methods/messages_getRecentLocations.md +++ b/old_docs/API_docs_v73/methods/messages_getRecentLocations.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getRecentLocations(['peer' => InputPeer, 'limit' => int, ]); diff --git a/old_docs/API_docs_v73/methods/messages_getRecentStickers.md b/old_docs/API_docs_v73/methods/messages_getRecentStickers.md index d76a2160..0c5ae0c6 100644 --- a/old_docs/API_docs_v73/methods/messages_getRecentStickers.md +++ b/old_docs/API_docs_v73/methods/messages_getRecentStickers.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_RecentStickers = $MadelineProto->messages->getRecentStickers(['attached' => Bool, 'hash' => int, ]); diff --git a/old_docs/API_docs_v73/methods/messages_getSavedGifs.md b/old_docs/API_docs_v73/methods/messages_getSavedGifs.md index f61348ce..38585538 100644 --- a/old_docs/API_docs_v73/methods/messages_getSavedGifs.md +++ b/old_docs/API_docs_v73/methods/messages_getSavedGifs.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SavedGifs = $MadelineProto->messages->getSavedGifs(['hash' => int, ]); diff --git a/old_docs/API_docs_v73/methods/messages_getStickerSet.md b/old_docs/API_docs_v73/methods/messages_getStickerSet.md index c86807e4..c9140ab2 100644 --- a/old_docs/API_docs_v73/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v73/methods/messages_getStickerSet.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSet = $MadelineProto->messages->getStickerSet(['stickerset' => InputStickerSet, ]); diff --git a/old_docs/API_docs_v73/methods/messages_getUnreadMentions.md b/old_docs/API_docs_v73/methods/messages_getUnreadMentions.md index d318506c..b8d7b5a5 100644 --- a/old_docs/API_docs_v73/methods/messages_getUnreadMentions.md +++ b/old_docs/API_docs_v73/methods/messages_getUnreadMentions.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->getUnreadMentions(['peer' => InputPeer, 'offset_id' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); diff --git a/old_docs/API_docs_v73/methods/messages_getWebPage.md b/old_docs/API_docs_v73/methods/messages_getWebPage.md index 129f8f06..19ca94b9 100644 --- a/old_docs/API_docs_v73/methods/messages_getWebPage.md +++ b/old_docs/API_docs_v73/methods/messages_getWebPage.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $WebPage = $MadelineProto->messages->getWebPage(['url' => 'string', 'hash' => int, ]); diff --git a/old_docs/API_docs_v73/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v73/methods/messages_getWebPagePreview.md index d01bdd32..e8b20c5d 100644 --- a/old_docs/API_docs_v73/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v73/methods/messages_getWebPagePreview.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $MessageMedia = $MadelineProto->messages->getWebPagePreview(['message' => 'string', ]); diff --git a/old_docs/API_docs_v73/methods/messages_hideReportSpam.md b/old_docs/API_docs_v73/methods/messages_hideReportSpam.md index 856770cb..30523f2a 100644 --- a/old_docs/API_docs_v73/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v73/methods/messages_hideReportSpam.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->hideReportSpam(['peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v73/methods/messages_importChatInvite.md b/old_docs/API_docs_v73/methods/messages_importChatInvite.md index 0d6cd7c8..b1830a9b 100644 --- a/old_docs/API_docs_v73/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v73/methods/messages_importChatInvite.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->importChatInvite(['hash' => 'string', ]); diff --git a/old_docs/API_docs_v73/methods/messages_installStickerSet.md b/old_docs/API_docs_v73/methods/messages_installStickerSet.md index 9f6f098c..20f90b71 100644 --- a/old_docs/API_docs_v73/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v73/methods/messages_installStickerSet.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSetInstallResult = $MadelineProto->messages->installStickerSet(['stickerset' => InputStickerSet, 'archived' => Bool, ]); diff --git a/old_docs/API_docs_v73/methods/messages_migrateChat.md b/old_docs/API_docs_v73/methods/messages_migrateChat.md index db57adfa..22ccfcc1 100644 --- a/old_docs/API_docs_v73/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v73/methods/messages_migrateChat.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->migrateChat(['chat_id' => InputPeer, ]); diff --git a/old_docs/API_docs_v73/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v73/methods/messages_readEncryptedHistory.md index 39b110e3..2ba4cca4 100644 --- a/old_docs/API_docs_v73/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v73/methods/messages_readEncryptedHistory.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->readEncryptedHistory(['peer' => InputEncryptedChat, 'max_date' => int, ]); diff --git a/old_docs/API_docs_v73/methods/messages_readFeaturedStickers.md b/old_docs/API_docs_v73/methods/messages_readFeaturedStickers.md index 4035c76d..050371da 100644 --- a/old_docs/API_docs_v73/methods/messages_readFeaturedStickers.md +++ b/old_docs/API_docs_v73/methods/messages_readFeaturedStickers.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->readFeaturedStickers(['id' => [long, long], ]); diff --git a/old_docs/API_docs_v73/methods/messages_readHistory.md b/old_docs/API_docs_v73/methods/messages_readHistory.md index 3de17061..26b608af 100644 --- a/old_docs/API_docs_v73/methods/messages_readHistory.md +++ b/old_docs/API_docs_v73/methods/messages_readHistory.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readHistory(['peer' => InputPeer, 'max_id' => int, ]); diff --git a/old_docs/API_docs_v73/methods/messages_readMentions.md b/old_docs/API_docs_v73/methods/messages_readMentions.md index e30fbfaf..de7bc42b 100644 --- a/old_docs/API_docs_v73/methods/messages_readMentions.md +++ b/old_docs/API_docs_v73/methods/messages_readMentions.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedHistory = $MadelineProto->messages->readMentions(['peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v73/methods/messages_readMessageContents.md b/old_docs/API_docs_v73/methods/messages_readMessageContents.md index 9bb1bee8..a09cb63e 100644 --- a/old_docs/API_docs_v73/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v73/methods/messages_readMessageContents.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_AffectedMessages = $MadelineProto->messages->readMessageContents(['id' => [int, int], ]); diff --git a/old_docs/API_docs_v73/methods/messages_receivedMessages.md b/old_docs/API_docs_v73/methods/messages_receivedMessages.md index 7aab635f..b5e87992 100644 --- a/old_docs/API_docs_v73/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v73/methods/messages_receivedMessages.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_ReceivedNotifyMessage = $MadelineProto->messages->receivedMessages(['max_id' => int, ]); diff --git a/old_docs/API_docs_v73/methods/messages_reorderPinnedDialogs.md b/old_docs/API_docs_v73/methods/messages_reorderPinnedDialogs.md index 710caf10..94d3b2d4 100644 --- a/old_docs/API_docs_v73/methods/messages_reorderPinnedDialogs.md +++ b/old_docs/API_docs_v73/methods/messages_reorderPinnedDialogs.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reorderPinnedDialogs(['force' => Bool, 'order' => [InputPeer, InputPeer], ]); diff --git a/old_docs/API_docs_v73/methods/messages_reorderStickerSets.md b/old_docs/API_docs_v73/methods/messages_reorderStickerSets.md index ddc78dd0..66f5e682 100644 --- a/old_docs/API_docs_v73/methods/messages_reorderStickerSets.md +++ b/old_docs/API_docs_v73/methods/messages_reorderStickerSets.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reorderStickerSets(['masks' => Bool, 'order' => [long, long], ]); diff --git a/old_docs/API_docs_v73/methods/messages_reportEncryptedSpam.md b/old_docs/API_docs_v73/methods/messages_reportEncryptedSpam.md index 58b684d1..cd03c35c 100644 --- a/old_docs/API_docs_v73/methods/messages_reportEncryptedSpam.md +++ b/old_docs/API_docs_v73/methods/messages_reportEncryptedSpam.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reportEncryptedSpam(['peer' => InputEncryptedChat, ]); diff --git a/old_docs/API_docs_v73/methods/messages_reportSpam.md b/old_docs/API_docs_v73/methods/messages_reportSpam.md index 2e2b1177..09c1e63b 100644 --- a/old_docs/API_docs_v73/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v73/methods/messages_reportSpam.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->reportSpam(['peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v73/methods/messages_saveDraft.md b/old_docs/API_docs_v73/methods/messages_saveDraft.md index bbeed707..59b33b03 100644 --- a/old_docs/API_docs_v73/methods/messages_saveDraft.md +++ b/old_docs/API_docs_v73/methods/messages_saveDraft.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->saveDraft(['no_webpage' => Bool, 'reply_to_msg_id' => int, 'peer' => InputPeer, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v73/methods/messages_saveGif.md b/old_docs/API_docs_v73/methods/messages_saveGif.md index 6f608c4c..145039e7 100644 --- a/old_docs/API_docs_v73/methods/messages_saveGif.md +++ b/old_docs/API_docs_v73/methods/messages_saveGif.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->saveGif(['id' => InputDocument, 'unsave' => Bool, ]); diff --git a/old_docs/API_docs_v73/methods/messages_saveRecentSticker.md b/old_docs/API_docs_v73/methods/messages_saveRecentSticker.md index 81ad5d48..55757080 100644 --- a/old_docs/API_docs_v73/methods/messages_saveRecentSticker.md +++ b/old_docs/API_docs_v73/methods/messages_saveRecentSticker.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->saveRecentSticker(['attached' => Bool, 'id' => InputDocument, 'unsave' => Bool, ]); diff --git a/old_docs/API_docs_v73/methods/messages_search.md b/old_docs/API_docs_v73/methods/messages_search.md index 9cab5783..9253828a 100644 --- a/old_docs/API_docs_v73/methods/messages_search.md +++ b/old_docs/API_docs_v73/methods/messages_search.md @@ -52,12 +52,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->search(['peer' => InputPeer, 'q' => 'string', 'from_id' => InputUser, 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset_id' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]); diff --git a/old_docs/API_docs_v73/methods/messages_searchGifs.md b/old_docs/API_docs_v73/methods/messages_searchGifs.md index 103ebfeb..9677bf24 100644 --- a/old_docs/API_docs_v73/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v73/methods/messages_searchGifs.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_FoundGifs = $MadelineProto->messages->searchGifs(['q' => 'string', 'offset' => int, ]); diff --git a/old_docs/API_docs_v73/methods/messages_searchGlobal.md b/old_docs/API_docs_v73/methods/messages_searchGlobal.md index 0edd1e40..6ad4aec0 100644 --- a/old_docs/API_docs_v73/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v73/methods/messages_searchGlobal.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_Messages = $MadelineProto->messages->searchGlobal(['q' => 'string', 'offset_date' => int, 'offset_peer' => InputPeer, 'offset_id' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v73/methods/messages_sendEncrypted.md b/old_docs/API_docs_v73/methods/messages_sendEncrypted.md index d48f88d7..76305f32 100644 --- a/old_docs/API_docs_v73/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v73/methods/messages_sendEncrypted.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncrypted(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v73/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v73/methods/messages_sendEncryptedFile.md index 4fd0648e..8db2ead9 100644 --- a/old_docs/API_docs_v73/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v73/methods/messages_sendEncryptedFile.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedFile(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, 'file' => InputEncryptedFile, ]); diff --git a/old_docs/API_docs_v73/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v73/methods/messages_sendEncryptedService.md index d66894bf..c7836c94 100644 --- a/old_docs/API_docs_v73/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v73/methods/messages_sendEncryptedService.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_SentEncryptedMessage = $MadelineProto->messages->sendEncryptedService(['peer' => InputEncryptedChat, 'message' => DecryptedMessage, ]); diff --git a/old_docs/API_docs_v73/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v73/methods/messages_sendInlineBotResult.md index 386ac7e3..1a12322c 100644 --- a/old_docs/API_docs_v73/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v73/methods/messages_sendInlineBotResult.md @@ -47,12 +47,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendInlineBotResult(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'query_id' => long, 'id' => 'string', ]); diff --git a/old_docs/API_docs_v73/methods/messages_sendMedia.md b/old_docs/API_docs_v73/methods/messages_sendMedia.md index 0b5cf9b6..770d1b65 100644 --- a/old_docs/API_docs_v73/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v73/methods/messages_sendMedia.md @@ -63,12 +63,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendMedia(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'media' => InputMedia, 'reply_markup' => ReplyMarkup, ]); diff --git a/old_docs/API_docs_v73/methods/messages_sendMessage.md b/old_docs/API_docs_v73/methods/messages_sendMessage.md index c4dc8894..83dc6c8b 100644 --- a/old_docs/API_docs_v73/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v73/methods/messages_sendMessage.md @@ -65,12 +65,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendMessage(['no_webpage' => Bool, 'silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'message' => 'string', 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity, MessageEntity], 'parse_mode' => 'string', ]); diff --git a/old_docs/API_docs_v73/methods/messages_sendMultiMedia.md b/old_docs/API_docs_v73/methods/messages_sendMultiMedia.md index 08a7a8a1..4831ff6f 100644 --- a/old_docs/API_docs_v73/methods/messages_sendMultiMedia.md +++ b/old_docs/API_docs_v73/methods/messages_sendMultiMedia.md @@ -34,12 +34,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendMultiMedia(['silent' => Bool, 'background' => Bool, 'clear_draft' => Bool, 'peer' => InputPeer, 'reply_to_msg_id' => int, 'multi_media' => [InputSingleMedia, InputSingleMedia], ]); diff --git a/old_docs/API_docs_v73/methods/messages_sendScreenshotNotification.md b/old_docs/API_docs_v73/methods/messages_sendScreenshotNotification.md index f64f1682..e823fd52 100644 --- a/old_docs/API_docs_v73/methods/messages_sendScreenshotNotification.md +++ b/old_docs/API_docs_v73/methods/messages_sendScreenshotNotification.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->sendScreenshotNotification(['peer' => InputPeer, 'reply_to_msg_id' => int, ]); diff --git a/old_docs/API_docs_v73/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v73/methods/messages_setBotCallbackAnswer.md index e6dc6b09..e221ccca 100644 --- a/old_docs/API_docs_v73/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v73/methods/messages_setBotCallbackAnswer.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setBotCallbackAnswer(['alert' => Bool, 'query_id' => long, 'message' => 'string', 'url' => 'string', 'cache_time' => int, ]); diff --git a/old_docs/API_docs_v73/methods/messages_setBotPrecheckoutResults.md b/old_docs/API_docs_v73/methods/messages_setBotPrecheckoutResults.md index 722bff81..7e3fc3c2 100644 --- a/old_docs/API_docs_v73/methods/messages_setBotPrecheckoutResults.md +++ b/old_docs/API_docs_v73/methods/messages_setBotPrecheckoutResults.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setBotPrecheckoutResults(['success' => Bool, 'query_id' => long, 'error' => 'string', ]); diff --git a/old_docs/API_docs_v73/methods/messages_setBotShippingResults.md b/old_docs/API_docs_v73/methods/messages_setBotShippingResults.md index d364a04d..3d9f0ae2 100644 --- a/old_docs/API_docs_v73/methods/messages_setBotShippingResults.md +++ b/old_docs/API_docs_v73/methods/messages_setBotShippingResults.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setBotShippingResults(['query_id' => long, 'error' => 'string', 'shipping_options' => [ShippingOption, ShippingOption], ]); diff --git a/old_docs/API_docs_v73/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v73/methods/messages_setEncryptedTyping.md index e9afe99c..4e7450eb 100644 --- a/old_docs/API_docs_v73/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v73/methods/messages_setEncryptedTyping.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setEncryptedTyping(['peer' => InputEncryptedChat, 'typing' => Bool, ]); diff --git a/old_docs/API_docs_v73/methods/messages_setGameScore.md b/old_docs/API_docs_v73/methods/messages_setGameScore.md index aa1f4f0c..90594a1d 100644 --- a/old_docs/API_docs_v73/methods/messages_setGameScore.md +++ b/old_docs/API_docs_v73/methods/messages_setGameScore.md @@ -42,12 +42,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->setGameScore(['edit_message' => Bool, 'force' => Bool, 'peer' => InputPeer, 'id' => int, 'user_id' => InputUser, 'score' => int, ]); diff --git a/old_docs/API_docs_v73/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v73/methods/messages_setInlineBotResults.md index 79493009..d4ba6e65 100644 --- a/old_docs/API_docs_v73/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v73/methods/messages_setInlineBotResults.md @@ -52,12 +52,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setInlineBotResults(['gallery' => Bool, 'private' => Bool, 'query_id' => long, 'results' => [InputBotInlineResult, InputBotInlineResult], 'cache_time' => int, 'next_offset' => 'string', 'switch_pm' => InlineBotSwitchPM, ]); diff --git a/old_docs/API_docs_v73/methods/messages_setInlineGameScore.md b/old_docs/API_docs_v73/methods/messages_setInlineGameScore.md index 385c8308..2b7326f3 100644 --- a/old_docs/API_docs_v73/methods/messages_setInlineGameScore.md +++ b/old_docs/API_docs_v73/methods/messages_setInlineGameScore.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setInlineGameScore(['edit_message' => Bool, 'force' => Bool, 'id' => InputBotInlineMessageID, 'user_id' => InputUser, 'score' => int, ]); diff --git a/old_docs/API_docs_v73/methods/messages_setTyping.md b/old_docs/API_docs_v73/methods/messages_setTyping.md index bea4982b..a2b94823 100644 --- a/old_docs/API_docs_v73/methods/messages_setTyping.md +++ b/old_docs/API_docs_v73/methods/messages_setTyping.md @@ -44,12 +44,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->setTyping(['peer' => InputPeer, 'action' => SendMessageAction, ]); diff --git a/old_docs/API_docs_v73/methods/messages_startBot.md b/old_docs/API_docs_v73/methods/messages_startBot.md index 94a4d86a..50d6f475 100644 --- a/old_docs/API_docs_v73/methods/messages_startBot.md +++ b/old_docs/API_docs_v73/methods/messages_startBot.md @@ -41,12 +41,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->startBot(['bot' => InputUser, 'peer' => InputPeer, 'start_param' => 'string', ]); diff --git a/old_docs/API_docs_v73/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v73/methods/messages_toggleChatAdmins.md index ab591fd9..349ea0e6 100644 --- a/old_docs/API_docs_v73/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v73/methods/messages_toggleChatAdmins.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->messages->toggleChatAdmins(['chat_id' => InputPeer, 'enabled' => Bool, ]); diff --git a/old_docs/API_docs_v73/methods/messages_toggleDialogPin.md b/old_docs/API_docs_v73/methods/messages_toggleDialogPin.md index 2bd6a03d..14332533 100644 --- a/old_docs/API_docs_v73/methods/messages_toggleDialogPin.md +++ b/old_docs/API_docs_v73/methods/messages_toggleDialogPin.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->toggleDialogPin(['pinned' => Bool, 'peer' => InputPeer, ]); diff --git a/old_docs/API_docs_v73/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v73/methods/messages_uninstallStickerSet.md index 6d04e847..26b2fbb3 100644 --- a/old_docs/API_docs_v73/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v73/methods/messages_uninstallStickerSet.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->messages->uninstallStickerSet(['stickerset' => InputStickerSet, ]); diff --git a/old_docs/API_docs_v73/methods/messages_uploadEncryptedFile.md b/old_docs/API_docs_v73/methods/messages_uploadEncryptedFile.md index 0c9bed76..33069609 100644 --- a/old_docs/API_docs_v73/methods/messages_uploadEncryptedFile.md +++ b/old_docs/API_docs_v73/methods/messages_uploadEncryptedFile.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $EncryptedFile = $MadelineProto->messages->uploadEncryptedFile(['peer' => InputEncryptedChat, 'file' => InputEncryptedFile, ]); diff --git a/old_docs/API_docs_v73/methods/messages_uploadMedia.md b/old_docs/API_docs_v73/methods/messages_uploadMedia.md index c982a860..c09da017 100644 --- a/old_docs/API_docs_v73/methods/messages_uploadMedia.md +++ b/old_docs/API_docs_v73/methods/messages_uploadMedia.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $MessageMedia = $MadelineProto->messages->uploadMedia(['peer' => InputPeer, 'media' => InputMedia, ]); diff --git a/old_docs/API_docs_v73/methods/payments_clearSavedInfo.md b/old_docs/API_docs_v73/methods/payments_clearSavedInfo.md index 44050dde..8b83266f 100644 --- a/old_docs/API_docs_v73/methods/payments_clearSavedInfo.md +++ b/old_docs/API_docs_v73/methods/payments_clearSavedInfo.md @@ -30,12 +30,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->payments->clearSavedInfo(['credentials' => Bool, 'info' => Bool, ]); diff --git a/old_docs/API_docs_v73/methods/payments_getPaymentForm.md b/old_docs/API_docs_v73/methods/payments_getPaymentForm.md index 16a32d11..3bdb9ff2 100644 --- a/old_docs/API_docs_v73/methods/payments_getPaymentForm.md +++ b/old_docs/API_docs_v73/methods/payments_getPaymentForm.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $payments_PaymentForm = $MadelineProto->payments->getPaymentForm(['msg_id' => int, ]); diff --git a/old_docs/API_docs_v73/methods/payments_getPaymentReceipt.md b/old_docs/API_docs_v73/methods/payments_getPaymentReceipt.md index 857585f6..a881aeb7 100644 --- a/old_docs/API_docs_v73/methods/payments_getPaymentReceipt.md +++ b/old_docs/API_docs_v73/methods/payments_getPaymentReceipt.md @@ -36,12 +36,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $payments_PaymentReceipt = $MadelineProto->payments->getPaymentReceipt(['msg_id' => int, ]); diff --git a/old_docs/API_docs_v73/methods/payments_getSavedInfo.md b/old_docs/API_docs_v73/methods/payments_getSavedInfo.md index 04ac7374..ec1a071b 100644 --- a/old_docs/API_docs_v73/methods/payments_getSavedInfo.md +++ b/old_docs/API_docs_v73/methods/payments_getSavedInfo.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $payments_SavedInfo = $MadelineProto->payments->getSavedInfo(); diff --git a/old_docs/API_docs_v73/methods/payments_sendPaymentForm.md b/old_docs/API_docs_v73/methods/payments_sendPaymentForm.md index 0a9df99f..79758b56 100644 --- a/old_docs/API_docs_v73/methods/payments_sendPaymentForm.md +++ b/old_docs/API_docs_v73/methods/payments_sendPaymentForm.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $payments_PaymentResult = $MadelineProto->payments->sendPaymentForm(['msg_id' => int, 'requested_info_id' => 'string', 'shipping_option_id' => 'string', 'credentials' => InputPaymentCredentials, ]); diff --git a/old_docs/API_docs_v73/methods/payments_validateRequestedInfo.md b/old_docs/API_docs_v73/methods/payments_validateRequestedInfo.md index e36f0e42..d473f97c 100644 --- a/old_docs/API_docs_v73/methods/payments_validateRequestedInfo.md +++ b/old_docs/API_docs_v73/methods/payments_validateRequestedInfo.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $payments_ValidatedRequestedInfo = $MadelineProto->payments->validateRequestedInfo(['save' => Bool, 'msg_id' => int, 'info' => PaymentRequestedInfo, ]); diff --git a/old_docs/API_docs_v73/methods/phone_getCallConfig.md b/old_docs/API_docs_v73/methods/phone_getCallConfig.md index cac622a0..6969c1a3 100644 --- a/old_docs/API_docs_v73/methods/phone_getCallConfig.md +++ b/old_docs/API_docs_v73/methods/phone_getCallConfig.md @@ -24,12 +24,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $DataJSON = $MadelineProto->phone->getCallConfig(); diff --git a/old_docs/API_docs_v73/methods/phone_receivedCall.md b/old_docs/API_docs_v73/methods/phone_receivedCall.md index 27e3b462..17095622 100644 --- a/old_docs/API_docs_v73/methods/phone_receivedCall.md +++ b/old_docs/API_docs_v73/methods/phone_receivedCall.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->phone->receivedCall(['peer' => InputPhoneCall, ]); diff --git a/old_docs/API_docs_v73/methods/phone_saveCallDebug.md b/old_docs/API_docs_v73/methods/phone_saveCallDebug.md index 760ad9d5..0ff049a8 100644 --- a/old_docs/API_docs_v73/methods/phone_saveCallDebug.md +++ b/old_docs/API_docs_v73/methods/phone_saveCallDebug.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Bool = $MadelineProto->phone->saveCallDebug(['peer' => InputPhoneCall, 'debug' => DataJSON, ]); diff --git a/old_docs/API_docs_v73/methods/phone_setCallRating.md b/old_docs/API_docs_v73/methods/phone_setCallRating.md index b32ba333..d0aab7e0 100644 --- a/old_docs/API_docs_v73/methods/phone_setCallRating.md +++ b/old_docs/API_docs_v73/methods/phone_setCallRating.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Updates = $MadelineProto->phone->setCallRating(['peer' => InputPhoneCall, 'rating' => int, 'comment' => 'string', ]); diff --git a/old_docs/API_docs_v73/methods/photos_deletePhotos.md b/old_docs/API_docs_v73/methods/photos_deletePhotos.md index b9daca10..937aadd5 100644 --- a/old_docs/API_docs_v73/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v73/methods/photos_deletePhotos.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_long = $MadelineProto->photos->deletePhotos(['id' => [InputPhoto, InputPhoto], ]); diff --git a/old_docs/API_docs_v73/methods/photos_getUserPhotos.md b/old_docs/API_docs_v73/methods/photos_getUserPhotos.md index ea27a44f..d1c15e90 100644 --- a/old_docs/API_docs_v73/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v73/methods/photos_getUserPhotos.md @@ -40,12 +40,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photos = $MadelineProto->photos->getUserPhotos(['user_id' => InputUser, 'offset' => int, 'max_id' => long, 'limit' => int, ]); diff --git a/old_docs/API_docs_v73/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v73/methods/photos_updateProfilePhoto.md index 7f0a4c69..2ac8b60d 100644 --- a/old_docs/API_docs_v73/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v73/methods/photos_updateProfilePhoto.md @@ -29,12 +29,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $UserProfilePhoto = $MadelineProto->photos->updateProfilePhoto(['id' => InputPhoto, ]); diff --git a/old_docs/API_docs_v73/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v73/methods/photos_uploadProfilePhoto.md index efa08bb0..c7ec3063 100644 --- a/old_docs/API_docs_v73/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v73/methods/photos_uploadProfilePhoto.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $photos_Photo = $MadelineProto->photos->uploadProfilePhoto(['file' => InputFile, ]); diff --git a/old_docs/API_docs_v73/methods/stickers_addStickerToSet.md b/old_docs/API_docs_v73/methods/stickers_addStickerToSet.md index 1f90028c..7c4191d8 100644 --- a/old_docs/API_docs_v73/methods/stickers_addStickerToSet.md +++ b/old_docs/API_docs_v73/methods/stickers_addStickerToSet.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSet = $MadelineProto->stickers->addStickerToSet(['stickerset' => InputStickerSet, 'sticker' => InputStickerSetItem, ]); diff --git a/old_docs/API_docs_v73/methods/stickers_changeStickerPosition.md b/old_docs/API_docs_v73/methods/stickers_changeStickerPosition.md index 45552df9..d25129c5 100644 --- a/old_docs/API_docs_v73/methods/stickers_changeStickerPosition.md +++ b/old_docs/API_docs_v73/methods/stickers_changeStickerPosition.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSet = $MadelineProto->stickers->changeStickerPosition(['sticker' => InputDocument, 'position' => int, ]); diff --git a/old_docs/API_docs_v73/methods/stickers_createStickerSet.md b/old_docs/API_docs_v73/methods/stickers_createStickerSet.md index c4e85852..95775849 100644 --- a/old_docs/API_docs_v73/methods/stickers_createStickerSet.md +++ b/old_docs/API_docs_v73/methods/stickers_createStickerSet.md @@ -48,12 +48,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSet = $MadelineProto->stickers->createStickerSet(['masks' => Bool, 'user_id' => InputUser, 'title' => 'string', 'short_name' => 'string', 'stickers' => [InputStickerSetItem, InputStickerSetItem], ]); diff --git a/old_docs/API_docs_v73/methods/stickers_removeStickerFromSet.md b/old_docs/API_docs_v73/methods/stickers_removeStickerFromSet.md index 4ae30345..73ed78d5 100644 --- a/old_docs/API_docs_v73/methods/stickers_removeStickerFromSet.md +++ b/old_docs/API_docs_v73/methods/stickers_removeStickerFromSet.md @@ -37,12 +37,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $messages_StickerSet = $MadelineProto->stickers->removeStickerFromSet(['sticker' => InputDocument, ]); diff --git a/old_docs/API_docs_v73/methods/upload_getWebFile.md b/old_docs/API_docs_v73/methods/upload_getWebFile.md index e864e4b7..11634633 100644 --- a/old_docs/API_docs_v73/methods/upload_getWebFile.md +++ b/old_docs/API_docs_v73/methods/upload_getWebFile.md @@ -38,12 +38,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $upload_WebFile = $MadelineProto->upload->getWebFile(['location' => InputWebFileLocation, 'offset' => int, 'limit' => int, ]); diff --git a/old_docs/API_docs_v73/methods/users_getUsers.md b/old_docs/API_docs_v73/methods/users_getUsers.md index ef1c7fd8..bce13ee6 100644 --- a/old_docs/API_docs_v73/methods/users_getUsers.md +++ b/old_docs/API_docs_v73/methods/users_getUsers.md @@ -39,12 +39,7 @@ if (!file_exists('madeline.php')) { } include 'madeline.php'; -// !!! This API id/API hash combination will not work !!! -// !!! You must get your own @ my.telegram.org !!! -$api_id = 0; -$api_hash = ''; - -$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); $Vector_of_User = $MadelineProto->users->getUsers(['id' => [InputUser, InputUser], ]); diff --git a/src/danog/MadelineProto/DocsBuilder/Methods.php b/src/danog/MadelineProto/DocsBuilder/Methods.php index 9e499721..8a87c7b6 100644 --- a/src/danog/MadelineProto/DocsBuilder/Methods.php +++ b/src/danog/MadelineProto/DocsBuilder/Methods.php @@ -59,11 +59,18 @@ trait Methods $param[$type_or_subtype] = '['.$this->escape($param[$type_or_subtype]).'](../'.$type_or_bare_type.'/'.$param[$type_or_subtype].'.md)'; $params .= "'".$param['name']."' => ".(isset($param['subtype']) ? '\\['.$param[$type_or_subtype].'\\]' : $param[$type_or_subtype]).', '; } + if (!isset($this->td_descriptions['methods'][$data['method']])) { + $this->add_to_lang('method_'.$data['method']); + + if (\danog\MadelineProto\Lang::$lang['en']['method_'.$data['method']] !== '') { + $this->td_descriptions['methods'][$data['method']]['description'] = \danog\MadelineProto\Lang::$lang['en']['method_'.$data['method']]; + } + } $md_method = '['.$php_method.']('.$method.'.md)'; $this->docs_methods[$method] = '$MadelineProto->'.$md_method.'(\\['.$params.'\\]) === [$'.str_replace('_', '\\_', $type).'](../types/'.$php_type.'.md) '; - $this->human_docs_methods[$method] = '* '.$this->td_descriptions['methods'][$data['method']].' + $this->human_docs_methods[$method] = '* '.$this->td_descriptions['methods'][$data['method']]['description'].' '; $params = ''; @@ -75,13 +82,6 @@ trait Methods | Name | Type | Required | |----------|---------------|----------| '; - if (!isset($this->td_descriptions['methods'][$data['method']])) { - $this->add_to_lang('method_'.$data['method']); - - if (\danog\MadelineProto\Lang::$lang['en']['method_'.$data['method']] !== '') { - $this->td_descriptions['methods'][$data['method']]['description'] = \danog\MadelineProto\Lang::$lang['en']['method_'.$data['method']]; - } - } if (isset($this->td_descriptions['methods'][$data['method']]) && !empty($data['params'])) { $table = '### Parameters: @@ -333,6 +333,7 @@ description: List of methods # Methods [Back to API documentation index](..) +[Go to the new description-version method index](index.html) $MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)(); @@ -367,7 +368,9 @@ title: Methods description: What do you want to do? --- # What do you want to do? -[Go back to API documentation index](..) +[Go back to API documentation index](..) + +[Go to the old code-version method index](api_index.html) * [Logout](https://docs.madelineproto.xyz/logout.html)