diff --git a/docs/API_docs/constructors/botInlineMessageMediaAuto.md b/docs/API_docs/constructors/botInlineMessageMediaAuto.md index 6ed2ffd9..694cf6ea 100644 --- a/docs/API_docs/constructors/botInlineMessageMediaAuto.md +++ b/docs/API_docs/constructors/botInlineMessageMediaAuto.md @@ -34,3 +34,9 @@ botInlineMessageMediaAuto={_='botInlineMessageMediaAuto', caption=string, reply_ ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/docs/API_docs/constructors/botInlineMessageMediaContact.md b/docs/API_docs/constructors/botInlineMessageMediaContact.md index 6bdda386..f57e4752 100644 --- a/docs/API_docs/constructors/botInlineMessageMediaContact.md +++ b/docs/API_docs/constructors/botInlineMessageMediaContact.md @@ -36,3 +36,9 @@ botInlineMessageMediaContact={_='botInlineMessageMediaContact', phone_number=str ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/docs/API_docs/constructors/botInlineMessageMediaGeo.md b/docs/API_docs/constructors/botInlineMessageMediaGeo.md index 38b53228..40ea4ca1 100644 --- a/docs/API_docs/constructors/botInlineMessageMediaGeo.md +++ b/docs/API_docs/constructors/botInlineMessageMediaGeo.md @@ -34,3 +34,9 @@ botInlineMessageMediaGeo={_='botInlineMessageMediaGeo', geo=GeoPoint, reply_mark ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/docs/API_docs/constructors/botInlineMessageMediaVenue.md b/docs/API_docs/constructors/botInlineMessageMediaVenue.md index 39880cfc..236f3cf1 100644 --- a/docs/API_docs/constructors/botInlineMessageMediaVenue.md +++ b/docs/API_docs/constructors/botInlineMessageMediaVenue.md @@ -38,3 +38,9 @@ botInlineMessageMediaVenue={_='botInlineMessageMediaVenue', geo=GeoPoint, title= ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/docs/API_docs/constructors/botInlineMessageText.md b/docs/API_docs/constructors/botInlineMessageText.md index 750ddf50..278fe01d 100644 --- a/docs/API_docs/constructors/botInlineMessageText.md +++ b/docs/API_docs/constructors/botInlineMessageText.md @@ -36,3 +36,9 @@ botInlineMessageText={_='botInlineMessageText', no_webpage=Bool, message=string, ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/docs/API_docs/constructors/inputBotInlineMessageGame.md b/docs/API_docs/constructors/inputBotInlineMessageGame.md index 9db76c92..5369ed7a 100644 --- a/docs/API_docs/constructors/inputBotInlineMessageGame.md +++ b/docs/API_docs/constructors/inputBotInlineMessageGame.md @@ -33,3 +33,9 @@ inputBotInlineMessageGame={_='inputBotInlineMessageGame', reply_markup=ReplyMark ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/docs/API_docs/constructors/inputBotInlineMessageMediaAuto.md b/docs/API_docs/constructors/inputBotInlineMessageMediaAuto.md index 52449dff..75bb48f3 100644 --- a/docs/API_docs/constructors/inputBotInlineMessageMediaAuto.md +++ b/docs/API_docs/constructors/inputBotInlineMessageMediaAuto.md @@ -34,3 +34,9 @@ inputBotInlineMessageMediaAuto={_='inputBotInlineMessageMediaAuto', caption=stri ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/docs/API_docs/constructors/inputBotInlineMessageMediaContact.md b/docs/API_docs/constructors/inputBotInlineMessageMediaContact.md index fdab869d..754ce5ac 100644 --- a/docs/API_docs/constructors/inputBotInlineMessageMediaContact.md +++ b/docs/API_docs/constructors/inputBotInlineMessageMediaContact.md @@ -36,3 +36,9 @@ inputBotInlineMessageMediaContact={_='inputBotInlineMessageMediaContact', phone_ ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/docs/API_docs/constructors/inputBotInlineMessageMediaGeo.md b/docs/API_docs/constructors/inputBotInlineMessageMediaGeo.md index 1b741cfc..6eac346e 100644 --- a/docs/API_docs/constructors/inputBotInlineMessageMediaGeo.md +++ b/docs/API_docs/constructors/inputBotInlineMessageMediaGeo.md @@ -34,3 +34,9 @@ inputBotInlineMessageMediaGeo={_='inputBotInlineMessageMediaGeo', geo_point=Inpu ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/docs/API_docs/constructors/inputBotInlineMessageMediaVenue.md b/docs/API_docs/constructors/inputBotInlineMessageMediaVenue.md index ddd2eba5..ddb3c3fe 100644 --- a/docs/API_docs/constructors/inputBotInlineMessageMediaVenue.md +++ b/docs/API_docs/constructors/inputBotInlineMessageMediaVenue.md @@ -38,3 +38,9 @@ inputBotInlineMessageMediaVenue={_='inputBotInlineMessageMediaVenue', geo_point= ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/docs/API_docs/constructors/inputBotInlineMessageText.md b/docs/API_docs/constructors/inputBotInlineMessageText.md index 6d751de2..77de3cf6 100644 --- a/docs/API_docs/constructors/inputBotInlineMessageText.md +++ b/docs/API_docs/constructors/inputBotInlineMessageText.md @@ -36,3 +36,9 @@ inputBotInlineMessageText={_='inputBotInlineMessageText', no_webpage=Bool, messa ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/docs/API_docs/constructors/message.md b/docs/API_docs/constructors/message.md index 8ecae9bf..135401c5 100644 --- a/docs/API_docs/constructors/message.md +++ b/docs/API_docs/constructors/message.md @@ -50,3 +50,9 @@ message={_='message', out=Bool, mentioned=Bool, media_unread=Bool, silent=Bool, ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/docs/API_docs/methods/account_changePhone.md b/docs/API_docs/methods/account_changePhone.md index dc3e0427..6691a743 100644 --- a/docs/API_docs/methods/account_changePhone.md +++ b/docs/API_docs/methods/account_changePhone.md @@ -22,10 +22,10 @@ description: account.changePhone parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/account_checkUsername.md b/docs/API_docs/methods/account_checkUsername.md index dc13041c..e954ca99 100644 --- a/docs/API_docs/methods/account_checkUsername.md +++ b/docs/API_docs/methods/account_checkUsername.md @@ -20,10 +20,10 @@ description: account.checkUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/account_confirmPhone.md b/docs/API_docs/methods/account_confirmPhone.md index 07582551..99af6c2c 100644 --- a/docs/API_docs/methods/account_confirmPhone.md +++ b/docs/API_docs/methods/account_confirmPhone.md @@ -21,10 +21,10 @@ description: account.confirmPhone parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/account_deleteAccount.md b/docs/API_docs/methods/account_deleteAccount.md index 4199572b..0d0a6204 100644 --- a/docs/API_docs/methods/account_deleteAccount.md +++ b/docs/API_docs/methods/account_deleteAccount.md @@ -20,10 +20,10 @@ description: account.deleteAccount parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/account_getAccountTTL.md b/docs/API_docs/methods/account_getAccountTTL.md index ff4171df..e284a80e 100644 --- a/docs/API_docs/methods/account_getAccountTTL.md +++ b/docs/API_docs/methods/account_getAccountTTL.md @@ -15,10 +15,10 @@ description: account.getAccountTTL parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/account_getAuthorizations.md b/docs/API_docs/methods/account_getAuthorizations.md index 26f755d4..ee5a00d6 100644 --- a/docs/API_docs/methods/account_getAuthorizations.md +++ b/docs/API_docs/methods/account_getAuthorizations.md @@ -15,10 +15,10 @@ description: account.getAuthorizations parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/account_getNotifySettings.md b/docs/API_docs/methods/account_getNotifySettings.md index 817f201a..2e7fd9ba 100644 --- a/docs/API_docs/methods/account_getNotifySettings.md +++ b/docs/API_docs/methods/account_getNotifySettings.md @@ -20,10 +20,10 @@ description: account.getNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/account_getPassword.md b/docs/API_docs/methods/account_getPassword.md index d7491fec..424d3710 100644 --- a/docs/API_docs/methods/account_getPassword.md +++ b/docs/API_docs/methods/account_getPassword.md @@ -15,10 +15,10 @@ description: account.getPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/account_getPasswordSettings.md b/docs/API_docs/methods/account_getPasswordSettings.md index 5be9a523..3e72e398 100644 --- a/docs/API_docs/methods/account_getPasswordSettings.md +++ b/docs/API_docs/methods/account_getPasswordSettings.md @@ -20,10 +20,10 @@ description: account.getPasswordSettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/account_getPrivacy.md b/docs/API_docs/methods/account_getPrivacy.md index 649019d5..26137fd3 100644 --- a/docs/API_docs/methods/account_getPrivacy.md +++ b/docs/API_docs/methods/account_getPrivacy.md @@ -20,10 +20,10 @@ description: account.getPrivacy parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/account_getTmpPassword.md b/docs/API_docs/methods/account_getTmpPassword.md index 195dca86..e8396e8b 100644 --- a/docs/API_docs/methods/account_getTmpPassword.md +++ b/docs/API_docs/methods/account_getTmpPassword.md @@ -21,10 +21,10 @@ description: account.getTmpPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/account_getWallPapers.md b/docs/API_docs/methods/account_getWallPapers.md index 9eb0182a..a44ea777 100644 --- a/docs/API_docs/methods/account_getWallPapers.md +++ b/docs/API_docs/methods/account_getWallPapers.md @@ -15,10 +15,10 @@ description: account.getWallPapers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/account_registerDevice.md b/docs/API_docs/methods/account_registerDevice.md index 453de19b..c4704140 100644 --- a/docs/API_docs/methods/account_registerDevice.md +++ b/docs/API_docs/methods/account_registerDevice.md @@ -21,10 +21,10 @@ description: account.registerDevice parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/account_reportPeer.md b/docs/API_docs/methods/account_reportPeer.md index bb8dea54..7d913217 100644 --- a/docs/API_docs/methods/account_reportPeer.md +++ b/docs/API_docs/methods/account_reportPeer.md @@ -21,10 +21,10 @@ description: account.reportPeer parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/account_resetAuthorization.md b/docs/API_docs/methods/account_resetAuthorization.md index aaf5a660..2c7c5bc4 100644 --- a/docs/API_docs/methods/account_resetAuthorization.md +++ b/docs/API_docs/methods/account_resetAuthorization.md @@ -20,10 +20,10 @@ description: account.resetAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/account_resetNotifySettings.md b/docs/API_docs/methods/account_resetNotifySettings.md index 5a6a4c95..aa01dfce 100644 --- a/docs/API_docs/methods/account_resetNotifySettings.md +++ b/docs/API_docs/methods/account_resetNotifySettings.md @@ -15,10 +15,10 @@ description: account.resetNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/account_sendChangePhoneCode.md b/docs/API_docs/methods/account_sendChangePhoneCode.md index 8f2e8833..a3d15473 100644 --- a/docs/API_docs/methods/account_sendChangePhoneCode.md +++ b/docs/API_docs/methods/account_sendChangePhoneCode.md @@ -22,10 +22,10 @@ description: account.sendChangePhoneCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/account_sendConfirmPhoneCode.md b/docs/API_docs/methods/account_sendConfirmPhoneCode.md index 5897ec41..c1b7cacd 100644 --- a/docs/API_docs/methods/account_sendConfirmPhoneCode.md +++ b/docs/API_docs/methods/account_sendConfirmPhoneCode.md @@ -22,10 +22,10 @@ description: account.sendConfirmPhoneCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/account_setAccountTTL.md b/docs/API_docs/methods/account_setAccountTTL.md index 6ae8d70e..460ae89a 100644 --- a/docs/API_docs/methods/account_setAccountTTL.md +++ b/docs/API_docs/methods/account_setAccountTTL.md @@ -20,10 +20,10 @@ description: account.setAccountTTL parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/account_setPrivacy.md b/docs/API_docs/methods/account_setPrivacy.md index e438ca16..f05356db 100644 --- a/docs/API_docs/methods/account_setPrivacy.md +++ b/docs/API_docs/methods/account_setPrivacy.md @@ -21,10 +21,10 @@ description: account.setPrivacy parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/account_unregisterDevice.md b/docs/API_docs/methods/account_unregisterDevice.md index 89ab99a8..1063fad3 100644 --- a/docs/API_docs/methods/account_unregisterDevice.md +++ b/docs/API_docs/methods/account_unregisterDevice.md @@ -21,10 +21,10 @@ description: account.unregisterDevice parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/account_updateDeviceLocked.md b/docs/API_docs/methods/account_updateDeviceLocked.md index 3fe6b8b6..506d974f 100644 --- a/docs/API_docs/methods/account_updateDeviceLocked.md +++ b/docs/API_docs/methods/account_updateDeviceLocked.md @@ -20,10 +20,10 @@ description: account.updateDeviceLocked parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/account_updateNotifySettings.md b/docs/API_docs/methods/account_updateNotifySettings.md index 7eea8202..cb90a39f 100644 --- a/docs/API_docs/methods/account_updateNotifySettings.md +++ b/docs/API_docs/methods/account_updateNotifySettings.md @@ -21,10 +21,10 @@ description: account.updateNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/account_updatePasswordSettings.md b/docs/API_docs/methods/account_updatePasswordSettings.md index 56e4d724..ad1a930d 100644 --- a/docs/API_docs/methods/account_updatePasswordSettings.md +++ b/docs/API_docs/methods/account_updatePasswordSettings.md @@ -21,10 +21,10 @@ description: account.updatePasswordSettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/account_updateProfile.md b/docs/API_docs/methods/account_updateProfile.md index 186a934d..3edc695d 100644 --- a/docs/API_docs/methods/account_updateProfile.md +++ b/docs/API_docs/methods/account_updateProfile.md @@ -22,10 +22,10 @@ description: account.updateProfile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/account_updateStatus.md b/docs/API_docs/methods/account_updateStatus.md index f2fd751e..ac260312 100644 --- a/docs/API_docs/methods/account_updateStatus.md +++ b/docs/API_docs/methods/account_updateStatus.md @@ -20,10 +20,10 @@ description: account.updateStatus parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/account_updateUsername.md b/docs/API_docs/methods/account_updateUsername.md index b5e428e4..7daf43e0 100644 --- a/docs/API_docs/methods/account_updateUsername.md +++ b/docs/API_docs/methods/account_updateUsername.md @@ -20,10 +20,10 @@ description: account.updateUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/auth_bindTempAuthKey.md b/docs/API_docs/methods/auth_bindTempAuthKey.md index 87d0c7cf..55e083cd 100644 --- a/docs/API_docs/methods/auth_bindTempAuthKey.md +++ b/docs/API_docs/methods/auth_bindTempAuthKey.md @@ -23,10 +23,10 @@ description: auth.bindTempAuthKey parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/auth_cancelCode.md b/docs/API_docs/methods/auth_cancelCode.md index 7402df8d..520caa6f 100644 --- a/docs/API_docs/methods/auth_cancelCode.md +++ b/docs/API_docs/methods/auth_cancelCode.md @@ -21,10 +21,10 @@ description: auth.cancelCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/auth_checkPassword.md b/docs/API_docs/methods/auth_checkPassword.md index 601146fc..9dcb706a 100644 --- a/docs/API_docs/methods/auth_checkPassword.md +++ b/docs/API_docs/methods/auth_checkPassword.md @@ -20,10 +20,10 @@ description: auth.checkPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/auth_checkPhone.md b/docs/API_docs/methods/auth_checkPhone.md index 2e4db690..ce137f9d 100644 --- a/docs/API_docs/methods/auth_checkPhone.md +++ b/docs/API_docs/methods/auth_checkPhone.md @@ -20,10 +20,10 @@ description: auth.checkPhone parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/auth_dropTempAuthKeys.md b/docs/API_docs/methods/auth_dropTempAuthKeys.md index b138701f..9c43b925 100644 --- a/docs/API_docs/methods/auth_dropTempAuthKeys.md +++ b/docs/API_docs/methods/auth_dropTempAuthKeys.md @@ -20,10 +20,10 @@ description: auth.dropTempAuthKeys parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/auth_exportAuthorization.md b/docs/API_docs/methods/auth_exportAuthorization.md index a69f0301..bfd16433 100644 --- a/docs/API_docs/methods/auth_exportAuthorization.md +++ b/docs/API_docs/methods/auth_exportAuthorization.md @@ -20,10 +20,10 @@ description: auth.exportAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/auth_importAuthorization.md b/docs/API_docs/methods/auth_importAuthorization.md index a0e2e4b7..956f9a72 100644 --- a/docs/API_docs/methods/auth_importAuthorization.md +++ b/docs/API_docs/methods/auth_importAuthorization.md @@ -21,10 +21,10 @@ description: auth.importAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/auth_importBotAuthorization.md b/docs/API_docs/methods/auth_importBotAuthorization.md index a78a5263..11d2f7f3 100644 --- a/docs/API_docs/methods/auth_importBotAuthorization.md +++ b/docs/API_docs/methods/auth_importBotAuthorization.md @@ -22,10 +22,10 @@ description: auth.importBotAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/auth_logOut.md b/docs/API_docs/methods/auth_logOut.md index ac5bd8ae..5651f753 100644 --- a/docs/API_docs/methods/auth_logOut.md +++ b/docs/API_docs/methods/auth_logOut.md @@ -15,10 +15,10 @@ description: auth.logOut parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/auth_recoverPassword.md b/docs/API_docs/methods/auth_recoverPassword.md index 9b7ebcfb..e253e7d9 100644 --- a/docs/API_docs/methods/auth_recoverPassword.md +++ b/docs/API_docs/methods/auth_recoverPassword.md @@ -20,10 +20,10 @@ description: auth.recoverPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/auth_requestPasswordRecovery.md b/docs/API_docs/methods/auth_requestPasswordRecovery.md index 94c0aeff..2ae670eb 100644 --- a/docs/API_docs/methods/auth_requestPasswordRecovery.md +++ b/docs/API_docs/methods/auth_requestPasswordRecovery.md @@ -15,10 +15,10 @@ description: auth.requestPasswordRecovery parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/auth_resendCode.md b/docs/API_docs/methods/auth_resendCode.md index 8b36b17c..cb9dfd91 100644 --- a/docs/API_docs/methods/auth_resendCode.md +++ b/docs/API_docs/methods/auth_resendCode.md @@ -21,10 +21,10 @@ description: auth.resendCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/auth_resetAuthorizations.md b/docs/API_docs/methods/auth_resetAuthorizations.md index f55e2e4d..9b324b42 100644 --- a/docs/API_docs/methods/auth_resetAuthorizations.md +++ b/docs/API_docs/methods/auth_resetAuthorizations.md @@ -15,10 +15,10 @@ description: auth.resetAuthorizations parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/auth_sendCode.md b/docs/API_docs/methods/auth_sendCode.md index 6c195531..c5888bac 100644 --- a/docs/API_docs/methods/auth_sendCode.md +++ b/docs/API_docs/methods/auth_sendCode.md @@ -24,10 +24,10 @@ description: auth.sendCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/auth_sendInvites.md b/docs/API_docs/methods/auth_sendInvites.md index f81a5c7e..87cdc7e3 100644 --- a/docs/API_docs/methods/auth_sendInvites.md +++ b/docs/API_docs/methods/auth_sendInvites.md @@ -21,10 +21,10 @@ description: auth.sendInvites parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/auth_signIn.md b/docs/API_docs/methods/auth_signIn.md index 7616bc80..b0fb12fe 100644 --- a/docs/API_docs/methods/auth_signIn.md +++ b/docs/API_docs/methods/auth_signIn.md @@ -22,10 +22,10 @@ description: auth.signIn parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/auth_signUp.md b/docs/API_docs/methods/auth_signUp.md index f9c72d64..6f92b4f7 100644 --- a/docs/API_docs/methods/auth_signUp.md +++ b/docs/API_docs/methods/auth_signUp.md @@ -24,10 +24,10 @@ description: auth.signUp parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/bots_answerWebhookJSONQuery.md b/docs/API_docs/methods/bots_answerWebhookJSONQuery.md index 6aec7eec..65c85355 100644 --- a/docs/API_docs/methods/bots_answerWebhookJSONQuery.md +++ b/docs/API_docs/methods/bots_answerWebhookJSONQuery.md @@ -21,10 +21,10 @@ description: bots.answerWebhookJSONQuery parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/bots_sendCustomRequest.md b/docs/API_docs/methods/bots_sendCustomRequest.md index 8f4033c4..4c759d91 100644 --- a/docs/API_docs/methods/bots_sendCustomRequest.md +++ b/docs/API_docs/methods/bots_sendCustomRequest.md @@ -21,10 +21,10 @@ description: bots.sendCustomRequest parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/channels_checkUsername.md b/docs/API_docs/methods/channels_checkUsername.md index 82990d05..298b8e35 100644 --- a/docs/API_docs/methods/channels_checkUsername.md +++ b/docs/API_docs/methods/channels_checkUsername.md @@ -21,10 +21,10 @@ description: channels.checkUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/channels_createChannel.md b/docs/API_docs/methods/channels_createChannel.md index b5ffa159..207c60e9 100644 --- a/docs/API_docs/methods/channels_createChannel.md +++ b/docs/API_docs/methods/channels_createChannel.md @@ -23,10 +23,10 @@ description: channels.createChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/channels_deleteChannel.md b/docs/API_docs/methods/channels_deleteChannel.md index c1eba22f..825882ab 100644 --- a/docs/API_docs/methods/channels_deleteChannel.md +++ b/docs/API_docs/methods/channels_deleteChannel.md @@ -20,10 +20,10 @@ description: channels.deleteChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/channels_deleteMessages.md b/docs/API_docs/methods/channels_deleteMessages.md index e2e5e2bb..14fe6256 100644 --- a/docs/API_docs/methods/channels_deleteMessages.md +++ b/docs/API_docs/methods/channels_deleteMessages.md @@ -21,10 +21,10 @@ description: channels.deleteMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/channels_deleteUserHistory.md b/docs/API_docs/methods/channels_deleteUserHistory.md index d3feb071..c485126f 100644 --- a/docs/API_docs/methods/channels_deleteUserHistory.md +++ b/docs/API_docs/methods/channels_deleteUserHistory.md @@ -21,10 +21,10 @@ description: channels.deleteUserHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/channels_editAbout.md b/docs/API_docs/methods/channels_editAbout.md index 12d9df80..87c1a2c0 100644 --- a/docs/API_docs/methods/channels_editAbout.md +++ b/docs/API_docs/methods/channels_editAbout.md @@ -21,10 +21,10 @@ description: channels.editAbout parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/channels_editAdmin.md b/docs/API_docs/methods/channels_editAdmin.md index 1e488778..48042957 100644 --- a/docs/API_docs/methods/channels_editAdmin.md +++ b/docs/API_docs/methods/channels_editAdmin.md @@ -22,10 +22,10 @@ description: channels.editAdmin parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/channels_editPhoto.md b/docs/API_docs/methods/channels_editPhoto.md index 9c0d0fe0..caea3df6 100644 --- a/docs/API_docs/methods/channels_editPhoto.md +++ b/docs/API_docs/methods/channels_editPhoto.md @@ -21,10 +21,10 @@ description: channels.editPhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/channels_editTitle.md b/docs/API_docs/methods/channels_editTitle.md index 057c7772..6f05ed61 100644 --- a/docs/API_docs/methods/channels_editTitle.md +++ b/docs/API_docs/methods/channels_editTitle.md @@ -21,10 +21,10 @@ description: channels.editTitle parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/channels_exportInvite.md b/docs/API_docs/methods/channels_exportInvite.md index c5fa1bf9..7483038b 100644 --- a/docs/API_docs/methods/channels_exportInvite.md +++ b/docs/API_docs/methods/channels_exportInvite.md @@ -20,10 +20,10 @@ description: channels.exportInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/channels_exportMessageLink.md b/docs/API_docs/methods/channels_exportMessageLink.md index 0b1a7102..e239030c 100644 --- a/docs/API_docs/methods/channels_exportMessageLink.md +++ b/docs/API_docs/methods/channels_exportMessageLink.md @@ -21,10 +21,10 @@ description: channels.exportMessageLink parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/channels_getAdminedPublicChannels.md b/docs/API_docs/methods/channels_getAdminedPublicChannels.md index 4d3b8c42..5293e859 100644 --- a/docs/API_docs/methods/channels_getAdminedPublicChannels.md +++ b/docs/API_docs/methods/channels_getAdminedPublicChannels.md @@ -15,10 +15,10 @@ description: channels.getAdminedPublicChannels parameters, return type and examp ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/channels_getChannels.md b/docs/API_docs/methods/channels_getChannels.md index 24b94c8f..004f7b7e 100644 --- a/docs/API_docs/methods/channels_getChannels.md +++ b/docs/API_docs/methods/channels_getChannels.md @@ -20,10 +20,10 @@ description: channels.getChannels parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/channels_getFullChannel.md b/docs/API_docs/methods/channels_getFullChannel.md index 8bf78cd9..37abd094 100644 --- a/docs/API_docs/methods/channels_getFullChannel.md +++ b/docs/API_docs/methods/channels_getFullChannel.md @@ -20,10 +20,10 @@ description: channels.getFullChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/channels_getMessages.md b/docs/API_docs/methods/channels_getMessages.md index 8204bf26..3aca181e 100644 --- a/docs/API_docs/methods/channels_getMessages.md +++ b/docs/API_docs/methods/channels_getMessages.md @@ -21,10 +21,10 @@ description: channels.getMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/channels_getParticipant.md b/docs/API_docs/methods/channels_getParticipant.md index 7b685913..6bb9339e 100644 --- a/docs/API_docs/methods/channels_getParticipant.md +++ b/docs/API_docs/methods/channels_getParticipant.md @@ -21,10 +21,10 @@ description: channels.getParticipant parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/channels_getParticipants.md b/docs/API_docs/methods/channels_getParticipants.md index 6ee31676..51ac2c09 100644 --- a/docs/API_docs/methods/channels_getParticipants.md +++ b/docs/API_docs/methods/channels_getParticipants.md @@ -23,10 +23,10 @@ description: channels.getParticipants parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/channels_inviteToChannel.md b/docs/API_docs/methods/channels_inviteToChannel.md index 4b4985a4..57581c7a 100644 --- a/docs/API_docs/methods/channels_inviteToChannel.md +++ b/docs/API_docs/methods/channels_inviteToChannel.md @@ -21,10 +21,10 @@ description: channels.inviteToChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/channels_joinChannel.md b/docs/API_docs/methods/channels_joinChannel.md index 97fd5417..359333fd 100644 --- a/docs/API_docs/methods/channels_joinChannel.md +++ b/docs/API_docs/methods/channels_joinChannel.md @@ -20,10 +20,10 @@ description: channels.joinChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/channels_kickFromChannel.md b/docs/API_docs/methods/channels_kickFromChannel.md index cf5a3ebc..930902a3 100644 --- a/docs/API_docs/methods/channels_kickFromChannel.md +++ b/docs/API_docs/methods/channels_kickFromChannel.md @@ -22,10 +22,10 @@ description: channels.kickFromChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/channels_leaveChannel.md b/docs/API_docs/methods/channels_leaveChannel.md index 69dc1852..a10d17e7 100644 --- a/docs/API_docs/methods/channels_leaveChannel.md +++ b/docs/API_docs/methods/channels_leaveChannel.md @@ -20,10 +20,10 @@ description: channels.leaveChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/channels_readHistory.md b/docs/API_docs/methods/channels_readHistory.md index 87906417..104a7b8f 100644 --- a/docs/API_docs/methods/channels_readHistory.md +++ b/docs/API_docs/methods/channels_readHistory.md @@ -21,10 +21,10 @@ description: channels.readHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/channels_reportSpam.md b/docs/API_docs/methods/channels_reportSpam.md index dc8542f2..9e3e13ac 100644 --- a/docs/API_docs/methods/channels_reportSpam.md +++ b/docs/API_docs/methods/channels_reportSpam.md @@ -22,10 +22,10 @@ description: channels.reportSpam parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/channels_toggleInvites.md b/docs/API_docs/methods/channels_toggleInvites.md index 6545a16a..5238c028 100644 --- a/docs/API_docs/methods/channels_toggleInvites.md +++ b/docs/API_docs/methods/channels_toggleInvites.md @@ -21,10 +21,10 @@ description: channels.toggleInvites parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/channels_toggleSignatures.md b/docs/API_docs/methods/channels_toggleSignatures.md index dcab06a1..c850d592 100644 --- a/docs/API_docs/methods/channels_toggleSignatures.md +++ b/docs/API_docs/methods/channels_toggleSignatures.md @@ -21,10 +21,10 @@ description: channels.toggleSignatures parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/channels_updatePinnedMessage.md b/docs/API_docs/methods/channels_updatePinnedMessage.md index c86580db..9a879125 100644 --- a/docs/API_docs/methods/channels_updatePinnedMessage.md +++ b/docs/API_docs/methods/channels_updatePinnedMessage.md @@ -22,10 +22,10 @@ description: channels.updatePinnedMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/channels_updateUsername.md b/docs/API_docs/methods/channels_updateUsername.md index ebb03507..801bc972 100644 --- a/docs/API_docs/methods/channels_updateUsername.md +++ b/docs/API_docs/methods/channels_updateUsername.md @@ -21,10 +21,10 @@ description: channels.updateUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/contacts_block.md b/docs/API_docs/methods/contacts_block.md index b809b15c..f512adcc 100644 --- a/docs/API_docs/methods/contacts_block.md +++ b/docs/API_docs/methods/contacts_block.md @@ -20,10 +20,10 @@ description: contacts.block parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/contacts_deleteContact.md b/docs/API_docs/methods/contacts_deleteContact.md index 18ef51f8..a3e8f63d 100644 --- a/docs/API_docs/methods/contacts_deleteContact.md +++ b/docs/API_docs/methods/contacts_deleteContact.md @@ -20,10 +20,10 @@ description: contacts.deleteContact parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/contacts_deleteContacts.md b/docs/API_docs/methods/contacts_deleteContacts.md index 40672188..46e251eb 100644 --- a/docs/API_docs/methods/contacts_deleteContacts.md +++ b/docs/API_docs/methods/contacts_deleteContacts.md @@ -20,10 +20,10 @@ description: contacts.deleteContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/contacts_exportCard.md b/docs/API_docs/methods/contacts_exportCard.md index 4145d246..f7ec0015 100644 --- a/docs/API_docs/methods/contacts_exportCard.md +++ b/docs/API_docs/methods/contacts_exportCard.md @@ -15,10 +15,10 @@ description: contacts.exportCard parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/contacts_getBlocked.md b/docs/API_docs/methods/contacts_getBlocked.md index 50172d03..0fc72dba 100644 --- a/docs/API_docs/methods/contacts_getBlocked.md +++ b/docs/API_docs/methods/contacts_getBlocked.md @@ -21,10 +21,10 @@ description: contacts.getBlocked parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/contacts_getContacts.md b/docs/API_docs/methods/contacts_getContacts.md index 0e6f22e9..656821e0 100644 --- a/docs/API_docs/methods/contacts_getContacts.md +++ b/docs/API_docs/methods/contacts_getContacts.md @@ -20,10 +20,10 @@ description: contacts.getContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/contacts_getStatuses.md b/docs/API_docs/methods/contacts_getStatuses.md index b734f529..ee806f2d 100644 --- a/docs/API_docs/methods/contacts_getStatuses.md +++ b/docs/API_docs/methods/contacts_getStatuses.md @@ -15,10 +15,10 @@ description: contacts.getStatuses parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/contacts_getTopPeers.md b/docs/API_docs/methods/contacts_getTopPeers.md index 9ce29121..75b4126a 100644 --- a/docs/API_docs/methods/contacts_getTopPeers.md +++ b/docs/API_docs/methods/contacts_getTopPeers.md @@ -27,10 +27,10 @@ description: contacts.getTopPeers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/contacts_importCard.md b/docs/API_docs/methods/contacts_importCard.md index 6b2c612e..162ff4f3 100644 --- a/docs/API_docs/methods/contacts_importCard.md +++ b/docs/API_docs/methods/contacts_importCard.md @@ -20,10 +20,10 @@ description: contacts.importCard parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/contacts_importContacts.md b/docs/API_docs/methods/contacts_importContacts.md index 2426f53c..48412e99 100644 --- a/docs/API_docs/methods/contacts_importContacts.md +++ b/docs/API_docs/methods/contacts_importContacts.md @@ -21,10 +21,10 @@ description: contacts.importContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/contacts_resetTopPeerRating.md b/docs/API_docs/methods/contacts_resetTopPeerRating.md index 48e8edd6..79cf7847 100644 --- a/docs/API_docs/methods/contacts_resetTopPeerRating.md +++ b/docs/API_docs/methods/contacts_resetTopPeerRating.md @@ -21,10 +21,10 @@ description: contacts.resetTopPeerRating parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/contacts_resolveUsername.md b/docs/API_docs/methods/contacts_resolveUsername.md index 0ea67c6f..b847fbe9 100644 --- a/docs/API_docs/methods/contacts_resolveUsername.md +++ b/docs/API_docs/methods/contacts_resolveUsername.md @@ -20,10 +20,10 @@ description: contacts.resolveUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/contacts_search.md b/docs/API_docs/methods/contacts_search.md index 00a39519..9a351db7 100644 --- a/docs/API_docs/methods/contacts_search.md +++ b/docs/API_docs/methods/contacts_search.md @@ -21,10 +21,10 @@ description: contacts.search parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/contacts_unblock.md b/docs/API_docs/methods/contacts_unblock.md index 63f41483..6d739c9b 100644 --- a/docs/API_docs/methods/contacts_unblock.md +++ b/docs/API_docs/methods/contacts_unblock.md @@ -20,10 +20,10 @@ description: contacts.unblock parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/contest_saveDeveloperInfo.md b/docs/API_docs/methods/contest_saveDeveloperInfo.md index a9740fc2..04e2b4e3 100644 --- a/docs/API_docs/methods/contest_saveDeveloperInfo.md +++ b/docs/API_docs/methods/contest_saveDeveloperInfo.md @@ -24,10 +24,10 @@ description: contest.saveDeveloperInfo parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/destroy_auth_key.md b/docs/API_docs/methods/destroy_auth_key.md index c30929ac..83e1393d 100644 --- a/docs/API_docs/methods/destroy_auth_key.md +++ b/docs/API_docs/methods/destroy_auth_key.md @@ -15,10 +15,10 @@ description: destroy_auth_key parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/destroy_session.md b/docs/API_docs/methods/destroy_session.md index 78132aef..12927fea 100644 --- a/docs/API_docs/methods/destroy_session.md +++ b/docs/API_docs/methods/destroy_session.md @@ -20,10 +20,10 @@ description: destroy_session parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/get_future_salts.md b/docs/API_docs/methods/get_future_salts.md index 4574802b..83d4d495 100644 --- a/docs/API_docs/methods/get_future_salts.md +++ b/docs/API_docs/methods/get_future_salts.md @@ -20,10 +20,10 @@ description: get_future_salts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/help_getAppChangelog.md b/docs/API_docs/methods/help_getAppChangelog.md index 7ef99518..d6f37df7 100644 --- a/docs/API_docs/methods/help_getAppChangelog.md +++ b/docs/API_docs/methods/help_getAppChangelog.md @@ -20,10 +20,10 @@ description: help.getAppChangelog parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/help_getAppUpdate.md b/docs/API_docs/methods/help_getAppUpdate.md index cdaa5f04..f2871a39 100644 --- a/docs/API_docs/methods/help_getAppUpdate.md +++ b/docs/API_docs/methods/help_getAppUpdate.md @@ -15,10 +15,10 @@ description: help.getAppUpdate parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/help_getConfig.md b/docs/API_docs/methods/help_getConfig.md index cb9c4f1c..9481a0c0 100644 --- a/docs/API_docs/methods/help_getConfig.md +++ b/docs/API_docs/methods/help_getConfig.md @@ -15,10 +15,10 @@ description: help.getConfig parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/help_getInviteText.md b/docs/API_docs/methods/help_getInviteText.md index b5293e91..5f81c4dc 100644 --- a/docs/API_docs/methods/help_getInviteText.md +++ b/docs/API_docs/methods/help_getInviteText.md @@ -15,10 +15,10 @@ description: help.getInviteText parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/help_getNearestDc.md b/docs/API_docs/methods/help_getNearestDc.md index f491ae0c..bb6b1883 100644 --- a/docs/API_docs/methods/help_getNearestDc.md +++ b/docs/API_docs/methods/help_getNearestDc.md @@ -15,10 +15,10 @@ description: help.getNearestDc parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/help_getSupport.md b/docs/API_docs/methods/help_getSupport.md index 03574c6f..0348089a 100644 --- a/docs/API_docs/methods/help_getSupport.md +++ b/docs/API_docs/methods/help_getSupport.md @@ -15,10 +15,10 @@ description: help.getSupport parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/help_getTermsOfService.md b/docs/API_docs/methods/help_getTermsOfService.md index 59147a4e..7a32bdaf 100644 --- a/docs/API_docs/methods/help_getTermsOfService.md +++ b/docs/API_docs/methods/help_getTermsOfService.md @@ -15,10 +15,10 @@ description: help.getTermsOfService parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/help_saveAppLog.md b/docs/API_docs/methods/help_saveAppLog.md index 3887ccc2..59b92601 100644 --- a/docs/API_docs/methods/help_saveAppLog.md +++ b/docs/API_docs/methods/help_saveAppLog.md @@ -20,10 +20,10 @@ description: help.saveAppLog parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/help_setBotUpdatesStatus.md b/docs/API_docs/methods/help_setBotUpdatesStatus.md index 58fc377d..820d3c0f 100644 --- a/docs/API_docs/methods/help_setBotUpdatesStatus.md +++ b/docs/API_docs/methods/help_setBotUpdatesStatus.md @@ -21,10 +21,10 @@ description: help.setBotUpdatesStatus parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/initConnection.md b/docs/API_docs/methods/initConnection.md index 1c946720..aa89066c 100644 --- a/docs/API_docs/methods/initConnection.md +++ b/docs/API_docs/methods/initConnection.md @@ -25,10 +25,10 @@ description: initConnection parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/invokeAfterMsg.md b/docs/API_docs/methods/invokeAfterMsg.md index 1b35a238..97c4f1fb 100644 --- a/docs/API_docs/methods/invokeAfterMsg.md +++ b/docs/API_docs/methods/invokeAfterMsg.md @@ -21,10 +21,10 @@ description: invokeAfterMsg parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/invokeAfterMsgs.md b/docs/API_docs/methods/invokeAfterMsgs.md index 164ab318..4e278ef1 100644 --- a/docs/API_docs/methods/invokeAfterMsgs.md +++ b/docs/API_docs/methods/invokeAfterMsgs.md @@ -21,10 +21,10 @@ description: invokeAfterMsgs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/invokeWithLayer.md b/docs/API_docs/methods/invokeWithLayer.md index 497cc285..72fe47ec 100644 --- a/docs/API_docs/methods/invokeWithLayer.md +++ b/docs/API_docs/methods/invokeWithLayer.md @@ -21,10 +21,10 @@ description: invokeWithLayer parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/invokeWithoutUpdates.md b/docs/API_docs/methods/invokeWithoutUpdates.md index cbdabb07..5151b786 100644 --- a/docs/API_docs/methods/invokeWithoutUpdates.md +++ b/docs/API_docs/methods/invokeWithoutUpdates.md @@ -20,10 +20,10 @@ description: invokeWithoutUpdates parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_acceptEncryption.md b/docs/API_docs/methods/messages_acceptEncryption.md index d41beb91..e016f5d3 100644 --- a/docs/API_docs/methods/messages_acceptEncryption.md +++ b/docs/API_docs/methods/messages_acceptEncryption.md @@ -22,10 +22,10 @@ description: messages.acceptEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_addChatUser.md b/docs/API_docs/methods/messages_addChatUser.md index 13d17a3e..df2cb1a5 100644 --- a/docs/API_docs/methods/messages_addChatUser.md +++ b/docs/API_docs/methods/messages_addChatUser.md @@ -22,10 +22,10 @@ description: messages.addChatUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_checkChatInvite.md b/docs/API_docs/methods/messages_checkChatInvite.md index 0a3a4f84..7670727b 100644 --- a/docs/API_docs/methods/messages_checkChatInvite.md +++ b/docs/API_docs/methods/messages_checkChatInvite.md @@ -20,10 +20,10 @@ description: messages.checkChatInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_clearRecentStickers.md b/docs/API_docs/methods/messages_clearRecentStickers.md index f8cc5f65..100e49da 100644 --- a/docs/API_docs/methods/messages_clearRecentStickers.md +++ b/docs/API_docs/methods/messages_clearRecentStickers.md @@ -20,10 +20,10 @@ description: messages.clearRecentStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_createChat.md b/docs/API_docs/methods/messages_createChat.md index 0ab3101a..2fc5631c 100644 --- a/docs/API_docs/methods/messages_createChat.md +++ b/docs/API_docs/methods/messages_createChat.md @@ -21,10 +21,10 @@ description: messages.createChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_deleteChatUser.md b/docs/API_docs/methods/messages_deleteChatUser.md index ed736ebd..6895649f 100644 --- a/docs/API_docs/methods/messages_deleteChatUser.md +++ b/docs/API_docs/methods/messages_deleteChatUser.md @@ -21,10 +21,10 @@ description: messages.deleteChatUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_deleteHistory.md b/docs/API_docs/methods/messages_deleteHistory.md index 6f71f2fe..e8c98c07 100644 --- a/docs/API_docs/methods/messages_deleteHistory.md +++ b/docs/API_docs/methods/messages_deleteHistory.md @@ -22,10 +22,10 @@ description: messages.deleteHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_deleteMessages.md b/docs/API_docs/methods/messages_deleteMessages.md index a930aa42..2a5f61f6 100644 --- a/docs/API_docs/methods/messages_deleteMessages.md +++ b/docs/API_docs/methods/messages_deleteMessages.md @@ -21,10 +21,10 @@ description: messages.deleteMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_discardEncryption.md b/docs/API_docs/methods/messages_discardEncryption.md index ebc1ace5..f237c986 100644 --- a/docs/API_docs/methods/messages_discardEncryption.md +++ b/docs/API_docs/methods/messages_discardEncryption.md @@ -20,10 +20,10 @@ description: messages.discardEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_editChatAdmin.md b/docs/API_docs/methods/messages_editChatAdmin.md index 38bc8de0..74f5a39f 100644 --- a/docs/API_docs/methods/messages_editChatAdmin.md +++ b/docs/API_docs/methods/messages_editChatAdmin.md @@ -22,10 +22,10 @@ description: messages.editChatAdmin parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_editChatPhoto.md b/docs/API_docs/methods/messages_editChatPhoto.md index e3cbf492..0396c74b 100644 --- a/docs/API_docs/methods/messages_editChatPhoto.md +++ b/docs/API_docs/methods/messages_editChatPhoto.md @@ -21,10 +21,10 @@ description: messages.editChatPhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_editChatTitle.md b/docs/API_docs/methods/messages_editChatTitle.md index 60eae01c..fabe9c87 100644 --- a/docs/API_docs/methods/messages_editChatTitle.md +++ b/docs/API_docs/methods/messages_editChatTitle.md @@ -21,10 +21,10 @@ description: messages.editChatTitle parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_editInlineBotMessage.md b/docs/API_docs/methods/messages_editInlineBotMessage.md index b275cc64..ae98c13d 100644 --- a/docs/API_docs/methods/messages_editInlineBotMessage.md +++ b/docs/API_docs/methods/messages_editInlineBotMessage.md @@ -25,10 +25,10 @@ description: messages.editInlineBotMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; @@ -48,6 +48,12 @@ Bool = messages.editInlineBotMessage({no_webpage=Bool, id=InputBotInlineMessageI ``` +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + + ## Usage of parse_mode: Set parse_mode to html to enable HTML parsing of the message. diff --git a/docs/API_docs/methods/messages_editMessage.md b/docs/API_docs/methods/messages_editMessage.md index b7d0eb36..3ce73b6c 100644 --- a/docs/API_docs/methods/messages_editMessage.md +++ b/docs/API_docs/methods/messages_editMessage.md @@ -26,10 +26,10 @@ description: messages.editMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; @@ -49,6 +49,12 @@ Updates = messages.editMessage({no_webpage=Bool, peer=InputPeer, id=int, message ``` +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + + ## Usage of parse_mode: Set parse_mode to html to enable HTML parsing of the message. diff --git a/docs/API_docs/methods/messages_exportChatInvite.md b/docs/API_docs/methods/messages_exportChatInvite.md index 3efc9bf7..b96e7498 100644 --- a/docs/API_docs/methods/messages_exportChatInvite.md +++ b/docs/API_docs/methods/messages_exportChatInvite.md @@ -20,10 +20,10 @@ description: messages.exportChatInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_forwardMessage.md b/docs/API_docs/methods/messages_forwardMessage.md index a95d259a..ced2cb5b 100644 --- a/docs/API_docs/methods/messages_forwardMessage.md +++ b/docs/API_docs/methods/messages_forwardMessage.md @@ -21,10 +21,10 @@ description: messages.forwardMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_forwardMessages.md b/docs/API_docs/methods/messages_forwardMessages.md index 716a2ebf..c93b7c19 100644 --- a/docs/API_docs/methods/messages_forwardMessages.md +++ b/docs/API_docs/methods/messages_forwardMessages.md @@ -25,10 +25,10 @@ description: messages.forwardMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_getAllChats.md b/docs/API_docs/methods/messages_getAllChats.md index 7140903e..480205eb 100644 --- a/docs/API_docs/methods/messages_getAllChats.md +++ b/docs/API_docs/methods/messages_getAllChats.md @@ -20,10 +20,10 @@ description: messages.getAllChats parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_getAllDrafts.md b/docs/API_docs/methods/messages_getAllDrafts.md index 39f0a058..ec7ebddb 100644 --- a/docs/API_docs/methods/messages_getAllDrafts.md +++ b/docs/API_docs/methods/messages_getAllDrafts.md @@ -15,10 +15,10 @@ description: messages.getAllDrafts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_getAllStickers.md b/docs/API_docs/methods/messages_getAllStickers.md index 613db3b2..fe438a80 100644 --- a/docs/API_docs/methods/messages_getAllStickers.md +++ b/docs/API_docs/methods/messages_getAllStickers.md @@ -20,10 +20,10 @@ description: messages.getAllStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_getArchivedStickers.md b/docs/API_docs/methods/messages_getArchivedStickers.md index a0e17df2..5ebdc27c 100644 --- a/docs/API_docs/methods/messages_getArchivedStickers.md +++ b/docs/API_docs/methods/messages_getArchivedStickers.md @@ -22,10 +22,10 @@ description: messages.getArchivedStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_getAttachedStickers.md b/docs/API_docs/methods/messages_getAttachedStickers.md index 99806dae..5556f6fb 100644 --- a/docs/API_docs/methods/messages_getAttachedStickers.md +++ b/docs/API_docs/methods/messages_getAttachedStickers.md @@ -20,10 +20,10 @@ description: messages.getAttachedStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_getBotCallbackAnswer.md b/docs/API_docs/methods/messages_getBotCallbackAnswer.md index 2f412a3f..ee46a5b9 100644 --- a/docs/API_docs/methods/messages_getBotCallbackAnswer.md +++ b/docs/API_docs/methods/messages_getBotCallbackAnswer.md @@ -23,10 +23,10 @@ description: messages.getBotCallbackAnswer parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_getChats.md b/docs/API_docs/methods/messages_getChats.md index ad63744b..be57718e 100644 --- a/docs/API_docs/methods/messages_getChats.md +++ b/docs/API_docs/methods/messages_getChats.md @@ -20,10 +20,10 @@ description: messages.getChats parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_getCommonChats.md b/docs/API_docs/methods/messages_getCommonChats.md index 4e10d74d..6065b894 100644 --- a/docs/API_docs/methods/messages_getCommonChats.md +++ b/docs/API_docs/methods/messages_getCommonChats.md @@ -22,10 +22,10 @@ description: messages.getCommonChats parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_getDhConfig.md b/docs/API_docs/methods/messages_getDhConfig.md index bcebea55..21b37f21 100644 --- a/docs/API_docs/methods/messages_getDhConfig.md +++ b/docs/API_docs/methods/messages_getDhConfig.md @@ -21,10 +21,10 @@ description: messages.getDhConfig parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_getDialogs.md b/docs/API_docs/methods/messages_getDialogs.md index 19f6ca2e..bb9f947e 100644 --- a/docs/API_docs/methods/messages_getDialogs.md +++ b/docs/API_docs/methods/messages_getDialogs.md @@ -24,10 +24,10 @@ description: messages.getDialogs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_getDocumentByHash.md b/docs/API_docs/methods/messages_getDocumentByHash.md index 32fc1de0..ca26acc3 100644 --- a/docs/API_docs/methods/messages_getDocumentByHash.md +++ b/docs/API_docs/methods/messages_getDocumentByHash.md @@ -22,10 +22,10 @@ description: messages.getDocumentByHash parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_getFeaturedStickers.md b/docs/API_docs/methods/messages_getFeaturedStickers.md index 47a4d501..e991e78b 100644 --- a/docs/API_docs/methods/messages_getFeaturedStickers.md +++ b/docs/API_docs/methods/messages_getFeaturedStickers.md @@ -20,10 +20,10 @@ description: messages.getFeaturedStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_getFullChat.md b/docs/API_docs/methods/messages_getFullChat.md index f3c8223a..10d938ae 100644 --- a/docs/API_docs/methods/messages_getFullChat.md +++ b/docs/API_docs/methods/messages_getFullChat.md @@ -20,10 +20,10 @@ description: messages.getFullChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_getGameHighScores.md b/docs/API_docs/methods/messages_getGameHighScores.md index 1b8b5b44..097f1fec 100644 --- a/docs/API_docs/methods/messages_getGameHighScores.md +++ b/docs/API_docs/methods/messages_getGameHighScores.md @@ -22,10 +22,10 @@ description: messages.getGameHighScores parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_getHistory.md b/docs/API_docs/methods/messages_getHistory.md index 3311df5b..1befedca 100644 --- a/docs/API_docs/methods/messages_getHistory.md +++ b/docs/API_docs/methods/messages_getHistory.md @@ -26,10 +26,10 @@ description: messages.getHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_getInlineBotResults.md b/docs/API_docs/methods/messages_getInlineBotResults.md index e76ee714..6364519c 100644 --- a/docs/API_docs/methods/messages_getInlineBotResults.md +++ b/docs/API_docs/methods/messages_getInlineBotResults.md @@ -24,10 +24,10 @@ description: messages.getInlineBotResults parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_getInlineGameHighScores.md b/docs/API_docs/methods/messages_getInlineGameHighScores.md index c857cb17..370ff8fd 100644 --- a/docs/API_docs/methods/messages_getInlineGameHighScores.md +++ b/docs/API_docs/methods/messages_getInlineGameHighScores.md @@ -21,10 +21,10 @@ description: messages.getInlineGameHighScores parameters, return type and exampl ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_getMaskStickers.md b/docs/API_docs/methods/messages_getMaskStickers.md index 7a97cb33..d2e93651 100644 --- a/docs/API_docs/methods/messages_getMaskStickers.md +++ b/docs/API_docs/methods/messages_getMaskStickers.md @@ -20,10 +20,10 @@ description: messages.getMaskStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_getMessageEditData.md b/docs/API_docs/methods/messages_getMessageEditData.md index 8b47e95b..0189b6a5 100644 --- a/docs/API_docs/methods/messages_getMessageEditData.md +++ b/docs/API_docs/methods/messages_getMessageEditData.md @@ -21,10 +21,10 @@ description: messages.getMessageEditData parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_getMessages.md b/docs/API_docs/methods/messages_getMessages.md index 224df903..e669bcf8 100644 --- a/docs/API_docs/methods/messages_getMessages.md +++ b/docs/API_docs/methods/messages_getMessages.md @@ -20,10 +20,10 @@ description: messages.getMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_getMessagesViews.md b/docs/API_docs/methods/messages_getMessagesViews.md index d162b668..f27cdb36 100644 --- a/docs/API_docs/methods/messages_getMessagesViews.md +++ b/docs/API_docs/methods/messages_getMessagesViews.md @@ -22,10 +22,10 @@ description: messages.getMessagesViews parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_getPeerDialogs.md b/docs/API_docs/methods/messages_getPeerDialogs.md index cf6dc552..bcf9af29 100644 --- a/docs/API_docs/methods/messages_getPeerDialogs.md +++ b/docs/API_docs/methods/messages_getPeerDialogs.md @@ -20,10 +20,10 @@ description: messages.getPeerDialogs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_getPeerSettings.md b/docs/API_docs/methods/messages_getPeerSettings.md index 202867f7..bd60b87b 100644 --- a/docs/API_docs/methods/messages_getPeerSettings.md +++ b/docs/API_docs/methods/messages_getPeerSettings.md @@ -20,10 +20,10 @@ description: messages.getPeerSettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_getPinnedDialogs.md b/docs/API_docs/methods/messages_getPinnedDialogs.md index 1640794a..4dcb6530 100644 --- a/docs/API_docs/methods/messages_getPinnedDialogs.md +++ b/docs/API_docs/methods/messages_getPinnedDialogs.md @@ -15,10 +15,10 @@ description: messages.getPinnedDialogs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_getRecentStickers.md b/docs/API_docs/methods/messages_getRecentStickers.md index 85c89101..b522717c 100644 --- a/docs/API_docs/methods/messages_getRecentStickers.md +++ b/docs/API_docs/methods/messages_getRecentStickers.md @@ -21,10 +21,10 @@ description: messages.getRecentStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_getSavedGifs.md b/docs/API_docs/methods/messages_getSavedGifs.md index 0ca34eef..fbdc5129 100644 --- a/docs/API_docs/methods/messages_getSavedGifs.md +++ b/docs/API_docs/methods/messages_getSavedGifs.md @@ -20,10 +20,10 @@ description: messages.getSavedGifs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_getStickerSet.md b/docs/API_docs/methods/messages_getStickerSet.md index 2ec2fa5d..561eec32 100644 --- a/docs/API_docs/methods/messages_getStickerSet.md +++ b/docs/API_docs/methods/messages_getStickerSet.md @@ -20,10 +20,10 @@ description: messages.getStickerSet parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_getWebPage.md b/docs/API_docs/methods/messages_getWebPage.md index 2387c00a..dfcf8cd0 100644 --- a/docs/API_docs/methods/messages_getWebPage.md +++ b/docs/API_docs/methods/messages_getWebPage.md @@ -21,10 +21,10 @@ description: messages.getWebPage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_getWebPagePreview.md b/docs/API_docs/methods/messages_getWebPagePreview.md index e2dd428d..a3d5fce3 100644 --- a/docs/API_docs/methods/messages_getWebPagePreview.md +++ b/docs/API_docs/methods/messages_getWebPagePreview.md @@ -20,10 +20,10 @@ description: messages.getWebPagePreview parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_hideReportSpam.md b/docs/API_docs/methods/messages_hideReportSpam.md index 175bbe27..8a86e690 100644 --- a/docs/API_docs/methods/messages_hideReportSpam.md +++ b/docs/API_docs/methods/messages_hideReportSpam.md @@ -20,10 +20,10 @@ description: messages.hideReportSpam parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_importChatInvite.md b/docs/API_docs/methods/messages_importChatInvite.md index 250d076d..a4e9c052 100644 --- a/docs/API_docs/methods/messages_importChatInvite.md +++ b/docs/API_docs/methods/messages_importChatInvite.md @@ -20,10 +20,10 @@ description: messages.importChatInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_installStickerSet.md b/docs/API_docs/methods/messages_installStickerSet.md index 3de799ef..48b77a20 100644 --- a/docs/API_docs/methods/messages_installStickerSet.md +++ b/docs/API_docs/methods/messages_installStickerSet.md @@ -21,10 +21,10 @@ description: messages.installStickerSet parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_migrateChat.md b/docs/API_docs/methods/messages_migrateChat.md index 5b1e375a..731dc904 100644 --- a/docs/API_docs/methods/messages_migrateChat.md +++ b/docs/API_docs/methods/messages_migrateChat.md @@ -20,10 +20,10 @@ description: messages.migrateChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_readEncryptedHistory.md b/docs/API_docs/methods/messages_readEncryptedHistory.md index 555bffe7..5bb05536 100644 --- a/docs/API_docs/methods/messages_readEncryptedHistory.md +++ b/docs/API_docs/methods/messages_readEncryptedHistory.md @@ -21,10 +21,10 @@ description: messages.readEncryptedHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_readFeaturedStickers.md b/docs/API_docs/methods/messages_readFeaturedStickers.md index 61ec71b8..1dbbbe4f 100644 --- a/docs/API_docs/methods/messages_readFeaturedStickers.md +++ b/docs/API_docs/methods/messages_readFeaturedStickers.md @@ -20,10 +20,10 @@ description: messages.readFeaturedStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_readHistory.md b/docs/API_docs/methods/messages_readHistory.md index 1e2783ae..6bb29fef 100644 --- a/docs/API_docs/methods/messages_readHistory.md +++ b/docs/API_docs/methods/messages_readHistory.md @@ -21,10 +21,10 @@ description: messages.readHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_readMessageContents.md b/docs/API_docs/methods/messages_readMessageContents.md index ae75d612..829e7cc8 100644 --- a/docs/API_docs/methods/messages_readMessageContents.md +++ b/docs/API_docs/methods/messages_readMessageContents.md @@ -20,10 +20,10 @@ description: messages.readMessageContents parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_receivedMessages.md b/docs/API_docs/methods/messages_receivedMessages.md index ffeaeed7..05a229b6 100644 --- a/docs/API_docs/methods/messages_receivedMessages.md +++ b/docs/API_docs/methods/messages_receivedMessages.md @@ -20,10 +20,10 @@ description: messages.receivedMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_receivedQueue.md b/docs/API_docs/methods/messages_receivedQueue.md index e514669c..d8bfae5e 100644 --- a/docs/API_docs/methods/messages_receivedQueue.md +++ b/docs/API_docs/methods/messages_receivedQueue.md @@ -20,10 +20,10 @@ description: messages.receivedQueue parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_reorderPinnedDialogs.md b/docs/API_docs/methods/messages_reorderPinnedDialogs.md index cf85d9aa..797c5d17 100644 --- a/docs/API_docs/methods/messages_reorderPinnedDialogs.md +++ b/docs/API_docs/methods/messages_reorderPinnedDialogs.md @@ -21,10 +21,10 @@ description: messages.reorderPinnedDialogs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_reorderStickerSets.md b/docs/API_docs/methods/messages_reorderStickerSets.md index 3eab4332..698bc50a 100644 --- a/docs/API_docs/methods/messages_reorderStickerSets.md +++ b/docs/API_docs/methods/messages_reorderStickerSets.md @@ -21,10 +21,10 @@ description: messages.reorderStickerSets parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_reportEncryptedSpam.md b/docs/API_docs/methods/messages_reportEncryptedSpam.md index a7af51d8..6334ba63 100644 --- a/docs/API_docs/methods/messages_reportEncryptedSpam.md +++ b/docs/API_docs/methods/messages_reportEncryptedSpam.md @@ -20,10 +20,10 @@ description: messages.reportEncryptedSpam parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_reportSpam.md b/docs/API_docs/methods/messages_reportSpam.md index 56975b9d..da747585 100644 --- a/docs/API_docs/methods/messages_reportSpam.md +++ b/docs/API_docs/methods/messages_reportSpam.md @@ -20,10 +20,10 @@ description: messages.reportSpam parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_requestEncryption.md b/docs/API_docs/methods/messages_requestEncryption.md index e82fca54..99fe7ecf 100644 --- a/docs/API_docs/methods/messages_requestEncryption.md +++ b/docs/API_docs/methods/messages_requestEncryption.md @@ -21,10 +21,10 @@ description: messages.requestEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_saveDraft.md b/docs/API_docs/methods/messages_saveDraft.md index a9fe9721..c3324146 100644 --- a/docs/API_docs/methods/messages_saveDraft.md +++ b/docs/API_docs/methods/messages_saveDraft.md @@ -25,10 +25,10 @@ description: messages.saveDraft parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_saveGif.md b/docs/API_docs/methods/messages_saveGif.md index 0bd648d8..ea2174ea 100644 --- a/docs/API_docs/methods/messages_saveGif.md +++ b/docs/API_docs/methods/messages_saveGif.md @@ -21,10 +21,10 @@ description: messages.saveGif parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_saveRecentSticker.md b/docs/API_docs/methods/messages_saveRecentSticker.md index ac212205..b1e76785 100644 --- a/docs/API_docs/methods/messages_saveRecentSticker.md +++ b/docs/API_docs/methods/messages_saveRecentSticker.md @@ -22,10 +22,10 @@ description: messages.saveRecentSticker parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_search.md b/docs/API_docs/methods/messages_search.md index fe53fb8c..05309dbf 100644 --- a/docs/API_docs/methods/messages_search.md +++ b/docs/API_docs/methods/messages_search.md @@ -27,10 +27,10 @@ description: messages.search parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_searchGifs.md b/docs/API_docs/methods/messages_searchGifs.md index 18ad844b..8a1de718 100644 --- a/docs/API_docs/methods/messages_searchGifs.md +++ b/docs/API_docs/methods/messages_searchGifs.md @@ -21,10 +21,10 @@ description: messages.searchGifs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_searchGlobal.md b/docs/API_docs/methods/messages_searchGlobal.md index aacdb99f..02d790e9 100644 --- a/docs/API_docs/methods/messages_searchGlobal.md +++ b/docs/API_docs/methods/messages_searchGlobal.md @@ -24,10 +24,10 @@ description: messages.searchGlobal parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_sendEncrypted.md b/docs/API_docs/methods/messages_sendEncrypted.md index f2c2c0c2..c3585580 100644 --- a/docs/API_docs/methods/messages_sendEncrypted.md +++ b/docs/API_docs/methods/messages_sendEncrypted.md @@ -21,10 +21,10 @@ description: messages.sendEncrypted parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_sendEncryptedFile.md b/docs/API_docs/methods/messages_sendEncryptedFile.md index a57a3dd8..40674df9 100644 --- a/docs/API_docs/methods/messages_sendEncryptedFile.md +++ b/docs/API_docs/methods/messages_sendEncryptedFile.md @@ -22,10 +22,10 @@ description: messages.sendEncryptedFile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_sendEncryptedService.md b/docs/API_docs/methods/messages_sendEncryptedService.md index 4041c4d0..8bfee571 100644 --- a/docs/API_docs/methods/messages_sendEncryptedService.md +++ b/docs/API_docs/methods/messages_sendEncryptedService.md @@ -21,10 +21,10 @@ description: messages.sendEncryptedService parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_sendInlineBotResult.md b/docs/API_docs/methods/messages_sendInlineBotResult.md index b2a5ab57..2d71d731 100644 --- a/docs/API_docs/methods/messages_sendInlineBotResult.md +++ b/docs/API_docs/methods/messages_sendInlineBotResult.md @@ -26,10 +26,10 @@ description: messages.sendInlineBotResult parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_sendMedia.md b/docs/API_docs/methods/messages_sendMedia.md index 56c95dba..df132dc9 100644 --- a/docs/API_docs/methods/messages_sendMedia.md +++ b/docs/API_docs/methods/messages_sendMedia.md @@ -26,10 +26,10 @@ description: messages.sendMedia parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; @@ -48,3 +48,9 @@ Or, if you're into Lua: Updates = messages.sendMedia({silent=Bool, background=Bool, clear_draft=Bool, peer=InputPeer, reply_to_msg_id=int, media=InputMedia, reply_markup=ReplyMarkup, }) ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/docs/API_docs/methods/messages_sendMessage.md b/docs/API_docs/methods/messages_sendMessage.md index 1433e320..e7f23e30 100644 --- a/docs/API_docs/methods/messages_sendMessage.md +++ b/docs/API_docs/methods/messages_sendMessage.md @@ -29,10 +29,10 @@ description: messages.sendMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; @@ -52,6 +52,12 @@ Updates = messages.sendMessage({no_webpage=Bool, silent=Bool, background=Bool, c ``` +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + + ## Usage of parse_mode: Set parse_mode to html to enable HTML parsing of the message. diff --git a/docs/API_docs/methods/messages_setBotCallbackAnswer.md b/docs/API_docs/methods/messages_setBotCallbackAnswer.md index 536e2892..73a43bf2 100644 --- a/docs/API_docs/methods/messages_setBotCallbackAnswer.md +++ b/docs/API_docs/methods/messages_setBotCallbackAnswer.md @@ -24,10 +24,10 @@ description: messages.setBotCallbackAnswer parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_setBotPrecheckoutResults.md b/docs/API_docs/methods/messages_setBotPrecheckoutResults.md index 515ce027..f75dcd63 100644 --- a/docs/API_docs/methods/messages_setBotPrecheckoutResults.md +++ b/docs/API_docs/methods/messages_setBotPrecheckoutResults.md @@ -22,10 +22,10 @@ description: messages.setBotPrecheckoutResults parameters, return type and examp ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_setBotShippingResults.md b/docs/API_docs/methods/messages_setBotShippingResults.md index 118eb562..1622d213 100644 --- a/docs/API_docs/methods/messages_setBotShippingResults.md +++ b/docs/API_docs/methods/messages_setBotShippingResults.md @@ -22,10 +22,10 @@ description: messages.setBotShippingResults parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_setEncryptedTyping.md b/docs/API_docs/methods/messages_setEncryptedTyping.md index 95364d49..ae718bba 100644 --- a/docs/API_docs/methods/messages_setEncryptedTyping.md +++ b/docs/API_docs/methods/messages_setEncryptedTyping.md @@ -21,10 +21,10 @@ description: messages.setEncryptedTyping parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_setGameScore.md b/docs/API_docs/methods/messages_setGameScore.md index 49427cbe..5d5231ea 100644 --- a/docs/API_docs/methods/messages_setGameScore.md +++ b/docs/API_docs/methods/messages_setGameScore.md @@ -25,10 +25,10 @@ description: messages.setGameScore parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_setInlineBotResults.md b/docs/API_docs/methods/messages_setInlineBotResults.md index a2cf64b7..ea653cd7 100644 --- a/docs/API_docs/methods/messages_setInlineBotResults.md +++ b/docs/API_docs/methods/messages_setInlineBotResults.md @@ -26,10 +26,10 @@ description: messages.setInlineBotResults parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_setInlineGameScore.md b/docs/API_docs/methods/messages_setInlineGameScore.md index 63f432e1..02082156 100644 --- a/docs/API_docs/methods/messages_setInlineGameScore.md +++ b/docs/API_docs/methods/messages_setInlineGameScore.md @@ -24,10 +24,10 @@ description: messages.setInlineGameScore parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_setTyping.md b/docs/API_docs/methods/messages_setTyping.md index 0ce5743d..75903c68 100644 --- a/docs/API_docs/methods/messages_setTyping.md +++ b/docs/API_docs/methods/messages_setTyping.md @@ -21,10 +21,10 @@ description: messages.setTyping parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_startBot.md b/docs/API_docs/methods/messages_startBot.md index 5f563224..bf79b142 100644 --- a/docs/API_docs/methods/messages_startBot.md +++ b/docs/API_docs/methods/messages_startBot.md @@ -22,10 +22,10 @@ description: messages.startBot parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_toggleChatAdmins.md b/docs/API_docs/methods/messages_toggleChatAdmins.md index 0ad6ba92..05d74e5a 100644 --- a/docs/API_docs/methods/messages_toggleChatAdmins.md +++ b/docs/API_docs/methods/messages_toggleChatAdmins.md @@ -21,10 +21,10 @@ description: messages.toggleChatAdmins parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_toggleDialogPin.md b/docs/API_docs/methods/messages_toggleDialogPin.md index 685d796b..3b5eafc8 100644 --- a/docs/API_docs/methods/messages_toggleDialogPin.md +++ b/docs/API_docs/methods/messages_toggleDialogPin.md @@ -21,10 +21,10 @@ description: messages.toggleDialogPin parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/messages_uninstallStickerSet.md b/docs/API_docs/methods/messages_uninstallStickerSet.md index 97fff059..5202b086 100644 --- a/docs/API_docs/methods/messages_uninstallStickerSet.md +++ b/docs/API_docs/methods/messages_uninstallStickerSet.md @@ -20,10 +20,10 @@ description: messages.uninstallStickerSet parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/payments_clearSavedInfo.md b/docs/API_docs/methods/payments_clearSavedInfo.md index 5f7b4088..1835a6d1 100644 --- a/docs/API_docs/methods/payments_clearSavedInfo.md +++ b/docs/API_docs/methods/payments_clearSavedInfo.md @@ -21,10 +21,10 @@ description: payments.clearSavedInfo parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/payments_getPaymentForm.md b/docs/API_docs/methods/payments_getPaymentForm.md index 4ad27873..fdfe9e47 100644 --- a/docs/API_docs/methods/payments_getPaymentForm.md +++ b/docs/API_docs/methods/payments_getPaymentForm.md @@ -20,10 +20,10 @@ description: payments.getPaymentForm parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/payments_getPaymentReceipt.md b/docs/API_docs/methods/payments_getPaymentReceipt.md index a21d7cbb..a85a2301 100644 --- a/docs/API_docs/methods/payments_getPaymentReceipt.md +++ b/docs/API_docs/methods/payments_getPaymentReceipt.md @@ -20,10 +20,10 @@ description: payments.getPaymentReceipt parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/payments_getSavedInfo.md b/docs/API_docs/methods/payments_getSavedInfo.md index cd55027e..946b3ebe 100644 --- a/docs/API_docs/methods/payments_getSavedInfo.md +++ b/docs/API_docs/methods/payments_getSavedInfo.md @@ -15,10 +15,10 @@ description: payments.getSavedInfo parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/payments_sendPaymentForm.md b/docs/API_docs/methods/payments_sendPaymentForm.md index 08f47c98..bb320757 100644 --- a/docs/API_docs/methods/payments_sendPaymentForm.md +++ b/docs/API_docs/methods/payments_sendPaymentForm.md @@ -23,10 +23,10 @@ description: payments.sendPaymentForm parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/payments_validateRequestedInfo.md b/docs/API_docs/methods/payments_validateRequestedInfo.md index d87dda63..e9b9073f 100644 --- a/docs/API_docs/methods/payments_validateRequestedInfo.md +++ b/docs/API_docs/methods/payments_validateRequestedInfo.md @@ -22,10 +22,10 @@ description: payments.validateRequestedInfo parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/phone_acceptCall.md b/docs/API_docs/methods/phone_acceptCall.md index cc45564a..a60949bf 100644 --- a/docs/API_docs/methods/phone_acceptCall.md +++ b/docs/API_docs/methods/phone_acceptCall.md @@ -22,10 +22,10 @@ description: phone.acceptCall parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/phone_confirmCall.md b/docs/API_docs/methods/phone_confirmCall.md index 2c0d5161..d827ff56 100644 --- a/docs/API_docs/methods/phone_confirmCall.md +++ b/docs/API_docs/methods/phone_confirmCall.md @@ -23,10 +23,10 @@ description: phone.confirmCall parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/phone_discardCall.md b/docs/API_docs/methods/phone_discardCall.md index c85d670b..25468457 100644 --- a/docs/API_docs/methods/phone_discardCall.md +++ b/docs/API_docs/methods/phone_discardCall.md @@ -23,10 +23,10 @@ description: phone.discardCall parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/phone_getCallConfig.md b/docs/API_docs/methods/phone_getCallConfig.md index 2a7ac04f..6eec6c6e 100644 --- a/docs/API_docs/methods/phone_getCallConfig.md +++ b/docs/API_docs/methods/phone_getCallConfig.md @@ -15,10 +15,10 @@ description: phone.getCallConfig parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/phone_receivedCall.md b/docs/API_docs/methods/phone_receivedCall.md index 7af92abc..793907ea 100644 --- a/docs/API_docs/methods/phone_receivedCall.md +++ b/docs/API_docs/methods/phone_receivedCall.md @@ -20,10 +20,10 @@ description: phone.receivedCall parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/phone_requestCall.md b/docs/API_docs/methods/phone_requestCall.md index e24caa05..bc5a4ca5 100644 --- a/docs/API_docs/methods/phone_requestCall.md +++ b/docs/API_docs/methods/phone_requestCall.md @@ -22,10 +22,10 @@ description: phone.requestCall parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/phone_saveCallDebug.md b/docs/API_docs/methods/phone_saveCallDebug.md index 3a4cbacb..260e2729 100644 --- a/docs/API_docs/methods/phone_saveCallDebug.md +++ b/docs/API_docs/methods/phone_saveCallDebug.md @@ -21,10 +21,10 @@ description: phone.saveCallDebug parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/phone_setCallRating.md b/docs/API_docs/methods/phone_setCallRating.md index c804f1cc..053b3ffb 100644 --- a/docs/API_docs/methods/phone_setCallRating.md +++ b/docs/API_docs/methods/phone_setCallRating.md @@ -22,10 +22,10 @@ description: phone.setCallRating parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/photos_deletePhotos.md b/docs/API_docs/methods/photos_deletePhotos.md index 6a717835..2d27b700 100644 --- a/docs/API_docs/methods/photos_deletePhotos.md +++ b/docs/API_docs/methods/photos_deletePhotos.md @@ -20,10 +20,10 @@ description: photos.deletePhotos parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/photos_getUserPhotos.md b/docs/API_docs/methods/photos_getUserPhotos.md index 4aa96dfa..0f50ee6f 100644 --- a/docs/API_docs/methods/photos_getUserPhotos.md +++ b/docs/API_docs/methods/photos_getUserPhotos.md @@ -23,10 +23,10 @@ description: photos.getUserPhotos parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/photos_updateProfilePhoto.md b/docs/API_docs/methods/photos_updateProfilePhoto.md index bdca3ef5..13443ab7 100644 --- a/docs/API_docs/methods/photos_updateProfilePhoto.md +++ b/docs/API_docs/methods/photos_updateProfilePhoto.md @@ -20,10 +20,10 @@ description: photos.updateProfilePhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/photos_uploadProfilePhoto.md b/docs/API_docs/methods/photos_uploadProfilePhoto.md index 5ebe5bfe..76f4514a 100644 --- a/docs/API_docs/methods/photos_uploadProfilePhoto.md +++ b/docs/API_docs/methods/photos_uploadProfilePhoto.md @@ -20,10 +20,10 @@ description: photos.uploadProfilePhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/ping.md b/docs/API_docs/methods/ping.md index 6adc0a47..5d8c9e40 100644 --- a/docs/API_docs/methods/ping.md +++ b/docs/API_docs/methods/ping.md @@ -20,10 +20,10 @@ description: ping parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/ping_delay_disconnect.md b/docs/API_docs/methods/ping_delay_disconnect.md index 668cc680..5506d409 100644 --- a/docs/API_docs/methods/ping_delay_disconnect.md +++ b/docs/API_docs/methods/ping_delay_disconnect.md @@ -21,10 +21,10 @@ description: ping_delay_disconnect parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/req_DH_params.md b/docs/API_docs/methods/req_DH_params.md index 19832a89..14549f8c 100644 --- a/docs/API_docs/methods/req_DH_params.md +++ b/docs/API_docs/methods/req_DH_params.md @@ -25,10 +25,10 @@ description: req_DH_params parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/req_pq.md b/docs/API_docs/methods/req_pq.md index f88fa975..5ca8eeb4 100644 --- a/docs/API_docs/methods/req_pq.md +++ b/docs/API_docs/methods/req_pq.md @@ -20,10 +20,10 @@ description: req_pq parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/rpc_drop_answer.md b/docs/API_docs/methods/rpc_drop_answer.md index a1b95fd0..15c23e3d 100644 --- a/docs/API_docs/methods/rpc_drop_answer.md +++ b/docs/API_docs/methods/rpc_drop_answer.md @@ -20,10 +20,10 @@ description: rpc_drop_answer parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/set_client_DH_params.md b/docs/API_docs/methods/set_client_DH_params.md index 0e4eaf65..a7447e99 100644 --- a/docs/API_docs/methods/set_client_DH_params.md +++ b/docs/API_docs/methods/set_client_DH_params.md @@ -22,10 +22,10 @@ description: set_client_DH_params parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/updates_getChannelDifference.md b/docs/API_docs/methods/updates_getChannelDifference.md index 03333e2c..20a16be2 100644 --- a/docs/API_docs/methods/updates_getChannelDifference.md +++ b/docs/API_docs/methods/updates_getChannelDifference.md @@ -24,10 +24,10 @@ description: updates.getChannelDifference parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/updates_getDifference.md b/docs/API_docs/methods/updates_getDifference.md index bc0e20cc..ae27a7b9 100644 --- a/docs/API_docs/methods/updates_getDifference.md +++ b/docs/API_docs/methods/updates_getDifference.md @@ -23,10 +23,10 @@ description: updates.getDifference parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/updates_getState.md b/docs/API_docs/methods/updates_getState.md index 5612ca79..53fc0c16 100644 --- a/docs/API_docs/methods/updates_getState.md +++ b/docs/API_docs/methods/updates_getState.md @@ -15,10 +15,10 @@ description: updates.getState parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/upload_getFile.md b/docs/API_docs/methods/upload_getFile.md index a2f3d961..ee35140a 100644 --- a/docs/API_docs/methods/upload_getFile.md +++ b/docs/API_docs/methods/upload_getFile.md @@ -22,10 +22,10 @@ description: upload.getFile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/upload_getWebFile.md b/docs/API_docs/methods/upload_getWebFile.md index 4d9d63ea..72b62698 100644 --- a/docs/API_docs/methods/upload_getWebFile.md +++ b/docs/API_docs/methods/upload_getWebFile.md @@ -22,10 +22,10 @@ description: upload.getWebFile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/upload_saveBigFilePart.md b/docs/API_docs/methods/upload_saveBigFilePart.md index 03641055..503d1b5c 100644 --- a/docs/API_docs/methods/upload_saveBigFilePart.md +++ b/docs/API_docs/methods/upload_saveBigFilePart.md @@ -23,10 +23,10 @@ description: upload.saveBigFilePart parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/upload_saveFilePart.md b/docs/API_docs/methods/upload_saveFilePart.md index 192412c8..d7f745aa 100644 --- a/docs/API_docs/methods/upload_saveFilePart.md +++ b/docs/API_docs/methods/upload_saveFilePart.md @@ -22,10 +22,10 @@ description: upload.saveFilePart parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/users_getFullUser.md b/docs/API_docs/methods/users_getFullUser.md index 864ae387..bcba7f3d 100644 --- a/docs/API_docs/methods/users_getFullUser.md +++ b/docs/API_docs/methods/users_getFullUser.md @@ -20,10 +20,10 @@ description: users.getFullUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/API_docs/methods/users_getUsers.md b/docs/API_docs/methods/users_getUsers.md index 34816478..e03fd2d6 100644 --- a/docs/API_docs/methods/users_getUsers.md +++ b/docs/API_docs/methods/users_getUsers.md @@ -20,10 +20,10 @@ description: users.getUsers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/MTProto_docs/methods/destroy_session.md b/docs/MTProto_docs/methods/destroy_session.md index 78132aef..12927fea 100644 --- a/docs/MTProto_docs/methods/destroy_session.md +++ b/docs/MTProto_docs/methods/destroy_session.md @@ -20,10 +20,10 @@ description: destroy_session parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/MTProto_docs/methods/get_future_salts.md b/docs/MTProto_docs/methods/get_future_salts.md index 4574802b..83d4d495 100644 --- a/docs/MTProto_docs/methods/get_future_salts.md +++ b/docs/MTProto_docs/methods/get_future_salts.md @@ -20,10 +20,10 @@ description: get_future_salts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/MTProto_docs/methods/http_wait.md b/docs/MTProto_docs/methods/http_wait.md index 2d439d4e..fe97f3a9 100644 --- a/docs/MTProto_docs/methods/http_wait.md +++ b/docs/MTProto_docs/methods/http_wait.md @@ -22,10 +22,10 @@ description: http_wait parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/MTProto_docs/methods/ping.md b/docs/MTProto_docs/methods/ping.md index 6adc0a47..5d8c9e40 100644 --- a/docs/MTProto_docs/methods/ping.md +++ b/docs/MTProto_docs/methods/ping.md @@ -20,10 +20,10 @@ description: ping parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/MTProto_docs/methods/ping_delay_disconnect.md b/docs/MTProto_docs/methods/ping_delay_disconnect.md index 668cc680..5506d409 100644 --- a/docs/MTProto_docs/methods/ping_delay_disconnect.md +++ b/docs/MTProto_docs/methods/ping_delay_disconnect.md @@ -21,10 +21,10 @@ description: ping_delay_disconnect parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/MTProto_docs/methods/req_DH_params.md b/docs/MTProto_docs/methods/req_DH_params.md index 1476e3e8..8c0d5cd3 100644 --- a/docs/MTProto_docs/methods/req_DH_params.md +++ b/docs/MTProto_docs/methods/req_DH_params.md @@ -25,10 +25,10 @@ description: req_DH_params parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/MTProto_docs/methods/req_pq.md b/docs/MTProto_docs/methods/req_pq.md index f88fa975..5ca8eeb4 100644 --- a/docs/MTProto_docs/methods/req_pq.md +++ b/docs/MTProto_docs/methods/req_pq.md @@ -20,10 +20,10 @@ description: req_pq parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/MTProto_docs/methods/rpc_drop_answer.md b/docs/MTProto_docs/methods/rpc_drop_answer.md index a1b95fd0..15c23e3d 100644 --- a/docs/MTProto_docs/methods/rpc_drop_answer.md +++ b/docs/MTProto_docs/methods/rpc_drop_answer.md @@ -20,10 +20,10 @@ description: rpc_drop_answer parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/MTProto_docs/methods/set_client_DH_params.md b/docs/MTProto_docs/methods/set_client_DH_params.md index 5b764bb2..1af13ca3 100644 --- a/docs/MTProto_docs/methods/set_client_DH_params.md +++ b/docs/MTProto_docs/methods/set_client_DH_params.md @@ -22,10 +22,10 @@ description: set_client_DH_params parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/constructors/inputInlineQueryResultAnimatedGif.md b/docs/TD_docs/constructors/inputInlineQueryResultAnimatedGif.md index a786e1bd..563eed4b 100644 --- a/docs/TD_docs/constructors/inputInlineQueryResultAnimatedGif.md +++ b/docs/TD_docs/constructors/inputInlineQueryResultAnimatedGif.md @@ -42,3 +42,9 @@ inputInlineQueryResultAnimatedGif={_='inputInlineQueryResultAnimatedGif', id=str ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/docs/TD_docs/constructors/inputInlineQueryResultAnimatedMpeg4.md b/docs/TD_docs/constructors/inputInlineQueryResultAnimatedMpeg4.md index ab7daf9c..2b8ba52e 100644 --- a/docs/TD_docs/constructors/inputInlineQueryResultAnimatedMpeg4.md +++ b/docs/TD_docs/constructors/inputInlineQueryResultAnimatedMpeg4.md @@ -42,3 +42,9 @@ inputInlineQueryResultAnimatedMpeg4={_='inputInlineQueryResultAnimatedMpeg4', id ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/docs/TD_docs/constructors/inputInlineQueryResultArticle.md b/docs/TD_docs/constructors/inputInlineQueryResultArticle.md index 3ea0f104..04c8cd1f 100644 --- a/docs/TD_docs/constructors/inputInlineQueryResultArticle.md +++ b/docs/TD_docs/constructors/inputInlineQueryResultArticle.md @@ -44,3 +44,9 @@ inputInlineQueryResultArticle={_='inputInlineQueryResultArticle', id=string, url ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/docs/TD_docs/constructors/inputInlineQueryResultAudio.md b/docs/TD_docs/constructors/inputInlineQueryResultAudio.md index c5c7678a..37d5a741 100644 --- a/docs/TD_docs/constructors/inputInlineQueryResultAudio.md +++ b/docs/TD_docs/constructors/inputInlineQueryResultAudio.md @@ -41,3 +41,9 @@ inputInlineQueryResultAudio={_='inputInlineQueryResultAudio', id=string, title=s ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/docs/TD_docs/constructors/inputInlineQueryResultContact.md b/docs/TD_docs/constructors/inputInlineQueryResultContact.md index 9ef59e8f..f721319f 100644 --- a/docs/TD_docs/constructors/inputInlineQueryResultContact.md +++ b/docs/TD_docs/constructors/inputInlineQueryResultContact.md @@ -41,3 +41,9 @@ inputInlineQueryResultContact={_='inputInlineQueryResultContact', id=string, con ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/docs/TD_docs/constructors/inputInlineQueryResultDocument.md b/docs/TD_docs/constructors/inputInlineQueryResultDocument.md index b1022cdf..efc9cd5d 100644 --- a/docs/TD_docs/constructors/inputInlineQueryResultDocument.md +++ b/docs/TD_docs/constructors/inputInlineQueryResultDocument.md @@ -44,3 +44,9 @@ inputInlineQueryResultDocument={_='inputInlineQueryResultDocument', id=string, t ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/docs/TD_docs/constructors/inputInlineQueryResultGame.md b/docs/TD_docs/constructors/inputInlineQueryResultGame.md index 65040577..3919422e 100644 --- a/docs/TD_docs/constructors/inputInlineQueryResultGame.md +++ b/docs/TD_docs/constructors/inputInlineQueryResultGame.md @@ -37,3 +37,9 @@ inputInlineQueryResultGame={_='inputInlineQueryResultGame', id=string, game_shor ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/docs/TD_docs/constructors/inputInlineQueryResultLocation.md b/docs/TD_docs/constructors/inputInlineQueryResultLocation.md index b4a61a54..beea62af 100644 --- a/docs/TD_docs/constructors/inputInlineQueryResultLocation.md +++ b/docs/TD_docs/constructors/inputInlineQueryResultLocation.md @@ -42,3 +42,9 @@ inputInlineQueryResultLocation={_='inputInlineQueryResultLocation', id=string, l ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/docs/TD_docs/constructors/inputInlineQueryResultPhoto.md b/docs/TD_docs/constructors/inputInlineQueryResultPhoto.md index 45d5d22a..235ceaba 100644 --- a/docs/TD_docs/constructors/inputInlineQueryResultPhoto.md +++ b/docs/TD_docs/constructors/inputInlineQueryResultPhoto.md @@ -43,3 +43,9 @@ inputInlineQueryResultPhoto={_='inputInlineQueryResultPhoto', id=string, title=s ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/docs/TD_docs/constructors/inputInlineQueryResultSticker.md b/docs/TD_docs/constructors/inputInlineQueryResultSticker.md index a54f7e5d..d4a63e77 100644 --- a/docs/TD_docs/constructors/inputInlineQueryResultSticker.md +++ b/docs/TD_docs/constructors/inputInlineQueryResultSticker.md @@ -41,3 +41,9 @@ inputInlineQueryResultSticker={_='inputInlineQueryResultSticker', id=string, thu ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/docs/TD_docs/constructors/inputInlineQueryResultVenue.md b/docs/TD_docs/constructors/inputInlineQueryResultVenue.md index 9cba1652..32ce4c1d 100644 --- a/docs/TD_docs/constructors/inputInlineQueryResultVenue.md +++ b/docs/TD_docs/constructors/inputInlineQueryResultVenue.md @@ -41,3 +41,9 @@ inputInlineQueryResultVenue={_='inputInlineQueryResultVenue', id=string, venue=v ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/docs/TD_docs/constructors/inputInlineQueryResultVideo.md b/docs/TD_docs/constructors/inputInlineQueryResultVideo.md index 0405e902..3b070252 100644 --- a/docs/TD_docs/constructors/inputInlineQueryResultVideo.md +++ b/docs/TD_docs/constructors/inputInlineQueryResultVideo.md @@ -45,3 +45,9 @@ inputInlineQueryResultVideo={_='inputInlineQueryResultVideo', id=string, title=s ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/docs/TD_docs/constructors/inputInlineQueryResultVoice.md b/docs/TD_docs/constructors/inputInlineQueryResultVoice.md index db70777b..5f4eef03 100644 --- a/docs/TD_docs/constructors/inputInlineQueryResultVoice.md +++ b/docs/TD_docs/constructors/inputInlineQueryResultVoice.md @@ -40,3 +40,9 @@ inputInlineQueryResultVoice={_='inputInlineQueryResultVoice', id=string, title=s ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/docs/TD_docs/constructors/message.md b/docs/TD_docs/constructors/message.md index 6989c4db..3c9ffe9f 100644 --- a/docs/TD_docs/constructors/message.md +++ b/docs/TD_docs/constructors/message.md @@ -51,3 +51,9 @@ message={_='message', id=long, sender_user_id=int, chat_id=long, send_state=Mess ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/docs/TD_docs/constructors/updateMessageEdited.md b/docs/TD_docs/constructors/updateMessageEdited.md index 154071ac..5104cc77 100644 --- a/docs/TD_docs/constructors/updateMessageEdited.md +++ b/docs/TD_docs/constructors/updateMessageEdited.md @@ -38,3 +38,9 @@ updateMessageEdited={_='updateMessageEdited', chat_id=long, message_id=long, edi ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/docs/TD_docs/methods/addChatMember.md b/docs/TD_docs/methods/addChatMember.md index 6431ac24..b65bec3e 100644 --- a/docs/TD_docs/methods/addChatMember.md +++ b/docs/TD_docs/methods/addChatMember.md @@ -24,10 +24,10 @@ Adds new member to chat. Members can't be added to private or secret chats. Memb ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/addChatMembers.md b/docs/TD_docs/methods/addChatMembers.md index 7f74855e..462cf8e3 100644 --- a/docs/TD_docs/methods/addChatMembers.md +++ b/docs/TD_docs/methods/addChatMembers.md @@ -23,10 +23,10 @@ Adds many new members to the chat. Currently, available only for channels. Can't ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/addRecentSticker.md b/docs/TD_docs/methods/addRecentSticker.md index 2f57d3b1..f2620abd 100644 --- a/docs/TD_docs/methods/addRecentSticker.md +++ b/docs/TD_docs/methods/addRecentSticker.md @@ -23,10 +23,10 @@ Manually adds new sticker to the list of recently used stickers. New sticker is ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/addRecentlyFoundChat.md b/docs/TD_docs/methods/addRecentlyFoundChat.md index 35743ed5..b2a06b8b 100644 --- a/docs/TD_docs/methods/addRecentlyFoundChat.md +++ b/docs/TD_docs/methods/addRecentlyFoundChat.md @@ -22,10 +22,10 @@ Adds chat to the list of recently found chats. The chat is added to the beginnin ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/addSavedAnimation.md b/docs/TD_docs/methods/addSavedAnimation.md index fde3e4f0..14e05596 100644 --- a/docs/TD_docs/methods/addSavedAnimation.md +++ b/docs/TD_docs/methods/addSavedAnimation.md @@ -22,10 +22,10 @@ Manually adds new animation to the list of saved animations. New animation is ad ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/answerCallbackQuery.md b/docs/TD_docs/methods/answerCallbackQuery.md index 9f740848..10ece3b8 100644 --- a/docs/TD_docs/methods/answerCallbackQuery.md +++ b/docs/TD_docs/methods/answerCallbackQuery.md @@ -26,10 +26,10 @@ Bots only. Sets result of the callback query ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/answerInlineQuery.md b/docs/TD_docs/methods/answerInlineQuery.md index 04d747eb..0c332634 100644 --- a/docs/TD_docs/methods/answerInlineQuery.md +++ b/docs/TD_docs/methods/answerInlineQuery.md @@ -28,10 +28,10 @@ Bots only. Sets result of the inline query ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/blockUser.md b/docs/TD_docs/methods/blockUser.md index e2f0b451..385c9f8e 100644 --- a/docs/TD_docs/methods/blockUser.md +++ b/docs/TD_docs/methods/blockUser.md @@ -22,10 +22,10 @@ Adds user to black list ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/cancelDownloadFile.md b/docs/TD_docs/methods/cancelDownloadFile.md index e88bcb35..5b68a312 100644 --- a/docs/TD_docs/methods/cancelDownloadFile.md +++ b/docs/TD_docs/methods/cancelDownloadFile.md @@ -22,10 +22,10 @@ Stops file downloading. If file already downloaded do nothing. ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/changeAbout.md b/docs/TD_docs/methods/changeAbout.md index 0b61f718..5e7d7811 100644 --- a/docs/TD_docs/methods/changeAbout.md +++ b/docs/TD_docs/methods/changeAbout.md @@ -22,10 +22,10 @@ Changes about information of logged in user ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/changeAccountTtl.md b/docs/TD_docs/methods/changeAccountTtl.md index a1316770..910e0054 100644 --- a/docs/TD_docs/methods/changeAccountTtl.md +++ b/docs/TD_docs/methods/changeAccountTtl.md @@ -22,10 +22,10 @@ Changes period of inactivity, after which the account of currently logged in use ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/changeChannelAbout.md b/docs/TD_docs/methods/changeChannelAbout.md index 6b2bd5b6..e3fd0d36 100644 --- a/docs/TD_docs/methods/changeChannelAbout.md +++ b/docs/TD_docs/methods/changeChannelAbout.md @@ -23,10 +23,10 @@ Changes information about the channel. Needs creator privileges in the broadcast ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/changeChannelUsername.md b/docs/TD_docs/methods/changeChannelUsername.md index e7743b1e..b68d14bf 100644 --- a/docs/TD_docs/methods/changeChannelUsername.md +++ b/docs/TD_docs/methods/changeChannelUsername.md @@ -23,10 +23,10 @@ Changes username of the channel. Needs creator privileges in the channel ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/changeChatDraftMessage.md b/docs/TD_docs/methods/changeChatDraftMessage.md index 867399e0..1dc550fb 100644 --- a/docs/TD_docs/methods/changeChatDraftMessage.md +++ b/docs/TD_docs/methods/changeChatDraftMessage.md @@ -23,10 +23,10 @@ Changes chat draft message ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/changeChatMemberStatus.md b/docs/TD_docs/methods/changeChatMemberStatus.md index ef4a52c7..620f3119 100644 --- a/docs/TD_docs/methods/changeChatMemberStatus.md +++ b/docs/TD_docs/methods/changeChatMemberStatus.md @@ -24,10 +24,10 @@ Changes status of the chat member, need appropriate privileges. In channel chats ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/changeChatPhoto.md b/docs/TD_docs/methods/changeChatPhoto.md index ed8a60a1..026e0d53 100644 --- a/docs/TD_docs/methods/changeChatPhoto.md +++ b/docs/TD_docs/methods/changeChatPhoto.md @@ -23,10 +23,10 @@ Changes chat photo. Photo can't be changed for private chats. Photo will not cha ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/changeChatReportSpamState.md b/docs/TD_docs/methods/changeChatReportSpamState.md index b9b85e34..7c0edf88 100644 --- a/docs/TD_docs/methods/changeChatReportSpamState.md +++ b/docs/TD_docs/methods/changeChatReportSpamState.md @@ -23,10 +23,10 @@ Reports chat as a spam chat or as not a spam chat. Can be used only if ChatRepor ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/changeChatTitle.md b/docs/TD_docs/methods/changeChatTitle.md index 9f27e439..b8324a31 100644 --- a/docs/TD_docs/methods/changeChatTitle.md +++ b/docs/TD_docs/methods/changeChatTitle.md @@ -23,10 +23,10 @@ Changes chat title. Title can't be changed for private chats. Title will not cha ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/changeName.md b/docs/TD_docs/methods/changeName.md index 3f364c26..eee5e5fa 100644 --- a/docs/TD_docs/methods/changeName.md +++ b/docs/TD_docs/methods/changeName.md @@ -23,10 +23,10 @@ Changes first and last names of logged in user. If something changes, updateUser ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/changePhoneNumber.md b/docs/TD_docs/methods/changePhoneNumber.md index 253544ac..07f6346c 100644 --- a/docs/TD_docs/methods/changePhoneNumber.md +++ b/docs/TD_docs/methods/changePhoneNumber.md @@ -24,10 +24,10 @@ Changes user's phone number and sends authentication code to the new user's phon ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/changeUsername.md b/docs/TD_docs/methods/changeUsername.md index 446327ee..16ae923a 100644 --- a/docs/TD_docs/methods/changeUsername.md +++ b/docs/TD_docs/methods/changeUsername.md @@ -22,10 +22,10 @@ Changes username of logged in user. If something changes, updateUser will be sen ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/checkAuthBotToken.md b/docs/TD_docs/methods/checkAuthBotToken.md index 4d01abcb..f00205f1 100644 --- a/docs/TD_docs/methods/checkAuthBotToken.md +++ b/docs/TD_docs/methods/checkAuthBotToken.md @@ -22,10 +22,10 @@ Check bot's authentication token to log in as a bot. Works only when authGetStat ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/checkAuthCode.md b/docs/TD_docs/methods/checkAuthCode.md index a6fe1317..e8a7d50e 100644 --- a/docs/TD_docs/methods/checkAuthCode.md +++ b/docs/TD_docs/methods/checkAuthCode.md @@ -24,10 +24,10 @@ Checks authentication code. Works only when authGetState returns authStateWaitCo ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/checkAuthPassword.md b/docs/TD_docs/methods/checkAuthPassword.md index fb5eac57..c34560c9 100644 --- a/docs/TD_docs/methods/checkAuthPassword.md +++ b/docs/TD_docs/methods/checkAuthPassword.md @@ -22,10 +22,10 @@ Checks password for correctness. Works only when authGetState returns authStateW ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/checkChangePhoneNumberCode.md b/docs/TD_docs/methods/checkChangePhoneNumberCode.md index a1823ae8..1e085714 100644 --- a/docs/TD_docs/methods/checkChangePhoneNumberCode.md +++ b/docs/TD_docs/methods/checkChangePhoneNumberCode.md @@ -22,10 +22,10 @@ Checks authentication code sent to change user's phone number. Returns authState ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/checkChatInviteLink.md b/docs/TD_docs/methods/checkChatInviteLink.md index 75dcaed5..41c2f1d2 100644 --- a/docs/TD_docs/methods/checkChatInviteLink.md +++ b/docs/TD_docs/methods/checkChatInviteLink.md @@ -22,10 +22,10 @@ Checks chat invite link for validness and returns information about the correspo ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/clearRecentStickers.md b/docs/TD_docs/methods/clearRecentStickers.md index f3198966..627c5682 100644 --- a/docs/TD_docs/methods/clearRecentStickers.md +++ b/docs/TD_docs/methods/clearRecentStickers.md @@ -22,10 +22,10 @@ Clears list of recently used stickers ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/closeChat.md b/docs/TD_docs/methods/closeChat.md index 72daa199..7d870b3d 100644 --- a/docs/TD_docs/methods/closeChat.md +++ b/docs/TD_docs/methods/closeChat.md @@ -22,10 +22,10 @@ Chat is closed by the user. Many useful activities depends on chat being opened ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/closeSecretChat.md b/docs/TD_docs/methods/closeSecretChat.md index 4cb4a551..a0bbea80 100644 --- a/docs/TD_docs/methods/closeSecretChat.md +++ b/docs/TD_docs/methods/closeSecretChat.md @@ -22,10 +22,10 @@ Closes secret chat ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/createChannelChat.md b/docs/TD_docs/methods/createChannelChat.md index 2acfcc4c..2690ce37 100644 --- a/docs/TD_docs/methods/createChannelChat.md +++ b/docs/TD_docs/methods/createChannelChat.md @@ -22,10 +22,10 @@ Returns existing chat corresponding to the known channel ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/createGroupChat.md b/docs/TD_docs/methods/createGroupChat.md index 514600bb..f953c384 100644 --- a/docs/TD_docs/methods/createGroupChat.md +++ b/docs/TD_docs/methods/createGroupChat.md @@ -22,10 +22,10 @@ Returns existing chat corresponding to the known group ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/createNewChannelChat.md b/docs/TD_docs/methods/createNewChannelChat.md index d2d9aa88..413f493c 100644 --- a/docs/TD_docs/methods/createNewChannelChat.md +++ b/docs/TD_docs/methods/createNewChannelChat.md @@ -24,10 +24,10 @@ Creates new channel chat and send corresponding messageChannelChatCreate, return ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/createNewGroupChat.md b/docs/TD_docs/methods/createNewGroupChat.md index 72dd2de9..742d7dee 100644 --- a/docs/TD_docs/methods/createNewGroupChat.md +++ b/docs/TD_docs/methods/createNewGroupChat.md @@ -23,10 +23,10 @@ Creates new group chat and send corresponding messageGroupChatCreate, returns cr ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/createNewSecretChat.md b/docs/TD_docs/methods/createNewSecretChat.md index e67d3ae0..007eac8f 100644 --- a/docs/TD_docs/methods/createNewSecretChat.md +++ b/docs/TD_docs/methods/createNewSecretChat.md @@ -22,10 +22,10 @@ Creates new secret chat, returns created chat ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/createPrivateChat.md b/docs/TD_docs/methods/createPrivateChat.md index 9ecfd6ca..3eaa749f 100644 --- a/docs/TD_docs/methods/createPrivateChat.md +++ b/docs/TD_docs/methods/createPrivateChat.md @@ -22,10 +22,10 @@ Returns existing chat corresponding to the given user ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/createSecretChat.md b/docs/TD_docs/methods/createSecretChat.md index 9bae053a..f046962b 100644 --- a/docs/TD_docs/methods/createSecretChat.md +++ b/docs/TD_docs/methods/createSecretChat.md @@ -22,10 +22,10 @@ Returns existing chat corresponding to the known secret chat ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/deleteAccount.md b/docs/TD_docs/methods/deleteAccount.md index 9cf80926..07182636 100644 --- a/docs/TD_docs/methods/deleteAccount.md +++ b/docs/TD_docs/methods/deleteAccount.md @@ -22,10 +22,10 @@ Deletes the account of currently logged in user, deleting from the server all in ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/deleteChannel.md b/docs/TD_docs/methods/deleteChannel.md index bce54add..154c313d 100644 --- a/docs/TD_docs/methods/deleteChannel.md +++ b/docs/TD_docs/methods/deleteChannel.md @@ -22,10 +22,10 @@ Deletes channel along with all messages in corresponding chat. Releases channel ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/deleteChatHistory.md b/docs/TD_docs/methods/deleteChatHistory.md index 76ff5b40..51a5e3d7 100644 --- a/docs/TD_docs/methods/deleteChatHistory.md +++ b/docs/TD_docs/methods/deleteChatHistory.md @@ -23,10 +23,10 @@ Deletes all messages in the chat. Can't be used for channel chats ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/deleteChatReplyMarkup.md b/docs/TD_docs/methods/deleteChatReplyMarkup.md index 41ebd3da..16584bdf 100644 --- a/docs/TD_docs/methods/deleteChatReplyMarkup.md +++ b/docs/TD_docs/methods/deleteChatReplyMarkup.md @@ -23,10 +23,10 @@ Deletes default reply markup from chat. This method needs to be called after one ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/deleteContacts.md b/docs/TD_docs/methods/deleteContacts.md index dc08727e..79320282 100644 --- a/docs/TD_docs/methods/deleteContacts.md +++ b/docs/TD_docs/methods/deleteContacts.md @@ -22,10 +22,10 @@ Deletes users from contacts list ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/deleteMessages.md b/docs/TD_docs/methods/deleteMessages.md index 84b734ef..f1c652df 100644 --- a/docs/TD_docs/methods/deleteMessages.md +++ b/docs/TD_docs/methods/deleteMessages.md @@ -23,10 +23,10 @@ Deletes messages. UpdateDeleteMessages will not be sent for messages deleted thr ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/deleteMessagesFromUser.md b/docs/TD_docs/methods/deleteMessagesFromUser.md index 5d65b5b2..4488b15a 100644 --- a/docs/TD_docs/methods/deleteMessagesFromUser.md +++ b/docs/TD_docs/methods/deleteMessagesFromUser.md @@ -23,10 +23,10 @@ Deletes all messages in the chat sent by the specified user. Works only in super ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/deleteProfilePhoto.md b/docs/TD_docs/methods/deleteProfilePhoto.md index 753b6da5..49814049 100644 --- a/docs/TD_docs/methods/deleteProfilePhoto.md +++ b/docs/TD_docs/methods/deleteProfilePhoto.md @@ -22,10 +22,10 @@ Deletes profile photo. If something changes, updateUser will be sent ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/deleteRecentSticker.md b/docs/TD_docs/methods/deleteRecentSticker.md index 3b2bd170..ef5acf70 100644 --- a/docs/TD_docs/methods/deleteRecentSticker.md +++ b/docs/TD_docs/methods/deleteRecentSticker.md @@ -23,10 +23,10 @@ Removes a sticker from the list of recently used stickers ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/deleteRecentlyFoundChat.md b/docs/TD_docs/methods/deleteRecentlyFoundChat.md index 0e17a15b..136f036b 100644 --- a/docs/TD_docs/methods/deleteRecentlyFoundChat.md +++ b/docs/TD_docs/methods/deleteRecentlyFoundChat.md @@ -22,10 +22,10 @@ Deletes chat from the list of recently found chats ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/deleteRecentlyFoundChats.md b/docs/TD_docs/methods/deleteRecentlyFoundChats.md index 7e772ae6..7fe52acf 100644 --- a/docs/TD_docs/methods/deleteRecentlyFoundChats.md +++ b/docs/TD_docs/methods/deleteRecentlyFoundChats.md @@ -21,10 +21,10 @@ Clears list of recently found chats ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/deleteSavedAnimation.md b/docs/TD_docs/methods/deleteSavedAnimation.md index 6e35fd34..0d60b4d6 100644 --- a/docs/TD_docs/methods/deleteSavedAnimation.md +++ b/docs/TD_docs/methods/deleteSavedAnimation.md @@ -22,10 +22,10 @@ Removes animation from the list of saved animations ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/downloadFile.md b/docs/TD_docs/methods/downloadFile.md index c0b23f69..93dcb231 100644 --- a/docs/TD_docs/methods/downloadFile.md +++ b/docs/TD_docs/methods/downloadFile.md @@ -22,10 +22,10 @@ Asynchronously downloads file from cloud. Updates updateFileProgress will notify ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/editInlineMessageCaption.md b/docs/TD_docs/methods/editInlineMessageCaption.md index b50b59d3..fbffd586 100644 --- a/docs/TD_docs/methods/editInlineMessageCaption.md +++ b/docs/TD_docs/methods/editInlineMessageCaption.md @@ -24,10 +24,10 @@ Bots only. Edits caption of an inline message content sent via bot ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; @@ -46,3 +46,9 @@ Or, if you're into Lua: Ok = editInlineMessageCaption({inline_message_id=string, reply_markup=ReplyMarkup, caption=string, }) ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/docs/TD_docs/methods/editInlineMessageReplyMarkup.md b/docs/TD_docs/methods/editInlineMessageReplyMarkup.md index d4085f43..9d101781 100644 --- a/docs/TD_docs/methods/editInlineMessageReplyMarkup.md +++ b/docs/TD_docs/methods/editInlineMessageReplyMarkup.md @@ -23,10 +23,10 @@ Bots only. Edits reply markup of an inline message sent via bot ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; @@ -45,3 +45,9 @@ Or, if you're into Lua: Ok = editInlineMessageReplyMarkup({inline_message_id=string, reply_markup=ReplyMarkup, }) ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/docs/TD_docs/methods/editInlineMessageText.md b/docs/TD_docs/methods/editInlineMessageText.md index cbe4d4d4..00bc3a1c 100644 --- a/docs/TD_docs/methods/editInlineMessageText.md +++ b/docs/TD_docs/methods/editInlineMessageText.md @@ -24,10 +24,10 @@ Bots only. Edits text of an inline text or game message sent via bot ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; @@ -46,3 +46,9 @@ Or, if you're into Lua: Ok = editInlineMessageText({inline_message_id=string, reply_markup=ReplyMarkup, input_message_content=InputMessageContent, }) ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/docs/TD_docs/methods/editMessageCaption.md b/docs/TD_docs/methods/editMessageCaption.md index 57d5f932..da5c035d 100644 --- a/docs/TD_docs/methods/editMessageCaption.md +++ b/docs/TD_docs/methods/editMessageCaption.md @@ -25,10 +25,10 @@ Edits message content caption. Non-bots can edit message in a limited period of ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; @@ -47,3 +47,9 @@ Or, if you're into Lua: Message = editMessageCaption({chat_id=long, message_id=long, reply_markup=ReplyMarkup, caption=string, }) ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/docs/TD_docs/methods/editMessageReplyMarkup.md b/docs/TD_docs/methods/editMessageReplyMarkup.md index 3a51fc4a..95bbb483 100644 --- a/docs/TD_docs/methods/editMessageReplyMarkup.md +++ b/docs/TD_docs/methods/editMessageReplyMarkup.md @@ -24,10 +24,10 @@ Bots only. Edits message reply markup. Returns edited message after edit is comp ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; @@ -46,3 +46,9 @@ Or, if you're into Lua: Message = editMessageReplyMarkup({chat_id=long, message_id=long, reply_markup=ReplyMarkup, }) ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/docs/TD_docs/methods/editMessageText.md b/docs/TD_docs/methods/editMessageText.md index 2337086a..3b9805ca 100644 --- a/docs/TD_docs/methods/editMessageText.md +++ b/docs/TD_docs/methods/editMessageText.md @@ -25,10 +25,10 @@ Edits text of text or game message. Non-bots can edit message in a limited perio ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; @@ -47,3 +47,9 @@ Or, if you're into Lua: Message = editMessageText({chat_id=long, message_id=long, reply_markup=ReplyMarkup, input_message_content=InputMessageContent, }) ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/docs/TD_docs/methods/exportChatInviteLink.md b/docs/TD_docs/methods/exportChatInviteLink.md index e65366e4..2f5a104c 100644 --- a/docs/TD_docs/methods/exportChatInviteLink.md +++ b/docs/TD_docs/methods/exportChatInviteLink.md @@ -22,10 +22,10 @@ Generates new chat invite link, previously generated link is revoked. Available ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/finishFileGeneration.md b/docs/TD_docs/methods/finishFileGeneration.md index 185031be..fae36f88 100644 --- a/docs/TD_docs/methods/finishFileGeneration.md +++ b/docs/TD_docs/methods/finishFileGeneration.md @@ -22,10 +22,10 @@ Finishes file generation ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/forwardMessages.md b/docs/TD_docs/methods/forwardMessages.md index 044e29a3..fd217f71 100644 --- a/docs/TD_docs/methods/forwardMessages.md +++ b/docs/TD_docs/methods/forwardMessages.md @@ -26,10 +26,10 @@ Forwards previously sent messages. Returns forwarded messages in the same order ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getAccountTtl.md b/docs/TD_docs/methods/getAccountTtl.md index 8652e860..c7c8b955 100644 --- a/docs/TD_docs/methods/getAccountTtl.md +++ b/docs/TD_docs/methods/getAccountTtl.md @@ -21,10 +21,10 @@ Returns period of inactivity, after which the account of currently logged in use ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getActiveSessions.md b/docs/TD_docs/methods/getActiveSessions.md index a4daa9c3..876a6897 100644 --- a/docs/TD_docs/methods/getActiveSessions.md +++ b/docs/TD_docs/methods/getActiveSessions.md @@ -21,10 +21,10 @@ Returns all active sessions of logged in user ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getArchivedStickerSets.md b/docs/TD_docs/methods/getArchivedStickerSets.md index 2d0a7fb3..d66def4d 100644 --- a/docs/TD_docs/methods/getArchivedStickerSets.md +++ b/docs/TD_docs/methods/getArchivedStickerSets.md @@ -24,10 +24,10 @@ Returns list of archived sticker sets ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getAttachedStickerSets.md b/docs/TD_docs/methods/getAttachedStickerSets.md index 986f63b0..1fbbc742 100644 --- a/docs/TD_docs/methods/getAttachedStickerSets.md +++ b/docs/TD_docs/methods/getAttachedStickerSets.md @@ -22,10 +22,10 @@ Returns list of sticker sets attached to a file, currently only photos and video ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getAuthState.md b/docs/TD_docs/methods/getAuthState.md index d575df15..6bc0143d 100644 --- a/docs/TD_docs/methods/getAuthState.md +++ b/docs/TD_docs/methods/getAuthState.md @@ -21,10 +21,10 @@ Returns current authorization state, offline request ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getBlockedUsers.md b/docs/TD_docs/methods/getBlockedUsers.md index 51b2a5b8..bc2d2f79 100644 --- a/docs/TD_docs/methods/getBlockedUsers.md +++ b/docs/TD_docs/methods/getBlockedUsers.md @@ -23,10 +23,10 @@ Returns users blocked by the current user ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getCallbackQueryAnswer.md b/docs/TD_docs/methods/getCallbackQueryAnswer.md index 99c413a0..491f62ac 100644 --- a/docs/TD_docs/methods/getCallbackQueryAnswer.md +++ b/docs/TD_docs/methods/getCallbackQueryAnswer.md @@ -24,10 +24,10 @@ Sends callback query to a bot and returns answer to it. Unavailable for bots ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getChannel.md b/docs/TD_docs/methods/getChannel.md index f67c03a1..a90ff419 100644 --- a/docs/TD_docs/methods/getChannel.md +++ b/docs/TD_docs/methods/getChannel.md @@ -22,10 +22,10 @@ Returns information about a channel by its identifier, offline request if curren ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getChannelFull.md b/docs/TD_docs/methods/getChannelFull.md index 967150de..b11f3cb3 100644 --- a/docs/TD_docs/methods/getChannelFull.md +++ b/docs/TD_docs/methods/getChannelFull.md @@ -22,10 +22,10 @@ Returns full information about a channel by its identifier, cached for at most 1 ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getChannelMembers.md b/docs/TD_docs/methods/getChannelMembers.md index da6a78eb..49065d08 100644 --- a/docs/TD_docs/methods/getChannelMembers.md +++ b/docs/TD_docs/methods/getChannelMembers.md @@ -25,10 +25,10 @@ Returns information about channel members or kicked from channel users. Can be u ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getChat.md b/docs/TD_docs/methods/getChat.md index a5cac85a..11ee8c1e 100644 --- a/docs/TD_docs/methods/getChat.md +++ b/docs/TD_docs/methods/getChat.md @@ -22,10 +22,10 @@ Returns information about a chat by its identifier, offline request if current u ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getChatHistory.md b/docs/TD_docs/methods/getChatHistory.md index 4f69ec4d..b445852e 100644 --- a/docs/TD_docs/methods/getChatHistory.md +++ b/docs/TD_docs/methods/getChatHistory.md @@ -25,10 +25,10 @@ Returns messages in a chat. Automatically calls openChat. Returns result in reve ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getChatMember.md b/docs/TD_docs/methods/getChatMember.md index 4b9284cc..0dd9d1b5 100644 --- a/docs/TD_docs/methods/getChatMember.md +++ b/docs/TD_docs/methods/getChatMember.md @@ -23,10 +23,10 @@ Returns information about one participant of the chat ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getChatReportSpamState.md b/docs/TD_docs/methods/getChatReportSpamState.md index a823129f..a62d9902 100644 --- a/docs/TD_docs/methods/getChatReportSpamState.md +++ b/docs/TD_docs/methods/getChatReportSpamState.md @@ -22,10 +22,10 @@ Returns current chat report spam state ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getChats.md b/docs/TD_docs/methods/getChats.md index 7147e055..5d952090 100644 --- a/docs/TD_docs/methods/getChats.md +++ b/docs/TD_docs/methods/getChats.md @@ -24,10 +24,10 @@ Returns list of chats in the right order, chats are sorted by (order, chat_id) i ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getCommonChats.md b/docs/TD_docs/methods/getCommonChats.md index 8a0b00b2..70be007a 100644 --- a/docs/TD_docs/methods/getCommonChats.md +++ b/docs/TD_docs/methods/getCommonChats.md @@ -24,10 +24,10 @@ Returns list of common chats with an other given user. Chats are sorted by their ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getCreatedPublicChannels.md b/docs/TD_docs/methods/getCreatedPublicChannels.md index bcdbf946..0b017d53 100644 --- a/docs/TD_docs/methods/getCreatedPublicChannels.md +++ b/docs/TD_docs/methods/getCreatedPublicChannels.md @@ -21,10 +21,10 @@ Returns list of created public channels ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getDeviceTokens.md b/docs/TD_docs/methods/getDeviceTokens.md index 26702357..50f8ed4d 100644 --- a/docs/TD_docs/methods/getDeviceTokens.md +++ b/docs/TD_docs/methods/getDeviceTokens.md @@ -21,10 +21,10 @@ Returns list of used device tokens ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getFile.md b/docs/TD_docs/methods/getFile.md index 2348cf25..73d4eae1 100644 --- a/docs/TD_docs/methods/getFile.md +++ b/docs/TD_docs/methods/getFile.md @@ -22,10 +22,10 @@ Returns information about a file, offline request ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getFilePersistent.md b/docs/TD_docs/methods/getFilePersistent.md index d1cf5d06..90c77e0f 100644 --- a/docs/TD_docs/methods/getFilePersistent.md +++ b/docs/TD_docs/methods/getFilePersistent.md @@ -22,10 +22,10 @@ Returns information about a file by its persistent id, offline request ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getGameHighScores.md b/docs/TD_docs/methods/getGameHighScores.md index df1ced3a..629a1a99 100644 --- a/docs/TD_docs/methods/getGameHighScores.md +++ b/docs/TD_docs/methods/getGameHighScores.md @@ -24,10 +24,10 @@ Bots only. Returns game high scores and some part of the score table around of t ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getGroup.md b/docs/TD_docs/methods/getGroup.md index 10e003fc..81f3e7fa 100644 --- a/docs/TD_docs/methods/getGroup.md +++ b/docs/TD_docs/methods/getGroup.md @@ -22,10 +22,10 @@ Returns information about a group by its identifier, offline request if current ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getGroupFull.md b/docs/TD_docs/methods/getGroupFull.md index 2405a536..a4cbb982 100644 --- a/docs/TD_docs/methods/getGroupFull.md +++ b/docs/TD_docs/methods/getGroupFull.md @@ -22,10 +22,10 @@ Returns full information about a group by its identifier ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getInlineGameHighScores.md b/docs/TD_docs/methods/getInlineGameHighScores.md index ec916eac..bf9a73b3 100644 --- a/docs/TD_docs/methods/getInlineGameHighScores.md +++ b/docs/TD_docs/methods/getInlineGameHighScores.md @@ -23,10 +23,10 @@ Bots only. Returns game high scores and some part of the score table around of t ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getInlineQueryResults.md b/docs/TD_docs/methods/getInlineQueryResults.md index 796c739d..cd061570 100644 --- a/docs/TD_docs/methods/getInlineQueryResults.md +++ b/docs/TD_docs/methods/getInlineQueryResults.md @@ -26,10 +26,10 @@ Sends inline query to a bot and returns its results. Unavailable for bots ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getMe.md b/docs/TD_docs/methods/getMe.md index 088191a4..8ed92c83 100644 --- a/docs/TD_docs/methods/getMe.md +++ b/docs/TD_docs/methods/getMe.md @@ -21,10 +21,10 @@ Returns current logged in user ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getMessage.md b/docs/TD_docs/methods/getMessage.md index 44ec6a0c..c23eb3d6 100644 --- a/docs/TD_docs/methods/getMessage.md +++ b/docs/TD_docs/methods/getMessage.md @@ -23,10 +23,10 @@ Returns information about a message ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getMessages.md b/docs/TD_docs/methods/getMessages.md index 1b843c1b..daf3c61a 100644 --- a/docs/TD_docs/methods/getMessages.md +++ b/docs/TD_docs/methods/getMessages.md @@ -23,10 +23,10 @@ Returns information about messages. If message is not found, returns null on the ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getNotificationSettings.md b/docs/TD_docs/methods/getNotificationSettings.md index bb4ae4b7..df6d9b28 100644 --- a/docs/TD_docs/methods/getNotificationSettings.md +++ b/docs/TD_docs/methods/getNotificationSettings.md @@ -22,10 +22,10 @@ Returns notification settings for a given scope ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getOption.md b/docs/TD_docs/methods/getOption.md index 20509532..1123d0c3 100644 --- a/docs/TD_docs/methods/getOption.md +++ b/docs/TD_docs/methods/getOption.md @@ -22,10 +22,10 @@ Returns value of an option by its name. See list of available options on https: ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getPasswordState.md b/docs/TD_docs/methods/getPasswordState.md index 9e1f269b..7ccf0a6f 100644 --- a/docs/TD_docs/methods/getPasswordState.md +++ b/docs/TD_docs/methods/getPasswordState.md @@ -21,10 +21,10 @@ Returns current state of two-step verification ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getPrivacy.md b/docs/TD_docs/methods/getPrivacy.md index 88a20acb..dd52a73c 100644 --- a/docs/TD_docs/methods/getPrivacy.md +++ b/docs/TD_docs/methods/getPrivacy.md @@ -22,10 +22,10 @@ Returns current privacy settings ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getRecentInlineBots.md b/docs/TD_docs/methods/getRecentInlineBots.md index 299995cf..89260c69 100644 --- a/docs/TD_docs/methods/getRecentInlineBots.md +++ b/docs/TD_docs/methods/getRecentInlineBots.md @@ -21,10 +21,10 @@ Returns up to 20 recently used inline bots in the order of the last usage ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getRecentStickers.md b/docs/TD_docs/methods/getRecentStickers.md index fa6f6407..163b81a7 100644 --- a/docs/TD_docs/methods/getRecentStickers.md +++ b/docs/TD_docs/methods/getRecentStickers.md @@ -22,10 +22,10 @@ Returns list of recently used stickers ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getRecoveryEmail.md b/docs/TD_docs/methods/getRecoveryEmail.md index ec6f689c..bb814f14 100644 --- a/docs/TD_docs/methods/getRecoveryEmail.md +++ b/docs/TD_docs/methods/getRecoveryEmail.md @@ -22,10 +22,10 @@ Returns set up recovery email. This method can be used to verify a password prov ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getSavedAnimations.md b/docs/TD_docs/methods/getSavedAnimations.md index d8df4412..dcba01dc 100644 --- a/docs/TD_docs/methods/getSavedAnimations.md +++ b/docs/TD_docs/methods/getSavedAnimations.md @@ -21,10 +21,10 @@ Returns saved animations ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getSecretChat.md b/docs/TD_docs/methods/getSecretChat.md index ba84b497..ccf94a97 100644 --- a/docs/TD_docs/methods/getSecretChat.md +++ b/docs/TD_docs/methods/getSecretChat.md @@ -22,10 +22,10 @@ Returns information about a secret chat by its identifier, offline request ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getStickerEmojis.md b/docs/TD_docs/methods/getStickerEmojis.md index 3449ce53..3eed335c 100644 --- a/docs/TD_docs/methods/getStickerEmojis.md +++ b/docs/TD_docs/methods/getStickerEmojis.md @@ -22,10 +22,10 @@ Returns emojis corresponding to a sticker ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getStickerSet.md b/docs/TD_docs/methods/getStickerSet.md index bf628a63..46ba3a61 100644 --- a/docs/TD_docs/methods/getStickerSet.md +++ b/docs/TD_docs/methods/getStickerSet.md @@ -22,10 +22,10 @@ Returns information about sticker set by its identifier ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getStickerSets.md b/docs/TD_docs/methods/getStickerSets.md index bcd2df38..e03529fb 100644 --- a/docs/TD_docs/methods/getStickerSets.md +++ b/docs/TD_docs/methods/getStickerSets.md @@ -22,10 +22,10 @@ Returns list of installed sticker sets without archived sticker sets ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getStickers.md b/docs/TD_docs/methods/getStickers.md index 1e502c7f..eb01692d 100644 --- a/docs/TD_docs/methods/getStickers.md +++ b/docs/TD_docs/methods/getStickers.md @@ -22,10 +22,10 @@ Returns stickers corresponding to given emoji ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getSupportUser.md b/docs/TD_docs/methods/getSupportUser.md index 3e45d55e..b4796140 100644 --- a/docs/TD_docs/methods/getSupportUser.md +++ b/docs/TD_docs/methods/getSupportUser.md @@ -21,10 +21,10 @@ Returns user that can be contacted to get support ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getTrendingStickerSets.md b/docs/TD_docs/methods/getTrendingStickerSets.md index 453bb9da..ff1fc0c1 100644 --- a/docs/TD_docs/methods/getTrendingStickerSets.md +++ b/docs/TD_docs/methods/getTrendingStickerSets.md @@ -21,10 +21,10 @@ Returns list of trending sticker sets ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getUser.md b/docs/TD_docs/methods/getUser.md index 0c1cb481..b399bf64 100644 --- a/docs/TD_docs/methods/getUser.md +++ b/docs/TD_docs/methods/getUser.md @@ -22,10 +22,10 @@ Returns information about a user by its identifier, offline request if current u ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getUserFull.md b/docs/TD_docs/methods/getUserFull.md index 7ed341b4..c8e128b9 100644 --- a/docs/TD_docs/methods/getUserFull.md +++ b/docs/TD_docs/methods/getUserFull.md @@ -22,10 +22,10 @@ Returns full information about a user by its identifier ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getUserProfilePhotos.md b/docs/TD_docs/methods/getUserProfilePhotos.md index 05be4ae3..00e5d676 100644 --- a/docs/TD_docs/methods/getUserProfilePhotos.md +++ b/docs/TD_docs/methods/getUserProfilePhotos.md @@ -24,10 +24,10 @@ Returns profile photos of the user. Result of this query can't be invalidated, s ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getWallpapers.md b/docs/TD_docs/methods/getWallpapers.md index 84263c87..1f6d17aa 100644 --- a/docs/TD_docs/methods/getWallpapers.md +++ b/docs/TD_docs/methods/getWallpapers.md @@ -21,10 +21,10 @@ Returns background wallpapers ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/getWebPagePreview.md b/docs/TD_docs/methods/getWebPagePreview.md index bc7aecab..27662a45 100644 --- a/docs/TD_docs/methods/getWebPagePreview.md +++ b/docs/TD_docs/methods/getWebPagePreview.md @@ -22,10 +22,10 @@ Get web page preview by text of the message. Do not call this function to often ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/importChatInviteLink.md b/docs/TD_docs/methods/importChatInviteLink.md index a9c0fa42..9d99f896 100644 --- a/docs/TD_docs/methods/importChatInviteLink.md +++ b/docs/TD_docs/methods/importChatInviteLink.md @@ -22,10 +22,10 @@ Imports chat invite link, adds current user to a chat if possible. Member will n ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/importContacts.md b/docs/TD_docs/methods/importContacts.md index cdefb8de..b1c6c2f9 100644 --- a/docs/TD_docs/methods/importContacts.md +++ b/docs/TD_docs/methods/importContacts.md @@ -22,10 +22,10 @@ Adds new contacts/edits existing contacts, contacts user identifiers are ignored ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/migrateGroupChatToChannelChat.md b/docs/TD_docs/methods/migrateGroupChatToChannelChat.md index 550d6c4a..cf65de52 100644 --- a/docs/TD_docs/methods/migrateGroupChatToChannelChat.md +++ b/docs/TD_docs/methods/migrateGroupChatToChannelChat.md @@ -22,10 +22,10 @@ Creates new channel supergroup chat from existing group chat and send correspond ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/openChat.md b/docs/TD_docs/methods/openChat.md index 6a330122..0e32b0c0 100644 --- a/docs/TD_docs/methods/openChat.md +++ b/docs/TD_docs/methods/openChat.md @@ -22,10 +22,10 @@ Chat is opened by the user. Many useful activities depends on chat being opened ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/openMessageContent.md b/docs/TD_docs/methods/openMessageContent.md index 620e76b2..2cba01c3 100644 --- a/docs/TD_docs/methods/openMessageContent.md +++ b/docs/TD_docs/methods/openMessageContent.md @@ -23,10 +23,10 @@ Message content is opened, for example the user has opened a photo, a video, a d ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/pinChannelMessage.md b/docs/TD_docs/methods/pinChannelMessage.md index 82a7a6ca..a6adbc6c 100644 --- a/docs/TD_docs/methods/pinChannelMessage.md +++ b/docs/TD_docs/methods/pinChannelMessage.md @@ -24,10 +24,10 @@ Pins a message in a supergroup channel chat. Needs editor privileges in the chan ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/recoverAuthPassword.md b/docs/TD_docs/methods/recoverAuthPassword.md index 0026084f..b09f1596 100644 --- a/docs/TD_docs/methods/recoverAuthPassword.md +++ b/docs/TD_docs/methods/recoverAuthPassword.md @@ -22,10 +22,10 @@ Recovers password with recovery code sent to email. Works only when authGetState ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/recoverPassword.md b/docs/TD_docs/methods/recoverPassword.md index 41db854f..11189a38 100644 --- a/docs/TD_docs/methods/recoverPassword.md +++ b/docs/TD_docs/methods/recoverPassword.md @@ -22,10 +22,10 @@ Recovers password with recovery code sent to email ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/registerDevice.md b/docs/TD_docs/methods/registerDevice.md index 6a39c530..886d347f 100644 --- a/docs/TD_docs/methods/registerDevice.md +++ b/docs/TD_docs/methods/registerDevice.md @@ -22,10 +22,10 @@ Registers current used device for receiving push notifications ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/reorderStickerSets.md b/docs/TD_docs/methods/reorderStickerSets.md index b7e1ca21..5bac1fa9 100644 --- a/docs/TD_docs/methods/reorderStickerSets.md +++ b/docs/TD_docs/methods/reorderStickerSets.md @@ -23,10 +23,10 @@ Changes the order of installed sticker sets ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/reportChannelSpam.md b/docs/TD_docs/methods/reportChannelSpam.md index a616878d..8a4e5fd3 100644 --- a/docs/TD_docs/methods/reportChannelSpam.md +++ b/docs/TD_docs/methods/reportChannelSpam.md @@ -24,10 +24,10 @@ Reports some supergroup channel messages from a user as spam messages ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/requestAuthPasswordRecovery.md b/docs/TD_docs/methods/requestAuthPasswordRecovery.md index 232d4844..e905ba6b 100644 --- a/docs/TD_docs/methods/requestAuthPasswordRecovery.md +++ b/docs/TD_docs/methods/requestAuthPasswordRecovery.md @@ -21,10 +21,10 @@ Requests to send password recovery code to email. Works only when authGetState r ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/requestPasswordRecovery.md b/docs/TD_docs/methods/requestPasswordRecovery.md index 2c029081..cae88a14 100644 --- a/docs/TD_docs/methods/requestPasswordRecovery.md +++ b/docs/TD_docs/methods/requestPasswordRecovery.md @@ -21,10 +21,10 @@ Requests to send password recovery code to email ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/resendAuthCode.md b/docs/TD_docs/methods/resendAuthCode.md index 54a3054e..e182b949 100644 --- a/docs/TD_docs/methods/resendAuthCode.md +++ b/docs/TD_docs/methods/resendAuthCode.md @@ -21,10 +21,10 @@ Resends authentication code to the user. Works only when authGetState returns au ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/resendChangePhoneNumberCode.md b/docs/TD_docs/methods/resendChangePhoneNumberCode.md index 715ab215..8b6ab36b 100644 --- a/docs/TD_docs/methods/resendChangePhoneNumberCode.md +++ b/docs/TD_docs/methods/resendChangePhoneNumberCode.md @@ -21,10 +21,10 @@ Resends authentication code sent to change user's phone number. Wotks only if in ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/resetAllNotificationSettings.md b/docs/TD_docs/methods/resetAllNotificationSettings.md index 5842ec81..67406ec5 100644 --- a/docs/TD_docs/methods/resetAllNotificationSettings.md +++ b/docs/TD_docs/methods/resetAllNotificationSettings.md @@ -21,10 +21,10 @@ Resets all notification settings to the default value. By default the only muted ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/resetAuth.md b/docs/TD_docs/methods/resetAuth.md index d90ac139..86131624 100644 --- a/docs/TD_docs/methods/resetAuth.md +++ b/docs/TD_docs/methods/resetAuth.md @@ -22,10 +22,10 @@ Logs out user. If force == false, begins to perform soft log out, returns authSt ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/searchChatMessages.md b/docs/TD_docs/methods/searchChatMessages.md index d5f9e1a3..8820af76 100644 --- a/docs/TD_docs/methods/searchChatMessages.md +++ b/docs/TD_docs/methods/searchChatMessages.md @@ -26,10 +26,10 @@ Searches for messages with given words in the chat. Returns result in reverse ch ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/searchChats.md b/docs/TD_docs/methods/searchChats.md index c8159420..667f39d2 100644 --- a/docs/TD_docs/methods/searchChats.md +++ b/docs/TD_docs/methods/searchChats.md @@ -23,10 +23,10 @@ Searches for specified query in the title and username of known chats, offline r ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/searchContacts.md b/docs/TD_docs/methods/searchContacts.md index ee6371c8..aada31a7 100644 --- a/docs/TD_docs/methods/searchContacts.md +++ b/docs/TD_docs/methods/searchContacts.md @@ -23,10 +23,10 @@ Searches for specified query in the first name, last name and username of the kn ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/searchMessages.md b/docs/TD_docs/methods/searchMessages.md index 9984faa9..c5fb83d3 100644 --- a/docs/TD_docs/methods/searchMessages.md +++ b/docs/TD_docs/methods/searchMessages.md @@ -26,10 +26,10 @@ Searches for messages in all chats except secret chats. Returns result in revers ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/searchPublicChat.md b/docs/TD_docs/methods/searchPublicChat.md index a5405505..f57eca7f 100644 --- a/docs/TD_docs/methods/searchPublicChat.md +++ b/docs/TD_docs/methods/searchPublicChat.md @@ -22,10 +22,10 @@ Searches public chat by its username. Currently only private and channel chats c ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/searchPublicChats.md b/docs/TD_docs/methods/searchPublicChats.md index 67439fa3..22a1de2d 100644 --- a/docs/TD_docs/methods/searchPublicChats.md +++ b/docs/TD_docs/methods/searchPublicChats.md @@ -22,10 +22,10 @@ Searches public chats by prefix of their username. Currently only private and ch ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/searchStickerSet.md b/docs/TD_docs/methods/searchStickerSet.md index 42293595..d42d1609 100644 --- a/docs/TD_docs/methods/searchStickerSet.md +++ b/docs/TD_docs/methods/searchStickerSet.md @@ -22,10 +22,10 @@ Searches sticker set by its short name ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/sendBotStartMessage.md b/docs/TD_docs/methods/sendBotStartMessage.md index 84e0ac80..10cfad69 100644 --- a/docs/TD_docs/methods/sendBotStartMessage.md +++ b/docs/TD_docs/methods/sendBotStartMessage.md @@ -24,10 +24,10 @@ Invites bot to a chat (if it is not in the chat) and send /start to it. Bot can' ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/sendChatAction.md b/docs/TD_docs/methods/sendChatAction.md index 32fe19ed..b008ca54 100644 --- a/docs/TD_docs/methods/sendChatAction.md +++ b/docs/TD_docs/methods/sendChatAction.md @@ -23,10 +23,10 @@ Sends notification about user activity in a chat ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/sendChatScreenshotTakenNotification.md b/docs/TD_docs/methods/sendChatScreenshotTakenNotification.md index acb712b5..6d2f5ea2 100644 --- a/docs/TD_docs/methods/sendChatScreenshotTakenNotification.md +++ b/docs/TD_docs/methods/sendChatScreenshotTakenNotification.md @@ -22,10 +22,10 @@ Sends notification about screenshot taken in a chat. Works only in secret chats ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/sendChatSetTtlMessage.md b/docs/TD_docs/methods/sendChatSetTtlMessage.md index a1cc39c6..11c83b26 100644 --- a/docs/TD_docs/methods/sendChatSetTtlMessage.md +++ b/docs/TD_docs/methods/sendChatSetTtlMessage.md @@ -23,10 +23,10 @@ Changes current ttl setting in a secret chat and sends corresponding message ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/sendInlineQueryResultMessage.md b/docs/TD_docs/methods/sendInlineQueryResultMessage.md index 66b13777..7ba89e89 100644 --- a/docs/TD_docs/methods/sendInlineQueryResultMessage.md +++ b/docs/TD_docs/methods/sendInlineQueryResultMessage.md @@ -27,10 +27,10 @@ Sends result of the inline query as a message. Returns sent message. UpdateChatT ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/sendMessage.md b/docs/TD_docs/methods/sendMessage.md index 84fd551f..7b3fd4f4 100644 --- a/docs/TD_docs/methods/sendMessage.md +++ b/docs/TD_docs/methods/sendMessage.md @@ -27,10 +27,10 @@ Sends a message. Returns sent message. UpdateChatTopMessage will not be sent, so ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; @@ -49,3 +49,9 @@ Or, if you're into Lua: Message = sendMessage({chat_id=long, reply_to_message_id=long, disable_notification=Bool, from_background=Bool, reply_markup=ReplyMarkup, input_message_content=InputMessageContent, }) ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/docs/TD_docs/methods/setAlarm.md b/docs/TD_docs/methods/setAlarm.md index 2db7867e..f526c7cf 100644 --- a/docs/TD_docs/methods/setAlarm.md +++ b/docs/TD_docs/methods/setAlarm.md @@ -22,10 +22,10 @@ Returns Ok after specified amount of the time passed ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/setAuthPhoneNumber.md b/docs/TD_docs/methods/setAuthPhoneNumber.md index 19184282..de04b084 100644 --- a/docs/TD_docs/methods/setAuthPhoneNumber.md +++ b/docs/TD_docs/methods/setAuthPhoneNumber.md @@ -24,10 +24,10 @@ Sets user's phone number and sends authentication code to the user. Works only w ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/setBotUpdatesStatus.md b/docs/TD_docs/methods/setBotUpdatesStatus.md index 721c07d3..f4ec6a9b 100644 --- a/docs/TD_docs/methods/setBotUpdatesStatus.md +++ b/docs/TD_docs/methods/setBotUpdatesStatus.md @@ -23,10 +23,10 @@ Bots only. Informs server about number of pending bot updates if they aren't pro ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/setFileGenerationProgress.md b/docs/TD_docs/methods/setFileGenerationProgress.md index 4a7b5a87..4224d0ee 100644 --- a/docs/TD_docs/methods/setFileGenerationProgress.md +++ b/docs/TD_docs/methods/setFileGenerationProgress.md @@ -23,10 +23,10 @@ Next part of a file was generated ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/setGameScore.md b/docs/TD_docs/methods/setGameScore.md index 3a497b98..4ecbf4ec 100644 --- a/docs/TD_docs/methods/setGameScore.md +++ b/docs/TD_docs/methods/setGameScore.md @@ -27,10 +27,10 @@ Bots only. Updates game score of the specified user in the game ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/setInlineGameScore.md b/docs/TD_docs/methods/setInlineGameScore.md index 0d0b1b8b..8c404544 100644 --- a/docs/TD_docs/methods/setInlineGameScore.md +++ b/docs/TD_docs/methods/setInlineGameScore.md @@ -26,10 +26,10 @@ Bots only. Updates game score of the specified user in the game ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/setNotificationSettings.md b/docs/TD_docs/methods/setNotificationSettings.md index 2aadf2cc..5a276d6d 100644 --- a/docs/TD_docs/methods/setNotificationSettings.md +++ b/docs/TD_docs/methods/setNotificationSettings.md @@ -23,10 +23,10 @@ Changes notification settings for a given scope ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/setOption.md b/docs/TD_docs/methods/setOption.md index d63b54b0..84aa074d 100644 --- a/docs/TD_docs/methods/setOption.md +++ b/docs/TD_docs/methods/setOption.md @@ -23,10 +23,10 @@ Sets value of an option. See list of available options on https: core.telegram.o ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/setPassword.md b/docs/TD_docs/methods/setPassword.md index aca02036..09bea60e 100644 --- a/docs/TD_docs/methods/setPassword.md +++ b/docs/TD_docs/methods/setPassword.md @@ -26,10 +26,10 @@ Changes user password. If new recovery email is specified, then error EMAIL_UNCO ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/setPrivacy.md b/docs/TD_docs/methods/setPrivacy.md index 1385c793..606be088 100644 --- a/docs/TD_docs/methods/setPrivacy.md +++ b/docs/TD_docs/methods/setPrivacy.md @@ -23,10 +23,10 @@ Changes privacy settings ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/setProfilePhoto.md b/docs/TD_docs/methods/setProfilePhoto.md index 4fdc8cb0..ad124cb6 100644 --- a/docs/TD_docs/methods/setProfilePhoto.md +++ b/docs/TD_docs/methods/setProfilePhoto.md @@ -22,10 +22,10 @@ Uploads new profile photo for logged in user. Photo will not change until change ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/setRecoveryEmail.md b/docs/TD_docs/methods/setRecoveryEmail.md index f52166ab..239051f4 100644 --- a/docs/TD_docs/methods/setRecoveryEmail.md +++ b/docs/TD_docs/methods/setRecoveryEmail.md @@ -23,10 +23,10 @@ Changes user recovery email. If new recovery email is specified, then error EMAI ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/terminateAllOtherSessions.md b/docs/TD_docs/methods/terminateAllOtherSessions.md index 3060d38a..84f2228b 100644 --- a/docs/TD_docs/methods/terminateAllOtherSessions.md +++ b/docs/TD_docs/methods/terminateAllOtherSessions.md @@ -21,10 +21,10 @@ Terminates all other sessions of logged in user ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/terminateSession.md b/docs/TD_docs/methods/terminateSession.md index 37185d88..9d330645 100644 --- a/docs/TD_docs/methods/terminateSession.md +++ b/docs/TD_docs/methods/terminateSession.md @@ -22,10 +22,10 @@ Terminates another session of logged in user ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/test_callBytes.md b/docs/TD_docs/methods/test_callBytes.md index 562a420d..9c81e393 100644 --- a/docs/TD_docs/methods/test_callBytes.md +++ b/docs/TD_docs/methods/test_callBytes.md @@ -20,10 +20,10 @@ description: test.callBytes parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/test_callEmpty.md b/docs/TD_docs/methods/test_callEmpty.md index c537bfcf..82a1b516 100644 --- a/docs/TD_docs/methods/test_callEmpty.md +++ b/docs/TD_docs/methods/test_callEmpty.md @@ -15,10 +15,10 @@ description: test.callEmpty parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/test_callString.md b/docs/TD_docs/methods/test_callString.md index b37ca583..75642dda 100644 --- a/docs/TD_docs/methods/test_callString.md +++ b/docs/TD_docs/methods/test_callString.md @@ -20,10 +20,10 @@ description: test.callString parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/test_callVectorInt.md b/docs/TD_docs/methods/test_callVectorInt.md index f63de1c3..2c19e9ac 100644 --- a/docs/TD_docs/methods/test_callVectorInt.md +++ b/docs/TD_docs/methods/test_callVectorInt.md @@ -20,10 +20,10 @@ description: test.callVectorInt parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/test_callVectorIntObject.md b/docs/TD_docs/methods/test_callVectorIntObject.md index 46117671..fdb9772a 100644 --- a/docs/TD_docs/methods/test_callVectorIntObject.md +++ b/docs/TD_docs/methods/test_callVectorIntObject.md @@ -20,10 +20,10 @@ description: test.callVectorIntObject parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/test_callVectorString.md b/docs/TD_docs/methods/test_callVectorString.md index 1a65a998..4b6b0626 100644 --- a/docs/TD_docs/methods/test_callVectorString.md +++ b/docs/TD_docs/methods/test_callVectorString.md @@ -20,10 +20,10 @@ description: test.callVectorString parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/test_callVectorStringObject.md b/docs/TD_docs/methods/test_callVectorStringObject.md index b09e19dc..28c4bfe7 100644 --- a/docs/TD_docs/methods/test_callVectorStringObject.md +++ b/docs/TD_docs/methods/test_callVectorStringObject.md @@ -20,10 +20,10 @@ description: test.callVectorStringObject parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/test_forceGetDifference.md b/docs/TD_docs/methods/test_forceGetDifference.md index d3c68c28..90d70dae 100644 --- a/docs/TD_docs/methods/test_forceGetDifference.md +++ b/docs/TD_docs/methods/test_forceGetDifference.md @@ -15,10 +15,10 @@ description: test.forceGetDifference parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/test_squareInt.md b/docs/TD_docs/methods/test_squareInt.md index 8dd8b708..4cebd77e 100644 --- a/docs/TD_docs/methods/test_squareInt.md +++ b/docs/TD_docs/methods/test_squareInt.md @@ -20,10 +20,10 @@ description: test.squareInt parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/test_testNet.md b/docs/TD_docs/methods/test_testNet.md index 799b56c5..24de25e2 100644 --- a/docs/TD_docs/methods/test_testNet.md +++ b/docs/TD_docs/methods/test_testNet.md @@ -15,10 +15,10 @@ description: test.testNet parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/toggleChannelInvites.md b/docs/TD_docs/methods/toggleChannelInvites.md index 69c1af14..245d83d4 100644 --- a/docs/TD_docs/methods/toggleChannelInvites.md +++ b/docs/TD_docs/methods/toggleChannelInvites.md @@ -23,10 +23,10 @@ Gives or revokes right to invite new members to all current members of the chann ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/toggleChannelSignMessages.md b/docs/TD_docs/methods/toggleChannelSignMessages.md index 167077c5..25605bc1 100644 --- a/docs/TD_docs/methods/toggleChannelSignMessages.md +++ b/docs/TD_docs/methods/toggleChannelSignMessages.md @@ -23,10 +23,10 @@ Enables or disables sender signature on sent messages in the channel. Needs crea ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/toggleGroupEditors.md b/docs/TD_docs/methods/toggleGroupEditors.md index af35c956..54479a63 100644 --- a/docs/TD_docs/methods/toggleGroupEditors.md +++ b/docs/TD_docs/methods/toggleGroupEditors.md @@ -23,10 +23,10 @@ Gives or revokes all members of the group editor rights. Needs creator privilege ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/unblockUser.md b/docs/TD_docs/methods/unblockUser.md index 5810e1a1..3080c2c2 100644 --- a/docs/TD_docs/methods/unblockUser.md +++ b/docs/TD_docs/methods/unblockUser.md @@ -22,10 +22,10 @@ Removes user from black list ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/unpinChannelMessage.md b/docs/TD_docs/methods/unpinChannelMessage.md index b5cb956f..8c86e62d 100644 --- a/docs/TD_docs/methods/unpinChannelMessage.md +++ b/docs/TD_docs/methods/unpinChannelMessage.md @@ -22,10 +22,10 @@ Removes pinned message in the supergroup channel. Needs editor privileges in the ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/updateStickerSet.md b/docs/TD_docs/methods/updateStickerSet.md index 884bfdeb..0719fff7 100644 --- a/docs/TD_docs/methods/updateStickerSet.md +++ b/docs/TD_docs/methods/updateStickerSet.md @@ -24,10 +24,10 @@ Installs/uninstalls or enables/archives sticker set. Official sticker set can't ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/viewMessages.md b/docs/TD_docs/methods/viewMessages.md index 2e536f2c..6de00660 100644 --- a/docs/TD_docs/methods/viewMessages.md +++ b/docs/TD_docs/methods/viewMessages.md @@ -23,10 +23,10 @@ Messages are viewed by the user. Many useful activities depends on message being ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/TD_docs/methods/viewTrendingStickerSets.md b/docs/TD_docs/methods/viewTrendingStickerSets.md index ce0d1df0..7ab8a45f 100644 --- a/docs/TD_docs/methods/viewTrendingStickerSets.md +++ b/docs/TD_docs/methods/viewTrendingStickerSets.md @@ -22,10 +22,10 @@ Trending sticker sets are viewed by the user ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/docs/index.md b/docs/index.md index db37872f..ccfaf6b7 100644 --- a/docs/index.md +++ b/docs/index.md @@ -447,6 +447,8 @@ Methods that allow sending message entities (messages.sendMessage for example) a To convert the results of methods to bot API objects you must provide a second parameter to method wrappers, containing an array with the `botAPI` key set to true. +reply_markup accepts bot API reply markup objects as well as MTProto ones. + Note that when you login as a bot, MadelineProto also logins using the [PWRTelegram](https://pwrtelegram.xyz) API, to allow persistant storage of peers, even after a logout and another login. ### Storing sessions diff --git a/old_docs/API_docs_v18/methods/account_checkUsername.md b/old_docs/API_docs_v18/methods/account_checkUsername.md index dc13041c..e954ca99 100644 --- a/old_docs/API_docs_v18/methods/account_checkUsername.md +++ b/old_docs/API_docs_v18/methods/account_checkUsername.md @@ -20,10 +20,10 @@ description: account.checkUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/account_getNotifySettings.md b/old_docs/API_docs_v18/methods/account_getNotifySettings.md index 817f201a..2e7fd9ba 100644 --- a/old_docs/API_docs_v18/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v18/methods/account_getNotifySettings.md @@ -20,10 +20,10 @@ description: account.getNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/account_getWallPapers.md b/old_docs/API_docs_v18/methods/account_getWallPapers.md index 9eb0182a..a44ea777 100644 --- a/old_docs/API_docs_v18/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v18/methods/account_getWallPapers.md @@ -15,10 +15,10 @@ description: account.getWallPapers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/account_registerDevice.md b/old_docs/API_docs_v18/methods/account_registerDevice.md index 168dcba0..70cadfab 100644 --- a/old_docs/API_docs_v18/methods/account_registerDevice.md +++ b/old_docs/API_docs_v18/methods/account_registerDevice.md @@ -26,10 +26,10 @@ description: account.registerDevice parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/account_resetNotifySettings.md b/old_docs/API_docs_v18/methods/account_resetNotifySettings.md index 5a6a4c95..aa01dfce 100644 --- a/old_docs/API_docs_v18/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v18/methods/account_resetNotifySettings.md @@ -15,10 +15,10 @@ description: account.resetNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/account_unregisterDevice.md b/old_docs/API_docs_v18/methods/account_unregisterDevice.md index 89ab99a8..1063fad3 100644 --- a/old_docs/API_docs_v18/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v18/methods/account_unregisterDevice.md @@ -21,10 +21,10 @@ description: account.unregisterDevice parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/account_updateNotifySettings.md b/old_docs/API_docs_v18/methods/account_updateNotifySettings.md index 7eea8202..cb90a39f 100644 --- a/old_docs/API_docs_v18/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v18/methods/account_updateNotifySettings.md @@ -21,10 +21,10 @@ description: account.updateNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/account_updateProfile.md b/old_docs/API_docs_v18/methods/account_updateProfile.md index fce1c8c9..cf8374de 100644 --- a/old_docs/API_docs_v18/methods/account_updateProfile.md +++ b/old_docs/API_docs_v18/methods/account_updateProfile.md @@ -21,10 +21,10 @@ description: account.updateProfile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/account_updateStatus.md b/old_docs/API_docs_v18/methods/account_updateStatus.md index f2fd751e..ac260312 100644 --- a/old_docs/API_docs_v18/methods/account_updateStatus.md +++ b/old_docs/API_docs_v18/methods/account_updateStatus.md @@ -20,10 +20,10 @@ description: account.updateStatus parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/account_updateUsername.md b/old_docs/API_docs_v18/methods/account_updateUsername.md index b5e428e4..7daf43e0 100644 --- a/old_docs/API_docs_v18/methods/account_updateUsername.md +++ b/old_docs/API_docs_v18/methods/account_updateUsername.md @@ -20,10 +20,10 @@ description: account.updateUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v18/methods/auth_bindTempAuthKey.md index 87d0c7cf..55e083cd 100644 --- a/old_docs/API_docs_v18/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v18/methods/auth_bindTempAuthKey.md @@ -23,10 +23,10 @@ description: auth.bindTempAuthKey parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/auth_checkPhone.md b/old_docs/API_docs_v18/methods/auth_checkPhone.md index 2e4db690..ce137f9d 100644 --- a/old_docs/API_docs_v18/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v18/methods/auth_checkPhone.md @@ -20,10 +20,10 @@ description: auth.checkPhone parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/auth_exportAuthorization.md b/old_docs/API_docs_v18/methods/auth_exportAuthorization.md index a69f0301..bfd16433 100644 --- a/old_docs/API_docs_v18/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v18/methods/auth_exportAuthorization.md @@ -20,10 +20,10 @@ description: auth.exportAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/auth_importAuthorization.md b/old_docs/API_docs_v18/methods/auth_importAuthorization.md index a0e2e4b7..956f9a72 100644 --- a/old_docs/API_docs_v18/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v18/methods/auth_importAuthorization.md @@ -21,10 +21,10 @@ description: auth.importAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/auth_logOut.md b/old_docs/API_docs_v18/methods/auth_logOut.md index ac5bd8ae..5651f753 100644 --- a/old_docs/API_docs_v18/methods/auth_logOut.md +++ b/old_docs/API_docs_v18/methods/auth_logOut.md @@ -15,10 +15,10 @@ description: auth.logOut parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v18/methods/auth_resetAuthorizations.md index f55e2e4d..9b324b42 100644 --- a/old_docs/API_docs_v18/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v18/methods/auth_resetAuthorizations.md @@ -15,10 +15,10 @@ description: auth.resetAuthorizations parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/auth_sendCall.md b/old_docs/API_docs_v18/methods/auth_sendCall.md index 3d44b1d2..584235b0 100644 --- a/old_docs/API_docs_v18/methods/auth_sendCall.md +++ b/old_docs/API_docs_v18/methods/auth_sendCall.md @@ -21,10 +21,10 @@ description: auth.sendCall parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/auth_sendCode.md b/old_docs/API_docs_v18/methods/auth_sendCode.md index 8c4387cf..58305712 100644 --- a/old_docs/API_docs_v18/methods/auth_sendCode.md +++ b/old_docs/API_docs_v18/methods/auth_sendCode.md @@ -24,10 +24,10 @@ description: auth.sendCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/auth_sendInvites.md b/old_docs/API_docs_v18/methods/auth_sendInvites.md index f81a5c7e..87cdc7e3 100644 --- a/old_docs/API_docs_v18/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v18/methods/auth_sendInvites.md @@ -21,10 +21,10 @@ description: auth.sendInvites parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/auth_sendSms.md b/old_docs/API_docs_v18/methods/auth_sendSms.md index ab652a6e..fb469f84 100644 --- a/old_docs/API_docs_v18/methods/auth_sendSms.md +++ b/old_docs/API_docs_v18/methods/auth_sendSms.md @@ -21,10 +21,10 @@ description: auth.sendSms parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/auth_signIn.md b/old_docs/API_docs_v18/methods/auth_signIn.md index 7616bc80..b0fb12fe 100644 --- a/old_docs/API_docs_v18/methods/auth_signIn.md +++ b/old_docs/API_docs_v18/methods/auth_signIn.md @@ -22,10 +22,10 @@ description: auth.signIn parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/auth_signUp.md b/old_docs/API_docs_v18/methods/auth_signUp.md index f9c72d64..6f92b4f7 100644 --- a/old_docs/API_docs_v18/methods/auth_signUp.md +++ b/old_docs/API_docs_v18/methods/auth_signUp.md @@ -24,10 +24,10 @@ description: auth.signUp parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/contacts_block.md b/old_docs/API_docs_v18/methods/contacts_block.md index b809b15c..f512adcc 100644 --- a/old_docs/API_docs_v18/methods/contacts_block.md +++ b/old_docs/API_docs_v18/methods/contacts_block.md @@ -20,10 +20,10 @@ description: contacts.block parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/contacts_deleteContact.md b/old_docs/API_docs_v18/methods/contacts_deleteContact.md index 18ef51f8..a3e8f63d 100644 --- a/old_docs/API_docs_v18/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v18/methods/contacts_deleteContact.md @@ -20,10 +20,10 @@ description: contacts.deleteContact parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/contacts_deleteContacts.md b/old_docs/API_docs_v18/methods/contacts_deleteContacts.md index 40672188..46e251eb 100644 --- a/old_docs/API_docs_v18/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v18/methods/contacts_deleteContacts.md @@ -20,10 +20,10 @@ description: contacts.deleteContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/contacts_exportCard.md b/old_docs/API_docs_v18/methods/contacts_exportCard.md index 4145d246..f7ec0015 100644 --- a/old_docs/API_docs_v18/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v18/methods/contacts_exportCard.md @@ -15,10 +15,10 @@ description: contacts.exportCard parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/contacts_getBlocked.md b/old_docs/API_docs_v18/methods/contacts_getBlocked.md index 50172d03..0fc72dba 100644 --- a/old_docs/API_docs_v18/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v18/methods/contacts_getBlocked.md @@ -21,10 +21,10 @@ description: contacts.getBlocked parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/contacts_getContacts.md b/old_docs/API_docs_v18/methods/contacts_getContacts.md index 0e6f22e9..656821e0 100644 --- a/old_docs/API_docs_v18/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v18/methods/contacts_getContacts.md @@ -20,10 +20,10 @@ description: contacts.getContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/contacts_getStatuses.md b/old_docs/API_docs_v18/methods/contacts_getStatuses.md index b734f529..ee806f2d 100644 --- a/old_docs/API_docs_v18/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v18/methods/contacts_getStatuses.md @@ -15,10 +15,10 @@ description: contacts.getStatuses parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/contacts_getSuggested.md b/old_docs/API_docs_v18/methods/contacts_getSuggested.md index a49b5913..4cd124e7 100644 --- a/old_docs/API_docs_v18/methods/contacts_getSuggested.md +++ b/old_docs/API_docs_v18/methods/contacts_getSuggested.md @@ -20,10 +20,10 @@ description: contacts.getSuggested parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/contacts_importCard.md b/old_docs/API_docs_v18/methods/contacts_importCard.md index 6b2c612e..162ff4f3 100644 --- a/old_docs/API_docs_v18/methods/contacts_importCard.md +++ b/old_docs/API_docs_v18/methods/contacts_importCard.md @@ -20,10 +20,10 @@ description: contacts.importCard parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/contacts_importContacts.md b/old_docs/API_docs_v18/methods/contacts_importContacts.md index 2426f53c..48412e99 100644 --- a/old_docs/API_docs_v18/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v18/methods/contacts_importContacts.md @@ -21,10 +21,10 @@ description: contacts.importContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/contacts_search.md b/old_docs/API_docs_v18/methods/contacts_search.md index 00a39519..9a351db7 100644 --- a/old_docs/API_docs_v18/methods/contacts_search.md +++ b/old_docs/API_docs_v18/methods/contacts_search.md @@ -21,10 +21,10 @@ description: contacts.search parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/contacts_unblock.md b/old_docs/API_docs_v18/methods/contacts_unblock.md index 63f41483..6d739c9b 100644 --- a/old_docs/API_docs_v18/methods/contacts_unblock.md +++ b/old_docs/API_docs_v18/methods/contacts_unblock.md @@ -20,10 +20,10 @@ description: contacts.unblock parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/help_getAppUpdate.md b/old_docs/API_docs_v18/methods/help_getAppUpdate.md index 7be3b374..9559c840 100644 --- a/old_docs/API_docs_v18/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v18/methods/help_getAppUpdate.md @@ -23,10 +23,10 @@ description: help.getAppUpdate parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/help_getConfig.md b/old_docs/API_docs_v18/methods/help_getConfig.md index cb9c4f1c..9481a0c0 100644 --- a/old_docs/API_docs_v18/methods/help_getConfig.md +++ b/old_docs/API_docs_v18/methods/help_getConfig.md @@ -15,10 +15,10 @@ description: help.getConfig parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/help_getInviteText.md b/old_docs/API_docs_v18/methods/help_getInviteText.md index f265f8d3..14692791 100644 --- a/old_docs/API_docs_v18/methods/help_getInviteText.md +++ b/old_docs/API_docs_v18/methods/help_getInviteText.md @@ -20,10 +20,10 @@ description: help.getInviteText parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/help_getNearestDc.md b/old_docs/API_docs_v18/methods/help_getNearestDc.md index f491ae0c..bb6b1883 100644 --- a/old_docs/API_docs_v18/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v18/methods/help_getNearestDc.md @@ -15,10 +15,10 @@ description: help.getNearestDc parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/help_getSupport.md b/old_docs/API_docs_v18/methods/help_getSupport.md index 03574c6f..0348089a 100644 --- a/old_docs/API_docs_v18/methods/help_getSupport.md +++ b/old_docs/API_docs_v18/methods/help_getSupport.md @@ -15,10 +15,10 @@ description: help.getSupport parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/help_saveAppLog.md b/old_docs/API_docs_v18/methods/help_saveAppLog.md index 3887ccc2..59b92601 100644 --- a/old_docs/API_docs_v18/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v18/methods/help_saveAppLog.md @@ -20,10 +20,10 @@ description: help.saveAppLog parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/initConnection.md b/old_docs/API_docs_v18/methods/initConnection.md index 1c946720..aa89066c 100644 --- a/old_docs/API_docs_v18/methods/initConnection.md +++ b/old_docs/API_docs_v18/methods/initConnection.md @@ -25,10 +25,10 @@ description: initConnection parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/invokeAfterMsg.md b/old_docs/API_docs_v18/methods/invokeAfterMsg.md index 1b35a238..97c4f1fb 100644 --- a/old_docs/API_docs_v18/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v18/methods/invokeAfterMsg.md @@ -21,10 +21,10 @@ description: invokeAfterMsg parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/invokeAfterMsgs.md b/old_docs/API_docs_v18/methods/invokeAfterMsgs.md index 164ab318..4e278ef1 100644 --- a/old_docs/API_docs_v18/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v18/methods/invokeAfterMsgs.md @@ -21,10 +21,10 @@ description: invokeAfterMsgs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/invokeWithLayer18.md b/old_docs/API_docs_v18/methods/invokeWithLayer18.md index b4a5a9e7..1a858597 100644 --- a/old_docs/API_docs_v18/methods/invokeWithLayer18.md +++ b/old_docs/API_docs_v18/methods/invokeWithLayer18.md @@ -20,10 +20,10 @@ description: invokeWithLayer18 parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/messages_acceptEncryption.md b/old_docs/API_docs_v18/methods/messages_acceptEncryption.md index d41beb91..e016f5d3 100644 --- a/old_docs/API_docs_v18/methods/messages_acceptEncryption.md +++ b/old_docs/API_docs_v18/methods/messages_acceptEncryption.md @@ -22,10 +22,10 @@ description: messages.acceptEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/messages_addChatUser.md b/old_docs/API_docs_v18/methods/messages_addChatUser.md index ac9d038d..f4c10701 100644 --- a/old_docs/API_docs_v18/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v18/methods/messages_addChatUser.md @@ -22,10 +22,10 @@ description: messages.addChatUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/messages_createChat.md b/old_docs/API_docs_v18/methods/messages_createChat.md index bf37bfab..bc03bffd 100644 --- a/old_docs/API_docs_v18/methods/messages_createChat.md +++ b/old_docs/API_docs_v18/methods/messages_createChat.md @@ -21,10 +21,10 @@ description: messages.createChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/messages_deleteChatUser.md b/old_docs/API_docs_v18/methods/messages_deleteChatUser.md index 9cd358e4..2537f0f3 100644 --- a/old_docs/API_docs_v18/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v18/methods/messages_deleteChatUser.md @@ -21,10 +21,10 @@ description: messages.deleteChatUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/messages_deleteHistory.md b/old_docs/API_docs_v18/methods/messages_deleteHistory.md index bdbde2cf..c0762753 100644 --- a/old_docs/API_docs_v18/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v18/methods/messages_deleteHistory.md @@ -21,10 +21,10 @@ description: messages.deleteHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/messages_deleteMessages.md b/old_docs/API_docs_v18/methods/messages_deleteMessages.md index b080ba6d..a9fbcdf6 100644 --- a/old_docs/API_docs_v18/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v18/methods/messages_deleteMessages.md @@ -20,10 +20,10 @@ description: messages.deleteMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/messages_discardEncryption.md b/old_docs/API_docs_v18/methods/messages_discardEncryption.md index ebc1ace5..f237c986 100644 --- a/old_docs/API_docs_v18/methods/messages_discardEncryption.md +++ b/old_docs/API_docs_v18/methods/messages_discardEncryption.md @@ -20,10 +20,10 @@ description: messages.discardEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/messages_editChatPhoto.md b/old_docs/API_docs_v18/methods/messages_editChatPhoto.md index dea9b0bd..a8a7d5d9 100644 --- a/old_docs/API_docs_v18/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v18/methods/messages_editChatPhoto.md @@ -21,10 +21,10 @@ description: messages.editChatPhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/messages_editChatTitle.md b/old_docs/API_docs_v18/methods/messages_editChatTitle.md index 1851f102..ed46c15c 100644 --- a/old_docs/API_docs_v18/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v18/methods/messages_editChatTitle.md @@ -21,10 +21,10 @@ description: messages.editChatTitle parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/messages_forwardMessage.md b/old_docs/API_docs_v18/methods/messages_forwardMessage.md index 93e365a7..841980c8 100644 --- a/old_docs/API_docs_v18/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v18/methods/messages_forwardMessage.md @@ -21,10 +21,10 @@ description: messages.forwardMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/messages_forwardMessages.md b/old_docs/API_docs_v18/methods/messages_forwardMessages.md index b443ab5a..c22265a5 100644 --- a/old_docs/API_docs_v18/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v18/methods/messages_forwardMessages.md @@ -21,10 +21,10 @@ description: messages.forwardMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/messages_getChats.md b/old_docs/API_docs_v18/methods/messages_getChats.md index ad63744b..be57718e 100644 --- a/old_docs/API_docs_v18/methods/messages_getChats.md +++ b/old_docs/API_docs_v18/methods/messages_getChats.md @@ -20,10 +20,10 @@ description: messages.getChats parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/messages_getDhConfig.md b/old_docs/API_docs_v18/methods/messages_getDhConfig.md index bcebea55..21b37f21 100644 --- a/old_docs/API_docs_v18/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v18/methods/messages_getDhConfig.md @@ -21,10 +21,10 @@ description: messages.getDhConfig parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/messages_getDialogs.md b/old_docs/API_docs_v18/methods/messages_getDialogs.md index 9fe92014..6d037eab 100644 --- a/old_docs/API_docs_v18/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v18/methods/messages_getDialogs.md @@ -22,10 +22,10 @@ description: messages.getDialogs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/messages_getFullChat.md b/old_docs/API_docs_v18/methods/messages_getFullChat.md index f3c8223a..10d938ae 100644 --- a/old_docs/API_docs_v18/methods/messages_getFullChat.md +++ b/old_docs/API_docs_v18/methods/messages_getFullChat.md @@ -20,10 +20,10 @@ description: messages.getFullChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/messages_getHistory.md b/old_docs/API_docs_v18/methods/messages_getHistory.md index c338a7b1..4b96dba9 100644 --- a/old_docs/API_docs_v18/methods/messages_getHistory.md +++ b/old_docs/API_docs_v18/methods/messages_getHistory.md @@ -23,10 +23,10 @@ description: messages.getHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/messages_getMessages.md b/old_docs/API_docs_v18/methods/messages_getMessages.md index 224df903..e669bcf8 100644 --- a/old_docs/API_docs_v18/methods/messages_getMessages.md +++ b/old_docs/API_docs_v18/methods/messages_getMessages.md @@ -20,10 +20,10 @@ description: messages.getMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v18/methods/messages_readEncryptedHistory.md index 555bffe7..5bb05536 100644 --- a/old_docs/API_docs_v18/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v18/methods/messages_readEncryptedHistory.md @@ -21,10 +21,10 @@ description: messages.readEncryptedHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/messages_readHistory.md b/old_docs/API_docs_v18/methods/messages_readHistory.md index 0566a58f..704fab41 100644 --- a/old_docs/API_docs_v18/methods/messages_readHistory.md +++ b/old_docs/API_docs_v18/methods/messages_readHistory.md @@ -23,10 +23,10 @@ description: messages.readHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/messages_readMessageContents.md b/old_docs/API_docs_v18/methods/messages_readMessageContents.md index ef94c7de..5854ded4 100644 --- a/old_docs/API_docs_v18/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v18/methods/messages_readMessageContents.md @@ -20,10 +20,10 @@ description: messages.readMessageContents parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/messages_receivedMessages.md b/old_docs/API_docs_v18/methods/messages_receivedMessages.md index b300f876..7ad8e8d5 100644 --- a/old_docs/API_docs_v18/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v18/methods/messages_receivedMessages.md @@ -20,10 +20,10 @@ description: messages.receivedMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/messages_receivedQueue.md b/old_docs/API_docs_v18/methods/messages_receivedQueue.md index e514669c..d8bfae5e 100644 --- a/old_docs/API_docs_v18/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v18/methods/messages_receivedQueue.md @@ -20,10 +20,10 @@ description: messages.receivedQueue parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/messages_reportSpam.md b/old_docs/API_docs_v18/methods/messages_reportSpam.md index 56975b9d..da747585 100644 --- a/old_docs/API_docs_v18/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v18/methods/messages_reportSpam.md @@ -20,10 +20,10 @@ description: messages.reportSpam parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/messages_requestEncryption.md b/old_docs/API_docs_v18/methods/messages_requestEncryption.md index e82fca54..99fe7ecf 100644 --- a/old_docs/API_docs_v18/methods/messages_requestEncryption.md +++ b/old_docs/API_docs_v18/methods/messages_requestEncryption.md @@ -21,10 +21,10 @@ description: messages.requestEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/messages_search.md b/old_docs/API_docs_v18/methods/messages_search.md index fe53fb8c..05309dbf 100644 --- a/old_docs/API_docs_v18/methods/messages_search.md +++ b/old_docs/API_docs_v18/methods/messages_search.md @@ -27,10 +27,10 @@ description: messages.search parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/messages_sendBroadcast.md b/old_docs/API_docs_v18/methods/messages_sendBroadcast.md index 83d71f78..380f385b 100644 --- a/old_docs/API_docs_v18/methods/messages_sendBroadcast.md +++ b/old_docs/API_docs_v18/methods/messages_sendBroadcast.md @@ -22,10 +22,10 @@ description: messages.sendBroadcast parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/messages_sendEncrypted.md b/old_docs/API_docs_v18/methods/messages_sendEncrypted.md index f2c2c0c2..c3585580 100644 --- a/old_docs/API_docs_v18/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v18/methods/messages_sendEncrypted.md @@ -21,10 +21,10 @@ description: messages.sendEncrypted parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v18/methods/messages_sendEncryptedFile.md index a57a3dd8..40674df9 100644 --- a/old_docs/API_docs_v18/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v18/methods/messages_sendEncryptedFile.md @@ -22,10 +22,10 @@ description: messages.sendEncryptedFile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v18/methods/messages_sendEncryptedService.md index 4041c4d0..8bfee571 100644 --- a/old_docs/API_docs_v18/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v18/methods/messages_sendEncryptedService.md @@ -21,10 +21,10 @@ description: messages.sendEncryptedService parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/messages_sendMedia.md b/old_docs/API_docs_v18/methods/messages_sendMedia.md index b550c398..4ad73412 100644 --- a/old_docs/API_docs_v18/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v18/methods/messages_sendMedia.md @@ -21,10 +21,10 @@ description: messages.sendMedia parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/messages_sendMessage.md b/old_docs/API_docs_v18/methods/messages_sendMessage.md index bbf3cbad..d3933d68 100644 --- a/old_docs/API_docs_v18/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v18/methods/messages_sendMessage.md @@ -21,10 +21,10 @@ description: messages.sendMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v18/methods/messages_setEncryptedTyping.md index 95364d49..ae718bba 100644 --- a/old_docs/API_docs_v18/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v18/methods/messages_setEncryptedTyping.md @@ -21,10 +21,10 @@ description: messages.setEncryptedTyping parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/messages_setTyping.md b/old_docs/API_docs_v18/methods/messages_setTyping.md index 0ce5743d..75903c68 100644 --- a/old_docs/API_docs_v18/methods/messages_setTyping.md +++ b/old_docs/API_docs_v18/methods/messages_setTyping.md @@ -21,10 +21,10 @@ description: messages.setTyping parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/photos_deletePhotos.md b/old_docs/API_docs_v18/methods/photos_deletePhotos.md index 6a717835..2d27b700 100644 --- a/old_docs/API_docs_v18/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v18/methods/photos_deletePhotos.md @@ -20,10 +20,10 @@ description: photos.deletePhotos parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/photos_getUserPhotos.md b/old_docs/API_docs_v18/methods/photos_getUserPhotos.md index 2d289f96..d8a5d6c9 100644 --- a/old_docs/API_docs_v18/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v18/methods/photos_getUserPhotos.md @@ -23,10 +23,10 @@ description: photos.getUserPhotos parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v18/methods/photos_updateProfilePhoto.md index f18669cc..9ae9c59e 100644 --- a/old_docs/API_docs_v18/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v18/methods/photos_updateProfilePhoto.md @@ -21,10 +21,10 @@ description: photos.updateProfilePhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v18/methods/photos_uploadProfilePhoto.md index 3eb7a10c..567eb363 100644 --- a/old_docs/API_docs_v18/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v18/methods/photos_uploadProfilePhoto.md @@ -23,10 +23,10 @@ description: photos.uploadProfilePhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/updates_getDifference.md b/old_docs/API_docs_v18/methods/updates_getDifference.md index c7ae5664..719a7a02 100644 --- a/old_docs/API_docs_v18/methods/updates_getDifference.md +++ b/old_docs/API_docs_v18/methods/updates_getDifference.md @@ -22,10 +22,10 @@ description: updates.getDifference parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/updates_getState.md b/old_docs/API_docs_v18/methods/updates_getState.md index 5612ca79..53fc0c16 100644 --- a/old_docs/API_docs_v18/methods/updates_getState.md +++ b/old_docs/API_docs_v18/methods/updates_getState.md @@ -15,10 +15,10 @@ description: updates.getState parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/upload_getFile.md b/old_docs/API_docs_v18/methods/upload_getFile.md index a2f3d961..ee35140a 100644 --- a/old_docs/API_docs_v18/methods/upload_getFile.md +++ b/old_docs/API_docs_v18/methods/upload_getFile.md @@ -22,10 +22,10 @@ description: upload.getFile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/upload_saveBigFilePart.md b/old_docs/API_docs_v18/methods/upload_saveBigFilePart.md index 03641055..503d1b5c 100644 --- a/old_docs/API_docs_v18/methods/upload_saveBigFilePart.md +++ b/old_docs/API_docs_v18/methods/upload_saveBigFilePart.md @@ -23,10 +23,10 @@ description: upload.saveBigFilePart parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/upload_saveFilePart.md b/old_docs/API_docs_v18/methods/upload_saveFilePart.md index 192412c8..d7f745aa 100644 --- a/old_docs/API_docs_v18/methods/upload_saveFilePart.md +++ b/old_docs/API_docs_v18/methods/upload_saveFilePart.md @@ -22,10 +22,10 @@ description: upload.saveFilePart parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/users_getFullUser.md b/old_docs/API_docs_v18/methods/users_getFullUser.md index 864ae387..bcba7f3d 100644 --- a/old_docs/API_docs_v18/methods/users_getFullUser.md +++ b/old_docs/API_docs_v18/methods/users_getFullUser.md @@ -20,10 +20,10 @@ description: users.getFullUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v18/methods/users_getUsers.md b/old_docs/API_docs_v18/methods/users_getUsers.md index 34816478..e03fd2d6 100644 --- a/old_docs/API_docs_v18/methods/users_getUsers.md +++ b/old_docs/API_docs_v18/methods/users_getUsers.md @@ -20,10 +20,10 @@ description: users.getUsers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/account_changePhone.md b/old_docs/API_docs_v23/methods/account_changePhone.md index dc3e0427..6691a743 100644 --- a/old_docs/API_docs_v23/methods/account_changePhone.md +++ b/old_docs/API_docs_v23/methods/account_changePhone.md @@ -22,10 +22,10 @@ description: account.changePhone parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/account_checkUsername.md b/old_docs/API_docs_v23/methods/account_checkUsername.md index dc13041c..e954ca99 100644 --- a/old_docs/API_docs_v23/methods/account_checkUsername.md +++ b/old_docs/API_docs_v23/methods/account_checkUsername.md @@ -20,10 +20,10 @@ description: account.checkUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/account_deleteAccount.md b/old_docs/API_docs_v23/methods/account_deleteAccount.md index 4199572b..0d0a6204 100644 --- a/old_docs/API_docs_v23/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v23/methods/account_deleteAccount.md @@ -20,10 +20,10 @@ description: account.deleteAccount parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/account_getAccountTTL.md b/old_docs/API_docs_v23/methods/account_getAccountTTL.md index ff4171df..e284a80e 100644 --- a/old_docs/API_docs_v23/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v23/methods/account_getAccountTTL.md @@ -15,10 +15,10 @@ description: account.getAccountTTL parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/account_getNotifySettings.md b/old_docs/API_docs_v23/methods/account_getNotifySettings.md index 817f201a..2e7fd9ba 100644 --- a/old_docs/API_docs_v23/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v23/methods/account_getNotifySettings.md @@ -20,10 +20,10 @@ description: account.getNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/account_getPrivacy.md b/old_docs/API_docs_v23/methods/account_getPrivacy.md index 649019d5..26137fd3 100644 --- a/old_docs/API_docs_v23/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v23/methods/account_getPrivacy.md @@ -20,10 +20,10 @@ description: account.getPrivacy parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/account_getWallPapers.md b/old_docs/API_docs_v23/methods/account_getWallPapers.md index 9eb0182a..a44ea777 100644 --- a/old_docs/API_docs_v23/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v23/methods/account_getWallPapers.md @@ -15,10 +15,10 @@ description: account.getWallPapers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/account_registerDevice.md b/old_docs/API_docs_v23/methods/account_registerDevice.md index 168dcba0..70cadfab 100644 --- a/old_docs/API_docs_v23/methods/account_registerDevice.md +++ b/old_docs/API_docs_v23/methods/account_registerDevice.md @@ -26,10 +26,10 @@ description: account.registerDevice parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/account_reportPeer.md b/old_docs/API_docs_v23/methods/account_reportPeer.md index bb8dea54..7d913217 100644 --- a/old_docs/API_docs_v23/methods/account_reportPeer.md +++ b/old_docs/API_docs_v23/methods/account_reportPeer.md @@ -21,10 +21,10 @@ description: account.reportPeer parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/account_resetNotifySettings.md b/old_docs/API_docs_v23/methods/account_resetNotifySettings.md index 5a6a4c95..aa01dfce 100644 --- a/old_docs/API_docs_v23/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v23/methods/account_resetNotifySettings.md @@ -15,10 +15,10 @@ description: account.resetNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v23/methods/account_sendChangePhoneCode.md index 98110148..4ccc4045 100644 --- a/old_docs/API_docs_v23/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v23/methods/account_sendChangePhoneCode.md @@ -20,10 +20,10 @@ description: account.sendChangePhoneCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/account_setAccountTTL.md b/old_docs/API_docs_v23/methods/account_setAccountTTL.md index 6ae8d70e..460ae89a 100644 --- a/old_docs/API_docs_v23/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v23/methods/account_setAccountTTL.md @@ -20,10 +20,10 @@ description: account.setAccountTTL parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/account_setPrivacy.md b/old_docs/API_docs_v23/methods/account_setPrivacy.md index e438ca16..f05356db 100644 --- a/old_docs/API_docs_v23/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v23/methods/account_setPrivacy.md @@ -21,10 +21,10 @@ description: account.setPrivacy parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/account_unregisterDevice.md b/old_docs/API_docs_v23/methods/account_unregisterDevice.md index 89ab99a8..1063fad3 100644 --- a/old_docs/API_docs_v23/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v23/methods/account_unregisterDevice.md @@ -21,10 +21,10 @@ description: account.unregisterDevice parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v23/methods/account_updateDeviceLocked.md index 3fe6b8b6..506d974f 100644 --- a/old_docs/API_docs_v23/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v23/methods/account_updateDeviceLocked.md @@ -20,10 +20,10 @@ description: account.updateDeviceLocked parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/account_updateNotifySettings.md b/old_docs/API_docs_v23/methods/account_updateNotifySettings.md index 7eea8202..cb90a39f 100644 --- a/old_docs/API_docs_v23/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v23/methods/account_updateNotifySettings.md @@ -21,10 +21,10 @@ description: account.updateNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/account_updateProfile.md b/old_docs/API_docs_v23/methods/account_updateProfile.md index fce1c8c9..cf8374de 100644 --- a/old_docs/API_docs_v23/methods/account_updateProfile.md +++ b/old_docs/API_docs_v23/methods/account_updateProfile.md @@ -21,10 +21,10 @@ description: account.updateProfile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/account_updateStatus.md b/old_docs/API_docs_v23/methods/account_updateStatus.md index f2fd751e..ac260312 100644 --- a/old_docs/API_docs_v23/methods/account_updateStatus.md +++ b/old_docs/API_docs_v23/methods/account_updateStatus.md @@ -20,10 +20,10 @@ description: account.updateStatus parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/account_updateUsername.md b/old_docs/API_docs_v23/methods/account_updateUsername.md index b5e428e4..7daf43e0 100644 --- a/old_docs/API_docs_v23/methods/account_updateUsername.md +++ b/old_docs/API_docs_v23/methods/account_updateUsername.md @@ -20,10 +20,10 @@ description: account.updateUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v23/methods/auth_bindTempAuthKey.md index 87d0c7cf..55e083cd 100644 --- a/old_docs/API_docs_v23/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v23/methods/auth_bindTempAuthKey.md @@ -23,10 +23,10 @@ description: auth.bindTempAuthKey parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/auth_checkPhone.md b/old_docs/API_docs_v23/methods/auth_checkPhone.md index 2e4db690..ce137f9d 100644 --- a/old_docs/API_docs_v23/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v23/methods/auth_checkPhone.md @@ -20,10 +20,10 @@ description: auth.checkPhone parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/auth_exportAuthorization.md b/old_docs/API_docs_v23/methods/auth_exportAuthorization.md index a69f0301..bfd16433 100644 --- a/old_docs/API_docs_v23/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v23/methods/auth_exportAuthorization.md @@ -20,10 +20,10 @@ description: auth.exportAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/auth_importAuthorization.md b/old_docs/API_docs_v23/methods/auth_importAuthorization.md index a0e2e4b7..956f9a72 100644 --- a/old_docs/API_docs_v23/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v23/methods/auth_importAuthorization.md @@ -21,10 +21,10 @@ description: auth.importAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/auth_logOut.md b/old_docs/API_docs_v23/methods/auth_logOut.md index ac5bd8ae..5651f753 100644 --- a/old_docs/API_docs_v23/methods/auth_logOut.md +++ b/old_docs/API_docs_v23/methods/auth_logOut.md @@ -15,10 +15,10 @@ description: auth.logOut parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v23/methods/auth_resetAuthorizations.md index f55e2e4d..9b324b42 100644 --- a/old_docs/API_docs_v23/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v23/methods/auth_resetAuthorizations.md @@ -15,10 +15,10 @@ description: auth.resetAuthorizations parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/auth_sendCall.md b/old_docs/API_docs_v23/methods/auth_sendCall.md index 3d44b1d2..584235b0 100644 --- a/old_docs/API_docs_v23/methods/auth_sendCall.md +++ b/old_docs/API_docs_v23/methods/auth_sendCall.md @@ -21,10 +21,10 @@ description: auth.sendCall parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/auth_sendCode.md b/old_docs/API_docs_v23/methods/auth_sendCode.md index 8c4387cf..58305712 100644 --- a/old_docs/API_docs_v23/methods/auth_sendCode.md +++ b/old_docs/API_docs_v23/methods/auth_sendCode.md @@ -24,10 +24,10 @@ description: auth.sendCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/auth_sendInvites.md b/old_docs/API_docs_v23/methods/auth_sendInvites.md index f81a5c7e..87cdc7e3 100644 --- a/old_docs/API_docs_v23/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v23/methods/auth_sendInvites.md @@ -21,10 +21,10 @@ description: auth.sendInvites parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/auth_sendSms.md b/old_docs/API_docs_v23/methods/auth_sendSms.md index ab652a6e..fb469f84 100644 --- a/old_docs/API_docs_v23/methods/auth_sendSms.md +++ b/old_docs/API_docs_v23/methods/auth_sendSms.md @@ -21,10 +21,10 @@ description: auth.sendSms parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/auth_signIn.md b/old_docs/API_docs_v23/methods/auth_signIn.md index 7616bc80..b0fb12fe 100644 --- a/old_docs/API_docs_v23/methods/auth_signIn.md +++ b/old_docs/API_docs_v23/methods/auth_signIn.md @@ -22,10 +22,10 @@ description: auth.signIn parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/auth_signUp.md b/old_docs/API_docs_v23/methods/auth_signUp.md index f9c72d64..6f92b4f7 100644 --- a/old_docs/API_docs_v23/methods/auth_signUp.md +++ b/old_docs/API_docs_v23/methods/auth_signUp.md @@ -24,10 +24,10 @@ description: auth.signUp parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/contacts_block.md b/old_docs/API_docs_v23/methods/contacts_block.md index b809b15c..f512adcc 100644 --- a/old_docs/API_docs_v23/methods/contacts_block.md +++ b/old_docs/API_docs_v23/methods/contacts_block.md @@ -20,10 +20,10 @@ description: contacts.block parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/contacts_deleteContact.md b/old_docs/API_docs_v23/methods/contacts_deleteContact.md index 18ef51f8..a3e8f63d 100644 --- a/old_docs/API_docs_v23/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v23/methods/contacts_deleteContact.md @@ -20,10 +20,10 @@ description: contacts.deleteContact parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/contacts_deleteContacts.md b/old_docs/API_docs_v23/methods/contacts_deleteContacts.md index 40672188..46e251eb 100644 --- a/old_docs/API_docs_v23/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v23/methods/contacts_deleteContacts.md @@ -20,10 +20,10 @@ description: contacts.deleteContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/contacts_exportCard.md b/old_docs/API_docs_v23/methods/contacts_exportCard.md index 4145d246..f7ec0015 100644 --- a/old_docs/API_docs_v23/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v23/methods/contacts_exportCard.md @@ -15,10 +15,10 @@ description: contacts.exportCard parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/contacts_getBlocked.md b/old_docs/API_docs_v23/methods/contacts_getBlocked.md index 50172d03..0fc72dba 100644 --- a/old_docs/API_docs_v23/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v23/methods/contacts_getBlocked.md @@ -21,10 +21,10 @@ description: contacts.getBlocked parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/contacts_getContacts.md b/old_docs/API_docs_v23/methods/contacts_getContacts.md index 0e6f22e9..656821e0 100644 --- a/old_docs/API_docs_v23/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v23/methods/contacts_getContacts.md @@ -20,10 +20,10 @@ description: contacts.getContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/contacts_getStatuses.md b/old_docs/API_docs_v23/methods/contacts_getStatuses.md index b734f529..ee806f2d 100644 --- a/old_docs/API_docs_v23/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v23/methods/contacts_getStatuses.md @@ -15,10 +15,10 @@ description: contacts.getStatuses parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/contacts_getSuggested.md b/old_docs/API_docs_v23/methods/contacts_getSuggested.md index a49b5913..4cd124e7 100644 --- a/old_docs/API_docs_v23/methods/contacts_getSuggested.md +++ b/old_docs/API_docs_v23/methods/contacts_getSuggested.md @@ -20,10 +20,10 @@ description: contacts.getSuggested parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/contacts_importCard.md b/old_docs/API_docs_v23/methods/contacts_importCard.md index 6b2c612e..162ff4f3 100644 --- a/old_docs/API_docs_v23/methods/contacts_importCard.md +++ b/old_docs/API_docs_v23/methods/contacts_importCard.md @@ -20,10 +20,10 @@ description: contacts.importCard parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/contacts_importContacts.md b/old_docs/API_docs_v23/methods/contacts_importContacts.md index 2426f53c..48412e99 100644 --- a/old_docs/API_docs_v23/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v23/methods/contacts_importContacts.md @@ -21,10 +21,10 @@ description: contacts.importContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/contacts_resolveUsername.md b/old_docs/API_docs_v23/methods/contacts_resolveUsername.md index 74600d7c..909a3331 100644 --- a/old_docs/API_docs_v23/methods/contacts_resolveUsername.md +++ b/old_docs/API_docs_v23/methods/contacts_resolveUsername.md @@ -20,10 +20,10 @@ description: contacts.resolveUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/contacts_search.md b/old_docs/API_docs_v23/methods/contacts_search.md index 00a39519..9a351db7 100644 --- a/old_docs/API_docs_v23/methods/contacts_search.md +++ b/old_docs/API_docs_v23/methods/contacts_search.md @@ -21,10 +21,10 @@ description: contacts.search parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/contacts_unblock.md b/old_docs/API_docs_v23/methods/contacts_unblock.md index 63f41483..6d739c9b 100644 --- a/old_docs/API_docs_v23/methods/contacts_unblock.md +++ b/old_docs/API_docs_v23/methods/contacts_unblock.md @@ -20,10 +20,10 @@ description: contacts.unblock parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/help_getAppUpdate.md b/old_docs/API_docs_v23/methods/help_getAppUpdate.md index 7be3b374..9559c840 100644 --- a/old_docs/API_docs_v23/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v23/methods/help_getAppUpdate.md @@ -23,10 +23,10 @@ description: help.getAppUpdate parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/help_getConfig.md b/old_docs/API_docs_v23/methods/help_getConfig.md index cb9c4f1c..9481a0c0 100644 --- a/old_docs/API_docs_v23/methods/help_getConfig.md +++ b/old_docs/API_docs_v23/methods/help_getConfig.md @@ -15,10 +15,10 @@ description: help.getConfig parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/help_getInviteText.md b/old_docs/API_docs_v23/methods/help_getInviteText.md index f265f8d3..14692791 100644 --- a/old_docs/API_docs_v23/methods/help_getInviteText.md +++ b/old_docs/API_docs_v23/methods/help_getInviteText.md @@ -20,10 +20,10 @@ description: help.getInviteText parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/help_getNearestDc.md b/old_docs/API_docs_v23/methods/help_getNearestDc.md index f491ae0c..bb6b1883 100644 --- a/old_docs/API_docs_v23/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v23/methods/help_getNearestDc.md @@ -15,10 +15,10 @@ description: help.getNearestDc parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/help_getSupport.md b/old_docs/API_docs_v23/methods/help_getSupport.md index 03574c6f..0348089a 100644 --- a/old_docs/API_docs_v23/methods/help_getSupport.md +++ b/old_docs/API_docs_v23/methods/help_getSupport.md @@ -15,10 +15,10 @@ description: help.getSupport parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/help_saveAppLog.md b/old_docs/API_docs_v23/methods/help_saveAppLog.md index 3887ccc2..59b92601 100644 --- a/old_docs/API_docs_v23/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v23/methods/help_saveAppLog.md @@ -20,10 +20,10 @@ description: help.saveAppLog parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/initConnection.md b/old_docs/API_docs_v23/methods/initConnection.md index 1c946720..aa89066c 100644 --- a/old_docs/API_docs_v23/methods/initConnection.md +++ b/old_docs/API_docs_v23/methods/initConnection.md @@ -25,10 +25,10 @@ description: initConnection parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/invokeAfterMsg.md b/old_docs/API_docs_v23/methods/invokeAfterMsg.md index 1b35a238..97c4f1fb 100644 --- a/old_docs/API_docs_v23/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v23/methods/invokeAfterMsg.md @@ -21,10 +21,10 @@ description: invokeAfterMsg parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/invokeAfterMsgs.md b/old_docs/API_docs_v23/methods/invokeAfterMsgs.md index 164ab318..4e278ef1 100644 --- a/old_docs/API_docs_v23/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v23/methods/invokeAfterMsgs.md @@ -21,10 +21,10 @@ description: invokeAfterMsgs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/invokeWithLayer.md b/old_docs/API_docs_v23/methods/invokeWithLayer.md index 497cc285..72fe47ec 100644 --- a/old_docs/API_docs_v23/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v23/methods/invokeWithLayer.md @@ -21,10 +21,10 @@ description: invokeWithLayer parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/messages_acceptEncryption.md b/old_docs/API_docs_v23/methods/messages_acceptEncryption.md index d41beb91..e016f5d3 100644 --- a/old_docs/API_docs_v23/methods/messages_acceptEncryption.md +++ b/old_docs/API_docs_v23/methods/messages_acceptEncryption.md @@ -22,10 +22,10 @@ description: messages.acceptEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/messages_addChatUser.md b/old_docs/API_docs_v23/methods/messages_addChatUser.md index ac9d038d..f4c10701 100644 --- a/old_docs/API_docs_v23/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v23/methods/messages_addChatUser.md @@ -22,10 +22,10 @@ description: messages.addChatUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/messages_createChat.md b/old_docs/API_docs_v23/methods/messages_createChat.md index bf37bfab..bc03bffd 100644 --- a/old_docs/API_docs_v23/methods/messages_createChat.md +++ b/old_docs/API_docs_v23/methods/messages_createChat.md @@ -21,10 +21,10 @@ description: messages.createChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/messages_deleteChatUser.md b/old_docs/API_docs_v23/methods/messages_deleteChatUser.md index 9cd358e4..2537f0f3 100644 --- a/old_docs/API_docs_v23/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v23/methods/messages_deleteChatUser.md @@ -21,10 +21,10 @@ description: messages.deleteChatUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/messages_deleteHistory.md b/old_docs/API_docs_v23/methods/messages_deleteHistory.md index bdbde2cf..c0762753 100644 --- a/old_docs/API_docs_v23/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v23/methods/messages_deleteHistory.md @@ -21,10 +21,10 @@ description: messages.deleteHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/messages_deleteMessages.md b/old_docs/API_docs_v23/methods/messages_deleteMessages.md index b080ba6d..a9fbcdf6 100644 --- a/old_docs/API_docs_v23/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v23/methods/messages_deleteMessages.md @@ -20,10 +20,10 @@ description: messages.deleteMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/messages_discardEncryption.md b/old_docs/API_docs_v23/methods/messages_discardEncryption.md index ebc1ace5..f237c986 100644 --- a/old_docs/API_docs_v23/methods/messages_discardEncryption.md +++ b/old_docs/API_docs_v23/methods/messages_discardEncryption.md @@ -20,10 +20,10 @@ description: messages.discardEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/messages_editChatPhoto.md b/old_docs/API_docs_v23/methods/messages_editChatPhoto.md index dea9b0bd..a8a7d5d9 100644 --- a/old_docs/API_docs_v23/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v23/methods/messages_editChatPhoto.md @@ -21,10 +21,10 @@ description: messages.editChatPhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/messages_editChatTitle.md b/old_docs/API_docs_v23/methods/messages_editChatTitle.md index 1851f102..ed46c15c 100644 --- a/old_docs/API_docs_v23/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v23/methods/messages_editChatTitle.md @@ -21,10 +21,10 @@ description: messages.editChatTitle parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/messages_forwardMessage.md b/old_docs/API_docs_v23/methods/messages_forwardMessage.md index 93e365a7..841980c8 100644 --- a/old_docs/API_docs_v23/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v23/methods/messages_forwardMessage.md @@ -21,10 +21,10 @@ description: messages.forwardMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/messages_forwardMessages.md b/old_docs/API_docs_v23/methods/messages_forwardMessages.md index b443ab5a..c22265a5 100644 --- a/old_docs/API_docs_v23/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v23/methods/messages_forwardMessages.md @@ -21,10 +21,10 @@ description: messages.forwardMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/messages_getAllStickers.md b/old_docs/API_docs_v23/methods/messages_getAllStickers.md index bc696cd6..34254773 100644 --- a/old_docs/API_docs_v23/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v23/methods/messages_getAllStickers.md @@ -20,10 +20,10 @@ description: messages.getAllStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/messages_getChats.md b/old_docs/API_docs_v23/methods/messages_getChats.md index ad63744b..be57718e 100644 --- a/old_docs/API_docs_v23/methods/messages_getChats.md +++ b/old_docs/API_docs_v23/methods/messages_getChats.md @@ -20,10 +20,10 @@ description: messages.getChats parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/messages_getDhConfig.md b/old_docs/API_docs_v23/methods/messages_getDhConfig.md index bcebea55..21b37f21 100644 --- a/old_docs/API_docs_v23/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v23/methods/messages_getDhConfig.md @@ -21,10 +21,10 @@ description: messages.getDhConfig parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/messages_getDialogs.md b/old_docs/API_docs_v23/methods/messages_getDialogs.md index 9fe92014..6d037eab 100644 --- a/old_docs/API_docs_v23/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v23/methods/messages_getDialogs.md @@ -22,10 +22,10 @@ description: messages.getDialogs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/messages_getFullChat.md b/old_docs/API_docs_v23/methods/messages_getFullChat.md index f3c8223a..10d938ae 100644 --- a/old_docs/API_docs_v23/methods/messages_getFullChat.md +++ b/old_docs/API_docs_v23/methods/messages_getFullChat.md @@ -20,10 +20,10 @@ description: messages.getFullChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/messages_getHistory.md b/old_docs/API_docs_v23/methods/messages_getHistory.md index c338a7b1..4b96dba9 100644 --- a/old_docs/API_docs_v23/methods/messages_getHistory.md +++ b/old_docs/API_docs_v23/methods/messages_getHistory.md @@ -23,10 +23,10 @@ description: messages.getHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/messages_getMessages.md b/old_docs/API_docs_v23/methods/messages_getMessages.md index 224df903..e669bcf8 100644 --- a/old_docs/API_docs_v23/methods/messages_getMessages.md +++ b/old_docs/API_docs_v23/methods/messages_getMessages.md @@ -20,10 +20,10 @@ description: messages.getMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/messages_getStickers.md b/old_docs/API_docs_v23/methods/messages_getStickers.md index 6730f586..e9aedd80 100644 --- a/old_docs/API_docs_v23/methods/messages_getStickers.md +++ b/old_docs/API_docs_v23/methods/messages_getStickers.md @@ -21,10 +21,10 @@ description: messages.getStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v23/methods/messages_readEncryptedHistory.md index 555bffe7..5bb05536 100644 --- a/old_docs/API_docs_v23/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v23/methods/messages_readEncryptedHistory.md @@ -21,10 +21,10 @@ description: messages.readEncryptedHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/messages_readHistory.md b/old_docs/API_docs_v23/methods/messages_readHistory.md index 0566a58f..704fab41 100644 --- a/old_docs/API_docs_v23/methods/messages_readHistory.md +++ b/old_docs/API_docs_v23/methods/messages_readHistory.md @@ -23,10 +23,10 @@ description: messages.readHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/messages_readMessageContents.md b/old_docs/API_docs_v23/methods/messages_readMessageContents.md index ef94c7de..5854ded4 100644 --- a/old_docs/API_docs_v23/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v23/methods/messages_readMessageContents.md @@ -20,10 +20,10 @@ description: messages.readMessageContents parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/messages_receivedMessages.md b/old_docs/API_docs_v23/methods/messages_receivedMessages.md index b300f876..7ad8e8d5 100644 --- a/old_docs/API_docs_v23/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v23/methods/messages_receivedMessages.md @@ -20,10 +20,10 @@ description: messages.receivedMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/messages_receivedQueue.md b/old_docs/API_docs_v23/methods/messages_receivedQueue.md index e514669c..d8bfae5e 100644 --- a/old_docs/API_docs_v23/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v23/methods/messages_receivedQueue.md @@ -20,10 +20,10 @@ description: messages.receivedQueue parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/messages_reportSpam.md b/old_docs/API_docs_v23/methods/messages_reportSpam.md index 56975b9d..da747585 100644 --- a/old_docs/API_docs_v23/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v23/methods/messages_reportSpam.md @@ -20,10 +20,10 @@ description: messages.reportSpam parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/messages_requestEncryption.md b/old_docs/API_docs_v23/methods/messages_requestEncryption.md index e82fca54..99fe7ecf 100644 --- a/old_docs/API_docs_v23/methods/messages_requestEncryption.md +++ b/old_docs/API_docs_v23/methods/messages_requestEncryption.md @@ -21,10 +21,10 @@ description: messages.requestEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/messages_search.md b/old_docs/API_docs_v23/methods/messages_search.md index fe53fb8c..05309dbf 100644 --- a/old_docs/API_docs_v23/methods/messages_search.md +++ b/old_docs/API_docs_v23/methods/messages_search.md @@ -27,10 +27,10 @@ description: messages.search parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/messages_sendBroadcast.md b/old_docs/API_docs_v23/methods/messages_sendBroadcast.md index 83d71f78..380f385b 100644 --- a/old_docs/API_docs_v23/methods/messages_sendBroadcast.md +++ b/old_docs/API_docs_v23/methods/messages_sendBroadcast.md @@ -22,10 +22,10 @@ description: messages.sendBroadcast parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/messages_sendEncrypted.md b/old_docs/API_docs_v23/methods/messages_sendEncrypted.md index f2c2c0c2..c3585580 100644 --- a/old_docs/API_docs_v23/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v23/methods/messages_sendEncrypted.md @@ -21,10 +21,10 @@ description: messages.sendEncrypted parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v23/methods/messages_sendEncryptedFile.md index a57a3dd8..40674df9 100644 --- a/old_docs/API_docs_v23/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v23/methods/messages_sendEncryptedFile.md @@ -22,10 +22,10 @@ description: messages.sendEncryptedFile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v23/methods/messages_sendEncryptedService.md index 4041c4d0..8bfee571 100644 --- a/old_docs/API_docs_v23/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v23/methods/messages_sendEncryptedService.md @@ -21,10 +21,10 @@ description: messages.sendEncryptedService parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/messages_sendMedia.md b/old_docs/API_docs_v23/methods/messages_sendMedia.md index b550c398..4ad73412 100644 --- a/old_docs/API_docs_v23/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v23/methods/messages_sendMedia.md @@ -21,10 +21,10 @@ description: messages.sendMedia parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/messages_sendMessage.md b/old_docs/API_docs_v23/methods/messages_sendMessage.md index bbf3cbad..d3933d68 100644 --- a/old_docs/API_docs_v23/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v23/methods/messages_sendMessage.md @@ -21,10 +21,10 @@ description: messages.sendMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v23/methods/messages_setEncryptedTyping.md index 95364d49..ae718bba 100644 --- a/old_docs/API_docs_v23/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v23/methods/messages_setEncryptedTyping.md @@ -21,10 +21,10 @@ description: messages.setEncryptedTyping parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/messages_setTyping.md b/old_docs/API_docs_v23/methods/messages_setTyping.md index 0ce5743d..75903c68 100644 --- a/old_docs/API_docs_v23/methods/messages_setTyping.md +++ b/old_docs/API_docs_v23/methods/messages_setTyping.md @@ -21,10 +21,10 @@ description: messages.setTyping parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/photos_deletePhotos.md b/old_docs/API_docs_v23/methods/photos_deletePhotos.md index 6a717835..2d27b700 100644 --- a/old_docs/API_docs_v23/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v23/methods/photos_deletePhotos.md @@ -20,10 +20,10 @@ description: photos.deletePhotos parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/photos_getUserPhotos.md b/old_docs/API_docs_v23/methods/photos_getUserPhotos.md index 2d289f96..d8a5d6c9 100644 --- a/old_docs/API_docs_v23/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v23/methods/photos_getUserPhotos.md @@ -23,10 +23,10 @@ description: photos.getUserPhotos parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v23/methods/photos_updateProfilePhoto.md index f18669cc..9ae9c59e 100644 --- a/old_docs/API_docs_v23/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v23/methods/photos_updateProfilePhoto.md @@ -21,10 +21,10 @@ description: photos.updateProfilePhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v23/methods/photos_uploadProfilePhoto.md index 3eb7a10c..567eb363 100644 --- a/old_docs/API_docs_v23/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v23/methods/photos_uploadProfilePhoto.md @@ -23,10 +23,10 @@ description: photos.uploadProfilePhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/updates_getDifference.md b/old_docs/API_docs_v23/methods/updates_getDifference.md index c7ae5664..719a7a02 100644 --- a/old_docs/API_docs_v23/methods/updates_getDifference.md +++ b/old_docs/API_docs_v23/methods/updates_getDifference.md @@ -22,10 +22,10 @@ description: updates.getDifference parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/updates_getState.md b/old_docs/API_docs_v23/methods/updates_getState.md index 5612ca79..53fc0c16 100644 --- a/old_docs/API_docs_v23/methods/updates_getState.md +++ b/old_docs/API_docs_v23/methods/updates_getState.md @@ -15,10 +15,10 @@ description: updates.getState parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/upload_getFile.md b/old_docs/API_docs_v23/methods/upload_getFile.md index a2f3d961..ee35140a 100644 --- a/old_docs/API_docs_v23/methods/upload_getFile.md +++ b/old_docs/API_docs_v23/methods/upload_getFile.md @@ -22,10 +22,10 @@ description: upload.getFile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/upload_saveBigFilePart.md b/old_docs/API_docs_v23/methods/upload_saveBigFilePart.md index 03641055..503d1b5c 100644 --- a/old_docs/API_docs_v23/methods/upload_saveBigFilePart.md +++ b/old_docs/API_docs_v23/methods/upload_saveBigFilePart.md @@ -23,10 +23,10 @@ description: upload.saveBigFilePart parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/upload_saveFilePart.md b/old_docs/API_docs_v23/methods/upload_saveFilePart.md index 192412c8..d7f745aa 100644 --- a/old_docs/API_docs_v23/methods/upload_saveFilePart.md +++ b/old_docs/API_docs_v23/methods/upload_saveFilePart.md @@ -22,10 +22,10 @@ description: upload.saveFilePart parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/users_getFullUser.md b/old_docs/API_docs_v23/methods/users_getFullUser.md index 864ae387..bcba7f3d 100644 --- a/old_docs/API_docs_v23/methods/users_getFullUser.md +++ b/old_docs/API_docs_v23/methods/users_getFullUser.md @@ -20,10 +20,10 @@ description: users.getFullUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v23/methods/users_getUsers.md b/old_docs/API_docs_v23/methods/users_getUsers.md index 34816478..e03fd2d6 100644 --- a/old_docs/API_docs_v23/methods/users_getUsers.md +++ b/old_docs/API_docs_v23/methods/users_getUsers.md @@ -20,10 +20,10 @@ description: users.getUsers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/account_changePhone.md b/old_docs/API_docs_v25/methods/account_changePhone.md index dc3e0427..6691a743 100644 --- a/old_docs/API_docs_v25/methods/account_changePhone.md +++ b/old_docs/API_docs_v25/methods/account_changePhone.md @@ -22,10 +22,10 @@ description: account.changePhone parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/account_checkUsername.md b/old_docs/API_docs_v25/methods/account_checkUsername.md index dc13041c..e954ca99 100644 --- a/old_docs/API_docs_v25/methods/account_checkUsername.md +++ b/old_docs/API_docs_v25/methods/account_checkUsername.md @@ -20,10 +20,10 @@ description: account.checkUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/account_deleteAccount.md b/old_docs/API_docs_v25/methods/account_deleteAccount.md index 4199572b..0d0a6204 100644 --- a/old_docs/API_docs_v25/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v25/methods/account_deleteAccount.md @@ -20,10 +20,10 @@ description: account.deleteAccount parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/account_getAccountTTL.md b/old_docs/API_docs_v25/methods/account_getAccountTTL.md index ff4171df..e284a80e 100644 --- a/old_docs/API_docs_v25/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v25/methods/account_getAccountTTL.md @@ -15,10 +15,10 @@ description: account.getAccountTTL parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/account_getNotifySettings.md b/old_docs/API_docs_v25/methods/account_getNotifySettings.md index 817f201a..2e7fd9ba 100644 --- a/old_docs/API_docs_v25/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v25/methods/account_getNotifySettings.md @@ -20,10 +20,10 @@ description: account.getNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/account_getPassword.md b/old_docs/API_docs_v25/methods/account_getPassword.md index d7491fec..424d3710 100644 --- a/old_docs/API_docs_v25/methods/account_getPassword.md +++ b/old_docs/API_docs_v25/methods/account_getPassword.md @@ -15,10 +15,10 @@ description: account.getPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/account_getPrivacy.md b/old_docs/API_docs_v25/methods/account_getPrivacy.md index 649019d5..26137fd3 100644 --- a/old_docs/API_docs_v25/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v25/methods/account_getPrivacy.md @@ -20,10 +20,10 @@ description: account.getPrivacy parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/account_getWallPapers.md b/old_docs/API_docs_v25/methods/account_getWallPapers.md index 9eb0182a..a44ea777 100644 --- a/old_docs/API_docs_v25/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v25/methods/account_getWallPapers.md @@ -15,10 +15,10 @@ description: account.getWallPapers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/account_registerDevice.md b/old_docs/API_docs_v25/methods/account_registerDevice.md index 168dcba0..70cadfab 100644 --- a/old_docs/API_docs_v25/methods/account_registerDevice.md +++ b/old_docs/API_docs_v25/methods/account_registerDevice.md @@ -26,10 +26,10 @@ description: account.registerDevice parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/account_resetNotifySettings.md b/old_docs/API_docs_v25/methods/account_resetNotifySettings.md index 5a6a4c95..aa01dfce 100644 --- a/old_docs/API_docs_v25/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v25/methods/account_resetNotifySettings.md @@ -15,10 +15,10 @@ description: account.resetNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v25/methods/account_sendChangePhoneCode.md index 98110148..4ccc4045 100644 --- a/old_docs/API_docs_v25/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v25/methods/account_sendChangePhoneCode.md @@ -20,10 +20,10 @@ description: account.sendChangePhoneCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/account_setAccountTTL.md b/old_docs/API_docs_v25/methods/account_setAccountTTL.md index 6ae8d70e..460ae89a 100644 --- a/old_docs/API_docs_v25/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v25/methods/account_setAccountTTL.md @@ -20,10 +20,10 @@ description: account.setAccountTTL parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/account_setPassword.md b/old_docs/API_docs_v25/methods/account_setPassword.md index fe0ea736..37efc3e0 100644 --- a/old_docs/API_docs_v25/methods/account_setPassword.md +++ b/old_docs/API_docs_v25/methods/account_setPassword.md @@ -23,10 +23,10 @@ description: account.setPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/account_setPrivacy.md b/old_docs/API_docs_v25/methods/account_setPrivacy.md index e438ca16..f05356db 100644 --- a/old_docs/API_docs_v25/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v25/methods/account_setPrivacy.md @@ -21,10 +21,10 @@ description: account.setPrivacy parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/account_unregisterDevice.md b/old_docs/API_docs_v25/methods/account_unregisterDevice.md index 89ab99a8..1063fad3 100644 --- a/old_docs/API_docs_v25/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v25/methods/account_unregisterDevice.md @@ -21,10 +21,10 @@ description: account.unregisterDevice parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v25/methods/account_updateDeviceLocked.md index 3fe6b8b6..506d974f 100644 --- a/old_docs/API_docs_v25/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v25/methods/account_updateDeviceLocked.md @@ -20,10 +20,10 @@ description: account.updateDeviceLocked parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/account_updateNotifySettings.md b/old_docs/API_docs_v25/methods/account_updateNotifySettings.md index 7eea8202..cb90a39f 100644 --- a/old_docs/API_docs_v25/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v25/methods/account_updateNotifySettings.md @@ -21,10 +21,10 @@ description: account.updateNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/account_updateProfile.md b/old_docs/API_docs_v25/methods/account_updateProfile.md index fce1c8c9..cf8374de 100644 --- a/old_docs/API_docs_v25/methods/account_updateProfile.md +++ b/old_docs/API_docs_v25/methods/account_updateProfile.md @@ -21,10 +21,10 @@ description: account.updateProfile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/account_updateStatus.md b/old_docs/API_docs_v25/methods/account_updateStatus.md index f2fd751e..ac260312 100644 --- a/old_docs/API_docs_v25/methods/account_updateStatus.md +++ b/old_docs/API_docs_v25/methods/account_updateStatus.md @@ -20,10 +20,10 @@ description: account.updateStatus parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/account_updateUsername.md b/old_docs/API_docs_v25/methods/account_updateUsername.md index b5e428e4..7daf43e0 100644 --- a/old_docs/API_docs_v25/methods/account_updateUsername.md +++ b/old_docs/API_docs_v25/methods/account_updateUsername.md @@ -20,10 +20,10 @@ description: account.updateUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v25/methods/auth_bindTempAuthKey.md index 87d0c7cf..55e083cd 100644 --- a/old_docs/API_docs_v25/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v25/methods/auth_bindTempAuthKey.md @@ -23,10 +23,10 @@ description: auth.bindTempAuthKey parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/auth_checkPassword.md b/old_docs/API_docs_v25/methods/auth_checkPassword.md index 601146fc..9dcb706a 100644 --- a/old_docs/API_docs_v25/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v25/methods/auth_checkPassword.md @@ -20,10 +20,10 @@ description: auth.checkPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/auth_checkPhone.md b/old_docs/API_docs_v25/methods/auth_checkPhone.md index 2e4db690..ce137f9d 100644 --- a/old_docs/API_docs_v25/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v25/methods/auth_checkPhone.md @@ -20,10 +20,10 @@ description: auth.checkPhone parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/auth_exportAuthorization.md b/old_docs/API_docs_v25/methods/auth_exportAuthorization.md index a69f0301..bfd16433 100644 --- a/old_docs/API_docs_v25/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v25/methods/auth_exportAuthorization.md @@ -20,10 +20,10 @@ description: auth.exportAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/auth_importAuthorization.md b/old_docs/API_docs_v25/methods/auth_importAuthorization.md index a0e2e4b7..956f9a72 100644 --- a/old_docs/API_docs_v25/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v25/methods/auth_importAuthorization.md @@ -21,10 +21,10 @@ description: auth.importAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/auth_logOut.md b/old_docs/API_docs_v25/methods/auth_logOut.md index ac5bd8ae..5651f753 100644 --- a/old_docs/API_docs_v25/methods/auth_logOut.md +++ b/old_docs/API_docs_v25/methods/auth_logOut.md @@ -15,10 +15,10 @@ description: auth.logOut parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v25/methods/auth_resetAuthorizations.md index f55e2e4d..9b324b42 100644 --- a/old_docs/API_docs_v25/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v25/methods/auth_resetAuthorizations.md @@ -15,10 +15,10 @@ description: auth.resetAuthorizations parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/auth_sendCall.md b/old_docs/API_docs_v25/methods/auth_sendCall.md index 3d44b1d2..584235b0 100644 --- a/old_docs/API_docs_v25/methods/auth_sendCall.md +++ b/old_docs/API_docs_v25/methods/auth_sendCall.md @@ -21,10 +21,10 @@ description: auth.sendCall parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/auth_sendCode.md b/old_docs/API_docs_v25/methods/auth_sendCode.md index 8c4387cf..58305712 100644 --- a/old_docs/API_docs_v25/methods/auth_sendCode.md +++ b/old_docs/API_docs_v25/methods/auth_sendCode.md @@ -24,10 +24,10 @@ description: auth.sendCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/auth_sendInvites.md b/old_docs/API_docs_v25/methods/auth_sendInvites.md index f81a5c7e..87cdc7e3 100644 --- a/old_docs/API_docs_v25/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v25/methods/auth_sendInvites.md @@ -21,10 +21,10 @@ description: auth.sendInvites parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/auth_sendSms.md b/old_docs/API_docs_v25/methods/auth_sendSms.md index ab652a6e..fb469f84 100644 --- a/old_docs/API_docs_v25/methods/auth_sendSms.md +++ b/old_docs/API_docs_v25/methods/auth_sendSms.md @@ -21,10 +21,10 @@ description: auth.sendSms parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/auth_signIn.md b/old_docs/API_docs_v25/methods/auth_signIn.md index 7616bc80..b0fb12fe 100644 --- a/old_docs/API_docs_v25/methods/auth_signIn.md +++ b/old_docs/API_docs_v25/methods/auth_signIn.md @@ -22,10 +22,10 @@ description: auth.signIn parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/auth_signUp.md b/old_docs/API_docs_v25/methods/auth_signUp.md index f9c72d64..6f92b4f7 100644 --- a/old_docs/API_docs_v25/methods/auth_signUp.md +++ b/old_docs/API_docs_v25/methods/auth_signUp.md @@ -24,10 +24,10 @@ description: auth.signUp parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/contacts_block.md b/old_docs/API_docs_v25/methods/contacts_block.md index b809b15c..f512adcc 100644 --- a/old_docs/API_docs_v25/methods/contacts_block.md +++ b/old_docs/API_docs_v25/methods/contacts_block.md @@ -20,10 +20,10 @@ description: contacts.block parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/contacts_deleteContact.md b/old_docs/API_docs_v25/methods/contacts_deleteContact.md index 18ef51f8..a3e8f63d 100644 --- a/old_docs/API_docs_v25/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v25/methods/contacts_deleteContact.md @@ -20,10 +20,10 @@ description: contacts.deleteContact parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/contacts_deleteContacts.md b/old_docs/API_docs_v25/methods/contacts_deleteContacts.md index 40672188..46e251eb 100644 --- a/old_docs/API_docs_v25/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v25/methods/contacts_deleteContacts.md @@ -20,10 +20,10 @@ description: contacts.deleteContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/contacts_exportCard.md b/old_docs/API_docs_v25/methods/contacts_exportCard.md index 4145d246..f7ec0015 100644 --- a/old_docs/API_docs_v25/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v25/methods/contacts_exportCard.md @@ -15,10 +15,10 @@ description: contacts.exportCard parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/contacts_getBlocked.md b/old_docs/API_docs_v25/methods/contacts_getBlocked.md index 50172d03..0fc72dba 100644 --- a/old_docs/API_docs_v25/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v25/methods/contacts_getBlocked.md @@ -21,10 +21,10 @@ description: contacts.getBlocked parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/contacts_getContacts.md b/old_docs/API_docs_v25/methods/contacts_getContacts.md index 0e6f22e9..656821e0 100644 --- a/old_docs/API_docs_v25/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v25/methods/contacts_getContacts.md @@ -20,10 +20,10 @@ description: contacts.getContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/contacts_getStatuses.md b/old_docs/API_docs_v25/methods/contacts_getStatuses.md index b734f529..ee806f2d 100644 --- a/old_docs/API_docs_v25/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v25/methods/contacts_getStatuses.md @@ -15,10 +15,10 @@ description: contacts.getStatuses parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/contacts_getSuggested.md b/old_docs/API_docs_v25/methods/contacts_getSuggested.md index a49b5913..4cd124e7 100644 --- a/old_docs/API_docs_v25/methods/contacts_getSuggested.md +++ b/old_docs/API_docs_v25/methods/contacts_getSuggested.md @@ -20,10 +20,10 @@ description: contacts.getSuggested parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/contacts_importCard.md b/old_docs/API_docs_v25/methods/contacts_importCard.md index 6b2c612e..162ff4f3 100644 --- a/old_docs/API_docs_v25/methods/contacts_importCard.md +++ b/old_docs/API_docs_v25/methods/contacts_importCard.md @@ -20,10 +20,10 @@ description: contacts.importCard parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/contacts_importContacts.md b/old_docs/API_docs_v25/methods/contacts_importContacts.md index 2426f53c..48412e99 100644 --- a/old_docs/API_docs_v25/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v25/methods/contacts_importContacts.md @@ -21,10 +21,10 @@ description: contacts.importContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/contacts_resolveUsername.md b/old_docs/API_docs_v25/methods/contacts_resolveUsername.md index 74600d7c..909a3331 100644 --- a/old_docs/API_docs_v25/methods/contacts_resolveUsername.md +++ b/old_docs/API_docs_v25/methods/contacts_resolveUsername.md @@ -20,10 +20,10 @@ description: contacts.resolveUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/contacts_search.md b/old_docs/API_docs_v25/methods/contacts_search.md index 00a39519..9a351db7 100644 --- a/old_docs/API_docs_v25/methods/contacts_search.md +++ b/old_docs/API_docs_v25/methods/contacts_search.md @@ -21,10 +21,10 @@ description: contacts.search parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/contacts_unblock.md b/old_docs/API_docs_v25/methods/contacts_unblock.md index 63f41483..6d739c9b 100644 --- a/old_docs/API_docs_v25/methods/contacts_unblock.md +++ b/old_docs/API_docs_v25/methods/contacts_unblock.md @@ -20,10 +20,10 @@ description: contacts.unblock parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/geochats_checkin.md b/old_docs/API_docs_v25/methods/geochats_checkin.md index 6a8ea2b9..d19e4f8e 100644 --- a/old_docs/API_docs_v25/methods/geochats_checkin.md +++ b/old_docs/API_docs_v25/methods/geochats_checkin.md @@ -20,10 +20,10 @@ description: geochats.checkin parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/geochats_createGeoChat.md b/old_docs/API_docs_v25/methods/geochats_createGeoChat.md index c7d729d6..e389a52a 100644 --- a/old_docs/API_docs_v25/methods/geochats_createGeoChat.md +++ b/old_docs/API_docs_v25/methods/geochats_createGeoChat.md @@ -23,10 +23,10 @@ description: geochats.createGeoChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/geochats_editChatPhoto.md b/old_docs/API_docs_v25/methods/geochats_editChatPhoto.md index 64bddb60..9d2a3802 100644 --- a/old_docs/API_docs_v25/methods/geochats_editChatPhoto.md +++ b/old_docs/API_docs_v25/methods/geochats_editChatPhoto.md @@ -21,10 +21,10 @@ description: geochats.editChatPhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/geochats_editChatTitle.md b/old_docs/API_docs_v25/methods/geochats_editChatTitle.md index f92823c9..499e487f 100644 --- a/old_docs/API_docs_v25/methods/geochats_editChatTitle.md +++ b/old_docs/API_docs_v25/methods/geochats_editChatTitle.md @@ -22,10 +22,10 @@ description: geochats.editChatTitle parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/geochats_getFullChat.md b/old_docs/API_docs_v25/methods/geochats_getFullChat.md index 44f47fa0..e49b6532 100644 --- a/old_docs/API_docs_v25/methods/geochats_getFullChat.md +++ b/old_docs/API_docs_v25/methods/geochats_getFullChat.md @@ -20,10 +20,10 @@ description: geochats.getFullChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/geochats_getHistory.md b/old_docs/API_docs_v25/methods/geochats_getHistory.md index b206908f..295075b1 100644 --- a/old_docs/API_docs_v25/methods/geochats_getHistory.md +++ b/old_docs/API_docs_v25/methods/geochats_getHistory.md @@ -23,10 +23,10 @@ description: geochats.getHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/geochats_getLocated.md b/old_docs/API_docs_v25/methods/geochats_getLocated.md index 20d904c5..41b922e5 100644 --- a/old_docs/API_docs_v25/methods/geochats_getLocated.md +++ b/old_docs/API_docs_v25/methods/geochats_getLocated.md @@ -22,10 +22,10 @@ description: geochats.getLocated parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/geochats_getRecents.md b/old_docs/API_docs_v25/methods/geochats_getRecents.md index 5f68b17e..7e0704ae 100644 --- a/old_docs/API_docs_v25/methods/geochats_getRecents.md +++ b/old_docs/API_docs_v25/methods/geochats_getRecents.md @@ -21,10 +21,10 @@ description: geochats.getRecents parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/geochats_search.md b/old_docs/API_docs_v25/methods/geochats_search.md index d0193406..b0eaa160 100644 --- a/old_docs/API_docs_v25/methods/geochats_search.md +++ b/old_docs/API_docs_v25/methods/geochats_search.md @@ -27,10 +27,10 @@ description: geochats.search parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/geochats_sendMedia.md b/old_docs/API_docs_v25/methods/geochats_sendMedia.md index baeaf72d..4b3343c6 100644 --- a/old_docs/API_docs_v25/methods/geochats_sendMedia.md +++ b/old_docs/API_docs_v25/methods/geochats_sendMedia.md @@ -21,10 +21,10 @@ description: geochats.sendMedia parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/geochats_sendMessage.md b/old_docs/API_docs_v25/methods/geochats_sendMessage.md index fc42835c..6e58612a 100644 --- a/old_docs/API_docs_v25/methods/geochats_sendMessage.md +++ b/old_docs/API_docs_v25/methods/geochats_sendMessage.md @@ -21,10 +21,10 @@ description: geochats.sendMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/geochats_setTyping.md b/old_docs/API_docs_v25/methods/geochats_setTyping.md index 2b432053..3e920247 100644 --- a/old_docs/API_docs_v25/methods/geochats_setTyping.md +++ b/old_docs/API_docs_v25/methods/geochats_setTyping.md @@ -21,10 +21,10 @@ description: geochats.setTyping parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/help_getAppUpdate.md b/old_docs/API_docs_v25/methods/help_getAppUpdate.md index 7be3b374..9559c840 100644 --- a/old_docs/API_docs_v25/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v25/methods/help_getAppUpdate.md @@ -23,10 +23,10 @@ description: help.getAppUpdate parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/help_getConfig.md b/old_docs/API_docs_v25/methods/help_getConfig.md index cb9c4f1c..9481a0c0 100644 --- a/old_docs/API_docs_v25/methods/help_getConfig.md +++ b/old_docs/API_docs_v25/methods/help_getConfig.md @@ -15,10 +15,10 @@ description: help.getConfig parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/help_getInviteText.md b/old_docs/API_docs_v25/methods/help_getInviteText.md index f265f8d3..14692791 100644 --- a/old_docs/API_docs_v25/methods/help_getInviteText.md +++ b/old_docs/API_docs_v25/methods/help_getInviteText.md @@ -20,10 +20,10 @@ description: help.getInviteText parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/help_getNearestDc.md b/old_docs/API_docs_v25/methods/help_getNearestDc.md index f491ae0c..bb6b1883 100644 --- a/old_docs/API_docs_v25/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v25/methods/help_getNearestDc.md @@ -15,10 +15,10 @@ description: help.getNearestDc parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/help_getSupport.md b/old_docs/API_docs_v25/methods/help_getSupport.md index 03574c6f..0348089a 100644 --- a/old_docs/API_docs_v25/methods/help_getSupport.md +++ b/old_docs/API_docs_v25/methods/help_getSupport.md @@ -15,10 +15,10 @@ description: help.getSupport parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/help_saveAppLog.md b/old_docs/API_docs_v25/methods/help_saveAppLog.md index 3887ccc2..59b92601 100644 --- a/old_docs/API_docs_v25/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v25/methods/help_saveAppLog.md @@ -20,10 +20,10 @@ description: help.saveAppLog parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/initConnection.md b/old_docs/API_docs_v25/methods/initConnection.md index 1c946720..aa89066c 100644 --- a/old_docs/API_docs_v25/methods/initConnection.md +++ b/old_docs/API_docs_v25/methods/initConnection.md @@ -25,10 +25,10 @@ description: initConnection parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/invokeAfterMsg.md b/old_docs/API_docs_v25/methods/invokeAfterMsg.md index 1b35a238..97c4f1fb 100644 --- a/old_docs/API_docs_v25/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v25/methods/invokeAfterMsg.md @@ -21,10 +21,10 @@ description: invokeAfterMsg parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/invokeAfterMsgs.md b/old_docs/API_docs_v25/methods/invokeAfterMsgs.md index 164ab318..4e278ef1 100644 --- a/old_docs/API_docs_v25/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v25/methods/invokeAfterMsgs.md @@ -21,10 +21,10 @@ description: invokeAfterMsgs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/invokeWithLayer.md b/old_docs/API_docs_v25/methods/invokeWithLayer.md index 497cc285..72fe47ec 100644 --- a/old_docs/API_docs_v25/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v25/methods/invokeWithLayer.md @@ -21,10 +21,10 @@ description: invokeWithLayer parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/messages_acceptEncryption.md b/old_docs/API_docs_v25/methods/messages_acceptEncryption.md index d41beb91..e016f5d3 100644 --- a/old_docs/API_docs_v25/methods/messages_acceptEncryption.md +++ b/old_docs/API_docs_v25/methods/messages_acceptEncryption.md @@ -22,10 +22,10 @@ description: messages.acceptEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/messages_addChatUser.md b/old_docs/API_docs_v25/methods/messages_addChatUser.md index ac9d038d..f4c10701 100644 --- a/old_docs/API_docs_v25/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v25/methods/messages_addChatUser.md @@ -22,10 +22,10 @@ description: messages.addChatUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/messages_createChat.md b/old_docs/API_docs_v25/methods/messages_createChat.md index bf37bfab..bc03bffd 100644 --- a/old_docs/API_docs_v25/methods/messages_createChat.md +++ b/old_docs/API_docs_v25/methods/messages_createChat.md @@ -21,10 +21,10 @@ description: messages.createChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/messages_deleteChatUser.md b/old_docs/API_docs_v25/methods/messages_deleteChatUser.md index 9cd358e4..2537f0f3 100644 --- a/old_docs/API_docs_v25/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v25/methods/messages_deleteChatUser.md @@ -21,10 +21,10 @@ description: messages.deleteChatUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/messages_deleteHistory.md b/old_docs/API_docs_v25/methods/messages_deleteHistory.md index bdbde2cf..c0762753 100644 --- a/old_docs/API_docs_v25/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v25/methods/messages_deleteHistory.md @@ -21,10 +21,10 @@ description: messages.deleteHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/messages_deleteMessages.md b/old_docs/API_docs_v25/methods/messages_deleteMessages.md index 5997c2ed..d9d28886 100644 --- a/old_docs/API_docs_v25/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v25/methods/messages_deleteMessages.md @@ -20,10 +20,10 @@ description: messages.deleteMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/messages_discardEncryption.md b/old_docs/API_docs_v25/methods/messages_discardEncryption.md index ebc1ace5..f237c986 100644 --- a/old_docs/API_docs_v25/methods/messages_discardEncryption.md +++ b/old_docs/API_docs_v25/methods/messages_discardEncryption.md @@ -20,10 +20,10 @@ description: messages.discardEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/messages_editChatPhoto.md b/old_docs/API_docs_v25/methods/messages_editChatPhoto.md index dea9b0bd..a8a7d5d9 100644 --- a/old_docs/API_docs_v25/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v25/methods/messages_editChatPhoto.md @@ -21,10 +21,10 @@ description: messages.editChatPhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/messages_editChatTitle.md b/old_docs/API_docs_v25/methods/messages_editChatTitle.md index 1851f102..ed46c15c 100644 --- a/old_docs/API_docs_v25/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v25/methods/messages_editChatTitle.md @@ -21,10 +21,10 @@ description: messages.editChatTitle parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/messages_forwardMessage.md b/old_docs/API_docs_v25/methods/messages_forwardMessage.md index 93e365a7..841980c8 100644 --- a/old_docs/API_docs_v25/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v25/methods/messages_forwardMessage.md @@ -21,10 +21,10 @@ description: messages.forwardMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/messages_forwardMessages.md b/old_docs/API_docs_v25/methods/messages_forwardMessages.md index b443ab5a..c22265a5 100644 --- a/old_docs/API_docs_v25/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v25/methods/messages_forwardMessages.md @@ -21,10 +21,10 @@ description: messages.forwardMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/messages_getAllStickers.md b/old_docs/API_docs_v25/methods/messages_getAllStickers.md index bc696cd6..34254773 100644 --- a/old_docs/API_docs_v25/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v25/methods/messages_getAllStickers.md @@ -20,10 +20,10 @@ description: messages.getAllStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/messages_getChats.md b/old_docs/API_docs_v25/methods/messages_getChats.md index ad63744b..be57718e 100644 --- a/old_docs/API_docs_v25/methods/messages_getChats.md +++ b/old_docs/API_docs_v25/methods/messages_getChats.md @@ -20,10 +20,10 @@ description: messages.getChats parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/messages_getDhConfig.md b/old_docs/API_docs_v25/methods/messages_getDhConfig.md index bcebea55..21b37f21 100644 --- a/old_docs/API_docs_v25/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v25/methods/messages_getDhConfig.md @@ -21,10 +21,10 @@ description: messages.getDhConfig parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/messages_getDialogs.md b/old_docs/API_docs_v25/methods/messages_getDialogs.md index 9fe92014..6d037eab 100644 --- a/old_docs/API_docs_v25/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v25/methods/messages_getDialogs.md @@ -22,10 +22,10 @@ description: messages.getDialogs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/messages_getFullChat.md b/old_docs/API_docs_v25/methods/messages_getFullChat.md index f3c8223a..10d938ae 100644 --- a/old_docs/API_docs_v25/methods/messages_getFullChat.md +++ b/old_docs/API_docs_v25/methods/messages_getFullChat.md @@ -20,10 +20,10 @@ description: messages.getFullChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/messages_getHistory.md b/old_docs/API_docs_v25/methods/messages_getHistory.md index c338a7b1..4b96dba9 100644 --- a/old_docs/API_docs_v25/methods/messages_getHistory.md +++ b/old_docs/API_docs_v25/methods/messages_getHistory.md @@ -23,10 +23,10 @@ description: messages.getHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/messages_getMessages.md b/old_docs/API_docs_v25/methods/messages_getMessages.md index 224df903..e669bcf8 100644 --- a/old_docs/API_docs_v25/methods/messages_getMessages.md +++ b/old_docs/API_docs_v25/methods/messages_getMessages.md @@ -20,10 +20,10 @@ description: messages.getMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/messages_getStickers.md b/old_docs/API_docs_v25/methods/messages_getStickers.md index 6730f586..e9aedd80 100644 --- a/old_docs/API_docs_v25/methods/messages_getStickers.md +++ b/old_docs/API_docs_v25/methods/messages_getStickers.md @@ -21,10 +21,10 @@ description: messages.getStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v25/methods/messages_readEncryptedHistory.md index 555bffe7..5bb05536 100644 --- a/old_docs/API_docs_v25/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v25/methods/messages_readEncryptedHistory.md @@ -21,10 +21,10 @@ description: messages.readEncryptedHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/messages_readHistory.md b/old_docs/API_docs_v25/methods/messages_readHistory.md index f5c7ba11..1083b414 100644 --- a/old_docs/API_docs_v25/methods/messages_readHistory.md +++ b/old_docs/API_docs_v25/methods/messages_readHistory.md @@ -22,10 +22,10 @@ description: messages.readHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/messages_readMessageContents.md b/old_docs/API_docs_v25/methods/messages_readMessageContents.md index ae75d612..829e7cc8 100644 --- a/old_docs/API_docs_v25/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v25/methods/messages_readMessageContents.md @@ -20,10 +20,10 @@ description: messages.readMessageContents parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/messages_receivedMessages.md b/old_docs/API_docs_v25/methods/messages_receivedMessages.md index b300f876..7ad8e8d5 100644 --- a/old_docs/API_docs_v25/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v25/methods/messages_receivedMessages.md @@ -20,10 +20,10 @@ description: messages.receivedMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/messages_receivedQueue.md b/old_docs/API_docs_v25/methods/messages_receivedQueue.md index e514669c..d8bfae5e 100644 --- a/old_docs/API_docs_v25/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v25/methods/messages_receivedQueue.md @@ -20,10 +20,10 @@ description: messages.receivedQueue parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/messages_requestEncryption.md b/old_docs/API_docs_v25/methods/messages_requestEncryption.md index e82fca54..99fe7ecf 100644 --- a/old_docs/API_docs_v25/methods/messages_requestEncryption.md +++ b/old_docs/API_docs_v25/methods/messages_requestEncryption.md @@ -21,10 +21,10 @@ description: messages.requestEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/messages_search.md b/old_docs/API_docs_v25/methods/messages_search.md index fe53fb8c..05309dbf 100644 --- a/old_docs/API_docs_v25/methods/messages_search.md +++ b/old_docs/API_docs_v25/methods/messages_search.md @@ -27,10 +27,10 @@ description: messages.search parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/messages_sendBroadcast.md b/old_docs/API_docs_v25/methods/messages_sendBroadcast.md index 83d71f78..380f385b 100644 --- a/old_docs/API_docs_v25/methods/messages_sendBroadcast.md +++ b/old_docs/API_docs_v25/methods/messages_sendBroadcast.md @@ -22,10 +22,10 @@ description: messages.sendBroadcast parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/messages_sendEncrypted.md b/old_docs/API_docs_v25/methods/messages_sendEncrypted.md index f2c2c0c2..c3585580 100644 --- a/old_docs/API_docs_v25/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v25/methods/messages_sendEncrypted.md @@ -21,10 +21,10 @@ description: messages.sendEncrypted parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v25/methods/messages_sendEncryptedFile.md index a57a3dd8..40674df9 100644 --- a/old_docs/API_docs_v25/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v25/methods/messages_sendEncryptedFile.md @@ -22,10 +22,10 @@ description: messages.sendEncryptedFile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v25/methods/messages_sendEncryptedService.md index 4041c4d0..8bfee571 100644 --- a/old_docs/API_docs_v25/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v25/methods/messages_sendEncryptedService.md @@ -21,10 +21,10 @@ description: messages.sendEncryptedService parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/messages_sendMedia.md b/old_docs/API_docs_v25/methods/messages_sendMedia.md index 0bed6a06..34bf45be 100644 --- a/old_docs/API_docs_v25/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v25/methods/messages_sendMedia.md @@ -22,10 +22,10 @@ description: messages.sendMedia parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/messages_sendMessage.md b/old_docs/API_docs_v25/methods/messages_sendMessage.md index 2b35566e..038fa7f2 100644 --- a/old_docs/API_docs_v25/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v25/methods/messages_sendMessage.md @@ -22,10 +22,10 @@ description: messages.sendMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v25/methods/messages_setEncryptedTyping.md index 95364d49..ae718bba 100644 --- a/old_docs/API_docs_v25/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v25/methods/messages_setEncryptedTyping.md @@ -21,10 +21,10 @@ description: messages.setEncryptedTyping parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/messages_setTyping.md b/old_docs/API_docs_v25/methods/messages_setTyping.md index 0ce5743d..75903c68 100644 --- a/old_docs/API_docs_v25/methods/messages_setTyping.md +++ b/old_docs/API_docs_v25/methods/messages_setTyping.md @@ -21,10 +21,10 @@ description: messages.setTyping parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/photos_deletePhotos.md b/old_docs/API_docs_v25/methods/photos_deletePhotos.md index 6a717835..2d27b700 100644 --- a/old_docs/API_docs_v25/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v25/methods/photos_deletePhotos.md @@ -20,10 +20,10 @@ description: photos.deletePhotos parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/photos_getUserPhotos.md b/old_docs/API_docs_v25/methods/photos_getUserPhotos.md index 2d289f96..d8a5d6c9 100644 --- a/old_docs/API_docs_v25/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v25/methods/photos_getUserPhotos.md @@ -23,10 +23,10 @@ description: photos.getUserPhotos parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v25/methods/photos_updateProfilePhoto.md index f18669cc..9ae9c59e 100644 --- a/old_docs/API_docs_v25/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v25/methods/photos_updateProfilePhoto.md @@ -21,10 +21,10 @@ description: photos.updateProfilePhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v25/methods/photos_uploadProfilePhoto.md index 3eb7a10c..567eb363 100644 --- a/old_docs/API_docs_v25/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v25/methods/photos_uploadProfilePhoto.md @@ -23,10 +23,10 @@ description: photos.uploadProfilePhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/updates_getDifference.md b/old_docs/API_docs_v25/methods/updates_getDifference.md index c7ae5664..719a7a02 100644 --- a/old_docs/API_docs_v25/methods/updates_getDifference.md +++ b/old_docs/API_docs_v25/methods/updates_getDifference.md @@ -22,10 +22,10 @@ description: updates.getDifference parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/updates_getState.md b/old_docs/API_docs_v25/methods/updates_getState.md index 5612ca79..53fc0c16 100644 --- a/old_docs/API_docs_v25/methods/updates_getState.md +++ b/old_docs/API_docs_v25/methods/updates_getState.md @@ -15,10 +15,10 @@ description: updates.getState parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/upload_getFile.md b/old_docs/API_docs_v25/methods/upload_getFile.md index a2f3d961..ee35140a 100644 --- a/old_docs/API_docs_v25/methods/upload_getFile.md +++ b/old_docs/API_docs_v25/methods/upload_getFile.md @@ -22,10 +22,10 @@ description: upload.getFile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/upload_saveBigFilePart.md b/old_docs/API_docs_v25/methods/upload_saveBigFilePart.md index 03641055..503d1b5c 100644 --- a/old_docs/API_docs_v25/methods/upload_saveBigFilePart.md +++ b/old_docs/API_docs_v25/methods/upload_saveBigFilePart.md @@ -23,10 +23,10 @@ description: upload.saveBigFilePart parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/upload_saveFilePart.md b/old_docs/API_docs_v25/methods/upload_saveFilePart.md index 192412c8..d7f745aa 100644 --- a/old_docs/API_docs_v25/methods/upload_saveFilePart.md +++ b/old_docs/API_docs_v25/methods/upload_saveFilePart.md @@ -22,10 +22,10 @@ description: upload.saveFilePart parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/users_getFullUser.md b/old_docs/API_docs_v25/methods/users_getFullUser.md index 864ae387..bcba7f3d 100644 --- a/old_docs/API_docs_v25/methods/users_getFullUser.md +++ b/old_docs/API_docs_v25/methods/users_getFullUser.md @@ -20,10 +20,10 @@ description: users.getFullUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v25/methods/users_getUsers.md b/old_docs/API_docs_v25/methods/users_getUsers.md index 34816478..e03fd2d6 100644 --- a/old_docs/API_docs_v25/methods/users_getUsers.md +++ b/old_docs/API_docs_v25/methods/users_getUsers.md @@ -20,10 +20,10 @@ description: users.getUsers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/account_changePhone.md b/old_docs/API_docs_v27/methods/account_changePhone.md index dc3e0427..6691a743 100644 --- a/old_docs/API_docs_v27/methods/account_changePhone.md +++ b/old_docs/API_docs_v27/methods/account_changePhone.md @@ -22,10 +22,10 @@ description: account.changePhone parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/account_checkUsername.md b/old_docs/API_docs_v27/methods/account_checkUsername.md index dc13041c..e954ca99 100644 --- a/old_docs/API_docs_v27/methods/account_checkUsername.md +++ b/old_docs/API_docs_v27/methods/account_checkUsername.md @@ -20,10 +20,10 @@ description: account.checkUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/account_deleteAccount.md b/old_docs/API_docs_v27/methods/account_deleteAccount.md index 4199572b..0d0a6204 100644 --- a/old_docs/API_docs_v27/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v27/methods/account_deleteAccount.md @@ -20,10 +20,10 @@ description: account.deleteAccount parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/account_getAccountTTL.md b/old_docs/API_docs_v27/methods/account_getAccountTTL.md index ff4171df..e284a80e 100644 --- a/old_docs/API_docs_v27/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v27/methods/account_getAccountTTL.md @@ -15,10 +15,10 @@ description: account.getAccountTTL parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/account_getAuthorizations.md b/old_docs/API_docs_v27/methods/account_getAuthorizations.md index 26f755d4..ee5a00d6 100644 --- a/old_docs/API_docs_v27/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v27/methods/account_getAuthorizations.md @@ -15,10 +15,10 @@ description: account.getAuthorizations parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/account_getNotifySettings.md b/old_docs/API_docs_v27/methods/account_getNotifySettings.md index 817f201a..2e7fd9ba 100644 --- a/old_docs/API_docs_v27/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v27/methods/account_getNotifySettings.md @@ -20,10 +20,10 @@ description: account.getNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/account_getPassword.md b/old_docs/API_docs_v27/methods/account_getPassword.md index d7491fec..424d3710 100644 --- a/old_docs/API_docs_v27/methods/account_getPassword.md +++ b/old_docs/API_docs_v27/methods/account_getPassword.md @@ -15,10 +15,10 @@ description: account.getPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/account_getPasswordSettings.md b/old_docs/API_docs_v27/methods/account_getPasswordSettings.md index 5be9a523..3e72e398 100644 --- a/old_docs/API_docs_v27/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v27/methods/account_getPasswordSettings.md @@ -20,10 +20,10 @@ description: account.getPasswordSettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/account_getPrivacy.md b/old_docs/API_docs_v27/methods/account_getPrivacy.md index 649019d5..26137fd3 100644 --- a/old_docs/API_docs_v27/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v27/methods/account_getPrivacy.md @@ -20,10 +20,10 @@ description: account.getPrivacy parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/account_getWallPapers.md b/old_docs/API_docs_v27/methods/account_getWallPapers.md index 9eb0182a..a44ea777 100644 --- a/old_docs/API_docs_v27/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v27/methods/account_getWallPapers.md @@ -15,10 +15,10 @@ description: account.getWallPapers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/account_registerDevice.md b/old_docs/API_docs_v27/methods/account_registerDevice.md index 168dcba0..70cadfab 100644 --- a/old_docs/API_docs_v27/methods/account_registerDevice.md +++ b/old_docs/API_docs_v27/methods/account_registerDevice.md @@ -26,10 +26,10 @@ description: account.registerDevice parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/account_resetAuthorization.md b/old_docs/API_docs_v27/methods/account_resetAuthorization.md index aaf5a660..2c7c5bc4 100644 --- a/old_docs/API_docs_v27/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v27/methods/account_resetAuthorization.md @@ -20,10 +20,10 @@ description: account.resetAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/account_resetNotifySettings.md b/old_docs/API_docs_v27/methods/account_resetNotifySettings.md index 5a6a4c95..aa01dfce 100644 --- a/old_docs/API_docs_v27/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v27/methods/account_resetNotifySettings.md @@ -15,10 +15,10 @@ description: account.resetNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v27/methods/account_sendChangePhoneCode.md index 98110148..4ccc4045 100644 --- a/old_docs/API_docs_v27/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v27/methods/account_sendChangePhoneCode.md @@ -20,10 +20,10 @@ description: account.sendChangePhoneCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/account_setAccountTTL.md b/old_docs/API_docs_v27/methods/account_setAccountTTL.md index 6ae8d70e..460ae89a 100644 --- a/old_docs/API_docs_v27/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v27/methods/account_setAccountTTL.md @@ -20,10 +20,10 @@ description: account.setAccountTTL parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/account_setPrivacy.md b/old_docs/API_docs_v27/methods/account_setPrivacy.md index e438ca16..f05356db 100644 --- a/old_docs/API_docs_v27/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v27/methods/account_setPrivacy.md @@ -21,10 +21,10 @@ description: account.setPrivacy parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/account_unregisterDevice.md b/old_docs/API_docs_v27/methods/account_unregisterDevice.md index 89ab99a8..1063fad3 100644 --- a/old_docs/API_docs_v27/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v27/methods/account_unregisterDevice.md @@ -21,10 +21,10 @@ description: account.unregisterDevice parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v27/methods/account_updateDeviceLocked.md index 3fe6b8b6..506d974f 100644 --- a/old_docs/API_docs_v27/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v27/methods/account_updateDeviceLocked.md @@ -20,10 +20,10 @@ description: account.updateDeviceLocked parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/account_updateNotifySettings.md b/old_docs/API_docs_v27/methods/account_updateNotifySettings.md index 7eea8202..cb90a39f 100644 --- a/old_docs/API_docs_v27/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v27/methods/account_updateNotifySettings.md @@ -21,10 +21,10 @@ description: account.updateNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v27/methods/account_updatePasswordSettings.md index 56e4d724..ad1a930d 100644 --- a/old_docs/API_docs_v27/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v27/methods/account_updatePasswordSettings.md @@ -21,10 +21,10 @@ description: account.updatePasswordSettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/account_updateProfile.md b/old_docs/API_docs_v27/methods/account_updateProfile.md index fce1c8c9..cf8374de 100644 --- a/old_docs/API_docs_v27/methods/account_updateProfile.md +++ b/old_docs/API_docs_v27/methods/account_updateProfile.md @@ -21,10 +21,10 @@ description: account.updateProfile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/account_updateStatus.md b/old_docs/API_docs_v27/methods/account_updateStatus.md index f2fd751e..ac260312 100644 --- a/old_docs/API_docs_v27/methods/account_updateStatus.md +++ b/old_docs/API_docs_v27/methods/account_updateStatus.md @@ -20,10 +20,10 @@ description: account.updateStatus parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/account_updateUsername.md b/old_docs/API_docs_v27/methods/account_updateUsername.md index b5e428e4..7daf43e0 100644 --- a/old_docs/API_docs_v27/methods/account_updateUsername.md +++ b/old_docs/API_docs_v27/methods/account_updateUsername.md @@ -20,10 +20,10 @@ description: account.updateUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v27/methods/auth_bindTempAuthKey.md index 87d0c7cf..55e083cd 100644 --- a/old_docs/API_docs_v27/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v27/methods/auth_bindTempAuthKey.md @@ -23,10 +23,10 @@ description: auth.bindTempAuthKey parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/auth_checkPassword.md b/old_docs/API_docs_v27/methods/auth_checkPassword.md index 601146fc..9dcb706a 100644 --- a/old_docs/API_docs_v27/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v27/methods/auth_checkPassword.md @@ -20,10 +20,10 @@ description: auth.checkPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/auth_checkPhone.md b/old_docs/API_docs_v27/methods/auth_checkPhone.md index 2e4db690..ce137f9d 100644 --- a/old_docs/API_docs_v27/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v27/methods/auth_checkPhone.md @@ -20,10 +20,10 @@ description: auth.checkPhone parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/auth_exportAuthorization.md b/old_docs/API_docs_v27/methods/auth_exportAuthorization.md index a69f0301..bfd16433 100644 --- a/old_docs/API_docs_v27/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v27/methods/auth_exportAuthorization.md @@ -20,10 +20,10 @@ description: auth.exportAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/auth_importAuthorization.md b/old_docs/API_docs_v27/methods/auth_importAuthorization.md index a0e2e4b7..956f9a72 100644 --- a/old_docs/API_docs_v27/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v27/methods/auth_importAuthorization.md @@ -21,10 +21,10 @@ description: auth.importAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/auth_logOut.md b/old_docs/API_docs_v27/methods/auth_logOut.md index ac5bd8ae..5651f753 100644 --- a/old_docs/API_docs_v27/methods/auth_logOut.md +++ b/old_docs/API_docs_v27/methods/auth_logOut.md @@ -15,10 +15,10 @@ description: auth.logOut parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/auth_recoverPassword.md b/old_docs/API_docs_v27/methods/auth_recoverPassword.md index 9b7ebcfb..e253e7d9 100644 --- a/old_docs/API_docs_v27/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v27/methods/auth_recoverPassword.md @@ -20,10 +20,10 @@ description: auth.recoverPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v27/methods/auth_requestPasswordRecovery.md index 94c0aeff..2ae670eb 100644 --- a/old_docs/API_docs_v27/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v27/methods/auth_requestPasswordRecovery.md @@ -15,10 +15,10 @@ description: auth.requestPasswordRecovery parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v27/methods/auth_resetAuthorizations.md index f55e2e4d..9b324b42 100644 --- a/old_docs/API_docs_v27/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v27/methods/auth_resetAuthorizations.md @@ -15,10 +15,10 @@ description: auth.resetAuthorizations parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/auth_sendCall.md b/old_docs/API_docs_v27/methods/auth_sendCall.md index 3d44b1d2..584235b0 100644 --- a/old_docs/API_docs_v27/methods/auth_sendCall.md +++ b/old_docs/API_docs_v27/methods/auth_sendCall.md @@ -21,10 +21,10 @@ description: auth.sendCall parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/auth_sendCode.md b/old_docs/API_docs_v27/methods/auth_sendCode.md index 8c4387cf..58305712 100644 --- a/old_docs/API_docs_v27/methods/auth_sendCode.md +++ b/old_docs/API_docs_v27/methods/auth_sendCode.md @@ -24,10 +24,10 @@ description: auth.sendCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/auth_sendInvites.md b/old_docs/API_docs_v27/methods/auth_sendInvites.md index f81a5c7e..87cdc7e3 100644 --- a/old_docs/API_docs_v27/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v27/methods/auth_sendInvites.md @@ -21,10 +21,10 @@ description: auth.sendInvites parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/auth_sendSms.md b/old_docs/API_docs_v27/methods/auth_sendSms.md index ab652a6e..fb469f84 100644 --- a/old_docs/API_docs_v27/methods/auth_sendSms.md +++ b/old_docs/API_docs_v27/methods/auth_sendSms.md @@ -21,10 +21,10 @@ description: auth.sendSms parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/auth_signIn.md b/old_docs/API_docs_v27/methods/auth_signIn.md index 7616bc80..b0fb12fe 100644 --- a/old_docs/API_docs_v27/methods/auth_signIn.md +++ b/old_docs/API_docs_v27/methods/auth_signIn.md @@ -22,10 +22,10 @@ description: auth.signIn parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/auth_signUp.md b/old_docs/API_docs_v27/methods/auth_signUp.md index f9c72d64..6f92b4f7 100644 --- a/old_docs/API_docs_v27/methods/auth_signUp.md +++ b/old_docs/API_docs_v27/methods/auth_signUp.md @@ -24,10 +24,10 @@ description: auth.signUp parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/contacts_block.md b/old_docs/API_docs_v27/methods/contacts_block.md index b809b15c..f512adcc 100644 --- a/old_docs/API_docs_v27/methods/contacts_block.md +++ b/old_docs/API_docs_v27/methods/contacts_block.md @@ -20,10 +20,10 @@ description: contacts.block parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/contacts_deleteContact.md b/old_docs/API_docs_v27/methods/contacts_deleteContact.md index 18ef51f8..a3e8f63d 100644 --- a/old_docs/API_docs_v27/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v27/methods/contacts_deleteContact.md @@ -20,10 +20,10 @@ description: contacts.deleteContact parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/contacts_deleteContacts.md b/old_docs/API_docs_v27/methods/contacts_deleteContacts.md index 40672188..46e251eb 100644 --- a/old_docs/API_docs_v27/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v27/methods/contacts_deleteContacts.md @@ -20,10 +20,10 @@ description: contacts.deleteContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/contacts_exportCard.md b/old_docs/API_docs_v27/methods/contacts_exportCard.md index 4145d246..f7ec0015 100644 --- a/old_docs/API_docs_v27/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v27/methods/contacts_exportCard.md @@ -15,10 +15,10 @@ description: contacts.exportCard parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/contacts_getBlocked.md b/old_docs/API_docs_v27/methods/contacts_getBlocked.md index 50172d03..0fc72dba 100644 --- a/old_docs/API_docs_v27/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v27/methods/contacts_getBlocked.md @@ -21,10 +21,10 @@ description: contacts.getBlocked parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/contacts_getContacts.md b/old_docs/API_docs_v27/methods/contacts_getContacts.md index 0e6f22e9..656821e0 100644 --- a/old_docs/API_docs_v27/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v27/methods/contacts_getContacts.md @@ -20,10 +20,10 @@ description: contacts.getContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/contacts_getStatuses.md b/old_docs/API_docs_v27/methods/contacts_getStatuses.md index b734f529..ee806f2d 100644 --- a/old_docs/API_docs_v27/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v27/methods/contacts_getStatuses.md @@ -15,10 +15,10 @@ description: contacts.getStatuses parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/contacts_getSuggested.md b/old_docs/API_docs_v27/methods/contacts_getSuggested.md index a49b5913..4cd124e7 100644 --- a/old_docs/API_docs_v27/methods/contacts_getSuggested.md +++ b/old_docs/API_docs_v27/methods/contacts_getSuggested.md @@ -20,10 +20,10 @@ description: contacts.getSuggested parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/contacts_importCard.md b/old_docs/API_docs_v27/methods/contacts_importCard.md index 6b2c612e..162ff4f3 100644 --- a/old_docs/API_docs_v27/methods/contacts_importCard.md +++ b/old_docs/API_docs_v27/methods/contacts_importCard.md @@ -20,10 +20,10 @@ description: contacts.importCard parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/contacts_importContacts.md b/old_docs/API_docs_v27/methods/contacts_importContacts.md index 2426f53c..48412e99 100644 --- a/old_docs/API_docs_v27/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v27/methods/contacts_importContacts.md @@ -21,10 +21,10 @@ description: contacts.importContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/contacts_resolveUsername.md b/old_docs/API_docs_v27/methods/contacts_resolveUsername.md index 74600d7c..909a3331 100644 --- a/old_docs/API_docs_v27/methods/contacts_resolveUsername.md +++ b/old_docs/API_docs_v27/methods/contacts_resolveUsername.md @@ -20,10 +20,10 @@ description: contacts.resolveUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/contacts_search.md b/old_docs/API_docs_v27/methods/contacts_search.md index 00a39519..9a351db7 100644 --- a/old_docs/API_docs_v27/methods/contacts_search.md +++ b/old_docs/API_docs_v27/methods/contacts_search.md @@ -21,10 +21,10 @@ description: contacts.search parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/contacts_unblock.md b/old_docs/API_docs_v27/methods/contacts_unblock.md index 63f41483..6d739c9b 100644 --- a/old_docs/API_docs_v27/methods/contacts_unblock.md +++ b/old_docs/API_docs_v27/methods/contacts_unblock.md @@ -20,10 +20,10 @@ description: contacts.unblock parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/geochats_checkin.md b/old_docs/API_docs_v27/methods/geochats_checkin.md index 6a8ea2b9..d19e4f8e 100644 --- a/old_docs/API_docs_v27/methods/geochats_checkin.md +++ b/old_docs/API_docs_v27/methods/geochats_checkin.md @@ -20,10 +20,10 @@ description: geochats.checkin parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/geochats_createGeoChat.md b/old_docs/API_docs_v27/methods/geochats_createGeoChat.md index c7d729d6..e389a52a 100644 --- a/old_docs/API_docs_v27/methods/geochats_createGeoChat.md +++ b/old_docs/API_docs_v27/methods/geochats_createGeoChat.md @@ -23,10 +23,10 @@ description: geochats.createGeoChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/geochats_editChatPhoto.md b/old_docs/API_docs_v27/methods/geochats_editChatPhoto.md index 64bddb60..9d2a3802 100644 --- a/old_docs/API_docs_v27/methods/geochats_editChatPhoto.md +++ b/old_docs/API_docs_v27/methods/geochats_editChatPhoto.md @@ -21,10 +21,10 @@ description: geochats.editChatPhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/geochats_editChatTitle.md b/old_docs/API_docs_v27/methods/geochats_editChatTitle.md index f92823c9..499e487f 100644 --- a/old_docs/API_docs_v27/methods/geochats_editChatTitle.md +++ b/old_docs/API_docs_v27/methods/geochats_editChatTitle.md @@ -22,10 +22,10 @@ description: geochats.editChatTitle parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/geochats_getFullChat.md b/old_docs/API_docs_v27/methods/geochats_getFullChat.md index 44f47fa0..e49b6532 100644 --- a/old_docs/API_docs_v27/methods/geochats_getFullChat.md +++ b/old_docs/API_docs_v27/methods/geochats_getFullChat.md @@ -20,10 +20,10 @@ description: geochats.getFullChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/geochats_getHistory.md b/old_docs/API_docs_v27/methods/geochats_getHistory.md index b206908f..295075b1 100644 --- a/old_docs/API_docs_v27/methods/geochats_getHistory.md +++ b/old_docs/API_docs_v27/methods/geochats_getHistory.md @@ -23,10 +23,10 @@ description: geochats.getHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/geochats_getLocated.md b/old_docs/API_docs_v27/methods/geochats_getLocated.md index 20d904c5..41b922e5 100644 --- a/old_docs/API_docs_v27/methods/geochats_getLocated.md +++ b/old_docs/API_docs_v27/methods/geochats_getLocated.md @@ -22,10 +22,10 @@ description: geochats.getLocated parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/geochats_getRecents.md b/old_docs/API_docs_v27/methods/geochats_getRecents.md index 5f68b17e..7e0704ae 100644 --- a/old_docs/API_docs_v27/methods/geochats_getRecents.md +++ b/old_docs/API_docs_v27/methods/geochats_getRecents.md @@ -21,10 +21,10 @@ description: geochats.getRecents parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/geochats_search.md b/old_docs/API_docs_v27/methods/geochats_search.md index d0193406..b0eaa160 100644 --- a/old_docs/API_docs_v27/methods/geochats_search.md +++ b/old_docs/API_docs_v27/methods/geochats_search.md @@ -27,10 +27,10 @@ description: geochats.search parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/geochats_sendMedia.md b/old_docs/API_docs_v27/methods/geochats_sendMedia.md index baeaf72d..4b3343c6 100644 --- a/old_docs/API_docs_v27/methods/geochats_sendMedia.md +++ b/old_docs/API_docs_v27/methods/geochats_sendMedia.md @@ -21,10 +21,10 @@ description: geochats.sendMedia parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/geochats_sendMessage.md b/old_docs/API_docs_v27/methods/geochats_sendMessage.md index fc42835c..6e58612a 100644 --- a/old_docs/API_docs_v27/methods/geochats_sendMessage.md +++ b/old_docs/API_docs_v27/methods/geochats_sendMessage.md @@ -21,10 +21,10 @@ description: geochats.sendMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/geochats_setTyping.md b/old_docs/API_docs_v27/methods/geochats_setTyping.md index 2b432053..3e920247 100644 --- a/old_docs/API_docs_v27/methods/geochats_setTyping.md +++ b/old_docs/API_docs_v27/methods/geochats_setTyping.md @@ -21,10 +21,10 @@ description: geochats.setTyping parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/help_getAppUpdate.md b/old_docs/API_docs_v27/methods/help_getAppUpdate.md index 7be3b374..9559c840 100644 --- a/old_docs/API_docs_v27/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v27/methods/help_getAppUpdate.md @@ -23,10 +23,10 @@ description: help.getAppUpdate parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/help_getConfig.md b/old_docs/API_docs_v27/methods/help_getConfig.md index cb9c4f1c..9481a0c0 100644 --- a/old_docs/API_docs_v27/methods/help_getConfig.md +++ b/old_docs/API_docs_v27/methods/help_getConfig.md @@ -15,10 +15,10 @@ description: help.getConfig parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/help_getInviteText.md b/old_docs/API_docs_v27/methods/help_getInviteText.md index f265f8d3..14692791 100644 --- a/old_docs/API_docs_v27/methods/help_getInviteText.md +++ b/old_docs/API_docs_v27/methods/help_getInviteText.md @@ -20,10 +20,10 @@ description: help.getInviteText parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/help_getNearestDc.md b/old_docs/API_docs_v27/methods/help_getNearestDc.md index f491ae0c..bb6b1883 100644 --- a/old_docs/API_docs_v27/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v27/methods/help_getNearestDc.md @@ -15,10 +15,10 @@ description: help.getNearestDc parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/help_getSupport.md b/old_docs/API_docs_v27/methods/help_getSupport.md index 03574c6f..0348089a 100644 --- a/old_docs/API_docs_v27/methods/help_getSupport.md +++ b/old_docs/API_docs_v27/methods/help_getSupport.md @@ -15,10 +15,10 @@ description: help.getSupport parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/help_saveAppLog.md b/old_docs/API_docs_v27/methods/help_saveAppLog.md index 3887ccc2..59b92601 100644 --- a/old_docs/API_docs_v27/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v27/methods/help_saveAppLog.md @@ -20,10 +20,10 @@ description: help.saveAppLog parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/initConnection.md b/old_docs/API_docs_v27/methods/initConnection.md index 1c946720..aa89066c 100644 --- a/old_docs/API_docs_v27/methods/initConnection.md +++ b/old_docs/API_docs_v27/methods/initConnection.md @@ -25,10 +25,10 @@ description: initConnection parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/invokeAfterMsg.md b/old_docs/API_docs_v27/methods/invokeAfterMsg.md index 1b35a238..97c4f1fb 100644 --- a/old_docs/API_docs_v27/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v27/methods/invokeAfterMsg.md @@ -21,10 +21,10 @@ description: invokeAfterMsg parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/invokeAfterMsgs.md b/old_docs/API_docs_v27/methods/invokeAfterMsgs.md index 164ab318..4e278ef1 100644 --- a/old_docs/API_docs_v27/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v27/methods/invokeAfterMsgs.md @@ -21,10 +21,10 @@ description: invokeAfterMsgs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/invokeWithLayer.md b/old_docs/API_docs_v27/methods/invokeWithLayer.md index 497cc285..72fe47ec 100644 --- a/old_docs/API_docs_v27/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v27/methods/invokeWithLayer.md @@ -21,10 +21,10 @@ description: invokeWithLayer parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/messages_acceptEncryption.md b/old_docs/API_docs_v27/methods/messages_acceptEncryption.md index d41beb91..e016f5d3 100644 --- a/old_docs/API_docs_v27/methods/messages_acceptEncryption.md +++ b/old_docs/API_docs_v27/methods/messages_acceptEncryption.md @@ -22,10 +22,10 @@ description: messages.acceptEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/messages_addChatUser.md b/old_docs/API_docs_v27/methods/messages_addChatUser.md index 13d17a3e..df2cb1a5 100644 --- a/old_docs/API_docs_v27/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v27/methods/messages_addChatUser.md @@ -22,10 +22,10 @@ description: messages.addChatUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/messages_createChat.md b/old_docs/API_docs_v27/methods/messages_createChat.md index 0ab3101a..2fc5631c 100644 --- a/old_docs/API_docs_v27/methods/messages_createChat.md +++ b/old_docs/API_docs_v27/methods/messages_createChat.md @@ -21,10 +21,10 @@ description: messages.createChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/messages_deleteChatUser.md b/old_docs/API_docs_v27/methods/messages_deleteChatUser.md index ed736ebd..6895649f 100644 --- a/old_docs/API_docs_v27/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v27/methods/messages_deleteChatUser.md @@ -21,10 +21,10 @@ description: messages.deleteChatUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/messages_deleteHistory.md b/old_docs/API_docs_v27/methods/messages_deleteHistory.md index bdbde2cf..c0762753 100644 --- a/old_docs/API_docs_v27/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v27/methods/messages_deleteHistory.md @@ -21,10 +21,10 @@ description: messages.deleteHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/messages_deleteMessages.md b/old_docs/API_docs_v27/methods/messages_deleteMessages.md index 5997c2ed..d9d28886 100644 --- a/old_docs/API_docs_v27/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v27/methods/messages_deleteMessages.md @@ -20,10 +20,10 @@ description: messages.deleteMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/messages_discardEncryption.md b/old_docs/API_docs_v27/methods/messages_discardEncryption.md index ebc1ace5..f237c986 100644 --- a/old_docs/API_docs_v27/methods/messages_discardEncryption.md +++ b/old_docs/API_docs_v27/methods/messages_discardEncryption.md @@ -20,10 +20,10 @@ description: messages.discardEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/messages_editChatPhoto.md b/old_docs/API_docs_v27/methods/messages_editChatPhoto.md index e3cbf492..0396c74b 100644 --- a/old_docs/API_docs_v27/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v27/methods/messages_editChatPhoto.md @@ -21,10 +21,10 @@ description: messages.editChatPhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/messages_editChatTitle.md b/old_docs/API_docs_v27/methods/messages_editChatTitle.md index 60eae01c..fabe9c87 100644 --- a/old_docs/API_docs_v27/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v27/methods/messages_editChatTitle.md @@ -21,10 +21,10 @@ description: messages.editChatTitle parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/messages_forwardMessage.md b/old_docs/API_docs_v27/methods/messages_forwardMessage.md index a95d259a..ced2cb5b 100644 --- a/old_docs/API_docs_v27/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v27/methods/messages_forwardMessage.md @@ -21,10 +21,10 @@ description: messages.forwardMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/messages_forwardMessages.md b/old_docs/API_docs_v27/methods/messages_forwardMessages.md index 3619fc0e..2410784c 100644 --- a/old_docs/API_docs_v27/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v27/methods/messages_forwardMessages.md @@ -21,10 +21,10 @@ description: messages.forwardMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/messages_getAllStickers.md b/old_docs/API_docs_v27/methods/messages_getAllStickers.md index bc696cd6..34254773 100644 --- a/old_docs/API_docs_v27/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v27/methods/messages_getAllStickers.md @@ -20,10 +20,10 @@ description: messages.getAllStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/messages_getChats.md b/old_docs/API_docs_v27/methods/messages_getChats.md index ad63744b..be57718e 100644 --- a/old_docs/API_docs_v27/methods/messages_getChats.md +++ b/old_docs/API_docs_v27/methods/messages_getChats.md @@ -20,10 +20,10 @@ description: messages.getChats parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/messages_getDhConfig.md b/old_docs/API_docs_v27/methods/messages_getDhConfig.md index bcebea55..21b37f21 100644 --- a/old_docs/API_docs_v27/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v27/methods/messages_getDhConfig.md @@ -21,10 +21,10 @@ description: messages.getDhConfig parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/messages_getDialogs.md b/old_docs/API_docs_v27/methods/messages_getDialogs.md index 9fe92014..6d037eab 100644 --- a/old_docs/API_docs_v27/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v27/methods/messages_getDialogs.md @@ -22,10 +22,10 @@ description: messages.getDialogs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/messages_getFullChat.md b/old_docs/API_docs_v27/methods/messages_getFullChat.md index f3c8223a..10d938ae 100644 --- a/old_docs/API_docs_v27/methods/messages_getFullChat.md +++ b/old_docs/API_docs_v27/methods/messages_getFullChat.md @@ -20,10 +20,10 @@ description: messages.getFullChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/messages_getHistory.md b/old_docs/API_docs_v27/methods/messages_getHistory.md index c338a7b1..4b96dba9 100644 --- a/old_docs/API_docs_v27/methods/messages_getHistory.md +++ b/old_docs/API_docs_v27/methods/messages_getHistory.md @@ -23,10 +23,10 @@ description: messages.getHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/messages_getMessages.md b/old_docs/API_docs_v27/methods/messages_getMessages.md index 224df903..e669bcf8 100644 --- a/old_docs/API_docs_v27/methods/messages_getMessages.md +++ b/old_docs/API_docs_v27/methods/messages_getMessages.md @@ -20,10 +20,10 @@ description: messages.getMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/messages_getStickers.md b/old_docs/API_docs_v27/methods/messages_getStickers.md index 6730f586..e9aedd80 100644 --- a/old_docs/API_docs_v27/methods/messages_getStickers.md +++ b/old_docs/API_docs_v27/methods/messages_getStickers.md @@ -21,10 +21,10 @@ description: messages.getStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v27/methods/messages_getWebPagePreview.md index e2dd428d..a3d5fce3 100644 --- a/old_docs/API_docs_v27/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v27/methods/messages_getWebPagePreview.md @@ -20,10 +20,10 @@ description: messages.getWebPagePreview parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v27/methods/messages_readEncryptedHistory.md index 555bffe7..5bb05536 100644 --- a/old_docs/API_docs_v27/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v27/methods/messages_readEncryptedHistory.md @@ -21,10 +21,10 @@ description: messages.readEncryptedHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/messages_readHistory.md b/old_docs/API_docs_v27/methods/messages_readHistory.md index f5c7ba11..1083b414 100644 --- a/old_docs/API_docs_v27/methods/messages_readHistory.md +++ b/old_docs/API_docs_v27/methods/messages_readHistory.md @@ -22,10 +22,10 @@ description: messages.readHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/messages_readMessageContents.md b/old_docs/API_docs_v27/methods/messages_readMessageContents.md index ae75d612..829e7cc8 100644 --- a/old_docs/API_docs_v27/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v27/methods/messages_readMessageContents.md @@ -20,10 +20,10 @@ description: messages.readMessageContents parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/messages_receivedMessages.md b/old_docs/API_docs_v27/methods/messages_receivedMessages.md index b300f876..7ad8e8d5 100644 --- a/old_docs/API_docs_v27/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v27/methods/messages_receivedMessages.md @@ -20,10 +20,10 @@ description: messages.receivedMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/messages_receivedQueue.md b/old_docs/API_docs_v27/methods/messages_receivedQueue.md index e514669c..d8bfae5e 100644 --- a/old_docs/API_docs_v27/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v27/methods/messages_receivedQueue.md @@ -20,10 +20,10 @@ description: messages.receivedQueue parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/messages_requestEncryption.md b/old_docs/API_docs_v27/methods/messages_requestEncryption.md index e82fca54..99fe7ecf 100644 --- a/old_docs/API_docs_v27/methods/messages_requestEncryption.md +++ b/old_docs/API_docs_v27/methods/messages_requestEncryption.md @@ -21,10 +21,10 @@ description: messages.requestEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/messages_search.md b/old_docs/API_docs_v27/methods/messages_search.md index fe53fb8c..05309dbf 100644 --- a/old_docs/API_docs_v27/methods/messages_search.md +++ b/old_docs/API_docs_v27/methods/messages_search.md @@ -27,10 +27,10 @@ description: messages.search parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/messages_sendBroadcast.md b/old_docs/API_docs_v27/methods/messages_sendBroadcast.md index 9194fdf1..b19bec57 100644 --- a/old_docs/API_docs_v27/methods/messages_sendBroadcast.md +++ b/old_docs/API_docs_v27/methods/messages_sendBroadcast.md @@ -22,10 +22,10 @@ description: messages.sendBroadcast parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/messages_sendEncrypted.md b/old_docs/API_docs_v27/methods/messages_sendEncrypted.md index f2c2c0c2..c3585580 100644 --- a/old_docs/API_docs_v27/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v27/methods/messages_sendEncrypted.md @@ -21,10 +21,10 @@ description: messages.sendEncrypted parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v27/methods/messages_sendEncryptedFile.md index a57a3dd8..40674df9 100644 --- a/old_docs/API_docs_v27/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v27/methods/messages_sendEncryptedFile.md @@ -22,10 +22,10 @@ description: messages.sendEncryptedFile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v27/methods/messages_sendEncryptedService.md index 4041c4d0..8bfee571 100644 --- a/old_docs/API_docs_v27/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v27/methods/messages_sendEncryptedService.md @@ -21,10 +21,10 @@ description: messages.sendEncryptedService parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/messages_sendMedia.md b/old_docs/API_docs_v27/methods/messages_sendMedia.md index ed06fa76..9f048ccc 100644 --- a/old_docs/API_docs_v27/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v27/methods/messages_sendMedia.md @@ -22,10 +22,10 @@ description: messages.sendMedia parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/messages_sendMessage.md b/old_docs/API_docs_v27/methods/messages_sendMessage.md index e8a39dec..5d7489fb 100644 --- a/old_docs/API_docs_v27/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v27/methods/messages_sendMessage.md @@ -22,10 +22,10 @@ description: messages.sendMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v27/methods/messages_setEncryptedTyping.md index 95364d49..ae718bba 100644 --- a/old_docs/API_docs_v27/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v27/methods/messages_setEncryptedTyping.md @@ -21,10 +21,10 @@ description: messages.setEncryptedTyping parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/messages_setTyping.md b/old_docs/API_docs_v27/methods/messages_setTyping.md index 0ce5743d..75903c68 100644 --- a/old_docs/API_docs_v27/methods/messages_setTyping.md +++ b/old_docs/API_docs_v27/methods/messages_setTyping.md @@ -21,10 +21,10 @@ description: messages.setTyping parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/photos_deletePhotos.md b/old_docs/API_docs_v27/methods/photos_deletePhotos.md index 6a717835..2d27b700 100644 --- a/old_docs/API_docs_v27/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v27/methods/photos_deletePhotos.md @@ -20,10 +20,10 @@ description: photos.deletePhotos parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/photos_getUserPhotos.md b/old_docs/API_docs_v27/methods/photos_getUserPhotos.md index 2d289f96..d8a5d6c9 100644 --- a/old_docs/API_docs_v27/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v27/methods/photos_getUserPhotos.md @@ -23,10 +23,10 @@ description: photos.getUserPhotos parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v27/methods/photos_updateProfilePhoto.md index f18669cc..9ae9c59e 100644 --- a/old_docs/API_docs_v27/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v27/methods/photos_updateProfilePhoto.md @@ -21,10 +21,10 @@ description: photos.updateProfilePhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v27/methods/photos_uploadProfilePhoto.md index 3eb7a10c..567eb363 100644 --- a/old_docs/API_docs_v27/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v27/methods/photos_uploadProfilePhoto.md @@ -23,10 +23,10 @@ description: photos.uploadProfilePhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/updates_getDifference.md b/old_docs/API_docs_v27/methods/updates_getDifference.md index c7ae5664..719a7a02 100644 --- a/old_docs/API_docs_v27/methods/updates_getDifference.md +++ b/old_docs/API_docs_v27/methods/updates_getDifference.md @@ -22,10 +22,10 @@ description: updates.getDifference parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/updates_getState.md b/old_docs/API_docs_v27/methods/updates_getState.md index 5612ca79..53fc0c16 100644 --- a/old_docs/API_docs_v27/methods/updates_getState.md +++ b/old_docs/API_docs_v27/methods/updates_getState.md @@ -15,10 +15,10 @@ description: updates.getState parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/upload_getFile.md b/old_docs/API_docs_v27/methods/upload_getFile.md index a2f3d961..ee35140a 100644 --- a/old_docs/API_docs_v27/methods/upload_getFile.md +++ b/old_docs/API_docs_v27/methods/upload_getFile.md @@ -22,10 +22,10 @@ description: upload.getFile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/upload_saveBigFilePart.md b/old_docs/API_docs_v27/methods/upload_saveBigFilePart.md index 03641055..503d1b5c 100644 --- a/old_docs/API_docs_v27/methods/upload_saveBigFilePart.md +++ b/old_docs/API_docs_v27/methods/upload_saveBigFilePart.md @@ -23,10 +23,10 @@ description: upload.saveBigFilePart parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/upload_saveFilePart.md b/old_docs/API_docs_v27/methods/upload_saveFilePart.md index 192412c8..d7f745aa 100644 --- a/old_docs/API_docs_v27/methods/upload_saveFilePart.md +++ b/old_docs/API_docs_v27/methods/upload_saveFilePart.md @@ -22,10 +22,10 @@ description: upload.saveFilePart parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/users_getFullUser.md b/old_docs/API_docs_v27/methods/users_getFullUser.md index 864ae387..bcba7f3d 100644 --- a/old_docs/API_docs_v27/methods/users_getFullUser.md +++ b/old_docs/API_docs_v27/methods/users_getFullUser.md @@ -20,10 +20,10 @@ description: users.getFullUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v27/methods/users_getUsers.md b/old_docs/API_docs_v27/methods/users_getUsers.md index 34816478..e03fd2d6 100644 --- a/old_docs/API_docs_v27/methods/users_getUsers.md +++ b/old_docs/API_docs_v27/methods/users_getUsers.md @@ -20,10 +20,10 @@ description: users.getUsers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/constructors/message.md b/old_docs/API_docs_v33/constructors/message.md index 3cfa0a95..5911898f 100644 --- a/old_docs/API_docs_v33/constructors/message.md +++ b/old_docs/API_docs_v33/constructors/message.md @@ -42,3 +42,9 @@ message={_='message', id=int, from_id=int, to_id=Peer, fwd_from_id=int, fwd_date ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v33/methods/account_changePhone.md b/old_docs/API_docs_v33/methods/account_changePhone.md index dc3e0427..6691a743 100644 --- a/old_docs/API_docs_v33/methods/account_changePhone.md +++ b/old_docs/API_docs_v33/methods/account_changePhone.md @@ -22,10 +22,10 @@ description: account.changePhone parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/account_checkUsername.md b/old_docs/API_docs_v33/methods/account_checkUsername.md index dc13041c..e954ca99 100644 --- a/old_docs/API_docs_v33/methods/account_checkUsername.md +++ b/old_docs/API_docs_v33/methods/account_checkUsername.md @@ -20,10 +20,10 @@ description: account.checkUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/account_deleteAccount.md b/old_docs/API_docs_v33/methods/account_deleteAccount.md index 4199572b..0d0a6204 100644 --- a/old_docs/API_docs_v33/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v33/methods/account_deleteAccount.md @@ -20,10 +20,10 @@ description: account.deleteAccount parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/account_getAccountTTL.md b/old_docs/API_docs_v33/methods/account_getAccountTTL.md index ff4171df..e284a80e 100644 --- a/old_docs/API_docs_v33/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v33/methods/account_getAccountTTL.md @@ -15,10 +15,10 @@ description: account.getAccountTTL parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/account_getAuthorizations.md b/old_docs/API_docs_v33/methods/account_getAuthorizations.md index 26f755d4..ee5a00d6 100644 --- a/old_docs/API_docs_v33/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v33/methods/account_getAuthorizations.md @@ -15,10 +15,10 @@ description: account.getAuthorizations parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/account_getNotifySettings.md b/old_docs/API_docs_v33/methods/account_getNotifySettings.md index 817f201a..2e7fd9ba 100644 --- a/old_docs/API_docs_v33/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v33/methods/account_getNotifySettings.md @@ -20,10 +20,10 @@ description: account.getNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/account_getPassword.md b/old_docs/API_docs_v33/methods/account_getPassword.md index d7491fec..424d3710 100644 --- a/old_docs/API_docs_v33/methods/account_getPassword.md +++ b/old_docs/API_docs_v33/methods/account_getPassword.md @@ -15,10 +15,10 @@ description: account.getPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/account_getPasswordSettings.md b/old_docs/API_docs_v33/methods/account_getPasswordSettings.md index 5be9a523..3e72e398 100644 --- a/old_docs/API_docs_v33/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v33/methods/account_getPasswordSettings.md @@ -20,10 +20,10 @@ description: account.getPasswordSettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/account_getPrivacy.md b/old_docs/API_docs_v33/methods/account_getPrivacy.md index 649019d5..26137fd3 100644 --- a/old_docs/API_docs_v33/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v33/methods/account_getPrivacy.md @@ -20,10 +20,10 @@ description: account.getPrivacy parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/account_getWallPapers.md b/old_docs/API_docs_v33/methods/account_getWallPapers.md index 9eb0182a..a44ea777 100644 --- a/old_docs/API_docs_v33/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v33/methods/account_getWallPapers.md @@ -15,10 +15,10 @@ description: account.getWallPapers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/account_registerDevice.md b/old_docs/API_docs_v33/methods/account_registerDevice.md index 168dcba0..70cadfab 100644 --- a/old_docs/API_docs_v33/methods/account_registerDevice.md +++ b/old_docs/API_docs_v33/methods/account_registerDevice.md @@ -26,10 +26,10 @@ description: account.registerDevice parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/account_resetAuthorization.md b/old_docs/API_docs_v33/methods/account_resetAuthorization.md index aaf5a660..2c7c5bc4 100644 --- a/old_docs/API_docs_v33/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v33/methods/account_resetAuthorization.md @@ -20,10 +20,10 @@ description: account.resetAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/account_resetNotifySettings.md b/old_docs/API_docs_v33/methods/account_resetNotifySettings.md index 5a6a4c95..aa01dfce 100644 --- a/old_docs/API_docs_v33/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v33/methods/account_resetNotifySettings.md @@ -15,10 +15,10 @@ description: account.resetNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v33/methods/account_sendChangePhoneCode.md index 98110148..4ccc4045 100644 --- a/old_docs/API_docs_v33/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v33/methods/account_sendChangePhoneCode.md @@ -20,10 +20,10 @@ description: account.sendChangePhoneCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/account_setAccountTTL.md b/old_docs/API_docs_v33/methods/account_setAccountTTL.md index 6ae8d70e..460ae89a 100644 --- a/old_docs/API_docs_v33/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v33/methods/account_setAccountTTL.md @@ -20,10 +20,10 @@ description: account.setAccountTTL parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/account_setPrivacy.md b/old_docs/API_docs_v33/methods/account_setPrivacy.md index e438ca16..f05356db 100644 --- a/old_docs/API_docs_v33/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v33/methods/account_setPrivacy.md @@ -21,10 +21,10 @@ description: account.setPrivacy parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/account_unregisterDevice.md b/old_docs/API_docs_v33/methods/account_unregisterDevice.md index 89ab99a8..1063fad3 100644 --- a/old_docs/API_docs_v33/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v33/methods/account_unregisterDevice.md @@ -21,10 +21,10 @@ description: account.unregisterDevice parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v33/methods/account_updateDeviceLocked.md index 3fe6b8b6..506d974f 100644 --- a/old_docs/API_docs_v33/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v33/methods/account_updateDeviceLocked.md @@ -20,10 +20,10 @@ description: account.updateDeviceLocked parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/account_updateNotifySettings.md b/old_docs/API_docs_v33/methods/account_updateNotifySettings.md index 7eea8202..cb90a39f 100644 --- a/old_docs/API_docs_v33/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v33/methods/account_updateNotifySettings.md @@ -21,10 +21,10 @@ description: account.updateNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v33/methods/account_updatePasswordSettings.md index 56e4d724..ad1a930d 100644 --- a/old_docs/API_docs_v33/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v33/methods/account_updatePasswordSettings.md @@ -21,10 +21,10 @@ description: account.updatePasswordSettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/account_updateProfile.md b/old_docs/API_docs_v33/methods/account_updateProfile.md index fce1c8c9..cf8374de 100644 --- a/old_docs/API_docs_v33/methods/account_updateProfile.md +++ b/old_docs/API_docs_v33/methods/account_updateProfile.md @@ -21,10 +21,10 @@ description: account.updateProfile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/account_updateStatus.md b/old_docs/API_docs_v33/methods/account_updateStatus.md index f2fd751e..ac260312 100644 --- a/old_docs/API_docs_v33/methods/account_updateStatus.md +++ b/old_docs/API_docs_v33/methods/account_updateStatus.md @@ -20,10 +20,10 @@ description: account.updateStatus parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/account_updateUsername.md b/old_docs/API_docs_v33/methods/account_updateUsername.md index b5e428e4..7daf43e0 100644 --- a/old_docs/API_docs_v33/methods/account_updateUsername.md +++ b/old_docs/API_docs_v33/methods/account_updateUsername.md @@ -20,10 +20,10 @@ description: account.updateUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v33/methods/auth_bindTempAuthKey.md index 87d0c7cf..55e083cd 100644 --- a/old_docs/API_docs_v33/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v33/methods/auth_bindTempAuthKey.md @@ -23,10 +23,10 @@ description: auth.bindTempAuthKey parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/auth_checkPassword.md b/old_docs/API_docs_v33/methods/auth_checkPassword.md index 601146fc..9dcb706a 100644 --- a/old_docs/API_docs_v33/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v33/methods/auth_checkPassword.md @@ -20,10 +20,10 @@ description: auth.checkPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/auth_checkPhone.md b/old_docs/API_docs_v33/methods/auth_checkPhone.md index 2e4db690..ce137f9d 100644 --- a/old_docs/API_docs_v33/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v33/methods/auth_checkPhone.md @@ -20,10 +20,10 @@ description: auth.checkPhone parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/auth_exportAuthorization.md b/old_docs/API_docs_v33/methods/auth_exportAuthorization.md index a69f0301..bfd16433 100644 --- a/old_docs/API_docs_v33/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v33/methods/auth_exportAuthorization.md @@ -20,10 +20,10 @@ description: auth.exportAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/auth_importAuthorization.md b/old_docs/API_docs_v33/methods/auth_importAuthorization.md index a0e2e4b7..956f9a72 100644 --- a/old_docs/API_docs_v33/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v33/methods/auth_importAuthorization.md @@ -21,10 +21,10 @@ description: auth.importAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/auth_importBotAuthorization.md b/old_docs/API_docs_v33/methods/auth_importBotAuthorization.md index a78a5263..11d2f7f3 100644 --- a/old_docs/API_docs_v33/methods/auth_importBotAuthorization.md +++ b/old_docs/API_docs_v33/methods/auth_importBotAuthorization.md @@ -22,10 +22,10 @@ description: auth.importBotAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/auth_logOut.md b/old_docs/API_docs_v33/methods/auth_logOut.md index ac5bd8ae..5651f753 100644 --- a/old_docs/API_docs_v33/methods/auth_logOut.md +++ b/old_docs/API_docs_v33/methods/auth_logOut.md @@ -15,10 +15,10 @@ description: auth.logOut parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/auth_recoverPassword.md b/old_docs/API_docs_v33/methods/auth_recoverPassword.md index 9b7ebcfb..e253e7d9 100644 --- a/old_docs/API_docs_v33/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v33/methods/auth_recoverPassword.md @@ -20,10 +20,10 @@ description: auth.recoverPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v33/methods/auth_requestPasswordRecovery.md index 94c0aeff..2ae670eb 100644 --- a/old_docs/API_docs_v33/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v33/methods/auth_requestPasswordRecovery.md @@ -15,10 +15,10 @@ description: auth.requestPasswordRecovery parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v33/methods/auth_resetAuthorizations.md index f55e2e4d..9b324b42 100644 --- a/old_docs/API_docs_v33/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v33/methods/auth_resetAuthorizations.md @@ -15,10 +15,10 @@ description: auth.resetAuthorizations parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/auth_sendCall.md b/old_docs/API_docs_v33/methods/auth_sendCall.md index 3d44b1d2..584235b0 100644 --- a/old_docs/API_docs_v33/methods/auth_sendCall.md +++ b/old_docs/API_docs_v33/methods/auth_sendCall.md @@ -21,10 +21,10 @@ description: auth.sendCall parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/auth_sendCode.md b/old_docs/API_docs_v33/methods/auth_sendCode.md index 8c4387cf..58305712 100644 --- a/old_docs/API_docs_v33/methods/auth_sendCode.md +++ b/old_docs/API_docs_v33/methods/auth_sendCode.md @@ -24,10 +24,10 @@ description: auth.sendCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/auth_sendInvites.md b/old_docs/API_docs_v33/methods/auth_sendInvites.md index f81a5c7e..87cdc7e3 100644 --- a/old_docs/API_docs_v33/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v33/methods/auth_sendInvites.md @@ -21,10 +21,10 @@ description: auth.sendInvites parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/auth_sendSms.md b/old_docs/API_docs_v33/methods/auth_sendSms.md index ab652a6e..fb469f84 100644 --- a/old_docs/API_docs_v33/methods/auth_sendSms.md +++ b/old_docs/API_docs_v33/methods/auth_sendSms.md @@ -21,10 +21,10 @@ description: auth.sendSms parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/auth_signIn.md b/old_docs/API_docs_v33/methods/auth_signIn.md index 7616bc80..b0fb12fe 100644 --- a/old_docs/API_docs_v33/methods/auth_signIn.md +++ b/old_docs/API_docs_v33/methods/auth_signIn.md @@ -22,10 +22,10 @@ description: auth.signIn parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/auth_signUp.md b/old_docs/API_docs_v33/methods/auth_signUp.md index f9c72d64..6f92b4f7 100644 --- a/old_docs/API_docs_v33/methods/auth_signUp.md +++ b/old_docs/API_docs_v33/methods/auth_signUp.md @@ -24,10 +24,10 @@ description: auth.signUp parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/contacts_block.md b/old_docs/API_docs_v33/methods/contacts_block.md index b809b15c..f512adcc 100644 --- a/old_docs/API_docs_v33/methods/contacts_block.md +++ b/old_docs/API_docs_v33/methods/contacts_block.md @@ -20,10 +20,10 @@ description: contacts.block parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/contacts_deleteContact.md b/old_docs/API_docs_v33/methods/contacts_deleteContact.md index 18ef51f8..a3e8f63d 100644 --- a/old_docs/API_docs_v33/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v33/methods/contacts_deleteContact.md @@ -20,10 +20,10 @@ description: contacts.deleteContact parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/contacts_deleteContacts.md b/old_docs/API_docs_v33/methods/contacts_deleteContacts.md index 40672188..46e251eb 100644 --- a/old_docs/API_docs_v33/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v33/methods/contacts_deleteContacts.md @@ -20,10 +20,10 @@ description: contacts.deleteContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/contacts_exportCard.md b/old_docs/API_docs_v33/methods/contacts_exportCard.md index 4145d246..f7ec0015 100644 --- a/old_docs/API_docs_v33/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v33/methods/contacts_exportCard.md @@ -15,10 +15,10 @@ description: contacts.exportCard parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/contacts_getBlocked.md b/old_docs/API_docs_v33/methods/contacts_getBlocked.md index 50172d03..0fc72dba 100644 --- a/old_docs/API_docs_v33/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v33/methods/contacts_getBlocked.md @@ -21,10 +21,10 @@ description: contacts.getBlocked parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/contacts_getContacts.md b/old_docs/API_docs_v33/methods/contacts_getContacts.md index 0e6f22e9..656821e0 100644 --- a/old_docs/API_docs_v33/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v33/methods/contacts_getContacts.md @@ -20,10 +20,10 @@ description: contacts.getContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/contacts_getStatuses.md b/old_docs/API_docs_v33/methods/contacts_getStatuses.md index b734f529..ee806f2d 100644 --- a/old_docs/API_docs_v33/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v33/methods/contacts_getStatuses.md @@ -15,10 +15,10 @@ description: contacts.getStatuses parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/contacts_getSuggested.md b/old_docs/API_docs_v33/methods/contacts_getSuggested.md index a49b5913..4cd124e7 100644 --- a/old_docs/API_docs_v33/methods/contacts_getSuggested.md +++ b/old_docs/API_docs_v33/methods/contacts_getSuggested.md @@ -20,10 +20,10 @@ description: contacts.getSuggested parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/contacts_importCard.md b/old_docs/API_docs_v33/methods/contacts_importCard.md index 6b2c612e..162ff4f3 100644 --- a/old_docs/API_docs_v33/methods/contacts_importCard.md +++ b/old_docs/API_docs_v33/methods/contacts_importCard.md @@ -20,10 +20,10 @@ description: contacts.importCard parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/contacts_importContacts.md b/old_docs/API_docs_v33/methods/contacts_importContacts.md index 2426f53c..48412e99 100644 --- a/old_docs/API_docs_v33/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v33/methods/contacts_importContacts.md @@ -21,10 +21,10 @@ description: contacts.importContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/contacts_resolveUsername.md b/old_docs/API_docs_v33/methods/contacts_resolveUsername.md index 74600d7c..909a3331 100644 --- a/old_docs/API_docs_v33/methods/contacts_resolveUsername.md +++ b/old_docs/API_docs_v33/methods/contacts_resolveUsername.md @@ -20,10 +20,10 @@ description: contacts.resolveUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/contacts_search.md b/old_docs/API_docs_v33/methods/contacts_search.md index 00a39519..9a351db7 100644 --- a/old_docs/API_docs_v33/methods/contacts_search.md +++ b/old_docs/API_docs_v33/methods/contacts_search.md @@ -21,10 +21,10 @@ description: contacts.search parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/contacts_unblock.md b/old_docs/API_docs_v33/methods/contacts_unblock.md index 63f41483..6d739c9b 100644 --- a/old_docs/API_docs_v33/methods/contacts_unblock.md +++ b/old_docs/API_docs_v33/methods/contacts_unblock.md @@ -20,10 +20,10 @@ description: contacts.unblock parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/geochats_checkin.md b/old_docs/API_docs_v33/methods/geochats_checkin.md index 6a8ea2b9..d19e4f8e 100644 --- a/old_docs/API_docs_v33/methods/geochats_checkin.md +++ b/old_docs/API_docs_v33/methods/geochats_checkin.md @@ -20,10 +20,10 @@ description: geochats.checkin parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/geochats_createGeoChat.md b/old_docs/API_docs_v33/methods/geochats_createGeoChat.md index c7d729d6..e389a52a 100644 --- a/old_docs/API_docs_v33/methods/geochats_createGeoChat.md +++ b/old_docs/API_docs_v33/methods/geochats_createGeoChat.md @@ -23,10 +23,10 @@ description: geochats.createGeoChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/geochats_editChatPhoto.md b/old_docs/API_docs_v33/methods/geochats_editChatPhoto.md index 64bddb60..9d2a3802 100644 --- a/old_docs/API_docs_v33/methods/geochats_editChatPhoto.md +++ b/old_docs/API_docs_v33/methods/geochats_editChatPhoto.md @@ -21,10 +21,10 @@ description: geochats.editChatPhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/geochats_editChatTitle.md b/old_docs/API_docs_v33/methods/geochats_editChatTitle.md index f92823c9..499e487f 100644 --- a/old_docs/API_docs_v33/methods/geochats_editChatTitle.md +++ b/old_docs/API_docs_v33/methods/geochats_editChatTitle.md @@ -22,10 +22,10 @@ description: geochats.editChatTitle parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/geochats_getFullChat.md b/old_docs/API_docs_v33/methods/geochats_getFullChat.md index 44f47fa0..e49b6532 100644 --- a/old_docs/API_docs_v33/methods/geochats_getFullChat.md +++ b/old_docs/API_docs_v33/methods/geochats_getFullChat.md @@ -20,10 +20,10 @@ description: geochats.getFullChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/geochats_getHistory.md b/old_docs/API_docs_v33/methods/geochats_getHistory.md index b206908f..295075b1 100644 --- a/old_docs/API_docs_v33/methods/geochats_getHistory.md +++ b/old_docs/API_docs_v33/methods/geochats_getHistory.md @@ -23,10 +23,10 @@ description: geochats.getHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/geochats_getLocated.md b/old_docs/API_docs_v33/methods/geochats_getLocated.md index 20d904c5..41b922e5 100644 --- a/old_docs/API_docs_v33/methods/geochats_getLocated.md +++ b/old_docs/API_docs_v33/methods/geochats_getLocated.md @@ -22,10 +22,10 @@ description: geochats.getLocated parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/geochats_getRecents.md b/old_docs/API_docs_v33/methods/geochats_getRecents.md index 5f68b17e..7e0704ae 100644 --- a/old_docs/API_docs_v33/methods/geochats_getRecents.md +++ b/old_docs/API_docs_v33/methods/geochats_getRecents.md @@ -21,10 +21,10 @@ description: geochats.getRecents parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/geochats_search.md b/old_docs/API_docs_v33/methods/geochats_search.md index d0193406..b0eaa160 100644 --- a/old_docs/API_docs_v33/methods/geochats_search.md +++ b/old_docs/API_docs_v33/methods/geochats_search.md @@ -27,10 +27,10 @@ description: geochats.search parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/geochats_sendMedia.md b/old_docs/API_docs_v33/methods/geochats_sendMedia.md index baeaf72d..4b3343c6 100644 --- a/old_docs/API_docs_v33/methods/geochats_sendMedia.md +++ b/old_docs/API_docs_v33/methods/geochats_sendMedia.md @@ -21,10 +21,10 @@ description: geochats.sendMedia parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/geochats_sendMessage.md b/old_docs/API_docs_v33/methods/geochats_sendMessage.md index fc42835c..6e58612a 100644 --- a/old_docs/API_docs_v33/methods/geochats_sendMessage.md +++ b/old_docs/API_docs_v33/methods/geochats_sendMessage.md @@ -21,10 +21,10 @@ description: geochats.sendMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/geochats_setTyping.md b/old_docs/API_docs_v33/methods/geochats_setTyping.md index 2b432053..3e920247 100644 --- a/old_docs/API_docs_v33/methods/geochats_setTyping.md +++ b/old_docs/API_docs_v33/methods/geochats_setTyping.md @@ -21,10 +21,10 @@ description: geochats.setTyping parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/help_getAppChangelog.md b/old_docs/API_docs_v33/methods/help_getAppChangelog.md index bfe48334..1b52c928 100644 --- a/old_docs/API_docs_v33/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v33/methods/help_getAppChangelog.md @@ -23,10 +23,10 @@ description: help.getAppChangelog parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/help_getAppUpdate.md b/old_docs/API_docs_v33/methods/help_getAppUpdate.md index 7be3b374..9559c840 100644 --- a/old_docs/API_docs_v33/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v33/methods/help_getAppUpdate.md @@ -23,10 +23,10 @@ description: help.getAppUpdate parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/help_getConfig.md b/old_docs/API_docs_v33/methods/help_getConfig.md index cb9c4f1c..9481a0c0 100644 --- a/old_docs/API_docs_v33/methods/help_getConfig.md +++ b/old_docs/API_docs_v33/methods/help_getConfig.md @@ -15,10 +15,10 @@ description: help.getConfig parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/help_getInviteText.md b/old_docs/API_docs_v33/methods/help_getInviteText.md index f265f8d3..14692791 100644 --- a/old_docs/API_docs_v33/methods/help_getInviteText.md +++ b/old_docs/API_docs_v33/methods/help_getInviteText.md @@ -20,10 +20,10 @@ description: help.getInviteText parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/help_getNearestDc.md b/old_docs/API_docs_v33/methods/help_getNearestDc.md index f491ae0c..bb6b1883 100644 --- a/old_docs/API_docs_v33/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v33/methods/help_getNearestDc.md @@ -15,10 +15,10 @@ description: help.getNearestDc parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/help_getSupport.md b/old_docs/API_docs_v33/methods/help_getSupport.md index 03574c6f..0348089a 100644 --- a/old_docs/API_docs_v33/methods/help_getSupport.md +++ b/old_docs/API_docs_v33/methods/help_getSupport.md @@ -15,10 +15,10 @@ description: help.getSupport parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/help_saveAppLog.md b/old_docs/API_docs_v33/methods/help_saveAppLog.md index 3887ccc2..59b92601 100644 --- a/old_docs/API_docs_v33/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v33/methods/help_saveAppLog.md @@ -20,10 +20,10 @@ description: help.saveAppLog parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/initConnection.md b/old_docs/API_docs_v33/methods/initConnection.md index 1c946720..aa89066c 100644 --- a/old_docs/API_docs_v33/methods/initConnection.md +++ b/old_docs/API_docs_v33/methods/initConnection.md @@ -25,10 +25,10 @@ description: initConnection parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/invokeAfterMsg.md b/old_docs/API_docs_v33/methods/invokeAfterMsg.md index 1b35a238..97c4f1fb 100644 --- a/old_docs/API_docs_v33/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v33/methods/invokeAfterMsg.md @@ -21,10 +21,10 @@ description: invokeAfterMsg parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/invokeAfterMsgs.md b/old_docs/API_docs_v33/methods/invokeAfterMsgs.md index 164ab318..4e278ef1 100644 --- a/old_docs/API_docs_v33/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v33/methods/invokeAfterMsgs.md @@ -21,10 +21,10 @@ description: invokeAfterMsgs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/invokeWithLayer.md b/old_docs/API_docs_v33/methods/invokeWithLayer.md index 497cc285..72fe47ec 100644 --- a/old_docs/API_docs_v33/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v33/methods/invokeWithLayer.md @@ -21,10 +21,10 @@ description: invokeWithLayer parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v33/methods/invokeWithoutUpdates.md index cbdabb07..5151b786 100644 --- a/old_docs/API_docs_v33/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v33/methods/invokeWithoutUpdates.md @@ -20,10 +20,10 @@ description: invokeWithoutUpdates parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/messages_acceptEncryption.md b/old_docs/API_docs_v33/methods/messages_acceptEncryption.md index d41beb91..e016f5d3 100644 --- a/old_docs/API_docs_v33/methods/messages_acceptEncryption.md +++ b/old_docs/API_docs_v33/methods/messages_acceptEncryption.md @@ -22,10 +22,10 @@ description: messages.acceptEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/messages_addChatUser.md b/old_docs/API_docs_v33/methods/messages_addChatUser.md index 13d17a3e..df2cb1a5 100644 --- a/old_docs/API_docs_v33/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v33/methods/messages_addChatUser.md @@ -22,10 +22,10 @@ description: messages.addChatUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/messages_checkChatInvite.md b/old_docs/API_docs_v33/methods/messages_checkChatInvite.md index 0a3a4f84..7670727b 100644 --- a/old_docs/API_docs_v33/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v33/methods/messages_checkChatInvite.md @@ -20,10 +20,10 @@ description: messages.checkChatInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/messages_createChat.md b/old_docs/API_docs_v33/methods/messages_createChat.md index 0ab3101a..2fc5631c 100644 --- a/old_docs/API_docs_v33/methods/messages_createChat.md +++ b/old_docs/API_docs_v33/methods/messages_createChat.md @@ -21,10 +21,10 @@ description: messages.createChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/messages_deleteChatUser.md b/old_docs/API_docs_v33/methods/messages_deleteChatUser.md index ed736ebd..6895649f 100644 --- a/old_docs/API_docs_v33/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v33/methods/messages_deleteChatUser.md @@ -21,10 +21,10 @@ description: messages.deleteChatUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/messages_deleteHistory.md b/old_docs/API_docs_v33/methods/messages_deleteHistory.md index bdbde2cf..c0762753 100644 --- a/old_docs/API_docs_v33/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v33/methods/messages_deleteHistory.md @@ -21,10 +21,10 @@ description: messages.deleteHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/messages_deleteMessages.md b/old_docs/API_docs_v33/methods/messages_deleteMessages.md index 5997c2ed..d9d28886 100644 --- a/old_docs/API_docs_v33/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v33/methods/messages_deleteMessages.md @@ -20,10 +20,10 @@ description: messages.deleteMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/messages_discardEncryption.md b/old_docs/API_docs_v33/methods/messages_discardEncryption.md index ebc1ace5..f237c986 100644 --- a/old_docs/API_docs_v33/methods/messages_discardEncryption.md +++ b/old_docs/API_docs_v33/methods/messages_discardEncryption.md @@ -20,10 +20,10 @@ description: messages.discardEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/messages_editChatPhoto.md b/old_docs/API_docs_v33/methods/messages_editChatPhoto.md index e3cbf492..0396c74b 100644 --- a/old_docs/API_docs_v33/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v33/methods/messages_editChatPhoto.md @@ -21,10 +21,10 @@ description: messages.editChatPhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/messages_editChatTitle.md b/old_docs/API_docs_v33/methods/messages_editChatTitle.md index 60eae01c..fabe9c87 100644 --- a/old_docs/API_docs_v33/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v33/methods/messages_editChatTitle.md @@ -21,10 +21,10 @@ description: messages.editChatTitle parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/messages_exportChatInvite.md b/old_docs/API_docs_v33/methods/messages_exportChatInvite.md index 3efc9bf7..b96e7498 100644 --- a/old_docs/API_docs_v33/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v33/methods/messages_exportChatInvite.md @@ -20,10 +20,10 @@ description: messages.exportChatInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/messages_forwardMessage.md b/old_docs/API_docs_v33/methods/messages_forwardMessage.md index a95d259a..ced2cb5b 100644 --- a/old_docs/API_docs_v33/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v33/methods/messages_forwardMessage.md @@ -21,10 +21,10 @@ description: messages.forwardMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/messages_forwardMessages.md b/old_docs/API_docs_v33/methods/messages_forwardMessages.md index 3619fc0e..2410784c 100644 --- a/old_docs/API_docs_v33/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v33/methods/messages_forwardMessages.md @@ -21,10 +21,10 @@ description: messages.forwardMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/messages_getAllStickers.md b/old_docs/API_docs_v33/methods/messages_getAllStickers.md index bc696cd6..34254773 100644 --- a/old_docs/API_docs_v33/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v33/methods/messages_getAllStickers.md @@ -20,10 +20,10 @@ description: messages.getAllStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/messages_getChats.md b/old_docs/API_docs_v33/methods/messages_getChats.md index ad63744b..be57718e 100644 --- a/old_docs/API_docs_v33/methods/messages_getChats.md +++ b/old_docs/API_docs_v33/methods/messages_getChats.md @@ -20,10 +20,10 @@ description: messages.getChats parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/messages_getDhConfig.md b/old_docs/API_docs_v33/methods/messages_getDhConfig.md index bcebea55..21b37f21 100644 --- a/old_docs/API_docs_v33/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v33/methods/messages_getDhConfig.md @@ -21,10 +21,10 @@ description: messages.getDhConfig parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/messages_getDialogs.md b/old_docs/API_docs_v33/methods/messages_getDialogs.md index 9fe92014..6d037eab 100644 --- a/old_docs/API_docs_v33/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v33/methods/messages_getDialogs.md @@ -22,10 +22,10 @@ description: messages.getDialogs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/messages_getFullChat.md b/old_docs/API_docs_v33/methods/messages_getFullChat.md index f3c8223a..10d938ae 100644 --- a/old_docs/API_docs_v33/methods/messages_getFullChat.md +++ b/old_docs/API_docs_v33/methods/messages_getFullChat.md @@ -20,10 +20,10 @@ description: messages.getFullChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/messages_getHistory.md b/old_docs/API_docs_v33/methods/messages_getHistory.md index c338a7b1..4b96dba9 100644 --- a/old_docs/API_docs_v33/methods/messages_getHistory.md +++ b/old_docs/API_docs_v33/methods/messages_getHistory.md @@ -23,10 +23,10 @@ description: messages.getHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/messages_getMessages.md b/old_docs/API_docs_v33/methods/messages_getMessages.md index 224df903..e669bcf8 100644 --- a/old_docs/API_docs_v33/methods/messages_getMessages.md +++ b/old_docs/API_docs_v33/methods/messages_getMessages.md @@ -20,10 +20,10 @@ description: messages.getMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/messages_getStickerSet.md b/old_docs/API_docs_v33/methods/messages_getStickerSet.md index 2ec2fa5d..561eec32 100644 --- a/old_docs/API_docs_v33/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v33/methods/messages_getStickerSet.md @@ -20,10 +20,10 @@ description: messages.getStickerSet parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/messages_getStickers.md b/old_docs/API_docs_v33/methods/messages_getStickers.md index 6730f586..e9aedd80 100644 --- a/old_docs/API_docs_v33/methods/messages_getStickers.md +++ b/old_docs/API_docs_v33/methods/messages_getStickers.md @@ -21,10 +21,10 @@ description: messages.getStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v33/methods/messages_getWebPagePreview.md index e2dd428d..a3d5fce3 100644 --- a/old_docs/API_docs_v33/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v33/methods/messages_getWebPagePreview.md @@ -20,10 +20,10 @@ description: messages.getWebPagePreview parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/messages_importChatInvite.md b/old_docs/API_docs_v33/methods/messages_importChatInvite.md index 250d076d..a4e9c052 100644 --- a/old_docs/API_docs_v33/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v33/methods/messages_importChatInvite.md @@ -20,10 +20,10 @@ description: messages.importChatInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/messages_installStickerSet.md b/old_docs/API_docs_v33/methods/messages_installStickerSet.md index f99d40b4..5180bcbd 100644 --- a/old_docs/API_docs_v33/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v33/methods/messages_installStickerSet.md @@ -21,10 +21,10 @@ description: messages.installStickerSet parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v33/methods/messages_readEncryptedHistory.md index 555bffe7..5bb05536 100644 --- a/old_docs/API_docs_v33/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v33/methods/messages_readEncryptedHistory.md @@ -21,10 +21,10 @@ description: messages.readEncryptedHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/messages_readHistory.md b/old_docs/API_docs_v33/methods/messages_readHistory.md index f5c7ba11..1083b414 100644 --- a/old_docs/API_docs_v33/methods/messages_readHistory.md +++ b/old_docs/API_docs_v33/methods/messages_readHistory.md @@ -22,10 +22,10 @@ description: messages.readHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/messages_readMessageContents.md b/old_docs/API_docs_v33/methods/messages_readMessageContents.md index ae75d612..829e7cc8 100644 --- a/old_docs/API_docs_v33/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v33/methods/messages_readMessageContents.md @@ -20,10 +20,10 @@ description: messages.readMessageContents parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/messages_receivedMessages.md b/old_docs/API_docs_v33/methods/messages_receivedMessages.md index ffeaeed7..05a229b6 100644 --- a/old_docs/API_docs_v33/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v33/methods/messages_receivedMessages.md @@ -20,10 +20,10 @@ description: messages.receivedMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/messages_receivedQueue.md b/old_docs/API_docs_v33/methods/messages_receivedQueue.md index e514669c..d8bfae5e 100644 --- a/old_docs/API_docs_v33/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v33/methods/messages_receivedQueue.md @@ -20,10 +20,10 @@ description: messages.receivedQueue parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/messages_requestEncryption.md b/old_docs/API_docs_v33/methods/messages_requestEncryption.md index e82fca54..99fe7ecf 100644 --- a/old_docs/API_docs_v33/methods/messages_requestEncryption.md +++ b/old_docs/API_docs_v33/methods/messages_requestEncryption.md @@ -21,10 +21,10 @@ description: messages.requestEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/messages_search.md b/old_docs/API_docs_v33/methods/messages_search.md index fe53fb8c..05309dbf 100644 --- a/old_docs/API_docs_v33/methods/messages_search.md +++ b/old_docs/API_docs_v33/methods/messages_search.md @@ -27,10 +27,10 @@ description: messages.search parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/messages_sendBroadcast.md b/old_docs/API_docs_v33/methods/messages_sendBroadcast.md index 9194fdf1..b19bec57 100644 --- a/old_docs/API_docs_v33/methods/messages_sendBroadcast.md +++ b/old_docs/API_docs_v33/methods/messages_sendBroadcast.md @@ -22,10 +22,10 @@ description: messages.sendBroadcast parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/messages_sendEncrypted.md b/old_docs/API_docs_v33/methods/messages_sendEncrypted.md index f2c2c0c2..c3585580 100644 --- a/old_docs/API_docs_v33/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v33/methods/messages_sendEncrypted.md @@ -21,10 +21,10 @@ description: messages.sendEncrypted parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v33/methods/messages_sendEncryptedFile.md index a57a3dd8..40674df9 100644 --- a/old_docs/API_docs_v33/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v33/methods/messages_sendEncryptedFile.md @@ -22,10 +22,10 @@ description: messages.sendEncryptedFile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v33/methods/messages_sendEncryptedService.md index 4041c4d0..8bfee571 100644 --- a/old_docs/API_docs_v33/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v33/methods/messages_sendEncryptedService.md @@ -21,10 +21,10 @@ description: messages.sendEncryptedService parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/messages_sendMedia.md b/old_docs/API_docs_v33/methods/messages_sendMedia.md index 7bc305ef..e6d7cb94 100644 --- a/old_docs/API_docs_v33/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v33/methods/messages_sendMedia.md @@ -23,10 +23,10 @@ description: messages.sendMedia parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; @@ -45,3 +45,9 @@ Or, if you're into Lua: Updates = messages.sendMedia({peer=InputPeer, reply_to_msg_id=int, media=InputMedia, reply_markup=ReplyMarkup, }) ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v33/methods/messages_sendMessage.md b/old_docs/API_docs_v33/methods/messages_sendMessage.md index e33e5b8c..ef4bdd43 100644 --- a/old_docs/API_docs_v33/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v33/methods/messages_sendMessage.md @@ -23,10 +23,10 @@ description: messages.sendMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; @@ -45,3 +45,9 @@ Or, if you're into Lua: messages_SentMessage = messages.sendMessage({peer=InputPeer, reply_to_msg_id=int, message=string, reply_markup=ReplyMarkup, }) ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v33/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v33/methods/messages_setEncryptedTyping.md index 95364d49..ae718bba 100644 --- a/old_docs/API_docs_v33/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v33/methods/messages_setEncryptedTyping.md @@ -21,10 +21,10 @@ description: messages.setEncryptedTyping parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/messages_setTyping.md b/old_docs/API_docs_v33/methods/messages_setTyping.md index 0ce5743d..75903c68 100644 --- a/old_docs/API_docs_v33/methods/messages_setTyping.md +++ b/old_docs/API_docs_v33/methods/messages_setTyping.md @@ -21,10 +21,10 @@ description: messages.setTyping parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/messages_startBot.md b/old_docs/API_docs_v33/methods/messages_startBot.md index c2a544de..6419b20c 100644 --- a/old_docs/API_docs_v33/methods/messages_startBot.md +++ b/old_docs/API_docs_v33/methods/messages_startBot.md @@ -22,10 +22,10 @@ description: messages.startBot parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v33/methods/messages_uninstallStickerSet.md index 97fff059..5202b086 100644 --- a/old_docs/API_docs_v33/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v33/methods/messages_uninstallStickerSet.md @@ -20,10 +20,10 @@ description: messages.uninstallStickerSet parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/photos_deletePhotos.md b/old_docs/API_docs_v33/methods/photos_deletePhotos.md index 6a717835..2d27b700 100644 --- a/old_docs/API_docs_v33/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v33/methods/photos_deletePhotos.md @@ -20,10 +20,10 @@ description: photos.deletePhotos parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/photos_getUserPhotos.md b/old_docs/API_docs_v33/methods/photos_getUserPhotos.md index 4aa96dfa..0f50ee6f 100644 --- a/old_docs/API_docs_v33/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v33/methods/photos_getUserPhotos.md @@ -23,10 +23,10 @@ description: photos.getUserPhotos parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v33/methods/photos_updateProfilePhoto.md index f18669cc..9ae9c59e 100644 --- a/old_docs/API_docs_v33/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v33/methods/photos_updateProfilePhoto.md @@ -21,10 +21,10 @@ description: photos.updateProfilePhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v33/methods/photos_uploadProfilePhoto.md index 3eb7a10c..567eb363 100644 --- a/old_docs/API_docs_v33/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v33/methods/photos_uploadProfilePhoto.md @@ -23,10 +23,10 @@ description: photos.uploadProfilePhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/updates_getDifference.md b/old_docs/API_docs_v33/methods/updates_getDifference.md index c7ae5664..719a7a02 100644 --- a/old_docs/API_docs_v33/methods/updates_getDifference.md +++ b/old_docs/API_docs_v33/methods/updates_getDifference.md @@ -22,10 +22,10 @@ description: updates.getDifference parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/updates_getState.md b/old_docs/API_docs_v33/methods/updates_getState.md index 5612ca79..53fc0c16 100644 --- a/old_docs/API_docs_v33/methods/updates_getState.md +++ b/old_docs/API_docs_v33/methods/updates_getState.md @@ -15,10 +15,10 @@ description: updates.getState parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/upload_getFile.md b/old_docs/API_docs_v33/methods/upload_getFile.md index a2f3d961..ee35140a 100644 --- a/old_docs/API_docs_v33/methods/upload_getFile.md +++ b/old_docs/API_docs_v33/methods/upload_getFile.md @@ -22,10 +22,10 @@ description: upload.getFile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/upload_saveBigFilePart.md b/old_docs/API_docs_v33/methods/upload_saveBigFilePart.md index 03641055..503d1b5c 100644 --- a/old_docs/API_docs_v33/methods/upload_saveBigFilePart.md +++ b/old_docs/API_docs_v33/methods/upload_saveBigFilePart.md @@ -23,10 +23,10 @@ description: upload.saveBigFilePart parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/upload_saveFilePart.md b/old_docs/API_docs_v33/methods/upload_saveFilePart.md index 192412c8..d7f745aa 100644 --- a/old_docs/API_docs_v33/methods/upload_saveFilePart.md +++ b/old_docs/API_docs_v33/methods/upload_saveFilePart.md @@ -22,10 +22,10 @@ description: upload.saveFilePart parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/users_getFullUser.md b/old_docs/API_docs_v33/methods/users_getFullUser.md index 864ae387..bcba7f3d 100644 --- a/old_docs/API_docs_v33/methods/users_getFullUser.md +++ b/old_docs/API_docs_v33/methods/users_getFullUser.md @@ -20,10 +20,10 @@ description: users.getFullUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v33/methods/users_getUsers.md b/old_docs/API_docs_v33/methods/users_getUsers.md index 34816478..e03fd2d6 100644 --- a/old_docs/API_docs_v33/methods/users_getUsers.md +++ b/old_docs/API_docs_v33/methods/users_getUsers.md @@ -20,10 +20,10 @@ description: users.getUsers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/constructors/message.md b/old_docs/API_docs_v38/constructors/message.md index 575d31f9..3e7d2cf1 100644 --- a/old_docs/API_docs_v38/constructors/message.md +++ b/old_docs/API_docs_v38/constructors/message.md @@ -44,3 +44,9 @@ message={_='message', id=int, from_id=int, to_id=Peer, fwd_from_id=Peer, fwd_dat ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v38/methods/account_changePhone.md b/old_docs/API_docs_v38/methods/account_changePhone.md index dc3e0427..6691a743 100644 --- a/old_docs/API_docs_v38/methods/account_changePhone.md +++ b/old_docs/API_docs_v38/methods/account_changePhone.md @@ -22,10 +22,10 @@ description: account.changePhone parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/account_checkUsername.md b/old_docs/API_docs_v38/methods/account_checkUsername.md index dc13041c..e954ca99 100644 --- a/old_docs/API_docs_v38/methods/account_checkUsername.md +++ b/old_docs/API_docs_v38/methods/account_checkUsername.md @@ -20,10 +20,10 @@ description: account.checkUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/account_deleteAccount.md b/old_docs/API_docs_v38/methods/account_deleteAccount.md index 4199572b..0d0a6204 100644 --- a/old_docs/API_docs_v38/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v38/methods/account_deleteAccount.md @@ -20,10 +20,10 @@ description: account.deleteAccount parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/account_getAccountTTL.md b/old_docs/API_docs_v38/methods/account_getAccountTTL.md index ff4171df..e284a80e 100644 --- a/old_docs/API_docs_v38/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v38/methods/account_getAccountTTL.md @@ -15,10 +15,10 @@ description: account.getAccountTTL parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/account_getAuthorizations.md b/old_docs/API_docs_v38/methods/account_getAuthorizations.md index 26f755d4..ee5a00d6 100644 --- a/old_docs/API_docs_v38/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v38/methods/account_getAuthorizations.md @@ -15,10 +15,10 @@ description: account.getAuthorizations parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/account_getNotifySettings.md b/old_docs/API_docs_v38/methods/account_getNotifySettings.md index 817f201a..2e7fd9ba 100644 --- a/old_docs/API_docs_v38/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v38/methods/account_getNotifySettings.md @@ -20,10 +20,10 @@ description: account.getNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/account_getPassword.md b/old_docs/API_docs_v38/methods/account_getPassword.md index d7491fec..424d3710 100644 --- a/old_docs/API_docs_v38/methods/account_getPassword.md +++ b/old_docs/API_docs_v38/methods/account_getPassword.md @@ -15,10 +15,10 @@ description: account.getPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/account_getPasswordSettings.md b/old_docs/API_docs_v38/methods/account_getPasswordSettings.md index 5be9a523..3e72e398 100644 --- a/old_docs/API_docs_v38/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v38/methods/account_getPasswordSettings.md @@ -20,10 +20,10 @@ description: account.getPasswordSettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/account_getPrivacy.md b/old_docs/API_docs_v38/methods/account_getPrivacy.md index 649019d5..26137fd3 100644 --- a/old_docs/API_docs_v38/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v38/methods/account_getPrivacy.md @@ -20,10 +20,10 @@ description: account.getPrivacy parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/account_getWallPapers.md b/old_docs/API_docs_v38/methods/account_getWallPapers.md index 9eb0182a..a44ea777 100644 --- a/old_docs/API_docs_v38/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v38/methods/account_getWallPapers.md @@ -15,10 +15,10 @@ description: account.getWallPapers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/account_registerDevice.md b/old_docs/API_docs_v38/methods/account_registerDevice.md index 168dcba0..70cadfab 100644 --- a/old_docs/API_docs_v38/methods/account_registerDevice.md +++ b/old_docs/API_docs_v38/methods/account_registerDevice.md @@ -26,10 +26,10 @@ description: account.registerDevice parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/account_resetAuthorization.md b/old_docs/API_docs_v38/methods/account_resetAuthorization.md index aaf5a660..2c7c5bc4 100644 --- a/old_docs/API_docs_v38/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v38/methods/account_resetAuthorization.md @@ -20,10 +20,10 @@ description: account.resetAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/account_resetNotifySettings.md b/old_docs/API_docs_v38/methods/account_resetNotifySettings.md index 5a6a4c95..aa01dfce 100644 --- a/old_docs/API_docs_v38/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v38/methods/account_resetNotifySettings.md @@ -15,10 +15,10 @@ description: account.resetNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v38/methods/account_sendChangePhoneCode.md index 98110148..4ccc4045 100644 --- a/old_docs/API_docs_v38/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v38/methods/account_sendChangePhoneCode.md @@ -20,10 +20,10 @@ description: account.sendChangePhoneCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/account_setAccountTTL.md b/old_docs/API_docs_v38/methods/account_setAccountTTL.md index 6ae8d70e..460ae89a 100644 --- a/old_docs/API_docs_v38/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v38/methods/account_setAccountTTL.md @@ -20,10 +20,10 @@ description: account.setAccountTTL parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/account_setPrivacy.md b/old_docs/API_docs_v38/methods/account_setPrivacy.md index e438ca16..f05356db 100644 --- a/old_docs/API_docs_v38/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v38/methods/account_setPrivacy.md @@ -21,10 +21,10 @@ description: account.setPrivacy parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/account_unregisterDevice.md b/old_docs/API_docs_v38/methods/account_unregisterDevice.md index 89ab99a8..1063fad3 100644 --- a/old_docs/API_docs_v38/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v38/methods/account_unregisterDevice.md @@ -21,10 +21,10 @@ description: account.unregisterDevice parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v38/methods/account_updateDeviceLocked.md index 3fe6b8b6..506d974f 100644 --- a/old_docs/API_docs_v38/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v38/methods/account_updateDeviceLocked.md @@ -20,10 +20,10 @@ description: account.updateDeviceLocked parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/account_updateNotifySettings.md b/old_docs/API_docs_v38/methods/account_updateNotifySettings.md index 7eea8202..cb90a39f 100644 --- a/old_docs/API_docs_v38/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v38/methods/account_updateNotifySettings.md @@ -21,10 +21,10 @@ description: account.updateNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v38/methods/account_updatePasswordSettings.md index 56e4d724..ad1a930d 100644 --- a/old_docs/API_docs_v38/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v38/methods/account_updatePasswordSettings.md @@ -21,10 +21,10 @@ description: account.updatePasswordSettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/account_updateProfile.md b/old_docs/API_docs_v38/methods/account_updateProfile.md index fce1c8c9..cf8374de 100644 --- a/old_docs/API_docs_v38/methods/account_updateProfile.md +++ b/old_docs/API_docs_v38/methods/account_updateProfile.md @@ -21,10 +21,10 @@ description: account.updateProfile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/account_updateStatus.md b/old_docs/API_docs_v38/methods/account_updateStatus.md index f2fd751e..ac260312 100644 --- a/old_docs/API_docs_v38/methods/account_updateStatus.md +++ b/old_docs/API_docs_v38/methods/account_updateStatus.md @@ -20,10 +20,10 @@ description: account.updateStatus parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/account_updateUsername.md b/old_docs/API_docs_v38/methods/account_updateUsername.md index b5e428e4..7daf43e0 100644 --- a/old_docs/API_docs_v38/methods/account_updateUsername.md +++ b/old_docs/API_docs_v38/methods/account_updateUsername.md @@ -20,10 +20,10 @@ description: account.updateUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v38/methods/auth_bindTempAuthKey.md index 87d0c7cf..55e083cd 100644 --- a/old_docs/API_docs_v38/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v38/methods/auth_bindTempAuthKey.md @@ -23,10 +23,10 @@ description: auth.bindTempAuthKey parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/auth_checkPassword.md b/old_docs/API_docs_v38/methods/auth_checkPassword.md index 601146fc..9dcb706a 100644 --- a/old_docs/API_docs_v38/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v38/methods/auth_checkPassword.md @@ -20,10 +20,10 @@ description: auth.checkPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/auth_checkPhone.md b/old_docs/API_docs_v38/methods/auth_checkPhone.md index 2e4db690..ce137f9d 100644 --- a/old_docs/API_docs_v38/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v38/methods/auth_checkPhone.md @@ -20,10 +20,10 @@ description: auth.checkPhone parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/auth_exportAuthorization.md b/old_docs/API_docs_v38/methods/auth_exportAuthorization.md index a69f0301..bfd16433 100644 --- a/old_docs/API_docs_v38/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v38/methods/auth_exportAuthorization.md @@ -20,10 +20,10 @@ description: auth.exportAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/auth_importAuthorization.md b/old_docs/API_docs_v38/methods/auth_importAuthorization.md index a0e2e4b7..956f9a72 100644 --- a/old_docs/API_docs_v38/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v38/methods/auth_importAuthorization.md @@ -21,10 +21,10 @@ description: auth.importAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/auth_importBotAuthorization.md b/old_docs/API_docs_v38/methods/auth_importBotAuthorization.md index a78a5263..11d2f7f3 100644 --- a/old_docs/API_docs_v38/methods/auth_importBotAuthorization.md +++ b/old_docs/API_docs_v38/methods/auth_importBotAuthorization.md @@ -22,10 +22,10 @@ description: auth.importBotAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/auth_logOut.md b/old_docs/API_docs_v38/methods/auth_logOut.md index ac5bd8ae..5651f753 100644 --- a/old_docs/API_docs_v38/methods/auth_logOut.md +++ b/old_docs/API_docs_v38/methods/auth_logOut.md @@ -15,10 +15,10 @@ description: auth.logOut parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/auth_recoverPassword.md b/old_docs/API_docs_v38/methods/auth_recoverPassword.md index 9b7ebcfb..e253e7d9 100644 --- a/old_docs/API_docs_v38/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v38/methods/auth_recoverPassword.md @@ -20,10 +20,10 @@ description: auth.recoverPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v38/methods/auth_requestPasswordRecovery.md index 94c0aeff..2ae670eb 100644 --- a/old_docs/API_docs_v38/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v38/methods/auth_requestPasswordRecovery.md @@ -15,10 +15,10 @@ description: auth.requestPasswordRecovery parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v38/methods/auth_resetAuthorizations.md index f55e2e4d..9b324b42 100644 --- a/old_docs/API_docs_v38/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v38/methods/auth_resetAuthorizations.md @@ -15,10 +15,10 @@ description: auth.resetAuthorizations parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/auth_sendCall.md b/old_docs/API_docs_v38/methods/auth_sendCall.md index 3d44b1d2..584235b0 100644 --- a/old_docs/API_docs_v38/methods/auth_sendCall.md +++ b/old_docs/API_docs_v38/methods/auth_sendCall.md @@ -21,10 +21,10 @@ description: auth.sendCall parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/auth_sendCode.md b/old_docs/API_docs_v38/methods/auth_sendCode.md index 8c4387cf..58305712 100644 --- a/old_docs/API_docs_v38/methods/auth_sendCode.md +++ b/old_docs/API_docs_v38/methods/auth_sendCode.md @@ -24,10 +24,10 @@ description: auth.sendCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/auth_sendInvites.md b/old_docs/API_docs_v38/methods/auth_sendInvites.md index f81a5c7e..87cdc7e3 100644 --- a/old_docs/API_docs_v38/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v38/methods/auth_sendInvites.md @@ -21,10 +21,10 @@ description: auth.sendInvites parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/auth_sendSms.md b/old_docs/API_docs_v38/methods/auth_sendSms.md index ab652a6e..fb469f84 100644 --- a/old_docs/API_docs_v38/methods/auth_sendSms.md +++ b/old_docs/API_docs_v38/methods/auth_sendSms.md @@ -21,10 +21,10 @@ description: auth.sendSms parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/auth_signIn.md b/old_docs/API_docs_v38/methods/auth_signIn.md index 7616bc80..b0fb12fe 100644 --- a/old_docs/API_docs_v38/methods/auth_signIn.md +++ b/old_docs/API_docs_v38/methods/auth_signIn.md @@ -22,10 +22,10 @@ description: auth.signIn parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/auth_signUp.md b/old_docs/API_docs_v38/methods/auth_signUp.md index f9c72d64..6f92b4f7 100644 --- a/old_docs/API_docs_v38/methods/auth_signUp.md +++ b/old_docs/API_docs_v38/methods/auth_signUp.md @@ -24,10 +24,10 @@ description: auth.signUp parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/channels_checkUsername.md b/old_docs/API_docs_v38/methods/channels_checkUsername.md index 82990d05..298b8e35 100644 --- a/old_docs/API_docs_v38/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v38/methods/channels_checkUsername.md @@ -21,10 +21,10 @@ description: channels.checkUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/channels_createChannel.md b/old_docs/API_docs_v38/methods/channels_createChannel.md index 968703aa..b97a5272 100644 --- a/old_docs/API_docs_v38/methods/channels_createChannel.md +++ b/old_docs/API_docs_v38/methods/channels_createChannel.md @@ -22,10 +22,10 @@ description: channels.createChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/channels_deleteChannel.md b/old_docs/API_docs_v38/methods/channels_deleteChannel.md index c1eba22f..825882ab 100644 --- a/old_docs/API_docs_v38/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v38/methods/channels_deleteChannel.md @@ -20,10 +20,10 @@ description: channels.deleteChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/channels_deleteMessages.md b/old_docs/API_docs_v38/methods/channels_deleteMessages.md index e2e5e2bb..14fe6256 100644 --- a/old_docs/API_docs_v38/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v38/methods/channels_deleteMessages.md @@ -21,10 +21,10 @@ description: channels.deleteMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v38/methods/channels_deleteUserHistory.md index d3feb071..c485126f 100644 --- a/old_docs/API_docs_v38/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v38/methods/channels_deleteUserHistory.md @@ -21,10 +21,10 @@ description: channels.deleteUserHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/channels_editAbout.md b/old_docs/API_docs_v38/methods/channels_editAbout.md index 12d9df80..87c1a2c0 100644 --- a/old_docs/API_docs_v38/methods/channels_editAbout.md +++ b/old_docs/API_docs_v38/methods/channels_editAbout.md @@ -21,10 +21,10 @@ description: channels.editAbout parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/channels_editAdmin.md b/old_docs/API_docs_v38/methods/channels_editAdmin.md index 611e0d97..85285a50 100644 --- a/old_docs/API_docs_v38/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v38/methods/channels_editAdmin.md @@ -22,10 +22,10 @@ description: channels.editAdmin parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/channels_editPhoto.md b/old_docs/API_docs_v38/methods/channels_editPhoto.md index 9c0d0fe0..caea3df6 100644 --- a/old_docs/API_docs_v38/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v38/methods/channels_editPhoto.md @@ -21,10 +21,10 @@ description: channels.editPhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/channels_editTitle.md b/old_docs/API_docs_v38/methods/channels_editTitle.md index 057c7772..6f05ed61 100644 --- a/old_docs/API_docs_v38/methods/channels_editTitle.md +++ b/old_docs/API_docs_v38/methods/channels_editTitle.md @@ -21,10 +21,10 @@ description: channels.editTitle parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/channels_exportInvite.md b/old_docs/API_docs_v38/methods/channels_exportInvite.md index c5fa1bf9..7483038b 100644 --- a/old_docs/API_docs_v38/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v38/methods/channels_exportInvite.md @@ -20,10 +20,10 @@ description: channels.exportInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/channels_getChannels.md b/old_docs/API_docs_v38/methods/channels_getChannels.md index 24b94c8f..004f7b7e 100644 --- a/old_docs/API_docs_v38/methods/channels_getChannels.md +++ b/old_docs/API_docs_v38/methods/channels_getChannels.md @@ -20,10 +20,10 @@ description: channels.getChannels parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/channels_getDialogs.md b/old_docs/API_docs_v38/methods/channels_getDialogs.md index fbbb59a5..847a23b3 100644 --- a/old_docs/API_docs_v38/methods/channels_getDialogs.md +++ b/old_docs/API_docs_v38/methods/channels_getDialogs.md @@ -21,10 +21,10 @@ description: channels.getDialogs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/channels_getFullChannel.md b/old_docs/API_docs_v38/methods/channels_getFullChannel.md index 8bf78cd9..37abd094 100644 --- a/old_docs/API_docs_v38/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v38/methods/channels_getFullChannel.md @@ -20,10 +20,10 @@ description: channels.getFullChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/channels_getImportantHistory.md b/old_docs/API_docs_v38/methods/channels_getImportantHistory.md index 536f0244..e125fc2c 100644 --- a/old_docs/API_docs_v38/methods/channels_getImportantHistory.md +++ b/old_docs/API_docs_v38/methods/channels_getImportantHistory.md @@ -25,10 +25,10 @@ description: channels.getImportantHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/channels_getMessages.md b/old_docs/API_docs_v38/methods/channels_getMessages.md index 8204bf26..3aca181e 100644 --- a/old_docs/API_docs_v38/methods/channels_getMessages.md +++ b/old_docs/API_docs_v38/methods/channels_getMessages.md @@ -21,10 +21,10 @@ description: channels.getMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/channels_getParticipant.md b/old_docs/API_docs_v38/methods/channels_getParticipant.md index 7b685913..6bb9339e 100644 --- a/old_docs/API_docs_v38/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v38/methods/channels_getParticipant.md @@ -21,10 +21,10 @@ description: channels.getParticipant parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/channels_getParticipants.md b/old_docs/API_docs_v38/methods/channels_getParticipants.md index 6ee31676..51ac2c09 100644 --- a/old_docs/API_docs_v38/methods/channels_getParticipants.md +++ b/old_docs/API_docs_v38/methods/channels_getParticipants.md @@ -23,10 +23,10 @@ description: channels.getParticipants parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/channels_inviteToChannel.md b/old_docs/API_docs_v38/methods/channels_inviteToChannel.md index 4b4985a4..57581c7a 100644 --- a/old_docs/API_docs_v38/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v38/methods/channels_inviteToChannel.md @@ -21,10 +21,10 @@ description: channels.inviteToChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/channels_joinChannel.md b/old_docs/API_docs_v38/methods/channels_joinChannel.md index 97fd5417..359333fd 100644 --- a/old_docs/API_docs_v38/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v38/methods/channels_joinChannel.md @@ -20,10 +20,10 @@ description: channels.joinChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/channels_kickFromChannel.md b/old_docs/API_docs_v38/methods/channels_kickFromChannel.md index cf5a3ebc..930902a3 100644 --- a/old_docs/API_docs_v38/methods/channels_kickFromChannel.md +++ b/old_docs/API_docs_v38/methods/channels_kickFromChannel.md @@ -22,10 +22,10 @@ description: channels.kickFromChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/channels_leaveChannel.md b/old_docs/API_docs_v38/methods/channels_leaveChannel.md index 69dc1852..a10d17e7 100644 --- a/old_docs/API_docs_v38/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v38/methods/channels_leaveChannel.md @@ -20,10 +20,10 @@ description: channels.leaveChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/channels_readHistory.md b/old_docs/API_docs_v38/methods/channels_readHistory.md index 87906417..104a7b8f 100644 --- a/old_docs/API_docs_v38/methods/channels_readHistory.md +++ b/old_docs/API_docs_v38/methods/channels_readHistory.md @@ -21,10 +21,10 @@ description: channels.readHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/channels_reportSpam.md b/old_docs/API_docs_v38/methods/channels_reportSpam.md index dc8542f2..9e3e13ac 100644 --- a/old_docs/API_docs_v38/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v38/methods/channels_reportSpam.md @@ -22,10 +22,10 @@ description: channels.reportSpam parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/channels_toggleComments.md b/old_docs/API_docs_v38/methods/channels_toggleComments.md index eaaeb720..31873eb9 100644 --- a/old_docs/API_docs_v38/methods/channels_toggleComments.md +++ b/old_docs/API_docs_v38/methods/channels_toggleComments.md @@ -21,10 +21,10 @@ description: channels.toggleComments parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/channels_updateUsername.md b/old_docs/API_docs_v38/methods/channels_updateUsername.md index ebb03507..801bc972 100644 --- a/old_docs/API_docs_v38/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v38/methods/channels_updateUsername.md @@ -21,10 +21,10 @@ description: channels.updateUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/contacts_block.md b/old_docs/API_docs_v38/methods/contacts_block.md index b809b15c..f512adcc 100644 --- a/old_docs/API_docs_v38/methods/contacts_block.md +++ b/old_docs/API_docs_v38/methods/contacts_block.md @@ -20,10 +20,10 @@ description: contacts.block parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/contacts_deleteContact.md b/old_docs/API_docs_v38/methods/contacts_deleteContact.md index 18ef51f8..a3e8f63d 100644 --- a/old_docs/API_docs_v38/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v38/methods/contacts_deleteContact.md @@ -20,10 +20,10 @@ description: contacts.deleteContact parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/contacts_deleteContacts.md b/old_docs/API_docs_v38/methods/contacts_deleteContacts.md index 40672188..46e251eb 100644 --- a/old_docs/API_docs_v38/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v38/methods/contacts_deleteContacts.md @@ -20,10 +20,10 @@ description: contacts.deleteContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/contacts_exportCard.md b/old_docs/API_docs_v38/methods/contacts_exportCard.md index 4145d246..f7ec0015 100644 --- a/old_docs/API_docs_v38/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v38/methods/contacts_exportCard.md @@ -15,10 +15,10 @@ description: contacts.exportCard parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/contacts_getBlocked.md b/old_docs/API_docs_v38/methods/contacts_getBlocked.md index 50172d03..0fc72dba 100644 --- a/old_docs/API_docs_v38/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v38/methods/contacts_getBlocked.md @@ -21,10 +21,10 @@ description: contacts.getBlocked parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/contacts_getContacts.md b/old_docs/API_docs_v38/methods/contacts_getContacts.md index 0e6f22e9..656821e0 100644 --- a/old_docs/API_docs_v38/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v38/methods/contacts_getContacts.md @@ -20,10 +20,10 @@ description: contacts.getContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/contacts_getStatuses.md b/old_docs/API_docs_v38/methods/contacts_getStatuses.md index b734f529..ee806f2d 100644 --- a/old_docs/API_docs_v38/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v38/methods/contacts_getStatuses.md @@ -15,10 +15,10 @@ description: contacts.getStatuses parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/contacts_getSuggested.md b/old_docs/API_docs_v38/methods/contacts_getSuggested.md index a49b5913..4cd124e7 100644 --- a/old_docs/API_docs_v38/methods/contacts_getSuggested.md +++ b/old_docs/API_docs_v38/methods/contacts_getSuggested.md @@ -20,10 +20,10 @@ description: contacts.getSuggested parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/contacts_importCard.md b/old_docs/API_docs_v38/methods/contacts_importCard.md index 6b2c612e..162ff4f3 100644 --- a/old_docs/API_docs_v38/methods/contacts_importCard.md +++ b/old_docs/API_docs_v38/methods/contacts_importCard.md @@ -20,10 +20,10 @@ description: contacts.importCard parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/contacts_importContacts.md b/old_docs/API_docs_v38/methods/contacts_importContacts.md index 2426f53c..48412e99 100644 --- a/old_docs/API_docs_v38/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v38/methods/contacts_importContacts.md @@ -21,10 +21,10 @@ description: contacts.importContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/contacts_resolveUsername.md b/old_docs/API_docs_v38/methods/contacts_resolveUsername.md index 0ea67c6f..b847fbe9 100644 --- a/old_docs/API_docs_v38/methods/contacts_resolveUsername.md +++ b/old_docs/API_docs_v38/methods/contacts_resolveUsername.md @@ -20,10 +20,10 @@ description: contacts.resolveUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/contacts_search.md b/old_docs/API_docs_v38/methods/contacts_search.md index 00a39519..9a351db7 100644 --- a/old_docs/API_docs_v38/methods/contacts_search.md +++ b/old_docs/API_docs_v38/methods/contacts_search.md @@ -21,10 +21,10 @@ description: contacts.search parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/contacts_unblock.md b/old_docs/API_docs_v38/methods/contacts_unblock.md index 63f41483..6d739c9b 100644 --- a/old_docs/API_docs_v38/methods/contacts_unblock.md +++ b/old_docs/API_docs_v38/methods/contacts_unblock.md @@ -20,10 +20,10 @@ description: contacts.unblock parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/help_getAppChangelog.md b/old_docs/API_docs_v38/methods/help_getAppChangelog.md index bfe48334..1b52c928 100644 --- a/old_docs/API_docs_v38/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v38/methods/help_getAppChangelog.md @@ -23,10 +23,10 @@ description: help.getAppChangelog parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/help_getAppUpdate.md b/old_docs/API_docs_v38/methods/help_getAppUpdate.md index 7be3b374..9559c840 100644 --- a/old_docs/API_docs_v38/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v38/methods/help_getAppUpdate.md @@ -23,10 +23,10 @@ description: help.getAppUpdate parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/help_getConfig.md b/old_docs/API_docs_v38/methods/help_getConfig.md index cb9c4f1c..9481a0c0 100644 --- a/old_docs/API_docs_v38/methods/help_getConfig.md +++ b/old_docs/API_docs_v38/methods/help_getConfig.md @@ -15,10 +15,10 @@ description: help.getConfig parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/help_getInviteText.md b/old_docs/API_docs_v38/methods/help_getInviteText.md index f265f8d3..14692791 100644 --- a/old_docs/API_docs_v38/methods/help_getInviteText.md +++ b/old_docs/API_docs_v38/methods/help_getInviteText.md @@ -20,10 +20,10 @@ description: help.getInviteText parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/help_getNearestDc.md b/old_docs/API_docs_v38/methods/help_getNearestDc.md index f491ae0c..bb6b1883 100644 --- a/old_docs/API_docs_v38/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v38/methods/help_getNearestDc.md @@ -15,10 +15,10 @@ description: help.getNearestDc parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/help_getSupport.md b/old_docs/API_docs_v38/methods/help_getSupport.md index 03574c6f..0348089a 100644 --- a/old_docs/API_docs_v38/methods/help_getSupport.md +++ b/old_docs/API_docs_v38/methods/help_getSupport.md @@ -15,10 +15,10 @@ description: help.getSupport parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/help_saveAppLog.md b/old_docs/API_docs_v38/methods/help_saveAppLog.md index 3887ccc2..59b92601 100644 --- a/old_docs/API_docs_v38/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v38/methods/help_saveAppLog.md @@ -20,10 +20,10 @@ description: help.saveAppLog parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/initConnection.md b/old_docs/API_docs_v38/methods/initConnection.md index 1c946720..aa89066c 100644 --- a/old_docs/API_docs_v38/methods/initConnection.md +++ b/old_docs/API_docs_v38/methods/initConnection.md @@ -25,10 +25,10 @@ description: initConnection parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/invokeAfterMsg.md b/old_docs/API_docs_v38/methods/invokeAfterMsg.md index 1b35a238..97c4f1fb 100644 --- a/old_docs/API_docs_v38/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v38/methods/invokeAfterMsg.md @@ -21,10 +21,10 @@ description: invokeAfterMsg parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/invokeAfterMsgs.md b/old_docs/API_docs_v38/methods/invokeAfterMsgs.md index 164ab318..4e278ef1 100644 --- a/old_docs/API_docs_v38/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v38/methods/invokeAfterMsgs.md @@ -21,10 +21,10 @@ description: invokeAfterMsgs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/invokeWithLayer.md b/old_docs/API_docs_v38/methods/invokeWithLayer.md index 497cc285..72fe47ec 100644 --- a/old_docs/API_docs_v38/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v38/methods/invokeWithLayer.md @@ -21,10 +21,10 @@ description: invokeWithLayer parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v38/methods/invokeWithoutUpdates.md index cbdabb07..5151b786 100644 --- a/old_docs/API_docs_v38/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v38/methods/invokeWithoutUpdates.md @@ -20,10 +20,10 @@ description: invokeWithoutUpdates parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/messages_acceptEncryption.md b/old_docs/API_docs_v38/methods/messages_acceptEncryption.md index d41beb91..e016f5d3 100644 --- a/old_docs/API_docs_v38/methods/messages_acceptEncryption.md +++ b/old_docs/API_docs_v38/methods/messages_acceptEncryption.md @@ -22,10 +22,10 @@ description: messages.acceptEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/messages_addChatUser.md b/old_docs/API_docs_v38/methods/messages_addChatUser.md index 13d17a3e..df2cb1a5 100644 --- a/old_docs/API_docs_v38/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v38/methods/messages_addChatUser.md @@ -22,10 +22,10 @@ description: messages.addChatUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/messages_checkChatInvite.md b/old_docs/API_docs_v38/methods/messages_checkChatInvite.md index 0a3a4f84..7670727b 100644 --- a/old_docs/API_docs_v38/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v38/methods/messages_checkChatInvite.md @@ -20,10 +20,10 @@ description: messages.checkChatInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/messages_createChat.md b/old_docs/API_docs_v38/methods/messages_createChat.md index 0ab3101a..2fc5631c 100644 --- a/old_docs/API_docs_v38/methods/messages_createChat.md +++ b/old_docs/API_docs_v38/methods/messages_createChat.md @@ -21,10 +21,10 @@ description: messages.createChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/messages_deleteChatUser.md b/old_docs/API_docs_v38/methods/messages_deleteChatUser.md index ed736ebd..6895649f 100644 --- a/old_docs/API_docs_v38/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v38/methods/messages_deleteChatUser.md @@ -21,10 +21,10 @@ description: messages.deleteChatUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/messages_deleteHistory.md b/old_docs/API_docs_v38/methods/messages_deleteHistory.md index bdbde2cf..c0762753 100644 --- a/old_docs/API_docs_v38/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v38/methods/messages_deleteHistory.md @@ -21,10 +21,10 @@ description: messages.deleteHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/messages_deleteMessages.md b/old_docs/API_docs_v38/methods/messages_deleteMessages.md index 5997c2ed..d9d28886 100644 --- a/old_docs/API_docs_v38/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v38/methods/messages_deleteMessages.md @@ -20,10 +20,10 @@ description: messages.deleteMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/messages_discardEncryption.md b/old_docs/API_docs_v38/methods/messages_discardEncryption.md index ebc1ace5..f237c986 100644 --- a/old_docs/API_docs_v38/methods/messages_discardEncryption.md +++ b/old_docs/API_docs_v38/methods/messages_discardEncryption.md @@ -20,10 +20,10 @@ description: messages.discardEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/messages_editChatPhoto.md b/old_docs/API_docs_v38/methods/messages_editChatPhoto.md index e3cbf492..0396c74b 100644 --- a/old_docs/API_docs_v38/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v38/methods/messages_editChatPhoto.md @@ -21,10 +21,10 @@ description: messages.editChatPhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/messages_editChatTitle.md b/old_docs/API_docs_v38/methods/messages_editChatTitle.md index 60eae01c..fabe9c87 100644 --- a/old_docs/API_docs_v38/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v38/methods/messages_editChatTitle.md @@ -21,10 +21,10 @@ description: messages.editChatTitle parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/messages_exportChatInvite.md b/old_docs/API_docs_v38/methods/messages_exportChatInvite.md index 3efc9bf7..b96e7498 100644 --- a/old_docs/API_docs_v38/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v38/methods/messages_exportChatInvite.md @@ -20,10 +20,10 @@ description: messages.exportChatInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/messages_forwardMessage.md b/old_docs/API_docs_v38/methods/messages_forwardMessage.md index a95d259a..ced2cb5b 100644 --- a/old_docs/API_docs_v38/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v38/methods/messages_forwardMessage.md @@ -21,10 +21,10 @@ description: messages.forwardMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/messages_forwardMessages.md b/old_docs/API_docs_v38/methods/messages_forwardMessages.md index a7c142bc..5fc7505e 100644 --- a/old_docs/API_docs_v38/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v38/methods/messages_forwardMessages.md @@ -22,10 +22,10 @@ description: messages.forwardMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/messages_getAllStickers.md b/old_docs/API_docs_v38/methods/messages_getAllStickers.md index bc696cd6..34254773 100644 --- a/old_docs/API_docs_v38/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v38/methods/messages_getAllStickers.md @@ -20,10 +20,10 @@ description: messages.getAllStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/messages_getChats.md b/old_docs/API_docs_v38/methods/messages_getChats.md index ad63744b..be57718e 100644 --- a/old_docs/API_docs_v38/methods/messages_getChats.md +++ b/old_docs/API_docs_v38/methods/messages_getChats.md @@ -20,10 +20,10 @@ description: messages.getChats parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/messages_getDhConfig.md b/old_docs/API_docs_v38/methods/messages_getDhConfig.md index bcebea55..21b37f21 100644 --- a/old_docs/API_docs_v38/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v38/methods/messages_getDhConfig.md @@ -21,10 +21,10 @@ description: messages.getDhConfig parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/messages_getDialogs.md b/old_docs/API_docs_v38/methods/messages_getDialogs.md index baacdd9a..f261715e 100644 --- a/old_docs/API_docs_v38/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v38/methods/messages_getDialogs.md @@ -21,10 +21,10 @@ description: messages.getDialogs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/messages_getFullChat.md b/old_docs/API_docs_v38/methods/messages_getFullChat.md index f3c8223a..10d938ae 100644 --- a/old_docs/API_docs_v38/methods/messages_getFullChat.md +++ b/old_docs/API_docs_v38/methods/messages_getFullChat.md @@ -20,10 +20,10 @@ description: messages.getFullChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/messages_getHistory.md b/old_docs/API_docs_v38/methods/messages_getHistory.md index 84324235..409526cc 100644 --- a/old_docs/API_docs_v38/methods/messages_getHistory.md +++ b/old_docs/API_docs_v38/methods/messages_getHistory.md @@ -25,10 +25,10 @@ description: messages.getHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/messages_getMessages.md b/old_docs/API_docs_v38/methods/messages_getMessages.md index 224df903..e669bcf8 100644 --- a/old_docs/API_docs_v38/methods/messages_getMessages.md +++ b/old_docs/API_docs_v38/methods/messages_getMessages.md @@ -20,10 +20,10 @@ description: messages.getMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/messages_getMessagesViews.md b/old_docs/API_docs_v38/methods/messages_getMessagesViews.md index d162b668..f27cdb36 100644 --- a/old_docs/API_docs_v38/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v38/methods/messages_getMessagesViews.md @@ -22,10 +22,10 @@ description: messages.getMessagesViews parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/messages_getStickerSet.md b/old_docs/API_docs_v38/methods/messages_getStickerSet.md index 2ec2fa5d..561eec32 100644 --- a/old_docs/API_docs_v38/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v38/methods/messages_getStickerSet.md @@ -20,10 +20,10 @@ description: messages.getStickerSet parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/messages_getStickers.md b/old_docs/API_docs_v38/methods/messages_getStickers.md index 6730f586..e9aedd80 100644 --- a/old_docs/API_docs_v38/methods/messages_getStickers.md +++ b/old_docs/API_docs_v38/methods/messages_getStickers.md @@ -21,10 +21,10 @@ description: messages.getStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v38/methods/messages_getWebPagePreview.md index e2dd428d..a3d5fce3 100644 --- a/old_docs/API_docs_v38/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v38/methods/messages_getWebPagePreview.md @@ -20,10 +20,10 @@ description: messages.getWebPagePreview parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/messages_importChatInvite.md b/old_docs/API_docs_v38/methods/messages_importChatInvite.md index 250d076d..a4e9c052 100644 --- a/old_docs/API_docs_v38/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v38/methods/messages_importChatInvite.md @@ -20,10 +20,10 @@ description: messages.importChatInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/messages_installStickerSet.md b/old_docs/API_docs_v38/methods/messages_installStickerSet.md index f99d40b4..5180bcbd 100644 --- a/old_docs/API_docs_v38/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v38/methods/messages_installStickerSet.md @@ -21,10 +21,10 @@ description: messages.installStickerSet parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v38/methods/messages_readEncryptedHistory.md index 555bffe7..5bb05536 100644 --- a/old_docs/API_docs_v38/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v38/methods/messages_readEncryptedHistory.md @@ -21,10 +21,10 @@ description: messages.readEncryptedHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/messages_readHistory.md b/old_docs/API_docs_v38/methods/messages_readHistory.md index f5c7ba11..1083b414 100644 --- a/old_docs/API_docs_v38/methods/messages_readHistory.md +++ b/old_docs/API_docs_v38/methods/messages_readHistory.md @@ -22,10 +22,10 @@ description: messages.readHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/messages_readMessageContents.md b/old_docs/API_docs_v38/methods/messages_readMessageContents.md index ae75d612..829e7cc8 100644 --- a/old_docs/API_docs_v38/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v38/methods/messages_readMessageContents.md @@ -20,10 +20,10 @@ description: messages.readMessageContents parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/messages_receivedMessages.md b/old_docs/API_docs_v38/methods/messages_receivedMessages.md index ffeaeed7..05a229b6 100644 --- a/old_docs/API_docs_v38/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v38/methods/messages_receivedMessages.md @@ -20,10 +20,10 @@ description: messages.receivedMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/messages_receivedQueue.md b/old_docs/API_docs_v38/methods/messages_receivedQueue.md index e514669c..d8bfae5e 100644 --- a/old_docs/API_docs_v38/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v38/methods/messages_receivedQueue.md @@ -20,10 +20,10 @@ description: messages.receivedQueue parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/messages_reportSpam.md b/old_docs/API_docs_v38/methods/messages_reportSpam.md index 56975b9d..da747585 100644 --- a/old_docs/API_docs_v38/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v38/methods/messages_reportSpam.md @@ -20,10 +20,10 @@ description: messages.reportSpam parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/messages_requestEncryption.md b/old_docs/API_docs_v38/methods/messages_requestEncryption.md index e82fca54..99fe7ecf 100644 --- a/old_docs/API_docs_v38/methods/messages_requestEncryption.md +++ b/old_docs/API_docs_v38/methods/messages_requestEncryption.md @@ -21,10 +21,10 @@ description: messages.requestEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/messages_search.md b/old_docs/API_docs_v38/methods/messages_search.md index fe53fb8c..05309dbf 100644 --- a/old_docs/API_docs_v38/methods/messages_search.md +++ b/old_docs/API_docs_v38/methods/messages_search.md @@ -27,10 +27,10 @@ description: messages.search parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/messages_sendBroadcast.md b/old_docs/API_docs_v38/methods/messages_sendBroadcast.md index 9194fdf1..b19bec57 100644 --- a/old_docs/API_docs_v38/methods/messages_sendBroadcast.md +++ b/old_docs/API_docs_v38/methods/messages_sendBroadcast.md @@ -22,10 +22,10 @@ description: messages.sendBroadcast parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/messages_sendEncrypted.md b/old_docs/API_docs_v38/methods/messages_sendEncrypted.md index f2c2c0c2..c3585580 100644 --- a/old_docs/API_docs_v38/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v38/methods/messages_sendEncrypted.md @@ -21,10 +21,10 @@ description: messages.sendEncrypted parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v38/methods/messages_sendEncryptedFile.md index a57a3dd8..40674df9 100644 --- a/old_docs/API_docs_v38/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v38/methods/messages_sendEncryptedFile.md @@ -22,10 +22,10 @@ description: messages.sendEncryptedFile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v38/methods/messages_sendEncryptedService.md index 4041c4d0..8bfee571 100644 --- a/old_docs/API_docs_v38/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v38/methods/messages_sendEncryptedService.md @@ -21,10 +21,10 @@ description: messages.sendEncryptedService parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/messages_sendMedia.md b/old_docs/API_docs_v38/methods/messages_sendMedia.md index 7bc305ef..e6d7cb94 100644 --- a/old_docs/API_docs_v38/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v38/methods/messages_sendMedia.md @@ -23,10 +23,10 @@ description: messages.sendMedia parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; @@ -45,3 +45,9 @@ Or, if you're into Lua: Updates = messages.sendMedia({peer=InputPeer, reply_to_msg_id=int, media=InputMedia, reply_markup=ReplyMarkup, }) ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v38/methods/messages_sendMessage.md b/old_docs/API_docs_v38/methods/messages_sendMessage.md index 9f73f583..b84ae777 100644 --- a/old_docs/API_docs_v38/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v38/methods/messages_sendMessage.md @@ -25,10 +25,10 @@ description: messages.sendMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; @@ -48,6 +48,12 @@ Updates = messages.sendMessage({peer=InputPeer, reply_to_msg_id=int, message=str ``` +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + + ## Usage of parse_mode: Set parse_mode to html to enable HTML parsing of the message. diff --git a/old_docs/API_docs_v38/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v38/methods/messages_setEncryptedTyping.md index 95364d49..ae718bba 100644 --- a/old_docs/API_docs_v38/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v38/methods/messages_setEncryptedTyping.md @@ -21,10 +21,10 @@ description: messages.setEncryptedTyping parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/messages_setTyping.md b/old_docs/API_docs_v38/methods/messages_setTyping.md index 0ce5743d..75903c68 100644 --- a/old_docs/API_docs_v38/methods/messages_setTyping.md +++ b/old_docs/API_docs_v38/methods/messages_setTyping.md @@ -21,10 +21,10 @@ description: messages.setTyping parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/messages_startBot.md b/old_docs/API_docs_v38/methods/messages_startBot.md index c2a544de..6419b20c 100644 --- a/old_docs/API_docs_v38/methods/messages_startBot.md +++ b/old_docs/API_docs_v38/methods/messages_startBot.md @@ -22,10 +22,10 @@ description: messages.startBot parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v38/methods/messages_uninstallStickerSet.md index 97fff059..5202b086 100644 --- a/old_docs/API_docs_v38/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v38/methods/messages_uninstallStickerSet.md @@ -20,10 +20,10 @@ description: messages.uninstallStickerSet parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/photos_deletePhotos.md b/old_docs/API_docs_v38/methods/photos_deletePhotos.md index 6a717835..2d27b700 100644 --- a/old_docs/API_docs_v38/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v38/methods/photos_deletePhotos.md @@ -20,10 +20,10 @@ description: photos.deletePhotos parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/photos_getUserPhotos.md b/old_docs/API_docs_v38/methods/photos_getUserPhotos.md index 4aa96dfa..0f50ee6f 100644 --- a/old_docs/API_docs_v38/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v38/methods/photos_getUserPhotos.md @@ -23,10 +23,10 @@ description: photos.getUserPhotos parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v38/methods/photos_updateProfilePhoto.md index f18669cc..9ae9c59e 100644 --- a/old_docs/API_docs_v38/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v38/methods/photos_updateProfilePhoto.md @@ -21,10 +21,10 @@ description: photos.updateProfilePhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v38/methods/photos_uploadProfilePhoto.md index 3eb7a10c..567eb363 100644 --- a/old_docs/API_docs_v38/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v38/methods/photos_uploadProfilePhoto.md @@ -23,10 +23,10 @@ description: photos.uploadProfilePhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/updates_getChannelDifference.md b/old_docs/API_docs_v38/methods/updates_getChannelDifference.md index 1add786f..d3b725f4 100644 --- a/old_docs/API_docs_v38/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v38/methods/updates_getChannelDifference.md @@ -23,10 +23,10 @@ description: updates.getChannelDifference parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/updates_getDifference.md b/old_docs/API_docs_v38/methods/updates_getDifference.md index c7ae5664..719a7a02 100644 --- a/old_docs/API_docs_v38/methods/updates_getDifference.md +++ b/old_docs/API_docs_v38/methods/updates_getDifference.md @@ -22,10 +22,10 @@ description: updates.getDifference parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/updates_getState.md b/old_docs/API_docs_v38/methods/updates_getState.md index 5612ca79..53fc0c16 100644 --- a/old_docs/API_docs_v38/methods/updates_getState.md +++ b/old_docs/API_docs_v38/methods/updates_getState.md @@ -15,10 +15,10 @@ description: updates.getState parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/upload_getFile.md b/old_docs/API_docs_v38/methods/upload_getFile.md index a2f3d961..ee35140a 100644 --- a/old_docs/API_docs_v38/methods/upload_getFile.md +++ b/old_docs/API_docs_v38/methods/upload_getFile.md @@ -22,10 +22,10 @@ description: upload.getFile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/upload_saveBigFilePart.md b/old_docs/API_docs_v38/methods/upload_saveBigFilePart.md index 03641055..503d1b5c 100644 --- a/old_docs/API_docs_v38/methods/upload_saveBigFilePart.md +++ b/old_docs/API_docs_v38/methods/upload_saveBigFilePart.md @@ -23,10 +23,10 @@ description: upload.saveBigFilePart parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/upload_saveFilePart.md b/old_docs/API_docs_v38/methods/upload_saveFilePart.md index 192412c8..d7f745aa 100644 --- a/old_docs/API_docs_v38/methods/upload_saveFilePart.md +++ b/old_docs/API_docs_v38/methods/upload_saveFilePart.md @@ -22,10 +22,10 @@ description: upload.saveFilePart parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/users_getFullUser.md b/old_docs/API_docs_v38/methods/users_getFullUser.md index 864ae387..bcba7f3d 100644 --- a/old_docs/API_docs_v38/methods/users_getFullUser.md +++ b/old_docs/API_docs_v38/methods/users_getFullUser.md @@ -20,10 +20,10 @@ description: users.getFullUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v38/methods/users_getUsers.md b/old_docs/API_docs_v38/methods/users_getUsers.md index 34816478..e03fd2d6 100644 --- a/old_docs/API_docs_v38/methods/users_getUsers.md +++ b/old_docs/API_docs_v38/methods/users_getUsers.md @@ -20,10 +20,10 @@ description: users.getUsers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/constructors/message.md b/old_docs/API_docs_v40/constructors/message.md index 55bc1d26..a2969f4d 100644 --- a/old_docs/API_docs_v40/constructors/message.md +++ b/old_docs/API_docs_v40/constructors/message.md @@ -43,3 +43,9 @@ message={_='message', id=int, from_id=int, to_id=Peer, fwd_from_id=int, fwd_date ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v40/methods/account_changePhone.md b/old_docs/API_docs_v40/methods/account_changePhone.md index dc3e0427..6691a743 100644 --- a/old_docs/API_docs_v40/methods/account_changePhone.md +++ b/old_docs/API_docs_v40/methods/account_changePhone.md @@ -22,10 +22,10 @@ description: account.changePhone parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/account_checkUsername.md b/old_docs/API_docs_v40/methods/account_checkUsername.md index dc13041c..e954ca99 100644 --- a/old_docs/API_docs_v40/methods/account_checkUsername.md +++ b/old_docs/API_docs_v40/methods/account_checkUsername.md @@ -20,10 +20,10 @@ description: account.checkUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/account_deleteAccount.md b/old_docs/API_docs_v40/methods/account_deleteAccount.md index 4199572b..0d0a6204 100644 --- a/old_docs/API_docs_v40/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v40/methods/account_deleteAccount.md @@ -20,10 +20,10 @@ description: account.deleteAccount parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/account_getAccountTTL.md b/old_docs/API_docs_v40/methods/account_getAccountTTL.md index ff4171df..e284a80e 100644 --- a/old_docs/API_docs_v40/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v40/methods/account_getAccountTTL.md @@ -15,10 +15,10 @@ description: account.getAccountTTL parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/account_getAuthorizations.md b/old_docs/API_docs_v40/methods/account_getAuthorizations.md index 26f755d4..ee5a00d6 100644 --- a/old_docs/API_docs_v40/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v40/methods/account_getAuthorizations.md @@ -15,10 +15,10 @@ description: account.getAuthorizations parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/account_getNotifySettings.md b/old_docs/API_docs_v40/methods/account_getNotifySettings.md index 817f201a..2e7fd9ba 100644 --- a/old_docs/API_docs_v40/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v40/methods/account_getNotifySettings.md @@ -20,10 +20,10 @@ description: account.getNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/account_getPassword.md b/old_docs/API_docs_v40/methods/account_getPassword.md index d7491fec..424d3710 100644 --- a/old_docs/API_docs_v40/methods/account_getPassword.md +++ b/old_docs/API_docs_v40/methods/account_getPassword.md @@ -15,10 +15,10 @@ description: account.getPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/account_getPasswordSettings.md b/old_docs/API_docs_v40/methods/account_getPasswordSettings.md index 5be9a523..3e72e398 100644 --- a/old_docs/API_docs_v40/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v40/methods/account_getPasswordSettings.md @@ -20,10 +20,10 @@ description: account.getPasswordSettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/account_getPrivacy.md b/old_docs/API_docs_v40/methods/account_getPrivacy.md index 649019d5..26137fd3 100644 --- a/old_docs/API_docs_v40/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v40/methods/account_getPrivacy.md @@ -20,10 +20,10 @@ description: account.getPrivacy parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/account_getWallPapers.md b/old_docs/API_docs_v40/methods/account_getWallPapers.md index 9eb0182a..a44ea777 100644 --- a/old_docs/API_docs_v40/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v40/methods/account_getWallPapers.md @@ -15,10 +15,10 @@ description: account.getWallPapers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/account_registerDevice.md b/old_docs/API_docs_v40/methods/account_registerDevice.md index 168dcba0..70cadfab 100644 --- a/old_docs/API_docs_v40/methods/account_registerDevice.md +++ b/old_docs/API_docs_v40/methods/account_registerDevice.md @@ -26,10 +26,10 @@ description: account.registerDevice parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/account_resetAuthorization.md b/old_docs/API_docs_v40/methods/account_resetAuthorization.md index aaf5a660..2c7c5bc4 100644 --- a/old_docs/API_docs_v40/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v40/methods/account_resetAuthorization.md @@ -20,10 +20,10 @@ description: account.resetAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/account_resetNotifySettings.md b/old_docs/API_docs_v40/methods/account_resetNotifySettings.md index 5a6a4c95..aa01dfce 100644 --- a/old_docs/API_docs_v40/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v40/methods/account_resetNotifySettings.md @@ -15,10 +15,10 @@ description: account.resetNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v40/methods/account_sendChangePhoneCode.md index 98110148..4ccc4045 100644 --- a/old_docs/API_docs_v40/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v40/methods/account_sendChangePhoneCode.md @@ -20,10 +20,10 @@ description: account.sendChangePhoneCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/account_setAccountTTL.md b/old_docs/API_docs_v40/methods/account_setAccountTTL.md index 6ae8d70e..460ae89a 100644 --- a/old_docs/API_docs_v40/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v40/methods/account_setAccountTTL.md @@ -20,10 +20,10 @@ description: account.setAccountTTL parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/account_setPrivacy.md b/old_docs/API_docs_v40/methods/account_setPrivacy.md index e438ca16..f05356db 100644 --- a/old_docs/API_docs_v40/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v40/methods/account_setPrivacy.md @@ -21,10 +21,10 @@ description: account.setPrivacy parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/account_unregisterDevice.md b/old_docs/API_docs_v40/methods/account_unregisterDevice.md index 89ab99a8..1063fad3 100644 --- a/old_docs/API_docs_v40/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v40/methods/account_unregisterDevice.md @@ -21,10 +21,10 @@ description: account.unregisterDevice parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v40/methods/account_updateDeviceLocked.md index 3fe6b8b6..506d974f 100644 --- a/old_docs/API_docs_v40/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v40/methods/account_updateDeviceLocked.md @@ -20,10 +20,10 @@ description: account.updateDeviceLocked parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/account_updateNotifySettings.md b/old_docs/API_docs_v40/methods/account_updateNotifySettings.md index 7eea8202..cb90a39f 100644 --- a/old_docs/API_docs_v40/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v40/methods/account_updateNotifySettings.md @@ -21,10 +21,10 @@ description: account.updateNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v40/methods/account_updatePasswordSettings.md index 56e4d724..ad1a930d 100644 --- a/old_docs/API_docs_v40/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v40/methods/account_updatePasswordSettings.md @@ -21,10 +21,10 @@ description: account.updatePasswordSettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/account_updateProfile.md b/old_docs/API_docs_v40/methods/account_updateProfile.md index fce1c8c9..cf8374de 100644 --- a/old_docs/API_docs_v40/methods/account_updateProfile.md +++ b/old_docs/API_docs_v40/methods/account_updateProfile.md @@ -21,10 +21,10 @@ description: account.updateProfile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/account_updateStatus.md b/old_docs/API_docs_v40/methods/account_updateStatus.md index f2fd751e..ac260312 100644 --- a/old_docs/API_docs_v40/methods/account_updateStatus.md +++ b/old_docs/API_docs_v40/methods/account_updateStatus.md @@ -20,10 +20,10 @@ description: account.updateStatus parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/account_updateUsername.md b/old_docs/API_docs_v40/methods/account_updateUsername.md index b5e428e4..7daf43e0 100644 --- a/old_docs/API_docs_v40/methods/account_updateUsername.md +++ b/old_docs/API_docs_v40/methods/account_updateUsername.md @@ -20,10 +20,10 @@ description: account.updateUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v40/methods/auth_bindTempAuthKey.md index 87d0c7cf..55e083cd 100644 --- a/old_docs/API_docs_v40/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v40/methods/auth_bindTempAuthKey.md @@ -23,10 +23,10 @@ description: auth.bindTempAuthKey parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/auth_checkPassword.md b/old_docs/API_docs_v40/methods/auth_checkPassword.md index 601146fc..9dcb706a 100644 --- a/old_docs/API_docs_v40/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v40/methods/auth_checkPassword.md @@ -20,10 +20,10 @@ description: auth.checkPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/auth_checkPhone.md b/old_docs/API_docs_v40/methods/auth_checkPhone.md index 2e4db690..ce137f9d 100644 --- a/old_docs/API_docs_v40/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v40/methods/auth_checkPhone.md @@ -20,10 +20,10 @@ description: auth.checkPhone parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/auth_exportAuthorization.md b/old_docs/API_docs_v40/methods/auth_exportAuthorization.md index a69f0301..bfd16433 100644 --- a/old_docs/API_docs_v40/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v40/methods/auth_exportAuthorization.md @@ -20,10 +20,10 @@ description: auth.exportAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/auth_importAuthorization.md b/old_docs/API_docs_v40/methods/auth_importAuthorization.md index a0e2e4b7..956f9a72 100644 --- a/old_docs/API_docs_v40/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v40/methods/auth_importAuthorization.md @@ -21,10 +21,10 @@ description: auth.importAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/auth_importBotAuthorization.md b/old_docs/API_docs_v40/methods/auth_importBotAuthorization.md index a78a5263..11d2f7f3 100644 --- a/old_docs/API_docs_v40/methods/auth_importBotAuthorization.md +++ b/old_docs/API_docs_v40/methods/auth_importBotAuthorization.md @@ -22,10 +22,10 @@ description: auth.importBotAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/auth_logOut.md b/old_docs/API_docs_v40/methods/auth_logOut.md index ac5bd8ae..5651f753 100644 --- a/old_docs/API_docs_v40/methods/auth_logOut.md +++ b/old_docs/API_docs_v40/methods/auth_logOut.md @@ -15,10 +15,10 @@ description: auth.logOut parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/auth_recoverPassword.md b/old_docs/API_docs_v40/methods/auth_recoverPassword.md index 9b7ebcfb..e253e7d9 100644 --- a/old_docs/API_docs_v40/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v40/methods/auth_recoverPassword.md @@ -20,10 +20,10 @@ description: auth.recoverPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v40/methods/auth_requestPasswordRecovery.md index 94c0aeff..2ae670eb 100644 --- a/old_docs/API_docs_v40/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v40/methods/auth_requestPasswordRecovery.md @@ -15,10 +15,10 @@ description: auth.requestPasswordRecovery parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v40/methods/auth_resetAuthorizations.md index f55e2e4d..9b324b42 100644 --- a/old_docs/API_docs_v40/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v40/methods/auth_resetAuthorizations.md @@ -15,10 +15,10 @@ description: auth.resetAuthorizations parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/auth_sendCall.md b/old_docs/API_docs_v40/methods/auth_sendCall.md index 3d44b1d2..584235b0 100644 --- a/old_docs/API_docs_v40/methods/auth_sendCall.md +++ b/old_docs/API_docs_v40/methods/auth_sendCall.md @@ -21,10 +21,10 @@ description: auth.sendCall parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/auth_sendCode.md b/old_docs/API_docs_v40/methods/auth_sendCode.md index 8c4387cf..58305712 100644 --- a/old_docs/API_docs_v40/methods/auth_sendCode.md +++ b/old_docs/API_docs_v40/methods/auth_sendCode.md @@ -24,10 +24,10 @@ description: auth.sendCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/auth_sendInvites.md b/old_docs/API_docs_v40/methods/auth_sendInvites.md index f81a5c7e..87cdc7e3 100644 --- a/old_docs/API_docs_v40/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v40/methods/auth_sendInvites.md @@ -21,10 +21,10 @@ description: auth.sendInvites parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/auth_sendSms.md b/old_docs/API_docs_v40/methods/auth_sendSms.md index ab652a6e..fb469f84 100644 --- a/old_docs/API_docs_v40/methods/auth_sendSms.md +++ b/old_docs/API_docs_v40/methods/auth_sendSms.md @@ -21,10 +21,10 @@ description: auth.sendSms parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/auth_signIn.md b/old_docs/API_docs_v40/methods/auth_signIn.md index 7616bc80..b0fb12fe 100644 --- a/old_docs/API_docs_v40/methods/auth_signIn.md +++ b/old_docs/API_docs_v40/methods/auth_signIn.md @@ -22,10 +22,10 @@ description: auth.signIn parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/auth_signUp.md b/old_docs/API_docs_v40/methods/auth_signUp.md index f9c72d64..6f92b4f7 100644 --- a/old_docs/API_docs_v40/methods/auth_signUp.md +++ b/old_docs/API_docs_v40/methods/auth_signUp.md @@ -24,10 +24,10 @@ description: auth.signUp parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/contacts_block.md b/old_docs/API_docs_v40/methods/contacts_block.md index b809b15c..f512adcc 100644 --- a/old_docs/API_docs_v40/methods/contacts_block.md +++ b/old_docs/API_docs_v40/methods/contacts_block.md @@ -20,10 +20,10 @@ description: contacts.block parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/contacts_deleteContact.md b/old_docs/API_docs_v40/methods/contacts_deleteContact.md index 18ef51f8..a3e8f63d 100644 --- a/old_docs/API_docs_v40/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v40/methods/contacts_deleteContact.md @@ -20,10 +20,10 @@ description: contacts.deleteContact parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/contacts_deleteContacts.md b/old_docs/API_docs_v40/methods/contacts_deleteContacts.md index 40672188..46e251eb 100644 --- a/old_docs/API_docs_v40/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v40/methods/contacts_deleteContacts.md @@ -20,10 +20,10 @@ description: contacts.deleteContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/contacts_exportCard.md b/old_docs/API_docs_v40/methods/contacts_exportCard.md index 4145d246..f7ec0015 100644 --- a/old_docs/API_docs_v40/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v40/methods/contacts_exportCard.md @@ -15,10 +15,10 @@ description: contacts.exportCard parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/contacts_getBlocked.md b/old_docs/API_docs_v40/methods/contacts_getBlocked.md index 50172d03..0fc72dba 100644 --- a/old_docs/API_docs_v40/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v40/methods/contacts_getBlocked.md @@ -21,10 +21,10 @@ description: contacts.getBlocked parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/contacts_getContacts.md b/old_docs/API_docs_v40/methods/contacts_getContacts.md index 0e6f22e9..656821e0 100644 --- a/old_docs/API_docs_v40/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v40/methods/contacts_getContacts.md @@ -20,10 +20,10 @@ description: contacts.getContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/contacts_getStatuses.md b/old_docs/API_docs_v40/methods/contacts_getStatuses.md index b734f529..ee806f2d 100644 --- a/old_docs/API_docs_v40/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v40/methods/contacts_getStatuses.md @@ -15,10 +15,10 @@ description: contacts.getStatuses parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/contacts_getSuggested.md b/old_docs/API_docs_v40/methods/contacts_getSuggested.md index a49b5913..4cd124e7 100644 --- a/old_docs/API_docs_v40/methods/contacts_getSuggested.md +++ b/old_docs/API_docs_v40/methods/contacts_getSuggested.md @@ -20,10 +20,10 @@ description: contacts.getSuggested parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/contacts_importCard.md b/old_docs/API_docs_v40/methods/contacts_importCard.md index 6b2c612e..162ff4f3 100644 --- a/old_docs/API_docs_v40/methods/contacts_importCard.md +++ b/old_docs/API_docs_v40/methods/contacts_importCard.md @@ -20,10 +20,10 @@ description: contacts.importCard parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/contacts_importContacts.md b/old_docs/API_docs_v40/methods/contacts_importContacts.md index 2426f53c..48412e99 100644 --- a/old_docs/API_docs_v40/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v40/methods/contacts_importContacts.md @@ -21,10 +21,10 @@ description: contacts.importContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/contacts_resolveUsername.md b/old_docs/API_docs_v40/methods/contacts_resolveUsername.md index 74600d7c..909a3331 100644 --- a/old_docs/API_docs_v40/methods/contacts_resolveUsername.md +++ b/old_docs/API_docs_v40/methods/contacts_resolveUsername.md @@ -20,10 +20,10 @@ description: contacts.resolveUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/contacts_search.md b/old_docs/API_docs_v40/methods/contacts_search.md index 00a39519..9a351db7 100644 --- a/old_docs/API_docs_v40/methods/contacts_search.md +++ b/old_docs/API_docs_v40/methods/contacts_search.md @@ -21,10 +21,10 @@ description: contacts.search parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/contacts_unblock.md b/old_docs/API_docs_v40/methods/contacts_unblock.md index 63f41483..6d739c9b 100644 --- a/old_docs/API_docs_v40/methods/contacts_unblock.md +++ b/old_docs/API_docs_v40/methods/contacts_unblock.md @@ -20,10 +20,10 @@ description: contacts.unblock parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/help_getAppChangelog.md b/old_docs/API_docs_v40/methods/help_getAppChangelog.md index bfe48334..1b52c928 100644 --- a/old_docs/API_docs_v40/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v40/methods/help_getAppChangelog.md @@ -23,10 +23,10 @@ description: help.getAppChangelog parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/help_getAppUpdate.md b/old_docs/API_docs_v40/methods/help_getAppUpdate.md index 7be3b374..9559c840 100644 --- a/old_docs/API_docs_v40/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v40/methods/help_getAppUpdate.md @@ -23,10 +23,10 @@ description: help.getAppUpdate parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/help_getConfig.md b/old_docs/API_docs_v40/methods/help_getConfig.md index cb9c4f1c..9481a0c0 100644 --- a/old_docs/API_docs_v40/methods/help_getConfig.md +++ b/old_docs/API_docs_v40/methods/help_getConfig.md @@ -15,10 +15,10 @@ description: help.getConfig parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/help_getInviteText.md b/old_docs/API_docs_v40/methods/help_getInviteText.md index f265f8d3..14692791 100644 --- a/old_docs/API_docs_v40/methods/help_getInviteText.md +++ b/old_docs/API_docs_v40/methods/help_getInviteText.md @@ -20,10 +20,10 @@ description: help.getInviteText parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/help_getNearestDc.md b/old_docs/API_docs_v40/methods/help_getNearestDc.md index f491ae0c..bb6b1883 100644 --- a/old_docs/API_docs_v40/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v40/methods/help_getNearestDc.md @@ -15,10 +15,10 @@ description: help.getNearestDc parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/help_getSupport.md b/old_docs/API_docs_v40/methods/help_getSupport.md index 03574c6f..0348089a 100644 --- a/old_docs/API_docs_v40/methods/help_getSupport.md +++ b/old_docs/API_docs_v40/methods/help_getSupport.md @@ -15,10 +15,10 @@ description: help.getSupport parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/help_saveAppLog.md b/old_docs/API_docs_v40/methods/help_saveAppLog.md index 3887ccc2..59b92601 100644 --- a/old_docs/API_docs_v40/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v40/methods/help_saveAppLog.md @@ -20,10 +20,10 @@ description: help.saveAppLog parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/initConnection.md b/old_docs/API_docs_v40/methods/initConnection.md index 1c946720..aa89066c 100644 --- a/old_docs/API_docs_v40/methods/initConnection.md +++ b/old_docs/API_docs_v40/methods/initConnection.md @@ -25,10 +25,10 @@ description: initConnection parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/invokeAfterMsg.md b/old_docs/API_docs_v40/methods/invokeAfterMsg.md index 1b35a238..97c4f1fb 100644 --- a/old_docs/API_docs_v40/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v40/methods/invokeAfterMsg.md @@ -21,10 +21,10 @@ description: invokeAfterMsg parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/invokeAfterMsgs.md b/old_docs/API_docs_v40/methods/invokeAfterMsgs.md index 164ab318..4e278ef1 100644 --- a/old_docs/API_docs_v40/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v40/methods/invokeAfterMsgs.md @@ -21,10 +21,10 @@ description: invokeAfterMsgs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/invokeWithLayer.md b/old_docs/API_docs_v40/methods/invokeWithLayer.md index 497cc285..72fe47ec 100644 --- a/old_docs/API_docs_v40/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v40/methods/invokeWithLayer.md @@ -21,10 +21,10 @@ description: invokeWithLayer parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v40/methods/invokeWithoutUpdates.md index cbdabb07..5151b786 100644 --- a/old_docs/API_docs_v40/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v40/methods/invokeWithoutUpdates.md @@ -20,10 +20,10 @@ description: invokeWithoutUpdates parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/messages_acceptEncryption.md b/old_docs/API_docs_v40/methods/messages_acceptEncryption.md index d41beb91..e016f5d3 100644 --- a/old_docs/API_docs_v40/methods/messages_acceptEncryption.md +++ b/old_docs/API_docs_v40/methods/messages_acceptEncryption.md @@ -22,10 +22,10 @@ description: messages.acceptEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/messages_addChatUser.md b/old_docs/API_docs_v40/methods/messages_addChatUser.md index bddd94ed..56634999 100644 --- a/old_docs/API_docs_v40/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v40/methods/messages_addChatUser.md @@ -22,10 +22,10 @@ description: messages.addChatUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/messages_checkChatInvite.md b/old_docs/API_docs_v40/methods/messages_checkChatInvite.md index 0a3a4f84..7670727b 100644 --- a/old_docs/API_docs_v40/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v40/methods/messages_checkChatInvite.md @@ -20,10 +20,10 @@ description: messages.checkChatInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/messages_createChannel.md b/old_docs/API_docs_v40/methods/messages_createChannel.md index c5f30b0f..0a4ae7d4 100644 --- a/old_docs/API_docs_v40/methods/messages_createChannel.md +++ b/old_docs/API_docs_v40/methods/messages_createChannel.md @@ -20,10 +20,10 @@ description: messages.createChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/messages_createChat.md b/old_docs/API_docs_v40/methods/messages_createChat.md index 0ab3101a..2fc5631c 100644 --- a/old_docs/API_docs_v40/methods/messages_createChat.md +++ b/old_docs/API_docs_v40/methods/messages_createChat.md @@ -21,10 +21,10 @@ description: messages.createChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/messages_deleteChannelMessages.md b/old_docs/API_docs_v40/methods/messages_deleteChannelMessages.md index a682e2ad..063e5eac 100644 --- a/old_docs/API_docs_v40/methods/messages_deleteChannelMessages.md +++ b/old_docs/API_docs_v40/methods/messages_deleteChannelMessages.md @@ -21,10 +21,10 @@ description: messages.deleteChannelMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/messages_deleteChatUser.md b/old_docs/API_docs_v40/methods/messages_deleteChatUser.md index d95dc84d..d578cfe9 100644 --- a/old_docs/API_docs_v40/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v40/methods/messages_deleteChatUser.md @@ -21,10 +21,10 @@ description: messages.deleteChatUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/messages_deleteHistory.md b/old_docs/API_docs_v40/methods/messages_deleteHistory.md index bdbde2cf..c0762753 100644 --- a/old_docs/API_docs_v40/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v40/methods/messages_deleteHistory.md @@ -21,10 +21,10 @@ description: messages.deleteHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/messages_deleteMessages.md b/old_docs/API_docs_v40/methods/messages_deleteMessages.md index 5997c2ed..d9d28886 100644 --- a/old_docs/API_docs_v40/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v40/methods/messages_deleteMessages.md @@ -20,10 +20,10 @@ description: messages.deleteMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/messages_discardEncryption.md b/old_docs/API_docs_v40/methods/messages_discardEncryption.md index ebc1ace5..f237c986 100644 --- a/old_docs/API_docs_v40/methods/messages_discardEncryption.md +++ b/old_docs/API_docs_v40/methods/messages_discardEncryption.md @@ -20,10 +20,10 @@ description: messages.discardEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/messages_editChatPhoto.md b/old_docs/API_docs_v40/methods/messages_editChatPhoto.md index 3547d7a3..b2adf3ab 100644 --- a/old_docs/API_docs_v40/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v40/methods/messages_editChatPhoto.md @@ -21,10 +21,10 @@ description: messages.editChatPhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/messages_editChatTitle.md b/old_docs/API_docs_v40/methods/messages_editChatTitle.md index 3f9e205e..6a1accce 100644 --- a/old_docs/API_docs_v40/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v40/methods/messages_editChatTitle.md @@ -21,10 +21,10 @@ description: messages.editChatTitle parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/messages_exportChatInvite.md b/old_docs/API_docs_v40/methods/messages_exportChatInvite.md index c31b0c48..c2f21cc6 100644 --- a/old_docs/API_docs_v40/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v40/methods/messages_exportChatInvite.md @@ -20,10 +20,10 @@ description: messages.exportChatInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/messages_forwardMessage.md b/old_docs/API_docs_v40/methods/messages_forwardMessage.md index a95d259a..ced2cb5b 100644 --- a/old_docs/API_docs_v40/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v40/methods/messages_forwardMessage.md @@ -21,10 +21,10 @@ description: messages.forwardMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/messages_forwardMessages.md b/old_docs/API_docs_v40/methods/messages_forwardMessages.md index 3619fc0e..2410784c 100644 --- a/old_docs/API_docs_v40/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v40/methods/messages_forwardMessages.md @@ -21,10 +21,10 @@ description: messages.forwardMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/messages_getAllStickers.md b/old_docs/API_docs_v40/methods/messages_getAllStickers.md index bc696cd6..34254773 100644 --- a/old_docs/API_docs_v40/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v40/methods/messages_getAllStickers.md @@ -20,10 +20,10 @@ description: messages.getAllStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/messages_getChannelDialogs.md b/old_docs/API_docs_v40/methods/messages_getChannelDialogs.md index d8ef65dc..3f8536d3 100644 --- a/old_docs/API_docs_v40/methods/messages_getChannelDialogs.md +++ b/old_docs/API_docs_v40/methods/messages_getChannelDialogs.md @@ -21,10 +21,10 @@ description: messages.getChannelDialogs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/messages_getChats.md b/old_docs/API_docs_v40/methods/messages_getChats.md index b1d63ee5..78c61ade 100644 --- a/old_docs/API_docs_v40/methods/messages_getChats.md +++ b/old_docs/API_docs_v40/methods/messages_getChats.md @@ -20,10 +20,10 @@ description: messages.getChats parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/messages_getDhConfig.md b/old_docs/API_docs_v40/methods/messages_getDhConfig.md index bcebea55..21b37f21 100644 --- a/old_docs/API_docs_v40/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v40/methods/messages_getDhConfig.md @@ -21,10 +21,10 @@ description: messages.getDhConfig parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/messages_getDialogs.md b/old_docs/API_docs_v40/methods/messages_getDialogs.md index baacdd9a..f261715e 100644 --- a/old_docs/API_docs_v40/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v40/methods/messages_getDialogs.md @@ -21,10 +21,10 @@ description: messages.getDialogs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/messages_getFullChat.md b/old_docs/API_docs_v40/methods/messages_getFullChat.md index 30b0a02a..1ca2d078 100644 --- a/old_docs/API_docs_v40/methods/messages_getFullChat.md +++ b/old_docs/API_docs_v40/methods/messages_getFullChat.md @@ -20,10 +20,10 @@ description: messages.getFullChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/messages_getHistory.md b/old_docs/API_docs_v40/methods/messages_getHistory.md index 4d980ece..4ea3d853 100644 --- a/old_docs/API_docs_v40/methods/messages_getHistory.md +++ b/old_docs/API_docs_v40/methods/messages_getHistory.md @@ -24,10 +24,10 @@ description: messages.getHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/messages_getImportantHistory.md b/old_docs/API_docs_v40/methods/messages_getImportantHistory.md index af4f8683..efab1326 100644 --- a/old_docs/API_docs_v40/methods/messages_getImportantHistory.md +++ b/old_docs/API_docs_v40/methods/messages_getImportantHistory.md @@ -23,10 +23,10 @@ description: messages.getImportantHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/messages_getMessages.md b/old_docs/API_docs_v40/methods/messages_getMessages.md index 224df903..e669bcf8 100644 --- a/old_docs/API_docs_v40/methods/messages_getMessages.md +++ b/old_docs/API_docs_v40/methods/messages_getMessages.md @@ -20,10 +20,10 @@ description: messages.getMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/messages_getStickerSet.md b/old_docs/API_docs_v40/methods/messages_getStickerSet.md index 2ec2fa5d..561eec32 100644 --- a/old_docs/API_docs_v40/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v40/methods/messages_getStickerSet.md @@ -20,10 +20,10 @@ description: messages.getStickerSet parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/messages_getStickers.md b/old_docs/API_docs_v40/methods/messages_getStickers.md index 6730f586..e9aedd80 100644 --- a/old_docs/API_docs_v40/methods/messages_getStickers.md +++ b/old_docs/API_docs_v40/methods/messages_getStickers.md @@ -21,10 +21,10 @@ description: messages.getStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v40/methods/messages_getWebPagePreview.md index e2dd428d..a3d5fce3 100644 --- a/old_docs/API_docs_v40/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v40/methods/messages_getWebPagePreview.md @@ -20,10 +20,10 @@ description: messages.getWebPagePreview parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/messages_importChatInvite.md b/old_docs/API_docs_v40/methods/messages_importChatInvite.md index 250d076d..a4e9c052 100644 --- a/old_docs/API_docs_v40/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v40/methods/messages_importChatInvite.md @@ -20,10 +20,10 @@ description: messages.importChatInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/messages_installStickerSet.md b/old_docs/API_docs_v40/methods/messages_installStickerSet.md index f99d40b4..5180bcbd 100644 --- a/old_docs/API_docs_v40/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v40/methods/messages_installStickerSet.md @@ -21,10 +21,10 @@ description: messages.installStickerSet parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/messages_readChannelHistory.md b/old_docs/API_docs_v40/methods/messages_readChannelHistory.md index 5e1e1f46..04711e2c 100644 --- a/old_docs/API_docs_v40/methods/messages_readChannelHistory.md +++ b/old_docs/API_docs_v40/methods/messages_readChannelHistory.md @@ -21,10 +21,10 @@ description: messages.readChannelHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v40/methods/messages_readEncryptedHistory.md index 555bffe7..5bb05536 100644 --- a/old_docs/API_docs_v40/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v40/methods/messages_readEncryptedHistory.md @@ -21,10 +21,10 @@ description: messages.readEncryptedHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/messages_readHistory.md b/old_docs/API_docs_v40/methods/messages_readHistory.md index f5c7ba11..1083b414 100644 --- a/old_docs/API_docs_v40/methods/messages_readHistory.md +++ b/old_docs/API_docs_v40/methods/messages_readHistory.md @@ -22,10 +22,10 @@ description: messages.readHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/messages_readMessageContents.md b/old_docs/API_docs_v40/methods/messages_readMessageContents.md index ae75d612..829e7cc8 100644 --- a/old_docs/API_docs_v40/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v40/methods/messages_readMessageContents.md @@ -20,10 +20,10 @@ description: messages.readMessageContents parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/messages_receivedMessages.md b/old_docs/API_docs_v40/methods/messages_receivedMessages.md index ffeaeed7..05a229b6 100644 --- a/old_docs/API_docs_v40/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v40/methods/messages_receivedMessages.md @@ -20,10 +20,10 @@ description: messages.receivedMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/messages_receivedQueue.md b/old_docs/API_docs_v40/methods/messages_receivedQueue.md index e514669c..d8bfae5e 100644 --- a/old_docs/API_docs_v40/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v40/methods/messages_receivedQueue.md @@ -20,10 +20,10 @@ description: messages.receivedQueue parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/messages_requestEncryption.md b/old_docs/API_docs_v40/methods/messages_requestEncryption.md index e82fca54..99fe7ecf 100644 --- a/old_docs/API_docs_v40/methods/messages_requestEncryption.md +++ b/old_docs/API_docs_v40/methods/messages_requestEncryption.md @@ -21,10 +21,10 @@ description: messages.requestEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/messages_search.md b/old_docs/API_docs_v40/methods/messages_search.md index fe53fb8c..05309dbf 100644 --- a/old_docs/API_docs_v40/methods/messages_search.md +++ b/old_docs/API_docs_v40/methods/messages_search.md @@ -27,10 +27,10 @@ description: messages.search parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/messages_sendBroadcast.md b/old_docs/API_docs_v40/methods/messages_sendBroadcast.md index 9194fdf1..b19bec57 100644 --- a/old_docs/API_docs_v40/methods/messages_sendBroadcast.md +++ b/old_docs/API_docs_v40/methods/messages_sendBroadcast.md @@ -22,10 +22,10 @@ description: messages.sendBroadcast parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/messages_sendEncrypted.md b/old_docs/API_docs_v40/methods/messages_sendEncrypted.md index f2c2c0c2..c3585580 100644 --- a/old_docs/API_docs_v40/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v40/methods/messages_sendEncrypted.md @@ -21,10 +21,10 @@ description: messages.sendEncrypted parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v40/methods/messages_sendEncryptedFile.md index a57a3dd8..40674df9 100644 --- a/old_docs/API_docs_v40/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v40/methods/messages_sendEncryptedFile.md @@ -22,10 +22,10 @@ description: messages.sendEncryptedFile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v40/methods/messages_sendEncryptedService.md index 4041c4d0..8bfee571 100644 --- a/old_docs/API_docs_v40/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v40/methods/messages_sendEncryptedService.md @@ -21,10 +21,10 @@ description: messages.sendEncryptedService parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/messages_sendMedia.md b/old_docs/API_docs_v40/methods/messages_sendMedia.md index 7bc305ef..e6d7cb94 100644 --- a/old_docs/API_docs_v40/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v40/methods/messages_sendMedia.md @@ -23,10 +23,10 @@ description: messages.sendMedia parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; @@ -45,3 +45,9 @@ Or, if you're into Lua: Updates = messages.sendMedia({peer=InputPeer, reply_to_msg_id=int, media=InputMedia, reply_markup=ReplyMarkup, }) ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v40/methods/messages_sendMessage.md b/old_docs/API_docs_v40/methods/messages_sendMessage.md index 9f73f583..b84ae777 100644 --- a/old_docs/API_docs_v40/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v40/methods/messages_sendMessage.md @@ -25,10 +25,10 @@ description: messages.sendMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; @@ -48,6 +48,12 @@ Updates = messages.sendMessage({peer=InputPeer, reply_to_msg_id=int, message=str ``` +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + + ## Usage of parse_mode: Set parse_mode to html to enable HTML parsing of the message. diff --git a/old_docs/API_docs_v40/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v40/methods/messages_setEncryptedTyping.md index 95364d49..ae718bba 100644 --- a/old_docs/API_docs_v40/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v40/methods/messages_setEncryptedTyping.md @@ -21,10 +21,10 @@ description: messages.setEncryptedTyping parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/messages_setTyping.md b/old_docs/API_docs_v40/methods/messages_setTyping.md index 0ce5743d..75903c68 100644 --- a/old_docs/API_docs_v40/methods/messages_setTyping.md +++ b/old_docs/API_docs_v40/methods/messages_setTyping.md @@ -21,10 +21,10 @@ description: messages.setTyping parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/messages_startBot.md b/old_docs/API_docs_v40/methods/messages_startBot.md index 6c0fd974..1aaf7c5c 100644 --- a/old_docs/API_docs_v40/methods/messages_startBot.md +++ b/old_docs/API_docs_v40/methods/messages_startBot.md @@ -22,10 +22,10 @@ description: messages.startBot parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v40/methods/messages_uninstallStickerSet.md index 97fff059..5202b086 100644 --- a/old_docs/API_docs_v40/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v40/methods/messages_uninstallStickerSet.md @@ -20,10 +20,10 @@ description: messages.uninstallStickerSet parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/photos_deletePhotos.md b/old_docs/API_docs_v40/methods/photos_deletePhotos.md index 6a717835..2d27b700 100644 --- a/old_docs/API_docs_v40/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v40/methods/photos_deletePhotos.md @@ -20,10 +20,10 @@ description: photos.deletePhotos parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/photos_getUserPhotos.md b/old_docs/API_docs_v40/methods/photos_getUserPhotos.md index 4aa96dfa..0f50ee6f 100644 --- a/old_docs/API_docs_v40/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v40/methods/photos_getUserPhotos.md @@ -23,10 +23,10 @@ description: photos.getUserPhotos parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v40/methods/photos_updateProfilePhoto.md index f18669cc..9ae9c59e 100644 --- a/old_docs/API_docs_v40/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v40/methods/photos_updateProfilePhoto.md @@ -21,10 +21,10 @@ description: photos.updateProfilePhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v40/methods/photos_uploadProfilePhoto.md index 3eb7a10c..567eb363 100644 --- a/old_docs/API_docs_v40/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v40/methods/photos_uploadProfilePhoto.md @@ -23,10 +23,10 @@ description: photos.uploadProfilePhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/updates_getChannelDifference.md b/old_docs/API_docs_v40/methods/updates_getChannelDifference.md index 71a0abe7..9d49a9dd 100644 --- a/old_docs/API_docs_v40/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v40/methods/updates_getChannelDifference.md @@ -23,10 +23,10 @@ description: updates.getChannelDifference parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/updates_getDifference.md b/old_docs/API_docs_v40/methods/updates_getDifference.md index c7ae5664..719a7a02 100644 --- a/old_docs/API_docs_v40/methods/updates_getDifference.md +++ b/old_docs/API_docs_v40/methods/updates_getDifference.md @@ -22,10 +22,10 @@ description: updates.getDifference parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/updates_getState.md b/old_docs/API_docs_v40/methods/updates_getState.md index 5612ca79..53fc0c16 100644 --- a/old_docs/API_docs_v40/methods/updates_getState.md +++ b/old_docs/API_docs_v40/methods/updates_getState.md @@ -15,10 +15,10 @@ description: updates.getState parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/upload_getFile.md b/old_docs/API_docs_v40/methods/upload_getFile.md index a2f3d961..ee35140a 100644 --- a/old_docs/API_docs_v40/methods/upload_getFile.md +++ b/old_docs/API_docs_v40/methods/upload_getFile.md @@ -22,10 +22,10 @@ description: upload.getFile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/upload_saveBigFilePart.md b/old_docs/API_docs_v40/methods/upload_saveBigFilePart.md index 03641055..503d1b5c 100644 --- a/old_docs/API_docs_v40/methods/upload_saveBigFilePart.md +++ b/old_docs/API_docs_v40/methods/upload_saveBigFilePart.md @@ -23,10 +23,10 @@ description: upload.saveBigFilePart parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/upload_saveFilePart.md b/old_docs/API_docs_v40/methods/upload_saveFilePart.md index 192412c8..d7f745aa 100644 --- a/old_docs/API_docs_v40/methods/upload_saveFilePart.md +++ b/old_docs/API_docs_v40/methods/upload_saveFilePart.md @@ -22,10 +22,10 @@ description: upload.saveFilePart parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/users_getFullUser.md b/old_docs/API_docs_v40/methods/users_getFullUser.md index 864ae387..bcba7f3d 100644 --- a/old_docs/API_docs_v40/methods/users_getFullUser.md +++ b/old_docs/API_docs_v40/methods/users_getFullUser.md @@ -20,10 +20,10 @@ description: users.getFullUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v40/methods/users_getUsers.md b/old_docs/API_docs_v40/methods/users_getUsers.md index 34816478..e03fd2d6 100644 --- a/old_docs/API_docs_v40/methods/users_getUsers.md +++ b/old_docs/API_docs_v40/methods/users_getUsers.md @@ -20,10 +20,10 @@ description: users.getUsers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/constructors/message.md b/old_docs/API_docs_v41/constructors/message.md index 3fffc9df..62a63782 100644 --- a/old_docs/API_docs_v41/constructors/message.md +++ b/old_docs/API_docs_v41/constructors/message.md @@ -48,3 +48,9 @@ message={_='message', unread=Bool, out=Bool, mentioned=Bool, media_unread=Bool, ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v41/methods/account_changePhone.md b/old_docs/API_docs_v41/methods/account_changePhone.md index dc3e0427..6691a743 100644 --- a/old_docs/API_docs_v41/methods/account_changePhone.md +++ b/old_docs/API_docs_v41/methods/account_changePhone.md @@ -22,10 +22,10 @@ description: account.changePhone parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/account_checkUsername.md b/old_docs/API_docs_v41/methods/account_checkUsername.md index dc13041c..e954ca99 100644 --- a/old_docs/API_docs_v41/methods/account_checkUsername.md +++ b/old_docs/API_docs_v41/methods/account_checkUsername.md @@ -20,10 +20,10 @@ description: account.checkUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/account_deleteAccount.md b/old_docs/API_docs_v41/methods/account_deleteAccount.md index 4199572b..0d0a6204 100644 --- a/old_docs/API_docs_v41/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v41/methods/account_deleteAccount.md @@ -20,10 +20,10 @@ description: account.deleteAccount parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/account_getAccountTTL.md b/old_docs/API_docs_v41/methods/account_getAccountTTL.md index ff4171df..e284a80e 100644 --- a/old_docs/API_docs_v41/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v41/methods/account_getAccountTTL.md @@ -15,10 +15,10 @@ description: account.getAccountTTL parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/account_getAuthorizations.md b/old_docs/API_docs_v41/methods/account_getAuthorizations.md index 26f755d4..ee5a00d6 100644 --- a/old_docs/API_docs_v41/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v41/methods/account_getAuthorizations.md @@ -15,10 +15,10 @@ description: account.getAuthorizations parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/account_getNotifySettings.md b/old_docs/API_docs_v41/methods/account_getNotifySettings.md index 817f201a..2e7fd9ba 100644 --- a/old_docs/API_docs_v41/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v41/methods/account_getNotifySettings.md @@ -20,10 +20,10 @@ description: account.getNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/account_getPassword.md b/old_docs/API_docs_v41/methods/account_getPassword.md index d7491fec..424d3710 100644 --- a/old_docs/API_docs_v41/methods/account_getPassword.md +++ b/old_docs/API_docs_v41/methods/account_getPassword.md @@ -15,10 +15,10 @@ description: account.getPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/account_getPasswordSettings.md b/old_docs/API_docs_v41/methods/account_getPasswordSettings.md index 5be9a523..3e72e398 100644 --- a/old_docs/API_docs_v41/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v41/methods/account_getPasswordSettings.md @@ -20,10 +20,10 @@ description: account.getPasswordSettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/account_getPrivacy.md b/old_docs/API_docs_v41/methods/account_getPrivacy.md index 649019d5..26137fd3 100644 --- a/old_docs/API_docs_v41/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v41/methods/account_getPrivacy.md @@ -20,10 +20,10 @@ description: account.getPrivacy parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/account_getWallPapers.md b/old_docs/API_docs_v41/methods/account_getWallPapers.md index 9eb0182a..a44ea777 100644 --- a/old_docs/API_docs_v41/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v41/methods/account_getWallPapers.md @@ -15,10 +15,10 @@ description: account.getWallPapers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/account_registerDevice.md b/old_docs/API_docs_v41/methods/account_registerDevice.md index 168dcba0..70cadfab 100644 --- a/old_docs/API_docs_v41/methods/account_registerDevice.md +++ b/old_docs/API_docs_v41/methods/account_registerDevice.md @@ -26,10 +26,10 @@ description: account.registerDevice parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/account_resetAuthorization.md b/old_docs/API_docs_v41/methods/account_resetAuthorization.md index aaf5a660..2c7c5bc4 100644 --- a/old_docs/API_docs_v41/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v41/methods/account_resetAuthorization.md @@ -20,10 +20,10 @@ description: account.resetAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/account_resetNotifySettings.md b/old_docs/API_docs_v41/methods/account_resetNotifySettings.md index 5a6a4c95..aa01dfce 100644 --- a/old_docs/API_docs_v41/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v41/methods/account_resetNotifySettings.md @@ -15,10 +15,10 @@ description: account.resetNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v41/methods/account_sendChangePhoneCode.md index 98110148..4ccc4045 100644 --- a/old_docs/API_docs_v41/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v41/methods/account_sendChangePhoneCode.md @@ -20,10 +20,10 @@ description: account.sendChangePhoneCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/account_setAccountTTL.md b/old_docs/API_docs_v41/methods/account_setAccountTTL.md index 6ae8d70e..460ae89a 100644 --- a/old_docs/API_docs_v41/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v41/methods/account_setAccountTTL.md @@ -20,10 +20,10 @@ description: account.setAccountTTL parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/account_setPrivacy.md b/old_docs/API_docs_v41/methods/account_setPrivacy.md index e438ca16..f05356db 100644 --- a/old_docs/API_docs_v41/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v41/methods/account_setPrivacy.md @@ -21,10 +21,10 @@ description: account.setPrivacy parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/account_unregisterDevice.md b/old_docs/API_docs_v41/methods/account_unregisterDevice.md index 89ab99a8..1063fad3 100644 --- a/old_docs/API_docs_v41/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v41/methods/account_unregisterDevice.md @@ -21,10 +21,10 @@ description: account.unregisterDevice parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v41/methods/account_updateDeviceLocked.md index 3fe6b8b6..506d974f 100644 --- a/old_docs/API_docs_v41/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v41/methods/account_updateDeviceLocked.md @@ -20,10 +20,10 @@ description: account.updateDeviceLocked parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/account_updateNotifySettings.md b/old_docs/API_docs_v41/methods/account_updateNotifySettings.md index 7eea8202..cb90a39f 100644 --- a/old_docs/API_docs_v41/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v41/methods/account_updateNotifySettings.md @@ -21,10 +21,10 @@ description: account.updateNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v41/methods/account_updatePasswordSettings.md index 56e4d724..ad1a930d 100644 --- a/old_docs/API_docs_v41/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v41/methods/account_updatePasswordSettings.md @@ -21,10 +21,10 @@ description: account.updatePasswordSettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/account_updateProfile.md b/old_docs/API_docs_v41/methods/account_updateProfile.md index fce1c8c9..cf8374de 100644 --- a/old_docs/API_docs_v41/methods/account_updateProfile.md +++ b/old_docs/API_docs_v41/methods/account_updateProfile.md @@ -21,10 +21,10 @@ description: account.updateProfile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/account_updateStatus.md b/old_docs/API_docs_v41/methods/account_updateStatus.md index f2fd751e..ac260312 100644 --- a/old_docs/API_docs_v41/methods/account_updateStatus.md +++ b/old_docs/API_docs_v41/methods/account_updateStatus.md @@ -20,10 +20,10 @@ description: account.updateStatus parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/account_updateUsername.md b/old_docs/API_docs_v41/methods/account_updateUsername.md index b5e428e4..7daf43e0 100644 --- a/old_docs/API_docs_v41/methods/account_updateUsername.md +++ b/old_docs/API_docs_v41/methods/account_updateUsername.md @@ -20,10 +20,10 @@ description: account.updateUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v41/methods/auth_bindTempAuthKey.md index 87d0c7cf..55e083cd 100644 --- a/old_docs/API_docs_v41/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v41/methods/auth_bindTempAuthKey.md @@ -23,10 +23,10 @@ description: auth.bindTempAuthKey parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/auth_checkPassword.md b/old_docs/API_docs_v41/methods/auth_checkPassword.md index 601146fc..9dcb706a 100644 --- a/old_docs/API_docs_v41/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v41/methods/auth_checkPassword.md @@ -20,10 +20,10 @@ description: auth.checkPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/auth_checkPhone.md b/old_docs/API_docs_v41/methods/auth_checkPhone.md index 2e4db690..ce137f9d 100644 --- a/old_docs/API_docs_v41/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v41/methods/auth_checkPhone.md @@ -20,10 +20,10 @@ description: auth.checkPhone parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/auth_exportAuthorization.md b/old_docs/API_docs_v41/methods/auth_exportAuthorization.md index a69f0301..bfd16433 100644 --- a/old_docs/API_docs_v41/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v41/methods/auth_exportAuthorization.md @@ -20,10 +20,10 @@ description: auth.exportAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/auth_importAuthorization.md b/old_docs/API_docs_v41/methods/auth_importAuthorization.md index a0e2e4b7..956f9a72 100644 --- a/old_docs/API_docs_v41/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v41/methods/auth_importAuthorization.md @@ -21,10 +21,10 @@ description: auth.importAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/auth_importBotAuthorization.md b/old_docs/API_docs_v41/methods/auth_importBotAuthorization.md index a78a5263..11d2f7f3 100644 --- a/old_docs/API_docs_v41/methods/auth_importBotAuthorization.md +++ b/old_docs/API_docs_v41/methods/auth_importBotAuthorization.md @@ -22,10 +22,10 @@ description: auth.importBotAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/auth_logOut.md b/old_docs/API_docs_v41/methods/auth_logOut.md index ac5bd8ae..5651f753 100644 --- a/old_docs/API_docs_v41/methods/auth_logOut.md +++ b/old_docs/API_docs_v41/methods/auth_logOut.md @@ -15,10 +15,10 @@ description: auth.logOut parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/auth_recoverPassword.md b/old_docs/API_docs_v41/methods/auth_recoverPassword.md index 9b7ebcfb..e253e7d9 100644 --- a/old_docs/API_docs_v41/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v41/methods/auth_recoverPassword.md @@ -20,10 +20,10 @@ description: auth.recoverPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v41/methods/auth_requestPasswordRecovery.md index 94c0aeff..2ae670eb 100644 --- a/old_docs/API_docs_v41/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v41/methods/auth_requestPasswordRecovery.md @@ -15,10 +15,10 @@ description: auth.requestPasswordRecovery parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v41/methods/auth_resetAuthorizations.md index f55e2e4d..9b324b42 100644 --- a/old_docs/API_docs_v41/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v41/methods/auth_resetAuthorizations.md @@ -15,10 +15,10 @@ description: auth.resetAuthorizations parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/auth_sendCall.md b/old_docs/API_docs_v41/methods/auth_sendCall.md index 3d44b1d2..584235b0 100644 --- a/old_docs/API_docs_v41/methods/auth_sendCall.md +++ b/old_docs/API_docs_v41/methods/auth_sendCall.md @@ -21,10 +21,10 @@ description: auth.sendCall parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/auth_sendCode.md b/old_docs/API_docs_v41/methods/auth_sendCode.md index 8c4387cf..58305712 100644 --- a/old_docs/API_docs_v41/methods/auth_sendCode.md +++ b/old_docs/API_docs_v41/methods/auth_sendCode.md @@ -24,10 +24,10 @@ description: auth.sendCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/auth_sendInvites.md b/old_docs/API_docs_v41/methods/auth_sendInvites.md index f81a5c7e..87cdc7e3 100644 --- a/old_docs/API_docs_v41/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v41/methods/auth_sendInvites.md @@ -21,10 +21,10 @@ description: auth.sendInvites parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/auth_sendSms.md b/old_docs/API_docs_v41/methods/auth_sendSms.md index ab652a6e..fb469f84 100644 --- a/old_docs/API_docs_v41/methods/auth_sendSms.md +++ b/old_docs/API_docs_v41/methods/auth_sendSms.md @@ -21,10 +21,10 @@ description: auth.sendSms parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/auth_signIn.md b/old_docs/API_docs_v41/methods/auth_signIn.md index 7616bc80..b0fb12fe 100644 --- a/old_docs/API_docs_v41/methods/auth_signIn.md +++ b/old_docs/API_docs_v41/methods/auth_signIn.md @@ -22,10 +22,10 @@ description: auth.signIn parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/auth_signUp.md b/old_docs/API_docs_v41/methods/auth_signUp.md index f9c72d64..6f92b4f7 100644 --- a/old_docs/API_docs_v41/methods/auth_signUp.md +++ b/old_docs/API_docs_v41/methods/auth_signUp.md @@ -24,10 +24,10 @@ description: auth.signUp parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/channels_checkUsername.md b/old_docs/API_docs_v41/methods/channels_checkUsername.md index 82990d05..298b8e35 100644 --- a/old_docs/API_docs_v41/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v41/methods/channels_checkUsername.md @@ -21,10 +21,10 @@ description: channels.checkUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/channels_createChannel.md b/old_docs/API_docs_v41/methods/channels_createChannel.md index b5ffa159..207c60e9 100644 --- a/old_docs/API_docs_v41/methods/channels_createChannel.md +++ b/old_docs/API_docs_v41/methods/channels_createChannel.md @@ -23,10 +23,10 @@ description: channels.createChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/channels_deleteChannel.md b/old_docs/API_docs_v41/methods/channels_deleteChannel.md index c1eba22f..825882ab 100644 --- a/old_docs/API_docs_v41/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v41/methods/channels_deleteChannel.md @@ -20,10 +20,10 @@ description: channels.deleteChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/channels_deleteMessages.md b/old_docs/API_docs_v41/methods/channels_deleteMessages.md index e2e5e2bb..14fe6256 100644 --- a/old_docs/API_docs_v41/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v41/methods/channels_deleteMessages.md @@ -21,10 +21,10 @@ description: channels.deleteMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v41/methods/channels_deleteUserHistory.md index d3feb071..c485126f 100644 --- a/old_docs/API_docs_v41/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v41/methods/channels_deleteUserHistory.md @@ -21,10 +21,10 @@ description: channels.deleteUserHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/channels_editAbout.md b/old_docs/API_docs_v41/methods/channels_editAbout.md index 12d9df80..87c1a2c0 100644 --- a/old_docs/API_docs_v41/methods/channels_editAbout.md +++ b/old_docs/API_docs_v41/methods/channels_editAbout.md @@ -21,10 +21,10 @@ description: channels.editAbout parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/channels_editAdmin.md b/old_docs/API_docs_v41/methods/channels_editAdmin.md index 611e0d97..85285a50 100644 --- a/old_docs/API_docs_v41/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v41/methods/channels_editAdmin.md @@ -22,10 +22,10 @@ description: channels.editAdmin parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/channels_editPhoto.md b/old_docs/API_docs_v41/methods/channels_editPhoto.md index 9c0d0fe0..caea3df6 100644 --- a/old_docs/API_docs_v41/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v41/methods/channels_editPhoto.md @@ -21,10 +21,10 @@ description: channels.editPhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/channels_editTitle.md b/old_docs/API_docs_v41/methods/channels_editTitle.md index 057c7772..6f05ed61 100644 --- a/old_docs/API_docs_v41/methods/channels_editTitle.md +++ b/old_docs/API_docs_v41/methods/channels_editTitle.md @@ -21,10 +21,10 @@ description: channels.editTitle parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/channels_exportInvite.md b/old_docs/API_docs_v41/methods/channels_exportInvite.md index c5fa1bf9..7483038b 100644 --- a/old_docs/API_docs_v41/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v41/methods/channels_exportInvite.md @@ -20,10 +20,10 @@ description: channels.exportInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/channels_getChannels.md b/old_docs/API_docs_v41/methods/channels_getChannels.md index 24b94c8f..004f7b7e 100644 --- a/old_docs/API_docs_v41/methods/channels_getChannels.md +++ b/old_docs/API_docs_v41/methods/channels_getChannels.md @@ -20,10 +20,10 @@ description: channels.getChannels parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/channels_getDialogs.md b/old_docs/API_docs_v41/methods/channels_getDialogs.md index fbbb59a5..847a23b3 100644 --- a/old_docs/API_docs_v41/methods/channels_getDialogs.md +++ b/old_docs/API_docs_v41/methods/channels_getDialogs.md @@ -21,10 +21,10 @@ description: channels.getDialogs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/channels_getFullChannel.md b/old_docs/API_docs_v41/methods/channels_getFullChannel.md index 8bf78cd9..37abd094 100644 --- a/old_docs/API_docs_v41/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v41/methods/channels_getFullChannel.md @@ -20,10 +20,10 @@ description: channels.getFullChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/channels_getImportantHistory.md b/old_docs/API_docs_v41/methods/channels_getImportantHistory.md index 536f0244..e125fc2c 100644 --- a/old_docs/API_docs_v41/methods/channels_getImportantHistory.md +++ b/old_docs/API_docs_v41/methods/channels_getImportantHistory.md @@ -25,10 +25,10 @@ description: channels.getImportantHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/channels_getMessages.md b/old_docs/API_docs_v41/methods/channels_getMessages.md index 8204bf26..3aca181e 100644 --- a/old_docs/API_docs_v41/methods/channels_getMessages.md +++ b/old_docs/API_docs_v41/methods/channels_getMessages.md @@ -21,10 +21,10 @@ description: channels.getMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/channels_getParticipant.md b/old_docs/API_docs_v41/methods/channels_getParticipant.md index 7b685913..6bb9339e 100644 --- a/old_docs/API_docs_v41/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v41/methods/channels_getParticipant.md @@ -21,10 +21,10 @@ description: channels.getParticipant parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/channels_getParticipants.md b/old_docs/API_docs_v41/methods/channels_getParticipants.md index 6ee31676..51ac2c09 100644 --- a/old_docs/API_docs_v41/methods/channels_getParticipants.md +++ b/old_docs/API_docs_v41/methods/channels_getParticipants.md @@ -23,10 +23,10 @@ description: channels.getParticipants parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/channels_inviteToChannel.md b/old_docs/API_docs_v41/methods/channels_inviteToChannel.md index 4b4985a4..57581c7a 100644 --- a/old_docs/API_docs_v41/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v41/methods/channels_inviteToChannel.md @@ -21,10 +21,10 @@ description: channels.inviteToChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/channels_joinChannel.md b/old_docs/API_docs_v41/methods/channels_joinChannel.md index 97fd5417..359333fd 100644 --- a/old_docs/API_docs_v41/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v41/methods/channels_joinChannel.md @@ -20,10 +20,10 @@ description: channels.joinChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/channels_kickFromChannel.md b/old_docs/API_docs_v41/methods/channels_kickFromChannel.md index cf5a3ebc..930902a3 100644 --- a/old_docs/API_docs_v41/methods/channels_kickFromChannel.md +++ b/old_docs/API_docs_v41/methods/channels_kickFromChannel.md @@ -22,10 +22,10 @@ description: channels.kickFromChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/channels_leaveChannel.md b/old_docs/API_docs_v41/methods/channels_leaveChannel.md index 69dc1852..a10d17e7 100644 --- a/old_docs/API_docs_v41/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v41/methods/channels_leaveChannel.md @@ -20,10 +20,10 @@ description: channels.leaveChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/channels_readHistory.md b/old_docs/API_docs_v41/methods/channels_readHistory.md index 87906417..104a7b8f 100644 --- a/old_docs/API_docs_v41/methods/channels_readHistory.md +++ b/old_docs/API_docs_v41/methods/channels_readHistory.md @@ -21,10 +21,10 @@ description: channels.readHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/channels_reportSpam.md b/old_docs/API_docs_v41/methods/channels_reportSpam.md index dc8542f2..9e3e13ac 100644 --- a/old_docs/API_docs_v41/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v41/methods/channels_reportSpam.md @@ -22,10 +22,10 @@ description: channels.reportSpam parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/channels_toggleComments.md b/old_docs/API_docs_v41/methods/channels_toggleComments.md index eaaeb720..31873eb9 100644 --- a/old_docs/API_docs_v41/methods/channels_toggleComments.md +++ b/old_docs/API_docs_v41/methods/channels_toggleComments.md @@ -21,10 +21,10 @@ description: channels.toggleComments parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/channels_updateUsername.md b/old_docs/API_docs_v41/methods/channels_updateUsername.md index ebb03507..801bc972 100644 --- a/old_docs/API_docs_v41/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v41/methods/channels_updateUsername.md @@ -21,10 +21,10 @@ description: channels.updateUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/contacts_block.md b/old_docs/API_docs_v41/methods/contacts_block.md index b809b15c..f512adcc 100644 --- a/old_docs/API_docs_v41/methods/contacts_block.md +++ b/old_docs/API_docs_v41/methods/contacts_block.md @@ -20,10 +20,10 @@ description: contacts.block parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/contacts_deleteContact.md b/old_docs/API_docs_v41/methods/contacts_deleteContact.md index 18ef51f8..a3e8f63d 100644 --- a/old_docs/API_docs_v41/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v41/methods/contacts_deleteContact.md @@ -20,10 +20,10 @@ description: contacts.deleteContact parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/contacts_deleteContacts.md b/old_docs/API_docs_v41/methods/contacts_deleteContacts.md index 40672188..46e251eb 100644 --- a/old_docs/API_docs_v41/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v41/methods/contacts_deleteContacts.md @@ -20,10 +20,10 @@ description: contacts.deleteContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/contacts_exportCard.md b/old_docs/API_docs_v41/methods/contacts_exportCard.md index 4145d246..f7ec0015 100644 --- a/old_docs/API_docs_v41/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v41/methods/contacts_exportCard.md @@ -15,10 +15,10 @@ description: contacts.exportCard parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/contacts_getBlocked.md b/old_docs/API_docs_v41/methods/contacts_getBlocked.md index 50172d03..0fc72dba 100644 --- a/old_docs/API_docs_v41/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v41/methods/contacts_getBlocked.md @@ -21,10 +21,10 @@ description: contacts.getBlocked parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/contacts_getContacts.md b/old_docs/API_docs_v41/methods/contacts_getContacts.md index 0e6f22e9..656821e0 100644 --- a/old_docs/API_docs_v41/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v41/methods/contacts_getContacts.md @@ -20,10 +20,10 @@ description: contacts.getContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/contacts_getStatuses.md b/old_docs/API_docs_v41/methods/contacts_getStatuses.md index b734f529..ee806f2d 100644 --- a/old_docs/API_docs_v41/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v41/methods/contacts_getStatuses.md @@ -15,10 +15,10 @@ description: contacts.getStatuses parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/contacts_getSuggested.md b/old_docs/API_docs_v41/methods/contacts_getSuggested.md index a49b5913..4cd124e7 100644 --- a/old_docs/API_docs_v41/methods/contacts_getSuggested.md +++ b/old_docs/API_docs_v41/methods/contacts_getSuggested.md @@ -20,10 +20,10 @@ description: contacts.getSuggested parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/contacts_importCard.md b/old_docs/API_docs_v41/methods/contacts_importCard.md index 6b2c612e..162ff4f3 100644 --- a/old_docs/API_docs_v41/methods/contacts_importCard.md +++ b/old_docs/API_docs_v41/methods/contacts_importCard.md @@ -20,10 +20,10 @@ description: contacts.importCard parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/contacts_importContacts.md b/old_docs/API_docs_v41/methods/contacts_importContacts.md index 2426f53c..48412e99 100644 --- a/old_docs/API_docs_v41/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v41/methods/contacts_importContacts.md @@ -21,10 +21,10 @@ description: contacts.importContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/contacts_resolveUsername.md b/old_docs/API_docs_v41/methods/contacts_resolveUsername.md index 0ea67c6f..b847fbe9 100644 --- a/old_docs/API_docs_v41/methods/contacts_resolveUsername.md +++ b/old_docs/API_docs_v41/methods/contacts_resolveUsername.md @@ -20,10 +20,10 @@ description: contacts.resolveUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/contacts_search.md b/old_docs/API_docs_v41/methods/contacts_search.md index 00a39519..9a351db7 100644 --- a/old_docs/API_docs_v41/methods/contacts_search.md +++ b/old_docs/API_docs_v41/methods/contacts_search.md @@ -21,10 +21,10 @@ description: contacts.search parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/contacts_unblock.md b/old_docs/API_docs_v41/methods/contacts_unblock.md index 63f41483..6d739c9b 100644 --- a/old_docs/API_docs_v41/methods/contacts_unblock.md +++ b/old_docs/API_docs_v41/methods/contacts_unblock.md @@ -20,10 +20,10 @@ description: contacts.unblock parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/help_getAppChangelog.md b/old_docs/API_docs_v41/methods/help_getAppChangelog.md index bfe48334..1b52c928 100644 --- a/old_docs/API_docs_v41/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v41/methods/help_getAppChangelog.md @@ -23,10 +23,10 @@ description: help.getAppChangelog parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/help_getAppUpdate.md b/old_docs/API_docs_v41/methods/help_getAppUpdate.md index 7be3b374..9559c840 100644 --- a/old_docs/API_docs_v41/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v41/methods/help_getAppUpdate.md @@ -23,10 +23,10 @@ description: help.getAppUpdate parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/help_getConfig.md b/old_docs/API_docs_v41/methods/help_getConfig.md index cb9c4f1c..9481a0c0 100644 --- a/old_docs/API_docs_v41/methods/help_getConfig.md +++ b/old_docs/API_docs_v41/methods/help_getConfig.md @@ -15,10 +15,10 @@ description: help.getConfig parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/help_getInviteText.md b/old_docs/API_docs_v41/methods/help_getInviteText.md index f265f8d3..14692791 100644 --- a/old_docs/API_docs_v41/methods/help_getInviteText.md +++ b/old_docs/API_docs_v41/methods/help_getInviteText.md @@ -20,10 +20,10 @@ description: help.getInviteText parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/help_getNearestDc.md b/old_docs/API_docs_v41/methods/help_getNearestDc.md index f491ae0c..bb6b1883 100644 --- a/old_docs/API_docs_v41/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v41/methods/help_getNearestDc.md @@ -15,10 +15,10 @@ description: help.getNearestDc parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/help_getSupport.md b/old_docs/API_docs_v41/methods/help_getSupport.md index 03574c6f..0348089a 100644 --- a/old_docs/API_docs_v41/methods/help_getSupport.md +++ b/old_docs/API_docs_v41/methods/help_getSupport.md @@ -15,10 +15,10 @@ description: help.getSupport parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/help_saveAppLog.md b/old_docs/API_docs_v41/methods/help_saveAppLog.md index 3887ccc2..59b92601 100644 --- a/old_docs/API_docs_v41/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v41/methods/help_saveAppLog.md @@ -20,10 +20,10 @@ description: help.saveAppLog parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/initConnection.md b/old_docs/API_docs_v41/methods/initConnection.md index 1c946720..aa89066c 100644 --- a/old_docs/API_docs_v41/methods/initConnection.md +++ b/old_docs/API_docs_v41/methods/initConnection.md @@ -25,10 +25,10 @@ description: initConnection parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/invokeAfterMsg.md b/old_docs/API_docs_v41/methods/invokeAfterMsg.md index 1b35a238..97c4f1fb 100644 --- a/old_docs/API_docs_v41/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v41/methods/invokeAfterMsg.md @@ -21,10 +21,10 @@ description: invokeAfterMsg parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/invokeAfterMsgs.md b/old_docs/API_docs_v41/methods/invokeAfterMsgs.md index 164ab318..4e278ef1 100644 --- a/old_docs/API_docs_v41/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v41/methods/invokeAfterMsgs.md @@ -21,10 +21,10 @@ description: invokeAfterMsgs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/invokeWithLayer.md b/old_docs/API_docs_v41/methods/invokeWithLayer.md index 497cc285..72fe47ec 100644 --- a/old_docs/API_docs_v41/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v41/methods/invokeWithLayer.md @@ -21,10 +21,10 @@ description: invokeWithLayer parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v41/methods/invokeWithoutUpdates.md index cbdabb07..5151b786 100644 --- a/old_docs/API_docs_v41/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v41/methods/invokeWithoutUpdates.md @@ -20,10 +20,10 @@ description: invokeWithoutUpdates parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/messages_acceptEncryption.md b/old_docs/API_docs_v41/methods/messages_acceptEncryption.md index d41beb91..e016f5d3 100644 --- a/old_docs/API_docs_v41/methods/messages_acceptEncryption.md +++ b/old_docs/API_docs_v41/methods/messages_acceptEncryption.md @@ -22,10 +22,10 @@ description: messages.acceptEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/messages_addChatUser.md b/old_docs/API_docs_v41/methods/messages_addChatUser.md index 13d17a3e..df2cb1a5 100644 --- a/old_docs/API_docs_v41/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v41/methods/messages_addChatUser.md @@ -22,10 +22,10 @@ description: messages.addChatUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/messages_checkChatInvite.md b/old_docs/API_docs_v41/methods/messages_checkChatInvite.md index 0a3a4f84..7670727b 100644 --- a/old_docs/API_docs_v41/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v41/methods/messages_checkChatInvite.md @@ -20,10 +20,10 @@ description: messages.checkChatInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/messages_createChat.md b/old_docs/API_docs_v41/methods/messages_createChat.md index 0ab3101a..2fc5631c 100644 --- a/old_docs/API_docs_v41/methods/messages_createChat.md +++ b/old_docs/API_docs_v41/methods/messages_createChat.md @@ -21,10 +21,10 @@ description: messages.createChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/messages_deactivateChat.md b/old_docs/API_docs_v41/methods/messages_deactivateChat.md index 62e82031..3b7e9bf7 100644 --- a/old_docs/API_docs_v41/methods/messages_deactivateChat.md +++ b/old_docs/API_docs_v41/methods/messages_deactivateChat.md @@ -21,10 +21,10 @@ description: messages.deactivateChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/messages_deleteChatUser.md b/old_docs/API_docs_v41/methods/messages_deleteChatUser.md index ed736ebd..6895649f 100644 --- a/old_docs/API_docs_v41/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v41/methods/messages_deleteChatUser.md @@ -21,10 +21,10 @@ description: messages.deleteChatUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/messages_deleteHistory.md b/old_docs/API_docs_v41/methods/messages_deleteHistory.md index 64c060dc..8517ee62 100644 --- a/old_docs/API_docs_v41/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v41/methods/messages_deleteHistory.md @@ -21,10 +21,10 @@ description: messages.deleteHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/messages_deleteMessages.md b/old_docs/API_docs_v41/methods/messages_deleteMessages.md index 5997c2ed..d9d28886 100644 --- a/old_docs/API_docs_v41/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v41/methods/messages_deleteMessages.md @@ -20,10 +20,10 @@ description: messages.deleteMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/messages_discardEncryption.md b/old_docs/API_docs_v41/methods/messages_discardEncryption.md index ebc1ace5..f237c986 100644 --- a/old_docs/API_docs_v41/methods/messages_discardEncryption.md +++ b/old_docs/API_docs_v41/methods/messages_discardEncryption.md @@ -20,10 +20,10 @@ description: messages.discardEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/messages_editChatAdmin.md b/old_docs/API_docs_v41/methods/messages_editChatAdmin.md index 38bc8de0..74f5a39f 100644 --- a/old_docs/API_docs_v41/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v41/methods/messages_editChatAdmin.md @@ -22,10 +22,10 @@ description: messages.editChatAdmin parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/messages_editChatPhoto.md b/old_docs/API_docs_v41/methods/messages_editChatPhoto.md index e3cbf492..0396c74b 100644 --- a/old_docs/API_docs_v41/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v41/methods/messages_editChatPhoto.md @@ -21,10 +21,10 @@ description: messages.editChatPhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/messages_editChatTitle.md b/old_docs/API_docs_v41/methods/messages_editChatTitle.md index 60eae01c..fabe9c87 100644 --- a/old_docs/API_docs_v41/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v41/methods/messages_editChatTitle.md @@ -21,10 +21,10 @@ description: messages.editChatTitle parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/messages_exportChatInvite.md b/old_docs/API_docs_v41/methods/messages_exportChatInvite.md index 3efc9bf7..b96e7498 100644 --- a/old_docs/API_docs_v41/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v41/methods/messages_exportChatInvite.md @@ -20,10 +20,10 @@ description: messages.exportChatInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/messages_forwardMessage.md b/old_docs/API_docs_v41/methods/messages_forwardMessage.md index a95d259a..ced2cb5b 100644 --- a/old_docs/API_docs_v41/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v41/methods/messages_forwardMessage.md @@ -21,10 +21,10 @@ description: messages.forwardMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/messages_forwardMessages.md b/old_docs/API_docs_v41/methods/messages_forwardMessages.md index a6add4d1..80d98650 100644 --- a/old_docs/API_docs_v41/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v41/methods/messages_forwardMessages.md @@ -23,10 +23,10 @@ description: messages.forwardMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/messages_getAllStickers.md b/old_docs/API_docs_v41/methods/messages_getAllStickers.md index bc696cd6..34254773 100644 --- a/old_docs/API_docs_v41/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v41/methods/messages_getAllStickers.md @@ -20,10 +20,10 @@ description: messages.getAllStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/messages_getChats.md b/old_docs/API_docs_v41/methods/messages_getChats.md index ad63744b..be57718e 100644 --- a/old_docs/API_docs_v41/methods/messages_getChats.md +++ b/old_docs/API_docs_v41/methods/messages_getChats.md @@ -20,10 +20,10 @@ description: messages.getChats parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/messages_getDhConfig.md b/old_docs/API_docs_v41/methods/messages_getDhConfig.md index bcebea55..21b37f21 100644 --- a/old_docs/API_docs_v41/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v41/methods/messages_getDhConfig.md @@ -21,10 +21,10 @@ description: messages.getDhConfig parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/messages_getDialogs.md b/old_docs/API_docs_v41/methods/messages_getDialogs.md index baacdd9a..f261715e 100644 --- a/old_docs/API_docs_v41/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v41/methods/messages_getDialogs.md @@ -21,10 +21,10 @@ description: messages.getDialogs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/messages_getFullChat.md b/old_docs/API_docs_v41/methods/messages_getFullChat.md index f3c8223a..10d938ae 100644 --- a/old_docs/API_docs_v41/methods/messages_getFullChat.md +++ b/old_docs/API_docs_v41/methods/messages_getFullChat.md @@ -20,10 +20,10 @@ description: messages.getFullChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/messages_getHistory.md b/old_docs/API_docs_v41/methods/messages_getHistory.md index 84324235..409526cc 100644 --- a/old_docs/API_docs_v41/methods/messages_getHistory.md +++ b/old_docs/API_docs_v41/methods/messages_getHistory.md @@ -25,10 +25,10 @@ description: messages.getHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/messages_getMessages.md b/old_docs/API_docs_v41/methods/messages_getMessages.md index 224df903..e669bcf8 100644 --- a/old_docs/API_docs_v41/methods/messages_getMessages.md +++ b/old_docs/API_docs_v41/methods/messages_getMessages.md @@ -20,10 +20,10 @@ description: messages.getMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/messages_getMessagesViews.md b/old_docs/API_docs_v41/methods/messages_getMessagesViews.md index d162b668..f27cdb36 100644 --- a/old_docs/API_docs_v41/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v41/methods/messages_getMessagesViews.md @@ -22,10 +22,10 @@ description: messages.getMessagesViews parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/messages_getStickerSet.md b/old_docs/API_docs_v41/methods/messages_getStickerSet.md index 2ec2fa5d..561eec32 100644 --- a/old_docs/API_docs_v41/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v41/methods/messages_getStickerSet.md @@ -20,10 +20,10 @@ description: messages.getStickerSet parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/messages_getStickers.md b/old_docs/API_docs_v41/methods/messages_getStickers.md index 6730f586..e9aedd80 100644 --- a/old_docs/API_docs_v41/methods/messages_getStickers.md +++ b/old_docs/API_docs_v41/methods/messages_getStickers.md @@ -21,10 +21,10 @@ description: messages.getStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v41/methods/messages_getWebPagePreview.md index e2dd428d..a3d5fce3 100644 --- a/old_docs/API_docs_v41/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v41/methods/messages_getWebPagePreview.md @@ -20,10 +20,10 @@ description: messages.getWebPagePreview parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/messages_importChatInvite.md b/old_docs/API_docs_v41/methods/messages_importChatInvite.md index 250d076d..a4e9c052 100644 --- a/old_docs/API_docs_v41/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v41/methods/messages_importChatInvite.md @@ -20,10 +20,10 @@ description: messages.importChatInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/messages_installStickerSet.md b/old_docs/API_docs_v41/methods/messages_installStickerSet.md index f99d40b4..5180bcbd 100644 --- a/old_docs/API_docs_v41/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v41/methods/messages_installStickerSet.md @@ -21,10 +21,10 @@ description: messages.installStickerSet parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/messages_migrateChat.md b/old_docs/API_docs_v41/methods/messages_migrateChat.md index 5b1e375a..731dc904 100644 --- a/old_docs/API_docs_v41/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v41/methods/messages_migrateChat.md @@ -20,10 +20,10 @@ description: messages.migrateChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v41/methods/messages_readEncryptedHistory.md index 555bffe7..5bb05536 100644 --- a/old_docs/API_docs_v41/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v41/methods/messages_readEncryptedHistory.md @@ -21,10 +21,10 @@ description: messages.readEncryptedHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/messages_readHistory.md b/old_docs/API_docs_v41/methods/messages_readHistory.md index 1e2783ae..6bb29fef 100644 --- a/old_docs/API_docs_v41/methods/messages_readHistory.md +++ b/old_docs/API_docs_v41/methods/messages_readHistory.md @@ -21,10 +21,10 @@ description: messages.readHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/messages_readMessageContents.md b/old_docs/API_docs_v41/methods/messages_readMessageContents.md index ae75d612..829e7cc8 100644 --- a/old_docs/API_docs_v41/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v41/methods/messages_readMessageContents.md @@ -20,10 +20,10 @@ description: messages.readMessageContents parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/messages_receivedMessages.md b/old_docs/API_docs_v41/methods/messages_receivedMessages.md index ffeaeed7..05a229b6 100644 --- a/old_docs/API_docs_v41/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v41/methods/messages_receivedMessages.md @@ -20,10 +20,10 @@ description: messages.receivedMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/messages_receivedQueue.md b/old_docs/API_docs_v41/methods/messages_receivedQueue.md index e514669c..d8bfae5e 100644 --- a/old_docs/API_docs_v41/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v41/methods/messages_receivedQueue.md @@ -20,10 +20,10 @@ description: messages.receivedQueue parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/messages_reportSpam.md b/old_docs/API_docs_v41/methods/messages_reportSpam.md index 56975b9d..da747585 100644 --- a/old_docs/API_docs_v41/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v41/methods/messages_reportSpam.md @@ -20,10 +20,10 @@ description: messages.reportSpam parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/messages_requestEncryption.md b/old_docs/API_docs_v41/methods/messages_requestEncryption.md index e82fca54..99fe7ecf 100644 --- a/old_docs/API_docs_v41/methods/messages_requestEncryption.md +++ b/old_docs/API_docs_v41/methods/messages_requestEncryption.md @@ -21,10 +21,10 @@ description: messages.requestEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/messages_search.md b/old_docs/API_docs_v41/methods/messages_search.md index 9f1ab5ba..4a5c4bb9 100644 --- a/old_docs/API_docs_v41/methods/messages_search.md +++ b/old_docs/API_docs_v41/methods/messages_search.md @@ -28,10 +28,10 @@ description: messages.search parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/messages_searchGlobal.md b/old_docs/API_docs_v41/methods/messages_searchGlobal.md index aacdb99f..02d790e9 100644 --- a/old_docs/API_docs_v41/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v41/methods/messages_searchGlobal.md @@ -24,10 +24,10 @@ description: messages.searchGlobal parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/messages_sendBroadcast.md b/old_docs/API_docs_v41/methods/messages_sendBroadcast.md index 9194fdf1..b19bec57 100644 --- a/old_docs/API_docs_v41/methods/messages_sendBroadcast.md +++ b/old_docs/API_docs_v41/methods/messages_sendBroadcast.md @@ -22,10 +22,10 @@ description: messages.sendBroadcast parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/messages_sendEncrypted.md b/old_docs/API_docs_v41/methods/messages_sendEncrypted.md index f2c2c0c2..c3585580 100644 --- a/old_docs/API_docs_v41/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v41/methods/messages_sendEncrypted.md @@ -21,10 +21,10 @@ description: messages.sendEncrypted parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v41/methods/messages_sendEncryptedFile.md index a57a3dd8..40674df9 100644 --- a/old_docs/API_docs_v41/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v41/methods/messages_sendEncryptedFile.md @@ -22,10 +22,10 @@ description: messages.sendEncryptedFile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v41/methods/messages_sendEncryptedService.md index 4041c4d0..8bfee571 100644 --- a/old_docs/API_docs_v41/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v41/methods/messages_sendEncryptedService.md @@ -21,10 +21,10 @@ description: messages.sendEncryptedService parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/messages_sendMedia.md b/old_docs/API_docs_v41/methods/messages_sendMedia.md index 01e66c35..f9e9b49a 100644 --- a/old_docs/API_docs_v41/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v41/methods/messages_sendMedia.md @@ -24,10 +24,10 @@ description: messages.sendMedia parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; @@ -46,3 +46,9 @@ Or, if you're into Lua: Updates = messages.sendMedia({broadcast=Bool, peer=InputPeer, reply_to_msg_id=int, media=InputMedia, reply_markup=ReplyMarkup, }) ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v41/methods/messages_sendMessage.md b/old_docs/API_docs_v41/methods/messages_sendMessage.md index 51e032ca..074cb877 100644 --- a/old_docs/API_docs_v41/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v41/methods/messages_sendMessage.md @@ -27,10 +27,10 @@ description: messages.sendMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; @@ -50,6 +50,12 @@ Updates = messages.sendMessage({no_webpage=Bool, broadcast=Bool, peer=InputPeer, ``` +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + + ## Usage of parse_mode: Set parse_mode to html to enable HTML parsing of the message. diff --git a/old_docs/API_docs_v41/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v41/methods/messages_setEncryptedTyping.md index 95364d49..ae718bba 100644 --- a/old_docs/API_docs_v41/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v41/methods/messages_setEncryptedTyping.md @@ -21,10 +21,10 @@ description: messages.setEncryptedTyping parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/messages_setTyping.md b/old_docs/API_docs_v41/methods/messages_setTyping.md index 0ce5743d..75903c68 100644 --- a/old_docs/API_docs_v41/methods/messages_setTyping.md +++ b/old_docs/API_docs_v41/methods/messages_setTyping.md @@ -21,10 +21,10 @@ description: messages.setTyping parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/messages_startBot.md b/old_docs/API_docs_v41/methods/messages_startBot.md index 5f563224..bf79b142 100644 --- a/old_docs/API_docs_v41/methods/messages_startBot.md +++ b/old_docs/API_docs_v41/methods/messages_startBot.md @@ -22,10 +22,10 @@ description: messages.startBot parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v41/methods/messages_toggleChatAdmins.md index 0ad6ba92..05d74e5a 100644 --- a/old_docs/API_docs_v41/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v41/methods/messages_toggleChatAdmins.md @@ -21,10 +21,10 @@ description: messages.toggleChatAdmins parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v41/methods/messages_uninstallStickerSet.md index 97fff059..5202b086 100644 --- a/old_docs/API_docs_v41/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v41/methods/messages_uninstallStickerSet.md @@ -20,10 +20,10 @@ description: messages.uninstallStickerSet parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/photos_deletePhotos.md b/old_docs/API_docs_v41/methods/photos_deletePhotos.md index 6a717835..2d27b700 100644 --- a/old_docs/API_docs_v41/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v41/methods/photos_deletePhotos.md @@ -20,10 +20,10 @@ description: photos.deletePhotos parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/photos_getUserPhotos.md b/old_docs/API_docs_v41/methods/photos_getUserPhotos.md index 4aa96dfa..0f50ee6f 100644 --- a/old_docs/API_docs_v41/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v41/methods/photos_getUserPhotos.md @@ -23,10 +23,10 @@ description: photos.getUserPhotos parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v41/methods/photos_updateProfilePhoto.md index f18669cc..9ae9c59e 100644 --- a/old_docs/API_docs_v41/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v41/methods/photos_updateProfilePhoto.md @@ -21,10 +21,10 @@ description: photos.updateProfilePhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v41/methods/photos_uploadProfilePhoto.md index 3eb7a10c..567eb363 100644 --- a/old_docs/API_docs_v41/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v41/methods/photos_uploadProfilePhoto.md @@ -23,10 +23,10 @@ description: photos.uploadProfilePhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/updates_getChannelDifference.md b/old_docs/API_docs_v41/methods/updates_getChannelDifference.md index 1add786f..d3b725f4 100644 --- a/old_docs/API_docs_v41/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v41/methods/updates_getChannelDifference.md @@ -23,10 +23,10 @@ description: updates.getChannelDifference parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/updates_getDifference.md b/old_docs/API_docs_v41/methods/updates_getDifference.md index c7ae5664..719a7a02 100644 --- a/old_docs/API_docs_v41/methods/updates_getDifference.md +++ b/old_docs/API_docs_v41/methods/updates_getDifference.md @@ -22,10 +22,10 @@ description: updates.getDifference parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/updates_getState.md b/old_docs/API_docs_v41/methods/updates_getState.md index 5612ca79..53fc0c16 100644 --- a/old_docs/API_docs_v41/methods/updates_getState.md +++ b/old_docs/API_docs_v41/methods/updates_getState.md @@ -15,10 +15,10 @@ description: updates.getState parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/upload_getFile.md b/old_docs/API_docs_v41/methods/upload_getFile.md index a2f3d961..ee35140a 100644 --- a/old_docs/API_docs_v41/methods/upload_getFile.md +++ b/old_docs/API_docs_v41/methods/upload_getFile.md @@ -22,10 +22,10 @@ description: upload.getFile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/upload_saveBigFilePart.md b/old_docs/API_docs_v41/methods/upload_saveBigFilePart.md index 03641055..503d1b5c 100644 --- a/old_docs/API_docs_v41/methods/upload_saveBigFilePart.md +++ b/old_docs/API_docs_v41/methods/upload_saveBigFilePart.md @@ -23,10 +23,10 @@ description: upload.saveBigFilePart parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/upload_saveFilePart.md b/old_docs/API_docs_v41/methods/upload_saveFilePart.md index 192412c8..d7f745aa 100644 --- a/old_docs/API_docs_v41/methods/upload_saveFilePart.md +++ b/old_docs/API_docs_v41/methods/upload_saveFilePart.md @@ -22,10 +22,10 @@ description: upload.saveFilePart parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/users_getFullUser.md b/old_docs/API_docs_v41/methods/users_getFullUser.md index 864ae387..bcba7f3d 100644 --- a/old_docs/API_docs_v41/methods/users_getFullUser.md +++ b/old_docs/API_docs_v41/methods/users_getFullUser.md @@ -20,10 +20,10 @@ description: users.getFullUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v41/methods/users_getUsers.md b/old_docs/API_docs_v41/methods/users_getUsers.md index 34816478..e03fd2d6 100644 --- a/old_docs/API_docs_v41/methods/users_getUsers.md +++ b/old_docs/API_docs_v41/methods/users_getUsers.md @@ -20,10 +20,10 @@ description: users.getUsers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/constructors/message.md b/old_docs/API_docs_v42/constructors/message.md index 3fffc9df..62a63782 100644 --- a/old_docs/API_docs_v42/constructors/message.md +++ b/old_docs/API_docs_v42/constructors/message.md @@ -48,3 +48,9 @@ message={_='message', unread=Bool, out=Bool, mentioned=Bool, media_unread=Bool, ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v42/methods/account_changePhone.md b/old_docs/API_docs_v42/methods/account_changePhone.md index dc3e0427..6691a743 100644 --- a/old_docs/API_docs_v42/methods/account_changePhone.md +++ b/old_docs/API_docs_v42/methods/account_changePhone.md @@ -22,10 +22,10 @@ description: account.changePhone parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/account_checkUsername.md b/old_docs/API_docs_v42/methods/account_checkUsername.md index dc13041c..e954ca99 100644 --- a/old_docs/API_docs_v42/methods/account_checkUsername.md +++ b/old_docs/API_docs_v42/methods/account_checkUsername.md @@ -20,10 +20,10 @@ description: account.checkUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/account_deleteAccount.md b/old_docs/API_docs_v42/methods/account_deleteAccount.md index 4199572b..0d0a6204 100644 --- a/old_docs/API_docs_v42/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v42/methods/account_deleteAccount.md @@ -20,10 +20,10 @@ description: account.deleteAccount parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/account_getAccountTTL.md b/old_docs/API_docs_v42/methods/account_getAccountTTL.md index ff4171df..e284a80e 100644 --- a/old_docs/API_docs_v42/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v42/methods/account_getAccountTTL.md @@ -15,10 +15,10 @@ description: account.getAccountTTL parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/account_getAuthorizations.md b/old_docs/API_docs_v42/methods/account_getAuthorizations.md index 26f755d4..ee5a00d6 100644 --- a/old_docs/API_docs_v42/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v42/methods/account_getAuthorizations.md @@ -15,10 +15,10 @@ description: account.getAuthorizations parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/account_getNotifySettings.md b/old_docs/API_docs_v42/methods/account_getNotifySettings.md index 817f201a..2e7fd9ba 100644 --- a/old_docs/API_docs_v42/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v42/methods/account_getNotifySettings.md @@ -20,10 +20,10 @@ description: account.getNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/account_getPassword.md b/old_docs/API_docs_v42/methods/account_getPassword.md index d7491fec..424d3710 100644 --- a/old_docs/API_docs_v42/methods/account_getPassword.md +++ b/old_docs/API_docs_v42/methods/account_getPassword.md @@ -15,10 +15,10 @@ description: account.getPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/account_getPasswordSettings.md b/old_docs/API_docs_v42/methods/account_getPasswordSettings.md index 5be9a523..3e72e398 100644 --- a/old_docs/API_docs_v42/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v42/methods/account_getPasswordSettings.md @@ -20,10 +20,10 @@ description: account.getPasswordSettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/account_getPrivacy.md b/old_docs/API_docs_v42/methods/account_getPrivacy.md index 649019d5..26137fd3 100644 --- a/old_docs/API_docs_v42/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v42/methods/account_getPrivacy.md @@ -20,10 +20,10 @@ description: account.getPrivacy parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/account_getWallPapers.md b/old_docs/API_docs_v42/methods/account_getWallPapers.md index 9eb0182a..a44ea777 100644 --- a/old_docs/API_docs_v42/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v42/methods/account_getWallPapers.md @@ -15,10 +15,10 @@ description: account.getWallPapers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/account_registerDevice.md b/old_docs/API_docs_v42/methods/account_registerDevice.md index 168dcba0..70cadfab 100644 --- a/old_docs/API_docs_v42/methods/account_registerDevice.md +++ b/old_docs/API_docs_v42/methods/account_registerDevice.md @@ -26,10 +26,10 @@ description: account.registerDevice parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/account_resetAuthorization.md b/old_docs/API_docs_v42/methods/account_resetAuthorization.md index aaf5a660..2c7c5bc4 100644 --- a/old_docs/API_docs_v42/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v42/methods/account_resetAuthorization.md @@ -20,10 +20,10 @@ description: account.resetAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/account_resetNotifySettings.md b/old_docs/API_docs_v42/methods/account_resetNotifySettings.md index 5a6a4c95..aa01dfce 100644 --- a/old_docs/API_docs_v42/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v42/methods/account_resetNotifySettings.md @@ -15,10 +15,10 @@ description: account.resetNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v42/methods/account_sendChangePhoneCode.md index 98110148..4ccc4045 100644 --- a/old_docs/API_docs_v42/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v42/methods/account_sendChangePhoneCode.md @@ -20,10 +20,10 @@ description: account.sendChangePhoneCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/account_setAccountTTL.md b/old_docs/API_docs_v42/methods/account_setAccountTTL.md index 6ae8d70e..460ae89a 100644 --- a/old_docs/API_docs_v42/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v42/methods/account_setAccountTTL.md @@ -20,10 +20,10 @@ description: account.setAccountTTL parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/account_setPrivacy.md b/old_docs/API_docs_v42/methods/account_setPrivacy.md index e438ca16..f05356db 100644 --- a/old_docs/API_docs_v42/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v42/methods/account_setPrivacy.md @@ -21,10 +21,10 @@ description: account.setPrivacy parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/account_unregisterDevice.md b/old_docs/API_docs_v42/methods/account_unregisterDevice.md index 89ab99a8..1063fad3 100644 --- a/old_docs/API_docs_v42/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v42/methods/account_unregisterDevice.md @@ -21,10 +21,10 @@ description: account.unregisterDevice parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v42/methods/account_updateDeviceLocked.md index 3fe6b8b6..506d974f 100644 --- a/old_docs/API_docs_v42/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v42/methods/account_updateDeviceLocked.md @@ -20,10 +20,10 @@ description: account.updateDeviceLocked parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/account_updateNotifySettings.md b/old_docs/API_docs_v42/methods/account_updateNotifySettings.md index 7eea8202..cb90a39f 100644 --- a/old_docs/API_docs_v42/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v42/methods/account_updateNotifySettings.md @@ -21,10 +21,10 @@ description: account.updateNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v42/methods/account_updatePasswordSettings.md index 56e4d724..ad1a930d 100644 --- a/old_docs/API_docs_v42/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v42/methods/account_updatePasswordSettings.md @@ -21,10 +21,10 @@ description: account.updatePasswordSettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/account_updateProfile.md b/old_docs/API_docs_v42/methods/account_updateProfile.md index fce1c8c9..cf8374de 100644 --- a/old_docs/API_docs_v42/methods/account_updateProfile.md +++ b/old_docs/API_docs_v42/methods/account_updateProfile.md @@ -21,10 +21,10 @@ description: account.updateProfile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/account_updateStatus.md b/old_docs/API_docs_v42/methods/account_updateStatus.md index f2fd751e..ac260312 100644 --- a/old_docs/API_docs_v42/methods/account_updateStatus.md +++ b/old_docs/API_docs_v42/methods/account_updateStatus.md @@ -20,10 +20,10 @@ description: account.updateStatus parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/account_updateUsername.md b/old_docs/API_docs_v42/methods/account_updateUsername.md index b5e428e4..7daf43e0 100644 --- a/old_docs/API_docs_v42/methods/account_updateUsername.md +++ b/old_docs/API_docs_v42/methods/account_updateUsername.md @@ -20,10 +20,10 @@ description: account.updateUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v42/methods/auth_bindTempAuthKey.md index 87d0c7cf..55e083cd 100644 --- a/old_docs/API_docs_v42/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v42/methods/auth_bindTempAuthKey.md @@ -23,10 +23,10 @@ description: auth.bindTempAuthKey parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/auth_checkPassword.md b/old_docs/API_docs_v42/methods/auth_checkPassword.md index 601146fc..9dcb706a 100644 --- a/old_docs/API_docs_v42/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v42/methods/auth_checkPassword.md @@ -20,10 +20,10 @@ description: auth.checkPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/auth_checkPhone.md b/old_docs/API_docs_v42/methods/auth_checkPhone.md index 2e4db690..ce137f9d 100644 --- a/old_docs/API_docs_v42/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v42/methods/auth_checkPhone.md @@ -20,10 +20,10 @@ description: auth.checkPhone parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/auth_exportAuthorization.md b/old_docs/API_docs_v42/methods/auth_exportAuthorization.md index a69f0301..bfd16433 100644 --- a/old_docs/API_docs_v42/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v42/methods/auth_exportAuthorization.md @@ -20,10 +20,10 @@ description: auth.exportAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/auth_importAuthorization.md b/old_docs/API_docs_v42/methods/auth_importAuthorization.md index a0e2e4b7..956f9a72 100644 --- a/old_docs/API_docs_v42/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v42/methods/auth_importAuthorization.md @@ -21,10 +21,10 @@ description: auth.importAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/auth_importBotAuthorization.md b/old_docs/API_docs_v42/methods/auth_importBotAuthorization.md index a78a5263..11d2f7f3 100644 --- a/old_docs/API_docs_v42/methods/auth_importBotAuthorization.md +++ b/old_docs/API_docs_v42/methods/auth_importBotAuthorization.md @@ -22,10 +22,10 @@ description: auth.importBotAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/auth_logOut.md b/old_docs/API_docs_v42/methods/auth_logOut.md index ac5bd8ae..5651f753 100644 --- a/old_docs/API_docs_v42/methods/auth_logOut.md +++ b/old_docs/API_docs_v42/methods/auth_logOut.md @@ -15,10 +15,10 @@ description: auth.logOut parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/auth_recoverPassword.md b/old_docs/API_docs_v42/methods/auth_recoverPassword.md index 9b7ebcfb..e253e7d9 100644 --- a/old_docs/API_docs_v42/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v42/methods/auth_recoverPassword.md @@ -20,10 +20,10 @@ description: auth.recoverPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v42/methods/auth_requestPasswordRecovery.md index 94c0aeff..2ae670eb 100644 --- a/old_docs/API_docs_v42/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v42/methods/auth_requestPasswordRecovery.md @@ -15,10 +15,10 @@ description: auth.requestPasswordRecovery parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v42/methods/auth_resetAuthorizations.md index f55e2e4d..9b324b42 100644 --- a/old_docs/API_docs_v42/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v42/methods/auth_resetAuthorizations.md @@ -15,10 +15,10 @@ description: auth.resetAuthorizations parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/auth_sendCall.md b/old_docs/API_docs_v42/methods/auth_sendCall.md index 3d44b1d2..584235b0 100644 --- a/old_docs/API_docs_v42/methods/auth_sendCall.md +++ b/old_docs/API_docs_v42/methods/auth_sendCall.md @@ -21,10 +21,10 @@ description: auth.sendCall parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/auth_sendCode.md b/old_docs/API_docs_v42/methods/auth_sendCode.md index 8c4387cf..58305712 100644 --- a/old_docs/API_docs_v42/methods/auth_sendCode.md +++ b/old_docs/API_docs_v42/methods/auth_sendCode.md @@ -24,10 +24,10 @@ description: auth.sendCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/auth_sendInvites.md b/old_docs/API_docs_v42/methods/auth_sendInvites.md index f81a5c7e..87cdc7e3 100644 --- a/old_docs/API_docs_v42/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v42/methods/auth_sendInvites.md @@ -21,10 +21,10 @@ description: auth.sendInvites parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/auth_sendSms.md b/old_docs/API_docs_v42/methods/auth_sendSms.md index ab652a6e..fb469f84 100644 --- a/old_docs/API_docs_v42/methods/auth_sendSms.md +++ b/old_docs/API_docs_v42/methods/auth_sendSms.md @@ -21,10 +21,10 @@ description: auth.sendSms parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/auth_signIn.md b/old_docs/API_docs_v42/methods/auth_signIn.md index 7616bc80..b0fb12fe 100644 --- a/old_docs/API_docs_v42/methods/auth_signIn.md +++ b/old_docs/API_docs_v42/methods/auth_signIn.md @@ -22,10 +22,10 @@ description: auth.signIn parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/auth_signUp.md b/old_docs/API_docs_v42/methods/auth_signUp.md index f9c72d64..6f92b4f7 100644 --- a/old_docs/API_docs_v42/methods/auth_signUp.md +++ b/old_docs/API_docs_v42/methods/auth_signUp.md @@ -24,10 +24,10 @@ description: auth.signUp parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/channels_checkUsername.md b/old_docs/API_docs_v42/methods/channels_checkUsername.md index 82990d05..298b8e35 100644 --- a/old_docs/API_docs_v42/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v42/methods/channels_checkUsername.md @@ -21,10 +21,10 @@ description: channels.checkUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/channels_createChannel.md b/old_docs/API_docs_v42/methods/channels_createChannel.md index b5ffa159..207c60e9 100644 --- a/old_docs/API_docs_v42/methods/channels_createChannel.md +++ b/old_docs/API_docs_v42/methods/channels_createChannel.md @@ -23,10 +23,10 @@ description: channels.createChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/channels_deleteChannel.md b/old_docs/API_docs_v42/methods/channels_deleteChannel.md index c1eba22f..825882ab 100644 --- a/old_docs/API_docs_v42/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v42/methods/channels_deleteChannel.md @@ -20,10 +20,10 @@ description: channels.deleteChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/channels_deleteMessages.md b/old_docs/API_docs_v42/methods/channels_deleteMessages.md index e2e5e2bb..14fe6256 100644 --- a/old_docs/API_docs_v42/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v42/methods/channels_deleteMessages.md @@ -21,10 +21,10 @@ description: channels.deleteMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v42/methods/channels_deleteUserHistory.md index d3feb071..c485126f 100644 --- a/old_docs/API_docs_v42/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v42/methods/channels_deleteUserHistory.md @@ -21,10 +21,10 @@ description: channels.deleteUserHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/channels_editAbout.md b/old_docs/API_docs_v42/methods/channels_editAbout.md index 12d9df80..87c1a2c0 100644 --- a/old_docs/API_docs_v42/methods/channels_editAbout.md +++ b/old_docs/API_docs_v42/methods/channels_editAbout.md @@ -21,10 +21,10 @@ description: channels.editAbout parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/channels_editAdmin.md b/old_docs/API_docs_v42/methods/channels_editAdmin.md index 1e488778..48042957 100644 --- a/old_docs/API_docs_v42/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v42/methods/channels_editAdmin.md @@ -22,10 +22,10 @@ description: channels.editAdmin parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/channels_editPhoto.md b/old_docs/API_docs_v42/methods/channels_editPhoto.md index 9c0d0fe0..caea3df6 100644 --- a/old_docs/API_docs_v42/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v42/methods/channels_editPhoto.md @@ -21,10 +21,10 @@ description: channels.editPhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/channels_editTitle.md b/old_docs/API_docs_v42/methods/channels_editTitle.md index 057c7772..6f05ed61 100644 --- a/old_docs/API_docs_v42/methods/channels_editTitle.md +++ b/old_docs/API_docs_v42/methods/channels_editTitle.md @@ -21,10 +21,10 @@ description: channels.editTitle parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/channels_exportInvite.md b/old_docs/API_docs_v42/methods/channels_exportInvite.md index c5fa1bf9..7483038b 100644 --- a/old_docs/API_docs_v42/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v42/methods/channels_exportInvite.md @@ -20,10 +20,10 @@ description: channels.exportInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/channels_getChannels.md b/old_docs/API_docs_v42/methods/channels_getChannels.md index 24b94c8f..004f7b7e 100644 --- a/old_docs/API_docs_v42/methods/channels_getChannels.md +++ b/old_docs/API_docs_v42/methods/channels_getChannels.md @@ -20,10 +20,10 @@ description: channels.getChannels parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/channels_getDialogs.md b/old_docs/API_docs_v42/methods/channels_getDialogs.md index fbbb59a5..847a23b3 100644 --- a/old_docs/API_docs_v42/methods/channels_getDialogs.md +++ b/old_docs/API_docs_v42/methods/channels_getDialogs.md @@ -21,10 +21,10 @@ description: channels.getDialogs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/channels_getFullChannel.md b/old_docs/API_docs_v42/methods/channels_getFullChannel.md index 8bf78cd9..37abd094 100644 --- a/old_docs/API_docs_v42/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v42/methods/channels_getFullChannel.md @@ -20,10 +20,10 @@ description: channels.getFullChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/channels_getImportantHistory.md b/old_docs/API_docs_v42/methods/channels_getImportantHistory.md index 536f0244..e125fc2c 100644 --- a/old_docs/API_docs_v42/methods/channels_getImportantHistory.md +++ b/old_docs/API_docs_v42/methods/channels_getImportantHistory.md @@ -25,10 +25,10 @@ description: channels.getImportantHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/channels_getMessages.md b/old_docs/API_docs_v42/methods/channels_getMessages.md index 8204bf26..3aca181e 100644 --- a/old_docs/API_docs_v42/methods/channels_getMessages.md +++ b/old_docs/API_docs_v42/methods/channels_getMessages.md @@ -21,10 +21,10 @@ description: channels.getMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/channels_getParticipant.md b/old_docs/API_docs_v42/methods/channels_getParticipant.md index 7b685913..6bb9339e 100644 --- a/old_docs/API_docs_v42/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v42/methods/channels_getParticipant.md @@ -21,10 +21,10 @@ description: channels.getParticipant parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/channels_getParticipants.md b/old_docs/API_docs_v42/methods/channels_getParticipants.md index 6ee31676..51ac2c09 100644 --- a/old_docs/API_docs_v42/methods/channels_getParticipants.md +++ b/old_docs/API_docs_v42/methods/channels_getParticipants.md @@ -23,10 +23,10 @@ description: channels.getParticipants parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/channels_inviteToChannel.md b/old_docs/API_docs_v42/methods/channels_inviteToChannel.md index 4b4985a4..57581c7a 100644 --- a/old_docs/API_docs_v42/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v42/methods/channels_inviteToChannel.md @@ -21,10 +21,10 @@ description: channels.inviteToChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/channels_joinChannel.md b/old_docs/API_docs_v42/methods/channels_joinChannel.md index 97fd5417..359333fd 100644 --- a/old_docs/API_docs_v42/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v42/methods/channels_joinChannel.md @@ -20,10 +20,10 @@ description: channels.joinChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/channels_kickFromChannel.md b/old_docs/API_docs_v42/methods/channels_kickFromChannel.md index cf5a3ebc..930902a3 100644 --- a/old_docs/API_docs_v42/methods/channels_kickFromChannel.md +++ b/old_docs/API_docs_v42/methods/channels_kickFromChannel.md @@ -22,10 +22,10 @@ description: channels.kickFromChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/channels_leaveChannel.md b/old_docs/API_docs_v42/methods/channels_leaveChannel.md index 69dc1852..a10d17e7 100644 --- a/old_docs/API_docs_v42/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v42/methods/channels_leaveChannel.md @@ -20,10 +20,10 @@ description: channels.leaveChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/channels_readHistory.md b/old_docs/API_docs_v42/methods/channels_readHistory.md index 87906417..104a7b8f 100644 --- a/old_docs/API_docs_v42/methods/channels_readHistory.md +++ b/old_docs/API_docs_v42/methods/channels_readHistory.md @@ -21,10 +21,10 @@ description: channels.readHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/channels_reportSpam.md b/old_docs/API_docs_v42/methods/channels_reportSpam.md index dc8542f2..9e3e13ac 100644 --- a/old_docs/API_docs_v42/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v42/methods/channels_reportSpam.md @@ -22,10 +22,10 @@ description: channels.reportSpam parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/channels_toggleComments.md b/old_docs/API_docs_v42/methods/channels_toggleComments.md index eaaeb720..31873eb9 100644 --- a/old_docs/API_docs_v42/methods/channels_toggleComments.md +++ b/old_docs/API_docs_v42/methods/channels_toggleComments.md @@ -21,10 +21,10 @@ description: channels.toggleComments parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/channels_updateUsername.md b/old_docs/API_docs_v42/methods/channels_updateUsername.md index ebb03507..801bc972 100644 --- a/old_docs/API_docs_v42/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v42/methods/channels_updateUsername.md @@ -21,10 +21,10 @@ description: channels.updateUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/contacts_block.md b/old_docs/API_docs_v42/methods/contacts_block.md index b809b15c..f512adcc 100644 --- a/old_docs/API_docs_v42/methods/contacts_block.md +++ b/old_docs/API_docs_v42/methods/contacts_block.md @@ -20,10 +20,10 @@ description: contacts.block parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/contacts_deleteContact.md b/old_docs/API_docs_v42/methods/contacts_deleteContact.md index 18ef51f8..a3e8f63d 100644 --- a/old_docs/API_docs_v42/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v42/methods/contacts_deleteContact.md @@ -20,10 +20,10 @@ description: contacts.deleteContact parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/contacts_deleteContacts.md b/old_docs/API_docs_v42/methods/contacts_deleteContacts.md index 40672188..46e251eb 100644 --- a/old_docs/API_docs_v42/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v42/methods/contacts_deleteContacts.md @@ -20,10 +20,10 @@ description: contacts.deleteContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/contacts_exportCard.md b/old_docs/API_docs_v42/methods/contacts_exportCard.md index 4145d246..f7ec0015 100644 --- a/old_docs/API_docs_v42/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v42/methods/contacts_exportCard.md @@ -15,10 +15,10 @@ description: contacts.exportCard parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/contacts_getBlocked.md b/old_docs/API_docs_v42/methods/contacts_getBlocked.md index 50172d03..0fc72dba 100644 --- a/old_docs/API_docs_v42/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v42/methods/contacts_getBlocked.md @@ -21,10 +21,10 @@ description: contacts.getBlocked parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/contacts_getContacts.md b/old_docs/API_docs_v42/methods/contacts_getContacts.md index 0e6f22e9..656821e0 100644 --- a/old_docs/API_docs_v42/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v42/methods/contacts_getContacts.md @@ -20,10 +20,10 @@ description: contacts.getContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/contacts_getStatuses.md b/old_docs/API_docs_v42/methods/contacts_getStatuses.md index b734f529..ee806f2d 100644 --- a/old_docs/API_docs_v42/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v42/methods/contacts_getStatuses.md @@ -15,10 +15,10 @@ description: contacts.getStatuses parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/contacts_getSuggested.md b/old_docs/API_docs_v42/methods/contacts_getSuggested.md index a49b5913..4cd124e7 100644 --- a/old_docs/API_docs_v42/methods/contacts_getSuggested.md +++ b/old_docs/API_docs_v42/methods/contacts_getSuggested.md @@ -20,10 +20,10 @@ description: contacts.getSuggested parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/contacts_importCard.md b/old_docs/API_docs_v42/methods/contacts_importCard.md index 6b2c612e..162ff4f3 100644 --- a/old_docs/API_docs_v42/methods/contacts_importCard.md +++ b/old_docs/API_docs_v42/methods/contacts_importCard.md @@ -20,10 +20,10 @@ description: contacts.importCard parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/contacts_importContacts.md b/old_docs/API_docs_v42/methods/contacts_importContacts.md index 2426f53c..48412e99 100644 --- a/old_docs/API_docs_v42/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v42/methods/contacts_importContacts.md @@ -21,10 +21,10 @@ description: contacts.importContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/contacts_resolveUsername.md b/old_docs/API_docs_v42/methods/contacts_resolveUsername.md index 0ea67c6f..b847fbe9 100644 --- a/old_docs/API_docs_v42/methods/contacts_resolveUsername.md +++ b/old_docs/API_docs_v42/methods/contacts_resolveUsername.md @@ -20,10 +20,10 @@ description: contacts.resolveUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/contacts_search.md b/old_docs/API_docs_v42/methods/contacts_search.md index 00a39519..9a351db7 100644 --- a/old_docs/API_docs_v42/methods/contacts_search.md +++ b/old_docs/API_docs_v42/methods/contacts_search.md @@ -21,10 +21,10 @@ description: contacts.search parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/contacts_unblock.md b/old_docs/API_docs_v42/methods/contacts_unblock.md index 63f41483..6d739c9b 100644 --- a/old_docs/API_docs_v42/methods/contacts_unblock.md +++ b/old_docs/API_docs_v42/methods/contacts_unblock.md @@ -20,10 +20,10 @@ description: contacts.unblock parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/help_getAppChangelog.md b/old_docs/API_docs_v42/methods/help_getAppChangelog.md index bfe48334..1b52c928 100644 --- a/old_docs/API_docs_v42/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v42/methods/help_getAppChangelog.md @@ -23,10 +23,10 @@ description: help.getAppChangelog parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/help_getAppUpdate.md b/old_docs/API_docs_v42/methods/help_getAppUpdate.md index 7be3b374..9559c840 100644 --- a/old_docs/API_docs_v42/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v42/methods/help_getAppUpdate.md @@ -23,10 +23,10 @@ description: help.getAppUpdate parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/help_getConfig.md b/old_docs/API_docs_v42/methods/help_getConfig.md index cb9c4f1c..9481a0c0 100644 --- a/old_docs/API_docs_v42/methods/help_getConfig.md +++ b/old_docs/API_docs_v42/methods/help_getConfig.md @@ -15,10 +15,10 @@ description: help.getConfig parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/help_getInviteText.md b/old_docs/API_docs_v42/methods/help_getInviteText.md index f265f8d3..14692791 100644 --- a/old_docs/API_docs_v42/methods/help_getInviteText.md +++ b/old_docs/API_docs_v42/methods/help_getInviteText.md @@ -20,10 +20,10 @@ description: help.getInviteText parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/help_getNearestDc.md b/old_docs/API_docs_v42/methods/help_getNearestDc.md index f491ae0c..bb6b1883 100644 --- a/old_docs/API_docs_v42/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v42/methods/help_getNearestDc.md @@ -15,10 +15,10 @@ description: help.getNearestDc parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/help_getSupport.md b/old_docs/API_docs_v42/methods/help_getSupport.md index 03574c6f..0348089a 100644 --- a/old_docs/API_docs_v42/methods/help_getSupport.md +++ b/old_docs/API_docs_v42/methods/help_getSupport.md @@ -15,10 +15,10 @@ description: help.getSupport parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/help_saveAppLog.md b/old_docs/API_docs_v42/methods/help_saveAppLog.md index 3887ccc2..59b92601 100644 --- a/old_docs/API_docs_v42/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v42/methods/help_saveAppLog.md @@ -20,10 +20,10 @@ description: help.saveAppLog parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/initConnection.md b/old_docs/API_docs_v42/methods/initConnection.md index 1c946720..aa89066c 100644 --- a/old_docs/API_docs_v42/methods/initConnection.md +++ b/old_docs/API_docs_v42/methods/initConnection.md @@ -25,10 +25,10 @@ description: initConnection parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/invokeAfterMsg.md b/old_docs/API_docs_v42/methods/invokeAfterMsg.md index 1b35a238..97c4f1fb 100644 --- a/old_docs/API_docs_v42/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v42/methods/invokeAfterMsg.md @@ -21,10 +21,10 @@ description: invokeAfterMsg parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/invokeAfterMsgs.md b/old_docs/API_docs_v42/methods/invokeAfterMsgs.md index 164ab318..4e278ef1 100644 --- a/old_docs/API_docs_v42/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v42/methods/invokeAfterMsgs.md @@ -21,10 +21,10 @@ description: invokeAfterMsgs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/invokeWithLayer.md b/old_docs/API_docs_v42/methods/invokeWithLayer.md index 497cc285..72fe47ec 100644 --- a/old_docs/API_docs_v42/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v42/methods/invokeWithLayer.md @@ -21,10 +21,10 @@ description: invokeWithLayer parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v42/methods/invokeWithoutUpdates.md index cbdabb07..5151b786 100644 --- a/old_docs/API_docs_v42/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v42/methods/invokeWithoutUpdates.md @@ -20,10 +20,10 @@ description: invokeWithoutUpdates parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/messages_acceptEncryption.md b/old_docs/API_docs_v42/methods/messages_acceptEncryption.md index d41beb91..e016f5d3 100644 --- a/old_docs/API_docs_v42/methods/messages_acceptEncryption.md +++ b/old_docs/API_docs_v42/methods/messages_acceptEncryption.md @@ -22,10 +22,10 @@ description: messages.acceptEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/messages_addChatUser.md b/old_docs/API_docs_v42/methods/messages_addChatUser.md index 13d17a3e..df2cb1a5 100644 --- a/old_docs/API_docs_v42/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v42/methods/messages_addChatUser.md @@ -22,10 +22,10 @@ description: messages.addChatUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/messages_checkChatInvite.md b/old_docs/API_docs_v42/methods/messages_checkChatInvite.md index 0a3a4f84..7670727b 100644 --- a/old_docs/API_docs_v42/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v42/methods/messages_checkChatInvite.md @@ -20,10 +20,10 @@ description: messages.checkChatInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/messages_createChat.md b/old_docs/API_docs_v42/methods/messages_createChat.md index 0ab3101a..2fc5631c 100644 --- a/old_docs/API_docs_v42/methods/messages_createChat.md +++ b/old_docs/API_docs_v42/methods/messages_createChat.md @@ -21,10 +21,10 @@ description: messages.createChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/messages_deleteChatUser.md b/old_docs/API_docs_v42/methods/messages_deleteChatUser.md index ed736ebd..6895649f 100644 --- a/old_docs/API_docs_v42/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v42/methods/messages_deleteChatUser.md @@ -21,10 +21,10 @@ description: messages.deleteChatUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/messages_deleteHistory.md b/old_docs/API_docs_v42/methods/messages_deleteHistory.md index 64c060dc..8517ee62 100644 --- a/old_docs/API_docs_v42/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v42/methods/messages_deleteHistory.md @@ -21,10 +21,10 @@ description: messages.deleteHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/messages_deleteMessages.md b/old_docs/API_docs_v42/methods/messages_deleteMessages.md index 5997c2ed..d9d28886 100644 --- a/old_docs/API_docs_v42/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v42/methods/messages_deleteMessages.md @@ -20,10 +20,10 @@ description: messages.deleteMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/messages_discardEncryption.md b/old_docs/API_docs_v42/methods/messages_discardEncryption.md index ebc1ace5..f237c986 100644 --- a/old_docs/API_docs_v42/methods/messages_discardEncryption.md +++ b/old_docs/API_docs_v42/methods/messages_discardEncryption.md @@ -20,10 +20,10 @@ description: messages.discardEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/messages_editChatAdmin.md b/old_docs/API_docs_v42/methods/messages_editChatAdmin.md index 38bc8de0..74f5a39f 100644 --- a/old_docs/API_docs_v42/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v42/methods/messages_editChatAdmin.md @@ -22,10 +22,10 @@ description: messages.editChatAdmin parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/messages_editChatPhoto.md b/old_docs/API_docs_v42/methods/messages_editChatPhoto.md index e3cbf492..0396c74b 100644 --- a/old_docs/API_docs_v42/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v42/methods/messages_editChatPhoto.md @@ -21,10 +21,10 @@ description: messages.editChatPhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/messages_editChatTitle.md b/old_docs/API_docs_v42/methods/messages_editChatTitle.md index 60eae01c..fabe9c87 100644 --- a/old_docs/API_docs_v42/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v42/methods/messages_editChatTitle.md @@ -21,10 +21,10 @@ description: messages.editChatTitle parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/messages_exportChatInvite.md b/old_docs/API_docs_v42/methods/messages_exportChatInvite.md index 3efc9bf7..b96e7498 100644 --- a/old_docs/API_docs_v42/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v42/methods/messages_exportChatInvite.md @@ -20,10 +20,10 @@ description: messages.exportChatInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/messages_forwardMessage.md b/old_docs/API_docs_v42/methods/messages_forwardMessage.md index a95d259a..ced2cb5b 100644 --- a/old_docs/API_docs_v42/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v42/methods/messages_forwardMessage.md @@ -21,10 +21,10 @@ description: messages.forwardMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/messages_forwardMessages.md b/old_docs/API_docs_v42/methods/messages_forwardMessages.md index a6add4d1..80d98650 100644 --- a/old_docs/API_docs_v42/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v42/methods/messages_forwardMessages.md @@ -23,10 +23,10 @@ description: messages.forwardMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/messages_getAllStickers.md b/old_docs/API_docs_v42/methods/messages_getAllStickers.md index bc696cd6..34254773 100644 --- a/old_docs/API_docs_v42/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v42/methods/messages_getAllStickers.md @@ -20,10 +20,10 @@ description: messages.getAllStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/messages_getChats.md b/old_docs/API_docs_v42/methods/messages_getChats.md index ad63744b..be57718e 100644 --- a/old_docs/API_docs_v42/methods/messages_getChats.md +++ b/old_docs/API_docs_v42/methods/messages_getChats.md @@ -20,10 +20,10 @@ description: messages.getChats parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/messages_getDhConfig.md b/old_docs/API_docs_v42/methods/messages_getDhConfig.md index bcebea55..21b37f21 100644 --- a/old_docs/API_docs_v42/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v42/methods/messages_getDhConfig.md @@ -21,10 +21,10 @@ description: messages.getDhConfig parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/messages_getDialogs.md b/old_docs/API_docs_v42/methods/messages_getDialogs.md index 07e2b246..ca93a52a 100644 --- a/old_docs/API_docs_v42/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v42/methods/messages_getDialogs.md @@ -23,10 +23,10 @@ description: messages.getDialogs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/messages_getFullChat.md b/old_docs/API_docs_v42/methods/messages_getFullChat.md index f3c8223a..10d938ae 100644 --- a/old_docs/API_docs_v42/methods/messages_getFullChat.md +++ b/old_docs/API_docs_v42/methods/messages_getFullChat.md @@ -20,10 +20,10 @@ description: messages.getFullChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/messages_getHistory.md b/old_docs/API_docs_v42/methods/messages_getHistory.md index 84324235..409526cc 100644 --- a/old_docs/API_docs_v42/methods/messages_getHistory.md +++ b/old_docs/API_docs_v42/methods/messages_getHistory.md @@ -25,10 +25,10 @@ description: messages.getHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/messages_getMessages.md b/old_docs/API_docs_v42/methods/messages_getMessages.md index 224df903..e669bcf8 100644 --- a/old_docs/API_docs_v42/methods/messages_getMessages.md +++ b/old_docs/API_docs_v42/methods/messages_getMessages.md @@ -20,10 +20,10 @@ description: messages.getMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/messages_getMessagesViews.md b/old_docs/API_docs_v42/methods/messages_getMessagesViews.md index d162b668..f27cdb36 100644 --- a/old_docs/API_docs_v42/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v42/methods/messages_getMessagesViews.md @@ -22,10 +22,10 @@ description: messages.getMessagesViews parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/messages_getStickerSet.md b/old_docs/API_docs_v42/methods/messages_getStickerSet.md index 2ec2fa5d..561eec32 100644 --- a/old_docs/API_docs_v42/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v42/methods/messages_getStickerSet.md @@ -20,10 +20,10 @@ description: messages.getStickerSet parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/messages_getStickers.md b/old_docs/API_docs_v42/methods/messages_getStickers.md index 6730f586..e9aedd80 100644 --- a/old_docs/API_docs_v42/methods/messages_getStickers.md +++ b/old_docs/API_docs_v42/methods/messages_getStickers.md @@ -21,10 +21,10 @@ description: messages.getStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v42/methods/messages_getWebPagePreview.md index e2dd428d..a3d5fce3 100644 --- a/old_docs/API_docs_v42/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v42/methods/messages_getWebPagePreview.md @@ -20,10 +20,10 @@ description: messages.getWebPagePreview parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/messages_importChatInvite.md b/old_docs/API_docs_v42/methods/messages_importChatInvite.md index 250d076d..a4e9c052 100644 --- a/old_docs/API_docs_v42/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v42/methods/messages_importChatInvite.md @@ -20,10 +20,10 @@ description: messages.importChatInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/messages_installStickerSet.md b/old_docs/API_docs_v42/methods/messages_installStickerSet.md index f99d40b4..5180bcbd 100644 --- a/old_docs/API_docs_v42/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v42/methods/messages_installStickerSet.md @@ -21,10 +21,10 @@ description: messages.installStickerSet parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/messages_migrateChat.md b/old_docs/API_docs_v42/methods/messages_migrateChat.md index 5b1e375a..731dc904 100644 --- a/old_docs/API_docs_v42/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v42/methods/messages_migrateChat.md @@ -20,10 +20,10 @@ description: messages.migrateChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v42/methods/messages_readEncryptedHistory.md index 555bffe7..5bb05536 100644 --- a/old_docs/API_docs_v42/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v42/methods/messages_readEncryptedHistory.md @@ -21,10 +21,10 @@ description: messages.readEncryptedHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/messages_readHistory.md b/old_docs/API_docs_v42/methods/messages_readHistory.md index 1e2783ae..6bb29fef 100644 --- a/old_docs/API_docs_v42/methods/messages_readHistory.md +++ b/old_docs/API_docs_v42/methods/messages_readHistory.md @@ -21,10 +21,10 @@ description: messages.readHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/messages_readMessageContents.md b/old_docs/API_docs_v42/methods/messages_readMessageContents.md index ae75d612..829e7cc8 100644 --- a/old_docs/API_docs_v42/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v42/methods/messages_readMessageContents.md @@ -20,10 +20,10 @@ description: messages.readMessageContents parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/messages_receivedMessages.md b/old_docs/API_docs_v42/methods/messages_receivedMessages.md index ffeaeed7..05a229b6 100644 --- a/old_docs/API_docs_v42/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v42/methods/messages_receivedMessages.md @@ -20,10 +20,10 @@ description: messages.receivedMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/messages_receivedQueue.md b/old_docs/API_docs_v42/methods/messages_receivedQueue.md index e514669c..d8bfae5e 100644 --- a/old_docs/API_docs_v42/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v42/methods/messages_receivedQueue.md @@ -20,10 +20,10 @@ description: messages.receivedQueue parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/messages_reportSpam.md b/old_docs/API_docs_v42/methods/messages_reportSpam.md index 56975b9d..da747585 100644 --- a/old_docs/API_docs_v42/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v42/methods/messages_reportSpam.md @@ -20,10 +20,10 @@ description: messages.reportSpam parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/messages_requestEncryption.md b/old_docs/API_docs_v42/methods/messages_requestEncryption.md index e82fca54..99fe7ecf 100644 --- a/old_docs/API_docs_v42/methods/messages_requestEncryption.md +++ b/old_docs/API_docs_v42/methods/messages_requestEncryption.md @@ -21,10 +21,10 @@ description: messages.requestEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/messages_search.md b/old_docs/API_docs_v42/methods/messages_search.md index 9f1ab5ba..4a5c4bb9 100644 --- a/old_docs/API_docs_v42/methods/messages_search.md +++ b/old_docs/API_docs_v42/methods/messages_search.md @@ -28,10 +28,10 @@ description: messages.search parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/messages_searchGlobal.md b/old_docs/API_docs_v42/methods/messages_searchGlobal.md index aacdb99f..02d790e9 100644 --- a/old_docs/API_docs_v42/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v42/methods/messages_searchGlobal.md @@ -24,10 +24,10 @@ description: messages.searchGlobal parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/messages_sendBroadcast.md b/old_docs/API_docs_v42/methods/messages_sendBroadcast.md index 9194fdf1..b19bec57 100644 --- a/old_docs/API_docs_v42/methods/messages_sendBroadcast.md +++ b/old_docs/API_docs_v42/methods/messages_sendBroadcast.md @@ -22,10 +22,10 @@ description: messages.sendBroadcast parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/messages_sendEncrypted.md b/old_docs/API_docs_v42/methods/messages_sendEncrypted.md index f2c2c0c2..c3585580 100644 --- a/old_docs/API_docs_v42/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v42/methods/messages_sendEncrypted.md @@ -21,10 +21,10 @@ description: messages.sendEncrypted parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v42/methods/messages_sendEncryptedFile.md index a57a3dd8..40674df9 100644 --- a/old_docs/API_docs_v42/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v42/methods/messages_sendEncryptedFile.md @@ -22,10 +22,10 @@ description: messages.sendEncryptedFile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v42/methods/messages_sendEncryptedService.md index 4041c4d0..8bfee571 100644 --- a/old_docs/API_docs_v42/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v42/methods/messages_sendEncryptedService.md @@ -21,10 +21,10 @@ description: messages.sendEncryptedService parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/messages_sendMedia.md b/old_docs/API_docs_v42/methods/messages_sendMedia.md index 01e66c35..f9e9b49a 100644 --- a/old_docs/API_docs_v42/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v42/methods/messages_sendMedia.md @@ -24,10 +24,10 @@ description: messages.sendMedia parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; @@ -46,3 +46,9 @@ Or, if you're into Lua: Updates = messages.sendMedia({broadcast=Bool, peer=InputPeer, reply_to_msg_id=int, media=InputMedia, reply_markup=ReplyMarkup, }) ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v42/methods/messages_sendMessage.md b/old_docs/API_docs_v42/methods/messages_sendMessage.md index 51e032ca..074cb877 100644 --- a/old_docs/API_docs_v42/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v42/methods/messages_sendMessage.md @@ -27,10 +27,10 @@ description: messages.sendMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; @@ -50,6 +50,12 @@ Updates = messages.sendMessage({no_webpage=Bool, broadcast=Bool, peer=InputPeer, ``` +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + + ## Usage of parse_mode: Set parse_mode to html to enable HTML parsing of the message. diff --git a/old_docs/API_docs_v42/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v42/methods/messages_setEncryptedTyping.md index 95364d49..ae718bba 100644 --- a/old_docs/API_docs_v42/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v42/methods/messages_setEncryptedTyping.md @@ -21,10 +21,10 @@ description: messages.setEncryptedTyping parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/messages_setTyping.md b/old_docs/API_docs_v42/methods/messages_setTyping.md index 0ce5743d..75903c68 100644 --- a/old_docs/API_docs_v42/methods/messages_setTyping.md +++ b/old_docs/API_docs_v42/methods/messages_setTyping.md @@ -21,10 +21,10 @@ description: messages.setTyping parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/messages_startBot.md b/old_docs/API_docs_v42/methods/messages_startBot.md index 5f563224..bf79b142 100644 --- a/old_docs/API_docs_v42/methods/messages_startBot.md +++ b/old_docs/API_docs_v42/methods/messages_startBot.md @@ -22,10 +22,10 @@ description: messages.startBot parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v42/methods/messages_toggleChatAdmins.md index 0ad6ba92..05d74e5a 100644 --- a/old_docs/API_docs_v42/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v42/methods/messages_toggleChatAdmins.md @@ -21,10 +21,10 @@ description: messages.toggleChatAdmins parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v42/methods/messages_uninstallStickerSet.md index 97fff059..5202b086 100644 --- a/old_docs/API_docs_v42/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v42/methods/messages_uninstallStickerSet.md @@ -20,10 +20,10 @@ description: messages.uninstallStickerSet parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/photos_deletePhotos.md b/old_docs/API_docs_v42/methods/photos_deletePhotos.md index 6a717835..2d27b700 100644 --- a/old_docs/API_docs_v42/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v42/methods/photos_deletePhotos.md @@ -20,10 +20,10 @@ description: photos.deletePhotos parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/photos_getUserPhotos.md b/old_docs/API_docs_v42/methods/photos_getUserPhotos.md index 4aa96dfa..0f50ee6f 100644 --- a/old_docs/API_docs_v42/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v42/methods/photos_getUserPhotos.md @@ -23,10 +23,10 @@ description: photos.getUserPhotos parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v42/methods/photos_updateProfilePhoto.md index f18669cc..9ae9c59e 100644 --- a/old_docs/API_docs_v42/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v42/methods/photos_updateProfilePhoto.md @@ -21,10 +21,10 @@ description: photos.updateProfilePhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v42/methods/photos_uploadProfilePhoto.md index 3eb7a10c..567eb363 100644 --- a/old_docs/API_docs_v42/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v42/methods/photos_uploadProfilePhoto.md @@ -23,10 +23,10 @@ description: photos.uploadProfilePhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/updates_getChannelDifference.md b/old_docs/API_docs_v42/methods/updates_getChannelDifference.md index 1add786f..d3b725f4 100644 --- a/old_docs/API_docs_v42/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v42/methods/updates_getChannelDifference.md @@ -23,10 +23,10 @@ description: updates.getChannelDifference parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/updates_getDifference.md b/old_docs/API_docs_v42/methods/updates_getDifference.md index c7ae5664..719a7a02 100644 --- a/old_docs/API_docs_v42/methods/updates_getDifference.md +++ b/old_docs/API_docs_v42/methods/updates_getDifference.md @@ -22,10 +22,10 @@ description: updates.getDifference parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/updates_getState.md b/old_docs/API_docs_v42/methods/updates_getState.md index 5612ca79..53fc0c16 100644 --- a/old_docs/API_docs_v42/methods/updates_getState.md +++ b/old_docs/API_docs_v42/methods/updates_getState.md @@ -15,10 +15,10 @@ description: updates.getState parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/upload_getFile.md b/old_docs/API_docs_v42/methods/upload_getFile.md index a2f3d961..ee35140a 100644 --- a/old_docs/API_docs_v42/methods/upload_getFile.md +++ b/old_docs/API_docs_v42/methods/upload_getFile.md @@ -22,10 +22,10 @@ description: upload.getFile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/upload_saveBigFilePart.md b/old_docs/API_docs_v42/methods/upload_saveBigFilePart.md index 03641055..503d1b5c 100644 --- a/old_docs/API_docs_v42/methods/upload_saveBigFilePart.md +++ b/old_docs/API_docs_v42/methods/upload_saveBigFilePart.md @@ -23,10 +23,10 @@ description: upload.saveBigFilePart parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/upload_saveFilePart.md b/old_docs/API_docs_v42/methods/upload_saveFilePart.md index 192412c8..d7f745aa 100644 --- a/old_docs/API_docs_v42/methods/upload_saveFilePart.md +++ b/old_docs/API_docs_v42/methods/upload_saveFilePart.md @@ -22,10 +22,10 @@ description: upload.saveFilePart parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/users_getFullUser.md b/old_docs/API_docs_v42/methods/users_getFullUser.md index 864ae387..bcba7f3d 100644 --- a/old_docs/API_docs_v42/methods/users_getFullUser.md +++ b/old_docs/API_docs_v42/methods/users_getFullUser.md @@ -20,10 +20,10 @@ description: users.getFullUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v42/methods/users_getUsers.md b/old_docs/API_docs_v42/methods/users_getUsers.md index 34816478..e03fd2d6 100644 --- a/old_docs/API_docs_v42/methods/users_getUsers.md +++ b/old_docs/API_docs_v42/methods/users_getUsers.md @@ -20,10 +20,10 @@ description: users.getUsers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/constructors/message.md b/old_docs/API_docs_v44/constructors/message.md index 3fffc9df..62a63782 100644 --- a/old_docs/API_docs_v44/constructors/message.md +++ b/old_docs/API_docs_v44/constructors/message.md @@ -48,3 +48,9 @@ message={_='message', unread=Bool, out=Bool, mentioned=Bool, media_unread=Bool, ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v44/methods/account_changePhone.md b/old_docs/API_docs_v44/methods/account_changePhone.md index dc3e0427..6691a743 100644 --- a/old_docs/API_docs_v44/methods/account_changePhone.md +++ b/old_docs/API_docs_v44/methods/account_changePhone.md @@ -22,10 +22,10 @@ description: account.changePhone parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/account_checkUsername.md b/old_docs/API_docs_v44/methods/account_checkUsername.md index dc13041c..e954ca99 100644 --- a/old_docs/API_docs_v44/methods/account_checkUsername.md +++ b/old_docs/API_docs_v44/methods/account_checkUsername.md @@ -20,10 +20,10 @@ description: account.checkUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/account_deleteAccount.md b/old_docs/API_docs_v44/methods/account_deleteAccount.md index 4199572b..0d0a6204 100644 --- a/old_docs/API_docs_v44/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v44/methods/account_deleteAccount.md @@ -20,10 +20,10 @@ description: account.deleteAccount parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/account_getAccountTTL.md b/old_docs/API_docs_v44/methods/account_getAccountTTL.md index ff4171df..e284a80e 100644 --- a/old_docs/API_docs_v44/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v44/methods/account_getAccountTTL.md @@ -15,10 +15,10 @@ description: account.getAccountTTL parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/account_getAuthorizations.md b/old_docs/API_docs_v44/methods/account_getAuthorizations.md index 26f755d4..ee5a00d6 100644 --- a/old_docs/API_docs_v44/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v44/methods/account_getAuthorizations.md @@ -15,10 +15,10 @@ description: account.getAuthorizations parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/account_getNotifySettings.md b/old_docs/API_docs_v44/methods/account_getNotifySettings.md index 817f201a..2e7fd9ba 100644 --- a/old_docs/API_docs_v44/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v44/methods/account_getNotifySettings.md @@ -20,10 +20,10 @@ description: account.getNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/account_getPassword.md b/old_docs/API_docs_v44/methods/account_getPassword.md index d7491fec..424d3710 100644 --- a/old_docs/API_docs_v44/methods/account_getPassword.md +++ b/old_docs/API_docs_v44/methods/account_getPassword.md @@ -15,10 +15,10 @@ description: account.getPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/account_getPasswordSettings.md b/old_docs/API_docs_v44/methods/account_getPasswordSettings.md index 5be9a523..3e72e398 100644 --- a/old_docs/API_docs_v44/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v44/methods/account_getPasswordSettings.md @@ -20,10 +20,10 @@ description: account.getPasswordSettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/account_getPrivacy.md b/old_docs/API_docs_v44/methods/account_getPrivacy.md index 649019d5..26137fd3 100644 --- a/old_docs/API_docs_v44/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v44/methods/account_getPrivacy.md @@ -20,10 +20,10 @@ description: account.getPrivacy parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/account_getWallPapers.md b/old_docs/API_docs_v44/methods/account_getWallPapers.md index 9eb0182a..a44ea777 100644 --- a/old_docs/API_docs_v44/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v44/methods/account_getWallPapers.md @@ -15,10 +15,10 @@ description: account.getWallPapers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/account_registerDevice.md b/old_docs/API_docs_v44/methods/account_registerDevice.md index 168dcba0..70cadfab 100644 --- a/old_docs/API_docs_v44/methods/account_registerDevice.md +++ b/old_docs/API_docs_v44/methods/account_registerDevice.md @@ -26,10 +26,10 @@ description: account.registerDevice parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/account_reportPeer.md b/old_docs/API_docs_v44/methods/account_reportPeer.md index bb8dea54..7d913217 100644 --- a/old_docs/API_docs_v44/methods/account_reportPeer.md +++ b/old_docs/API_docs_v44/methods/account_reportPeer.md @@ -21,10 +21,10 @@ description: account.reportPeer parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/account_resetAuthorization.md b/old_docs/API_docs_v44/methods/account_resetAuthorization.md index aaf5a660..2c7c5bc4 100644 --- a/old_docs/API_docs_v44/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v44/methods/account_resetAuthorization.md @@ -20,10 +20,10 @@ description: account.resetAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/account_resetNotifySettings.md b/old_docs/API_docs_v44/methods/account_resetNotifySettings.md index 5a6a4c95..aa01dfce 100644 --- a/old_docs/API_docs_v44/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v44/methods/account_resetNotifySettings.md @@ -15,10 +15,10 @@ description: account.resetNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v44/methods/account_sendChangePhoneCode.md index 98110148..4ccc4045 100644 --- a/old_docs/API_docs_v44/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v44/methods/account_sendChangePhoneCode.md @@ -20,10 +20,10 @@ description: account.sendChangePhoneCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/account_setAccountTTL.md b/old_docs/API_docs_v44/methods/account_setAccountTTL.md index 6ae8d70e..460ae89a 100644 --- a/old_docs/API_docs_v44/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v44/methods/account_setAccountTTL.md @@ -20,10 +20,10 @@ description: account.setAccountTTL parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/account_setPrivacy.md b/old_docs/API_docs_v44/methods/account_setPrivacy.md index e438ca16..f05356db 100644 --- a/old_docs/API_docs_v44/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v44/methods/account_setPrivacy.md @@ -21,10 +21,10 @@ description: account.setPrivacy parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/account_unregisterDevice.md b/old_docs/API_docs_v44/methods/account_unregisterDevice.md index 89ab99a8..1063fad3 100644 --- a/old_docs/API_docs_v44/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v44/methods/account_unregisterDevice.md @@ -21,10 +21,10 @@ description: account.unregisterDevice parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v44/methods/account_updateDeviceLocked.md index 3fe6b8b6..506d974f 100644 --- a/old_docs/API_docs_v44/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v44/methods/account_updateDeviceLocked.md @@ -20,10 +20,10 @@ description: account.updateDeviceLocked parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/account_updateNotifySettings.md b/old_docs/API_docs_v44/methods/account_updateNotifySettings.md index 7eea8202..cb90a39f 100644 --- a/old_docs/API_docs_v44/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v44/methods/account_updateNotifySettings.md @@ -21,10 +21,10 @@ description: account.updateNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v44/methods/account_updatePasswordSettings.md index 56e4d724..ad1a930d 100644 --- a/old_docs/API_docs_v44/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v44/methods/account_updatePasswordSettings.md @@ -21,10 +21,10 @@ description: account.updatePasswordSettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/account_updateProfile.md b/old_docs/API_docs_v44/methods/account_updateProfile.md index fce1c8c9..cf8374de 100644 --- a/old_docs/API_docs_v44/methods/account_updateProfile.md +++ b/old_docs/API_docs_v44/methods/account_updateProfile.md @@ -21,10 +21,10 @@ description: account.updateProfile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/account_updateStatus.md b/old_docs/API_docs_v44/methods/account_updateStatus.md index f2fd751e..ac260312 100644 --- a/old_docs/API_docs_v44/methods/account_updateStatus.md +++ b/old_docs/API_docs_v44/methods/account_updateStatus.md @@ -20,10 +20,10 @@ description: account.updateStatus parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/account_updateUsername.md b/old_docs/API_docs_v44/methods/account_updateUsername.md index b5e428e4..7daf43e0 100644 --- a/old_docs/API_docs_v44/methods/account_updateUsername.md +++ b/old_docs/API_docs_v44/methods/account_updateUsername.md @@ -20,10 +20,10 @@ description: account.updateUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v44/methods/auth_bindTempAuthKey.md index 87d0c7cf..55e083cd 100644 --- a/old_docs/API_docs_v44/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v44/methods/auth_bindTempAuthKey.md @@ -23,10 +23,10 @@ description: auth.bindTempAuthKey parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/auth_checkPassword.md b/old_docs/API_docs_v44/methods/auth_checkPassword.md index 601146fc..9dcb706a 100644 --- a/old_docs/API_docs_v44/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v44/methods/auth_checkPassword.md @@ -20,10 +20,10 @@ description: auth.checkPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/auth_checkPhone.md b/old_docs/API_docs_v44/methods/auth_checkPhone.md index 2e4db690..ce137f9d 100644 --- a/old_docs/API_docs_v44/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v44/methods/auth_checkPhone.md @@ -20,10 +20,10 @@ description: auth.checkPhone parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/auth_exportAuthorization.md b/old_docs/API_docs_v44/methods/auth_exportAuthorization.md index a69f0301..bfd16433 100644 --- a/old_docs/API_docs_v44/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v44/methods/auth_exportAuthorization.md @@ -20,10 +20,10 @@ description: auth.exportAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/auth_importAuthorization.md b/old_docs/API_docs_v44/methods/auth_importAuthorization.md index a0e2e4b7..956f9a72 100644 --- a/old_docs/API_docs_v44/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v44/methods/auth_importAuthorization.md @@ -21,10 +21,10 @@ description: auth.importAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/auth_importBotAuthorization.md b/old_docs/API_docs_v44/methods/auth_importBotAuthorization.md index a78a5263..11d2f7f3 100644 --- a/old_docs/API_docs_v44/methods/auth_importBotAuthorization.md +++ b/old_docs/API_docs_v44/methods/auth_importBotAuthorization.md @@ -22,10 +22,10 @@ description: auth.importBotAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/auth_logOut.md b/old_docs/API_docs_v44/methods/auth_logOut.md index ac5bd8ae..5651f753 100644 --- a/old_docs/API_docs_v44/methods/auth_logOut.md +++ b/old_docs/API_docs_v44/methods/auth_logOut.md @@ -15,10 +15,10 @@ description: auth.logOut parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/auth_recoverPassword.md b/old_docs/API_docs_v44/methods/auth_recoverPassword.md index 9b7ebcfb..e253e7d9 100644 --- a/old_docs/API_docs_v44/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v44/methods/auth_recoverPassword.md @@ -20,10 +20,10 @@ description: auth.recoverPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v44/methods/auth_requestPasswordRecovery.md index 94c0aeff..2ae670eb 100644 --- a/old_docs/API_docs_v44/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v44/methods/auth_requestPasswordRecovery.md @@ -15,10 +15,10 @@ description: auth.requestPasswordRecovery parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v44/methods/auth_resetAuthorizations.md index f55e2e4d..9b324b42 100644 --- a/old_docs/API_docs_v44/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v44/methods/auth_resetAuthorizations.md @@ -15,10 +15,10 @@ description: auth.resetAuthorizations parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/auth_sendCall.md b/old_docs/API_docs_v44/methods/auth_sendCall.md index 3d44b1d2..584235b0 100644 --- a/old_docs/API_docs_v44/methods/auth_sendCall.md +++ b/old_docs/API_docs_v44/methods/auth_sendCall.md @@ -21,10 +21,10 @@ description: auth.sendCall parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/auth_sendCode.md b/old_docs/API_docs_v44/methods/auth_sendCode.md index 8c4387cf..58305712 100644 --- a/old_docs/API_docs_v44/methods/auth_sendCode.md +++ b/old_docs/API_docs_v44/methods/auth_sendCode.md @@ -24,10 +24,10 @@ description: auth.sendCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/auth_sendInvites.md b/old_docs/API_docs_v44/methods/auth_sendInvites.md index f81a5c7e..87cdc7e3 100644 --- a/old_docs/API_docs_v44/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v44/methods/auth_sendInvites.md @@ -21,10 +21,10 @@ description: auth.sendInvites parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/auth_sendSms.md b/old_docs/API_docs_v44/methods/auth_sendSms.md index ab652a6e..fb469f84 100644 --- a/old_docs/API_docs_v44/methods/auth_sendSms.md +++ b/old_docs/API_docs_v44/methods/auth_sendSms.md @@ -21,10 +21,10 @@ description: auth.sendSms parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/auth_signIn.md b/old_docs/API_docs_v44/methods/auth_signIn.md index 7616bc80..b0fb12fe 100644 --- a/old_docs/API_docs_v44/methods/auth_signIn.md +++ b/old_docs/API_docs_v44/methods/auth_signIn.md @@ -22,10 +22,10 @@ description: auth.signIn parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/auth_signUp.md b/old_docs/API_docs_v44/methods/auth_signUp.md index f9c72d64..6f92b4f7 100644 --- a/old_docs/API_docs_v44/methods/auth_signUp.md +++ b/old_docs/API_docs_v44/methods/auth_signUp.md @@ -24,10 +24,10 @@ description: auth.signUp parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/channels_checkUsername.md b/old_docs/API_docs_v44/methods/channels_checkUsername.md index 82990d05..298b8e35 100644 --- a/old_docs/API_docs_v44/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v44/methods/channels_checkUsername.md @@ -21,10 +21,10 @@ description: channels.checkUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/channels_createChannel.md b/old_docs/API_docs_v44/methods/channels_createChannel.md index b5ffa159..207c60e9 100644 --- a/old_docs/API_docs_v44/methods/channels_createChannel.md +++ b/old_docs/API_docs_v44/methods/channels_createChannel.md @@ -23,10 +23,10 @@ description: channels.createChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/channels_deleteChannel.md b/old_docs/API_docs_v44/methods/channels_deleteChannel.md index c1eba22f..825882ab 100644 --- a/old_docs/API_docs_v44/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v44/methods/channels_deleteChannel.md @@ -20,10 +20,10 @@ description: channels.deleteChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/channels_deleteMessages.md b/old_docs/API_docs_v44/methods/channels_deleteMessages.md index e2e5e2bb..14fe6256 100644 --- a/old_docs/API_docs_v44/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v44/methods/channels_deleteMessages.md @@ -21,10 +21,10 @@ description: channels.deleteMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v44/methods/channels_deleteUserHistory.md index d3feb071..c485126f 100644 --- a/old_docs/API_docs_v44/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v44/methods/channels_deleteUserHistory.md @@ -21,10 +21,10 @@ description: channels.deleteUserHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/channels_editAbout.md b/old_docs/API_docs_v44/methods/channels_editAbout.md index 12d9df80..87c1a2c0 100644 --- a/old_docs/API_docs_v44/methods/channels_editAbout.md +++ b/old_docs/API_docs_v44/methods/channels_editAbout.md @@ -21,10 +21,10 @@ description: channels.editAbout parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/channels_editAdmin.md b/old_docs/API_docs_v44/methods/channels_editAdmin.md index 1e488778..48042957 100644 --- a/old_docs/API_docs_v44/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v44/methods/channels_editAdmin.md @@ -22,10 +22,10 @@ description: channels.editAdmin parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/channels_editPhoto.md b/old_docs/API_docs_v44/methods/channels_editPhoto.md index 9c0d0fe0..caea3df6 100644 --- a/old_docs/API_docs_v44/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v44/methods/channels_editPhoto.md @@ -21,10 +21,10 @@ description: channels.editPhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/channels_editTitle.md b/old_docs/API_docs_v44/methods/channels_editTitle.md index 057c7772..6f05ed61 100644 --- a/old_docs/API_docs_v44/methods/channels_editTitle.md +++ b/old_docs/API_docs_v44/methods/channels_editTitle.md @@ -21,10 +21,10 @@ description: channels.editTitle parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/channels_exportInvite.md b/old_docs/API_docs_v44/methods/channels_exportInvite.md index c5fa1bf9..7483038b 100644 --- a/old_docs/API_docs_v44/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v44/methods/channels_exportInvite.md @@ -20,10 +20,10 @@ description: channels.exportInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/channels_getChannels.md b/old_docs/API_docs_v44/methods/channels_getChannels.md index 24b94c8f..004f7b7e 100644 --- a/old_docs/API_docs_v44/methods/channels_getChannels.md +++ b/old_docs/API_docs_v44/methods/channels_getChannels.md @@ -20,10 +20,10 @@ description: channels.getChannels parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/channels_getDialogs.md b/old_docs/API_docs_v44/methods/channels_getDialogs.md index fbbb59a5..847a23b3 100644 --- a/old_docs/API_docs_v44/methods/channels_getDialogs.md +++ b/old_docs/API_docs_v44/methods/channels_getDialogs.md @@ -21,10 +21,10 @@ description: channels.getDialogs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/channels_getFullChannel.md b/old_docs/API_docs_v44/methods/channels_getFullChannel.md index 8bf78cd9..37abd094 100644 --- a/old_docs/API_docs_v44/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v44/methods/channels_getFullChannel.md @@ -20,10 +20,10 @@ description: channels.getFullChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/channels_getImportantHistory.md b/old_docs/API_docs_v44/methods/channels_getImportantHistory.md index 536f0244..e125fc2c 100644 --- a/old_docs/API_docs_v44/methods/channels_getImportantHistory.md +++ b/old_docs/API_docs_v44/methods/channels_getImportantHistory.md @@ -25,10 +25,10 @@ description: channels.getImportantHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/channels_getMessages.md b/old_docs/API_docs_v44/methods/channels_getMessages.md index 8204bf26..3aca181e 100644 --- a/old_docs/API_docs_v44/methods/channels_getMessages.md +++ b/old_docs/API_docs_v44/methods/channels_getMessages.md @@ -21,10 +21,10 @@ description: channels.getMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/channels_getParticipant.md b/old_docs/API_docs_v44/methods/channels_getParticipant.md index 7b685913..6bb9339e 100644 --- a/old_docs/API_docs_v44/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v44/methods/channels_getParticipant.md @@ -21,10 +21,10 @@ description: channels.getParticipant parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/channels_getParticipants.md b/old_docs/API_docs_v44/methods/channels_getParticipants.md index 6ee31676..51ac2c09 100644 --- a/old_docs/API_docs_v44/methods/channels_getParticipants.md +++ b/old_docs/API_docs_v44/methods/channels_getParticipants.md @@ -23,10 +23,10 @@ description: channels.getParticipants parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/channels_inviteToChannel.md b/old_docs/API_docs_v44/methods/channels_inviteToChannel.md index 4b4985a4..57581c7a 100644 --- a/old_docs/API_docs_v44/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v44/methods/channels_inviteToChannel.md @@ -21,10 +21,10 @@ description: channels.inviteToChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/channels_joinChannel.md b/old_docs/API_docs_v44/methods/channels_joinChannel.md index 97fd5417..359333fd 100644 --- a/old_docs/API_docs_v44/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v44/methods/channels_joinChannel.md @@ -20,10 +20,10 @@ description: channels.joinChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/channels_kickFromChannel.md b/old_docs/API_docs_v44/methods/channels_kickFromChannel.md index cf5a3ebc..930902a3 100644 --- a/old_docs/API_docs_v44/methods/channels_kickFromChannel.md +++ b/old_docs/API_docs_v44/methods/channels_kickFromChannel.md @@ -22,10 +22,10 @@ description: channels.kickFromChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/channels_leaveChannel.md b/old_docs/API_docs_v44/methods/channels_leaveChannel.md index 69dc1852..a10d17e7 100644 --- a/old_docs/API_docs_v44/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v44/methods/channels_leaveChannel.md @@ -20,10 +20,10 @@ description: channels.leaveChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/channels_readHistory.md b/old_docs/API_docs_v44/methods/channels_readHistory.md index 87906417..104a7b8f 100644 --- a/old_docs/API_docs_v44/methods/channels_readHistory.md +++ b/old_docs/API_docs_v44/methods/channels_readHistory.md @@ -21,10 +21,10 @@ description: channels.readHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/channels_reportSpam.md b/old_docs/API_docs_v44/methods/channels_reportSpam.md index dc8542f2..9e3e13ac 100644 --- a/old_docs/API_docs_v44/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v44/methods/channels_reportSpam.md @@ -22,10 +22,10 @@ description: channels.reportSpam parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/channels_toggleComments.md b/old_docs/API_docs_v44/methods/channels_toggleComments.md index eaaeb720..31873eb9 100644 --- a/old_docs/API_docs_v44/methods/channels_toggleComments.md +++ b/old_docs/API_docs_v44/methods/channels_toggleComments.md @@ -21,10 +21,10 @@ description: channels.toggleComments parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/channels_updateUsername.md b/old_docs/API_docs_v44/methods/channels_updateUsername.md index ebb03507..801bc972 100644 --- a/old_docs/API_docs_v44/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v44/methods/channels_updateUsername.md @@ -21,10 +21,10 @@ description: channels.updateUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/contacts_block.md b/old_docs/API_docs_v44/methods/contacts_block.md index b809b15c..f512adcc 100644 --- a/old_docs/API_docs_v44/methods/contacts_block.md +++ b/old_docs/API_docs_v44/methods/contacts_block.md @@ -20,10 +20,10 @@ description: contacts.block parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/contacts_deleteContact.md b/old_docs/API_docs_v44/methods/contacts_deleteContact.md index 18ef51f8..a3e8f63d 100644 --- a/old_docs/API_docs_v44/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v44/methods/contacts_deleteContact.md @@ -20,10 +20,10 @@ description: contacts.deleteContact parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/contacts_deleteContacts.md b/old_docs/API_docs_v44/methods/contacts_deleteContacts.md index 40672188..46e251eb 100644 --- a/old_docs/API_docs_v44/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v44/methods/contacts_deleteContacts.md @@ -20,10 +20,10 @@ description: contacts.deleteContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/contacts_exportCard.md b/old_docs/API_docs_v44/methods/contacts_exportCard.md index 4145d246..f7ec0015 100644 --- a/old_docs/API_docs_v44/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v44/methods/contacts_exportCard.md @@ -15,10 +15,10 @@ description: contacts.exportCard parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/contacts_getBlocked.md b/old_docs/API_docs_v44/methods/contacts_getBlocked.md index 50172d03..0fc72dba 100644 --- a/old_docs/API_docs_v44/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v44/methods/contacts_getBlocked.md @@ -21,10 +21,10 @@ description: contacts.getBlocked parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/contacts_getContacts.md b/old_docs/API_docs_v44/methods/contacts_getContacts.md index 0e6f22e9..656821e0 100644 --- a/old_docs/API_docs_v44/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v44/methods/contacts_getContacts.md @@ -20,10 +20,10 @@ description: contacts.getContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/contacts_getStatuses.md b/old_docs/API_docs_v44/methods/contacts_getStatuses.md index b734f529..ee806f2d 100644 --- a/old_docs/API_docs_v44/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v44/methods/contacts_getStatuses.md @@ -15,10 +15,10 @@ description: contacts.getStatuses parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/contacts_getSuggested.md b/old_docs/API_docs_v44/methods/contacts_getSuggested.md index a49b5913..4cd124e7 100644 --- a/old_docs/API_docs_v44/methods/contacts_getSuggested.md +++ b/old_docs/API_docs_v44/methods/contacts_getSuggested.md @@ -20,10 +20,10 @@ description: contacts.getSuggested parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/contacts_importCard.md b/old_docs/API_docs_v44/methods/contacts_importCard.md index 6b2c612e..162ff4f3 100644 --- a/old_docs/API_docs_v44/methods/contacts_importCard.md +++ b/old_docs/API_docs_v44/methods/contacts_importCard.md @@ -20,10 +20,10 @@ description: contacts.importCard parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/contacts_importContacts.md b/old_docs/API_docs_v44/methods/contacts_importContacts.md index 2426f53c..48412e99 100644 --- a/old_docs/API_docs_v44/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v44/methods/contacts_importContacts.md @@ -21,10 +21,10 @@ description: contacts.importContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/contacts_resolveUsername.md b/old_docs/API_docs_v44/methods/contacts_resolveUsername.md index 0ea67c6f..b847fbe9 100644 --- a/old_docs/API_docs_v44/methods/contacts_resolveUsername.md +++ b/old_docs/API_docs_v44/methods/contacts_resolveUsername.md @@ -20,10 +20,10 @@ description: contacts.resolveUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/contacts_search.md b/old_docs/API_docs_v44/methods/contacts_search.md index 00a39519..9a351db7 100644 --- a/old_docs/API_docs_v44/methods/contacts_search.md +++ b/old_docs/API_docs_v44/methods/contacts_search.md @@ -21,10 +21,10 @@ description: contacts.search parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/contacts_unblock.md b/old_docs/API_docs_v44/methods/contacts_unblock.md index 63f41483..6d739c9b 100644 --- a/old_docs/API_docs_v44/methods/contacts_unblock.md +++ b/old_docs/API_docs_v44/methods/contacts_unblock.md @@ -20,10 +20,10 @@ description: contacts.unblock parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/help_getAppChangelog.md b/old_docs/API_docs_v44/methods/help_getAppChangelog.md index bfe48334..1b52c928 100644 --- a/old_docs/API_docs_v44/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v44/methods/help_getAppChangelog.md @@ -23,10 +23,10 @@ description: help.getAppChangelog parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/help_getAppUpdate.md b/old_docs/API_docs_v44/methods/help_getAppUpdate.md index 7be3b374..9559c840 100644 --- a/old_docs/API_docs_v44/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v44/methods/help_getAppUpdate.md @@ -23,10 +23,10 @@ description: help.getAppUpdate parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/help_getConfig.md b/old_docs/API_docs_v44/methods/help_getConfig.md index cb9c4f1c..9481a0c0 100644 --- a/old_docs/API_docs_v44/methods/help_getConfig.md +++ b/old_docs/API_docs_v44/methods/help_getConfig.md @@ -15,10 +15,10 @@ description: help.getConfig parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/help_getInviteText.md b/old_docs/API_docs_v44/methods/help_getInviteText.md index f265f8d3..14692791 100644 --- a/old_docs/API_docs_v44/methods/help_getInviteText.md +++ b/old_docs/API_docs_v44/methods/help_getInviteText.md @@ -20,10 +20,10 @@ description: help.getInviteText parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/help_getNearestDc.md b/old_docs/API_docs_v44/methods/help_getNearestDc.md index f491ae0c..bb6b1883 100644 --- a/old_docs/API_docs_v44/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v44/methods/help_getNearestDc.md @@ -15,10 +15,10 @@ description: help.getNearestDc parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/help_getSupport.md b/old_docs/API_docs_v44/methods/help_getSupport.md index 03574c6f..0348089a 100644 --- a/old_docs/API_docs_v44/methods/help_getSupport.md +++ b/old_docs/API_docs_v44/methods/help_getSupport.md @@ -15,10 +15,10 @@ description: help.getSupport parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/help_getTermsOfService.md b/old_docs/API_docs_v44/methods/help_getTermsOfService.md index 39129b28..ea71f5f6 100644 --- a/old_docs/API_docs_v44/methods/help_getTermsOfService.md +++ b/old_docs/API_docs_v44/methods/help_getTermsOfService.md @@ -20,10 +20,10 @@ description: help.getTermsOfService parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/help_saveAppLog.md b/old_docs/API_docs_v44/methods/help_saveAppLog.md index 3887ccc2..59b92601 100644 --- a/old_docs/API_docs_v44/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v44/methods/help_saveAppLog.md @@ -20,10 +20,10 @@ description: help.saveAppLog parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/initConnection.md b/old_docs/API_docs_v44/methods/initConnection.md index 1c946720..aa89066c 100644 --- a/old_docs/API_docs_v44/methods/initConnection.md +++ b/old_docs/API_docs_v44/methods/initConnection.md @@ -25,10 +25,10 @@ description: initConnection parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/invokeAfterMsg.md b/old_docs/API_docs_v44/methods/invokeAfterMsg.md index 1b35a238..97c4f1fb 100644 --- a/old_docs/API_docs_v44/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v44/methods/invokeAfterMsg.md @@ -21,10 +21,10 @@ description: invokeAfterMsg parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/invokeAfterMsgs.md b/old_docs/API_docs_v44/methods/invokeAfterMsgs.md index 164ab318..4e278ef1 100644 --- a/old_docs/API_docs_v44/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v44/methods/invokeAfterMsgs.md @@ -21,10 +21,10 @@ description: invokeAfterMsgs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/invokeWithLayer.md b/old_docs/API_docs_v44/methods/invokeWithLayer.md index 497cc285..72fe47ec 100644 --- a/old_docs/API_docs_v44/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v44/methods/invokeWithLayer.md @@ -21,10 +21,10 @@ description: invokeWithLayer parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v44/methods/invokeWithoutUpdates.md index cbdabb07..5151b786 100644 --- a/old_docs/API_docs_v44/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v44/methods/invokeWithoutUpdates.md @@ -20,10 +20,10 @@ description: invokeWithoutUpdates parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_acceptEncryption.md b/old_docs/API_docs_v44/methods/messages_acceptEncryption.md index d41beb91..e016f5d3 100644 --- a/old_docs/API_docs_v44/methods/messages_acceptEncryption.md +++ b/old_docs/API_docs_v44/methods/messages_acceptEncryption.md @@ -22,10 +22,10 @@ description: messages.acceptEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_addChatUser.md b/old_docs/API_docs_v44/methods/messages_addChatUser.md index 13d17a3e..df2cb1a5 100644 --- a/old_docs/API_docs_v44/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v44/methods/messages_addChatUser.md @@ -22,10 +22,10 @@ description: messages.addChatUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_checkChatInvite.md b/old_docs/API_docs_v44/methods/messages_checkChatInvite.md index 0a3a4f84..7670727b 100644 --- a/old_docs/API_docs_v44/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v44/methods/messages_checkChatInvite.md @@ -20,10 +20,10 @@ description: messages.checkChatInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_createChat.md b/old_docs/API_docs_v44/methods/messages_createChat.md index 0ab3101a..2fc5631c 100644 --- a/old_docs/API_docs_v44/methods/messages_createChat.md +++ b/old_docs/API_docs_v44/methods/messages_createChat.md @@ -21,10 +21,10 @@ description: messages.createChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_deleteChatUser.md b/old_docs/API_docs_v44/methods/messages_deleteChatUser.md index ed736ebd..6895649f 100644 --- a/old_docs/API_docs_v44/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v44/methods/messages_deleteChatUser.md @@ -21,10 +21,10 @@ description: messages.deleteChatUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_deleteHistory.md b/old_docs/API_docs_v44/methods/messages_deleteHistory.md index 64c060dc..8517ee62 100644 --- a/old_docs/API_docs_v44/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v44/methods/messages_deleteHistory.md @@ -21,10 +21,10 @@ description: messages.deleteHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_deleteMessages.md b/old_docs/API_docs_v44/methods/messages_deleteMessages.md index 5997c2ed..d9d28886 100644 --- a/old_docs/API_docs_v44/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v44/methods/messages_deleteMessages.md @@ -20,10 +20,10 @@ description: messages.deleteMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_discardEncryption.md b/old_docs/API_docs_v44/methods/messages_discardEncryption.md index ebc1ace5..f237c986 100644 --- a/old_docs/API_docs_v44/methods/messages_discardEncryption.md +++ b/old_docs/API_docs_v44/methods/messages_discardEncryption.md @@ -20,10 +20,10 @@ description: messages.discardEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_editChatAdmin.md b/old_docs/API_docs_v44/methods/messages_editChatAdmin.md index 38bc8de0..74f5a39f 100644 --- a/old_docs/API_docs_v44/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v44/methods/messages_editChatAdmin.md @@ -22,10 +22,10 @@ description: messages.editChatAdmin parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_editChatPhoto.md b/old_docs/API_docs_v44/methods/messages_editChatPhoto.md index e3cbf492..0396c74b 100644 --- a/old_docs/API_docs_v44/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v44/methods/messages_editChatPhoto.md @@ -21,10 +21,10 @@ description: messages.editChatPhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_editChatTitle.md b/old_docs/API_docs_v44/methods/messages_editChatTitle.md index 60eae01c..fabe9c87 100644 --- a/old_docs/API_docs_v44/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v44/methods/messages_editChatTitle.md @@ -21,10 +21,10 @@ description: messages.editChatTitle parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_exportChatInvite.md b/old_docs/API_docs_v44/methods/messages_exportChatInvite.md index 3efc9bf7..b96e7498 100644 --- a/old_docs/API_docs_v44/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v44/methods/messages_exportChatInvite.md @@ -20,10 +20,10 @@ description: messages.exportChatInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_forwardMessage.md b/old_docs/API_docs_v44/methods/messages_forwardMessage.md index a95d259a..ced2cb5b 100644 --- a/old_docs/API_docs_v44/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v44/methods/messages_forwardMessage.md @@ -21,10 +21,10 @@ description: messages.forwardMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_forwardMessages.md b/old_docs/API_docs_v44/methods/messages_forwardMessages.md index a6add4d1..80d98650 100644 --- a/old_docs/API_docs_v44/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v44/methods/messages_forwardMessages.md @@ -23,10 +23,10 @@ description: messages.forwardMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_getAllStickers.md b/old_docs/API_docs_v44/methods/messages_getAllStickers.md index 613db3b2..fe438a80 100644 --- a/old_docs/API_docs_v44/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v44/methods/messages_getAllStickers.md @@ -20,10 +20,10 @@ description: messages.getAllStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_getChats.md b/old_docs/API_docs_v44/methods/messages_getChats.md index ad63744b..be57718e 100644 --- a/old_docs/API_docs_v44/methods/messages_getChats.md +++ b/old_docs/API_docs_v44/methods/messages_getChats.md @@ -20,10 +20,10 @@ description: messages.getChats parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_getDhConfig.md b/old_docs/API_docs_v44/methods/messages_getDhConfig.md index bcebea55..21b37f21 100644 --- a/old_docs/API_docs_v44/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v44/methods/messages_getDhConfig.md @@ -21,10 +21,10 @@ description: messages.getDhConfig parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_getDialogs.md b/old_docs/API_docs_v44/methods/messages_getDialogs.md index 07e2b246..ca93a52a 100644 --- a/old_docs/API_docs_v44/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v44/methods/messages_getDialogs.md @@ -23,10 +23,10 @@ description: messages.getDialogs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v44/methods/messages_getDocumentByHash.md index 32fc1de0..ca26acc3 100644 --- a/old_docs/API_docs_v44/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v44/methods/messages_getDocumentByHash.md @@ -22,10 +22,10 @@ description: messages.getDocumentByHash parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_getFullChat.md b/old_docs/API_docs_v44/methods/messages_getFullChat.md index f3c8223a..10d938ae 100644 --- a/old_docs/API_docs_v44/methods/messages_getFullChat.md +++ b/old_docs/API_docs_v44/methods/messages_getFullChat.md @@ -20,10 +20,10 @@ description: messages.getFullChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_getHistory.md b/old_docs/API_docs_v44/methods/messages_getHistory.md index 84324235..409526cc 100644 --- a/old_docs/API_docs_v44/methods/messages_getHistory.md +++ b/old_docs/API_docs_v44/methods/messages_getHistory.md @@ -25,10 +25,10 @@ description: messages.getHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_getMessages.md b/old_docs/API_docs_v44/methods/messages_getMessages.md index 224df903..e669bcf8 100644 --- a/old_docs/API_docs_v44/methods/messages_getMessages.md +++ b/old_docs/API_docs_v44/methods/messages_getMessages.md @@ -20,10 +20,10 @@ description: messages.getMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_getMessagesViews.md b/old_docs/API_docs_v44/methods/messages_getMessagesViews.md index d162b668..f27cdb36 100644 --- a/old_docs/API_docs_v44/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v44/methods/messages_getMessagesViews.md @@ -22,10 +22,10 @@ description: messages.getMessagesViews parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_getStickerSet.md b/old_docs/API_docs_v44/methods/messages_getStickerSet.md index 2ec2fa5d..561eec32 100644 --- a/old_docs/API_docs_v44/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v44/methods/messages_getStickerSet.md @@ -20,10 +20,10 @@ description: messages.getStickerSet parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_getStickers.md b/old_docs/API_docs_v44/methods/messages_getStickers.md index 6730f586..e9aedd80 100644 --- a/old_docs/API_docs_v44/methods/messages_getStickers.md +++ b/old_docs/API_docs_v44/methods/messages_getStickers.md @@ -21,10 +21,10 @@ description: messages.getStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v44/methods/messages_getWebPagePreview.md index e2dd428d..a3d5fce3 100644 --- a/old_docs/API_docs_v44/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v44/methods/messages_getWebPagePreview.md @@ -20,10 +20,10 @@ description: messages.getWebPagePreview parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_importChatInvite.md b/old_docs/API_docs_v44/methods/messages_importChatInvite.md index 250d076d..a4e9c052 100644 --- a/old_docs/API_docs_v44/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v44/methods/messages_importChatInvite.md @@ -20,10 +20,10 @@ description: messages.importChatInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_installStickerSet.md b/old_docs/API_docs_v44/methods/messages_installStickerSet.md index f99d40b4..5180bcbd 100644 --- a/old_docs/API_docs_v44/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v44/methods/messages_installStickerSet.md @@ -21,10 +21,10 @@ description: messages.installStickerSet parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_migrateChat.md b/old_docs/API_docs_v44/methods/messages_migrateChat.md index 5b1e375a..731dc904 100644 --- a/old_docs/API_docs_v44/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v44/methods/messages_migrateChat.md @@ -20,10 +20,10 @@ description: messages.migrateChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v44/methods/messages_readEncryptedHistory.md index 555bffe7..5bb05536 100644 --- a/old_docs/API_docs_v44/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v44/methods/messages_readEncryptedHistory.md @@ -21,10 +21,10 @@ description: messages.readEncryptedHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_readHistory.md b/old_docs/API_docs_v44/methods/messages_readHistory.md index 1e2783ae..6bb29fef 100644 --- a/old_docs/API_docs_v44/methods/messages_readHistory.md +++ b/old_docs/API_docs_v44/methods/messages_readHistory.md @@ -21,10 +21,10 @@ description: messages.readHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_readMessageContents.md b/old_docs/API_docs_v44/methods/messages_readMessageContents.md index ae75d612..829e7cc8 100644 --- a/old_docs/API_docs_v44/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v44/methods/messages_readMessageContents.md @@ -20,10 +20,10 @@ description: messages.readMessageContents parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_receivedMessages.md b/old_docs/API_docs_v44/methods/messages_receivedMessages.md index ffeaeed7..05a229b6 100644 --- a/old_docs/API_docs_v44/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v44/methods/messages_receivedMessages.md @@ -20,10 +20,10 @@ description: messages.receivedMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_receivedQueue.md b/old_docs/API_docs_v44/methods/messages_receivedQueue.md index e514669c..d8bfae5e 100644 --- a/old_docs/API_docs_v44/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v44/methods/messages_receivedQueue.md @@ -20,10 +20,10 @@ description: messages.receivedQueue parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_reorderStickerSets.md b/old_docs/API_docs_v44/methods/messages_reorderStickerSets.md index 4070988e..a1d27734 100644 --- a/old_docs/API_docs_v44/methods/messages_reorderStickerSets.md +++ b/old_docs/API_docs_v44/methods/messages_reorderStickerSets.md @@ -20,10 +20,10 @@ description: messages.reorderStickerSets parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_reportSpam.md b/old_docs/API_docs_v44/methods/messages_reportSpam.md index 56975b9d..da747585 100644 --- a/old_docs/API_docs_v44/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v44/methods/messages_reportSpam.md @@ -20,10 +20,10 @@ description: messages.reportSpam parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_requestEncryption.md b/old_docs/API_docs_v44/methods/messages_requestEncryption.md index e82fca54..99fe7ecf 100644 --- a/old_docs/API_docs_v44/methods/messages_requestEncryption.md +++ b/old_docs/API_docs_v44/methods/messages_requestEncryption.md @@ -21,10 +21,10 @@ description: messages.requestEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_search.md b/old_docs/API_docs_v44/methods/messages_search.md index 9f1ab5ba..4a5c4bb9 100644 --- a/old_docs/API_docs_v44/methods/messages_search.md +++ b/old_docs/API_docs_v44/methods/messages_search.md @@ -28,10 +28,10 @@ description: messages.search parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_searchGifs.md b/old_docs/API_docs_v44/methods/messages_searchGifs.md index 18ad844b..8a1de718 100644 --- a/old_docs/API_docs_v44/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v44/methods/messages_searchGifs.md @@ -21,10 +21,10 @@ description: messages.searchGifs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_searchGlobal.md b/old_docs/API_docs_v44/methods/messages_searchGlobal.md index aacdb99f..02d790e9 100644 --- a/old_docs/API_docs_v44/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v44/methods/messages_searchGlobal.md @@ -24,10 +24,10 @@ description: messages.searchGlobal parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_sendBroadcast.md b/old_docs/API_docs_v44/methods/messages_sendBroadcast.md index 9194fdf1..b19bec57 100644 --- a/old_docs/API_docs_v44/methods/messages_sendBroadcast.md +++ b/old_docs/API_docs_v44/methods/messages_sendBroadcast.md @@ -22,10 +22,10 @@ description: messages.sendBroadcast parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_sendEncrypted.md b/old_docs/API_docs_v44/methods/messages_sendEncrypted.md index f2c2c0c2..c3585580 100644 --- a/old_docs/API_docs_v44/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v44/methods/messages_sendEncrypted.md @@ -21,10 +21,10 @@ description: messages.sendEncrypted parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v44/methods/messages_sendEncryptedFile.md index a57a3dd8..40674df9 100644 --- a/old_docs/API_docs_v44/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v44/methods/messages_sendEncryptedFile.md @@ -22,10 +22,10 @@ description: messages.sendEncryptedFile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v44/methods/messages_sendEncryptedService.md index 4041c4d0..8bfee571 100644 --- a/old_docs/API_docs_v44/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v44/methods/messages_sendEncryptedService.md @@ -21,10 +21,10 @@ description: messages.sendEncryptedService parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_sendMedia.md b/old_docs/API_docs_v44/methods/messages_sendMedia.md index 01e66c35..f9e9b49a 100644 --- a/old_docs/API_docs_v44/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v44/methods/messages_sendMedia.md @@ -24,10 +24,10 @@ description: messages.sendMedia parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; @@ -46,3 +46,9 @@ Or, if you're into Lua: Updates = messages.sendMedia({broadcast=Bool, peer=InputPeer, reply_to_msg_id=int, media=InputMedia, reply_markup=ReplyMarkup, }) ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v44/methods/messages_sendMessage.md b/old_docs/API_docs_v44/methods/messages_sendMessage.md index 51e032ca..074cb877 100644 --- a/old_docs/API_docs_v44/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v44/methods/messages_sendMessage.md @@ -27,10 +27,10 @@ description: messages.sendMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; @@ -50,6 +50,12 @@ Updates = messages.sendMessage({no_webpage=Bool, broadcast=Bool, peer=InputPeer, ``` +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + + ## Usage of parse_mode: Set parse_mode to html to enable HTML parsing of the message. diff --git a/old_docs/API_docs_v44/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v44/methods/messages_setEncryptedTyping.md index 95364d49..ae718bba 100644 --- a/old_docs/API_docs_v44/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v44/methods/messages_setEncryptedTyping.md @@ -21,10 +21,10 @@ description: messages.setEncryptedTyping parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_setTyping.md b/old_docs/API_docs_v44/methods/messages_setTyping.md index 0ce5743d..75903c68 100644 --- a/old_docs/API_docs_v44/methods/messages_setTyping.md +++ b/old_docs/API_docs_v44/methods/messages_setTyping.md @@ -21,10 +21,10 @@ description: messages.setTyping parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_startBot.md b/old_docs/API_docs_v44/methods/messages_startBot.md index 5f563224..bf79b142 100644 --- a/old_docs/API_docs_v44/methods/messages_startBot.md +++ b/old_docs/API_docs_v44/methods/messages_startBot.md @@ -22,10 +22,10 @@ description: messages.startBot parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v44/methods/messages_toggleChatAdmins.md index 0ad6ba92..05d74e5a 100644 --- a/old_docs/API_docs_v44/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v44/methods/messages_toggleChatAdmins.md @@ -21,10 +21,10 @@ description: messages.toggleChatAdmins parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v44/methods/messages_uninstallStickerSet.md index 97fff059..5202b086 100644 --- a/old_docs/API_docs_v44/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v44/methods/messages_uninstallStickerSet.md @@ -20,10 +20,10 @@ description: messages.uninstallStickerSet parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/photos_deletePhotos.md b/old_docs/API_docs_v44/methods/photos_deletePhotos.md index 6a717835..2d27b700 100644 --- a/old_docs/API_docs_v44/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v44/methods/photos_deletePhotos.md @@ -20,10 +20,10 @@ description: photos.deletePhotos parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/photos_getUserPhotos.md b/old_docs/API_docs_v44/methods/photos_getUserPhotos.md index 4aa96dfa..0f50ee6f 100644 --- a/old_docs/API_docs_v44/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v44/methods/photos_getUserPhotos.md @@ -23,10 +23,10 @@ description: photos.getUserPhotos parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v44/methods/photos_updateProfilePhoto.md index f18669cc..9ae9c59e 100644 --- a/old_docs/API_docs_v44/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v44/methods/photos_updateProfilePhoto.md @@ -21,10 +21,10 @@ description: photos.updateProfilePhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v44/methods/photos_uploadProfilePhoto.md index 3eb7a10c..567eb363 100644 --- a/old_docs/API_docs_v44/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v44/methods/photos_uploadProfilePhoto.md @@ -23,10 +23,10 @@ description: photos.uploadProfilePhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/updates_getChannelDifference.md b/old_docs/API_docs_v44/methods/updates_getChannelDifference.md index 1add786f..d3b725f4 100644 --- a/old_docs/API_docs_v44/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v44/methods/updates_getChannelDifference.md @@ -23,10 +23,10 @@ description: updates.getChannelDifference parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/updates_getDifference.md b/old_docs/API_docs_v44/methods/updates_getDifference.md index c7ae5664..719a7a02 100644 --- a/old_docs/API_docs_v44/methods/updates_getDifference.md +++ b/old_docs/API_docs_v44/methods/updates_getDifference.md @@ -22,10 +22,10 @@ description: updates.getDifference parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/updates_getState.md b/old_docs/API_docs_v44/methods/updates_getState.md index 5612ca79..53fc0c16 100644 --- a/old_docs/API_docs_v44/methods/updates_getState.md +++ b/old_docs/API_docs_v44/methods/updates_getState.md @@ -15,10 +15,10 @@ description: updates.getState parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/upload_getFile.md b/old_docs/API_docs_v44/methods/upload_getFile.md index a2f3d961..ee35140a 100644 --- a/old_docs/API_docs_v44/methods/upload_getFile.md +++ b/old_docs/API_docs_v44/methods/upload_getFile.md @@ -22,10 +22,10 @@ description: upload.getFile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/upload_saveBigFilePart.md b/old_docs/API_docs_v44/methods/upload_saveBigFilePart.md index 03641055..503d1b5c 100644 --- a/old_docs/API_docs_v44/methods/upload_saveBigFilePart.md +++ b/old_docs/API_docs_v44/methods/upload_saveBigFilePart.md @@ -23,10 +23,10 @@ description: upload.saveBigFilePart parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/upload_saveFilePart.md b/old_docs/API_docs_v44/methods/upload_saveFilePart.md index 192412c8..d7f745aa 100644 --- a/old_docs/API_docs_v44/methods/upload_saveFilePart.md +++ b/old_docs/API_docs_v44/methods/upload_saveFilePart.md @@ -22,10 +22,10 @@ description: upload.saveFilePart parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/users_getFullUser.md b/old_docs/API_docs_v44/methods/users_getFullUser.md index 864ae387..bcba7f3d 100644 --- a/old_docs/API_docs_v44/methods/users_getFullUser.md +++ b/old_docs/API_docs_v44/methods/users_getFullUser.md @@ -20,10 +20,10 @@ description: users.getFullUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v44/methods/users_getUsers.md b/old_docs/API_docs_v44/methods/users_getUsers.md index 34816478..e03fd2d6 100644 --- a/old_docs/API_docs_v44/methods/users_getUsers.md +++ b/old_docs/API_docs_v44/methods/users_getUsers.md @@ -20,10 +20,10 @@ description: users.getUsers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/constructors/message.md b/old_docs/API_docs_v45/constructors/message.md index 1eef33ab..7eee6d52 100644 --- a/old_docs/API_docs_v45/constructors/message.md +++ b/old_docs/API_docs_v45/constructors/message.md @@ -49,3 +49,9 @@ message={_='message', unread=Bool, out=Bool, mentioned=Bool, media_unread=Bool, ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v45/methods/account_changePhone.md b/old_docs/API_docs_v45/methods/account_changePhone.md index dc3e0427..6691a743 100644 --- a/old_docs/API_docs_v45/methods/account_changePhone.md +++ b/old_docs/API_docs_v45/methods/account_changePhone.md @@ -22,10 +22,10 @@ description: account.changePhone parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/account_checkUsername.md b/old_docs/API_docs_v45/methods/account_checkUsername.md index dc13041c..e954ca99 100644 --- a/old_docs/API_docs_v45/methods/account_checkUsername.md +++ b/old_docs/API_docs_v45/methods/account_checkUsername.md @@ -20,10 +20,10 @@ description: account.checkUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/account_deleteAccount.md b/old_docs/API_docs_v45/methods/account_deleteAccount.md index 4199572b..0d0a6204 100644 --- a/old_docs/API_docs_v45/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v45/methods/account_deleteAccount.md @@ -20,10 +20,10 @@ description: account.deleteAccount parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/account_getAccountTTL.md b/old_docs/API_docs_v45/methods/account_getAccountTTL.md index ff4171df..e284a80e 100644 --- a/old_docs/API_docs_v45/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v45/methods/account_getAccountTTL.md @@ -15,10 +15,10 @@ description: account.getAccountTTL parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/account_getAuthorizations.md b/old_docs/API_docs_v45/methods/account_getAuthorizations.md index 26f755d4..ee5a00d6 100644 --- a/old_docs/API_docs_v45/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v45/methods/account_getAuthorizations.md @@ -15,10 +15,10 @@ description: account.getAuthorizations parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/account_getNotifySettings.md b/old_docs/API_docs_v45/methods/account_getNotifySettings.md index 817f201a..2e7fd9ba 100644 --- a/old_docs/API_docs_v45/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v45/methods/account_getNotifySettings.md @@ -20,10 +20,10 @@ description: account.getNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/account_getPassword.md b/old_docs/API_docs_v45/methods/account_getPassword.md index d7491fec..424d3710 100644 --- a/old_docs/API_docs_v45/methods/account_getPassword.md +++ b/old_docs/API_docs_v45/methods/account_getPassword.md @@ -15,10 +15,10 @@ description: account.getPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/account_getPasswordSettings.md b/old_docs/API_docs_v45/methods/account_getPasswordSettings.md index 5be9a523..3e72e398 100644 --- a/old_docs/API_docs_v45/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v45/methods/account_getPasswordSettings.md @@ -20,10 +20,10 @@ description: account.getPasswordSettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/account_getPrivacy.md b/old_docs/API_docs_v45/methods/account_getPrivacy.md index 649019d5..26137fd3 100644 --- a/old_docs/API_docs_v45/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v45/methods/account_getPrivacy.md @@ -20,10 +20,10 @@ description: account.getPrivacy parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/account_getWallPapers.md b/old_docs/API_docs_v45/methods/account_getWallPapers.md index 9eb0182a..a44ea777 100644 --- a/old_docs/API_docs_v45/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v45/methods/account_getWallPapers.md @@ -15,10 +15,10 @@ description: account.getWallPapers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/account_registerDevice.md b/old_docs/API_docs_v45/methods/account_registerDevice.md index 168dcba0..70cadfab 100644 --- a/old_docs/API_docs_v45/methods/account_registerDevice.md +++ b/old_docs/API_docs_v45/methods/account_registerDevice.md @@ -26,10 +26,10 @@ description: account.registerDevice parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/account_reportPeer.md b/old_docs/API_docs_v45/methods/account_reportPeer.md index bb8dea54..7d913217 100644 --- a/old_docs/API_docs_v45/methods/account_reportPeer.md +++ b/old_docs/API_docs_v45/methods/account_reportPeer.md @@ -21,10 +21,10 @@ description: account.reportPeer parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/account_resetAuthorization.md b/old_docs/API_docs_v45/methods/account_resetAuthorization.md index aaf5a660..2c7c5bc4 100644 --- a/old_docs/API_docs_v45/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v45/methods/account_resetAuthorization.md @@ -20,10 +20,10 @@ description: account.resetAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/account_resetNotifySettings.md b/old_docs/API_docs_v45/methods/account_resetNotifySettings.md index 5a6a4c95..aa01dfce 100644 --- a/old_docs/API_docs_v45/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v45/methods/account_resetNotifySettings.md @@ -15,10 +15,10 @@ description: account.resetNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v45/methods/account_sendChangePhoneCode.md index 98110148..4ccc4045 100644 --- a/old_docs/API_docs_v45/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v45/methods/account_sendChangePhoneCode.md @@ -20,10 +20,10 @@ description: account.sendChangePhoneCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/account_setAccountTTL.md b/old_docs/API_docs_v45/methods/account_setAccountTTL.md index 6ae8d70e..460ae89a 100644 --- a/old_docs/API_docs_v45/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v45/methods/account_setAccountTTL.md @@ -20,10 +20,10 @@ description: account.setAccountTTL parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/account_setPrivacy.md b/old_docs/API_docs_v45/methods/account_setPrivacy.md index e438ca16..f05356db 100644 --- a/old_docs/API_docs_v45/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v45/methods/account_setPrivacy.md @@ -21,10 +21,10 @@ description: account.setPrivacy parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/account_unregisterDevice.md b/old_docs/API_docs_v45/methods/account_unregisterDevice.md index 89ab99a8..1063fad3 100644 --- a/old_docs/API_docs_v45/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v45/methods/account_unregisterDevice.md @@ -21,10 +21,10 @@ description: account.unregisterDevice parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v45/methods/account_updateDeviceLocked.md index 3fe6b8b6..506d974f 100644 --- a/old_docs/API_docs_v45/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v45/methods/account_updateDeviceLocked.md @@ -20,10 +20,10 @@ description: account.updateDeviceLocked parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/account_updateNotifySettings.md b/old_docs/API_docs_v45/methods/account_updateNotifySettings.md index 7eea8202..cb90a39f 100644 --- a/old_docs/API_docs_v45/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v45/methods/account_updateNotifySettings.md @@ -21,10 +21,10 @@ description: account.updateNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v45/methods/account_updatePasswordSettings.md index 56e4d724..ad1a930d 100644 --- a/old_docs/API_docs_v45/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v45/methods/account_updatePasswordSettings.md @@ -21,10 +21,10 @@ description: account.updatePasswordSettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/account_updateProfile.md b/old_docs/API_docs_v45/methods/account_updateProfile.md index fce1c8c9..cf8374de 100644 --- a/old_docs/API_docs_v45/methods/account_updateProfile.md +++ b/old_docs/API_docs_v45/methods/account_updateProfile.md @@ -21,10 +21,10 @@ description: account.updateProfile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/account_updateStatus.md b/old_docs/API_docs_v45/methods/account_updateStatus.md index f2fd751e..ac260312 100644 --- a/old_docs/API_docs_v45/methods/account_updateStatus.md +++ b/old_docs/API_docs_v45/methods/account_updateStatus.md @@ -20,10 +20,10 @@ description: account.updateStatus parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/account_updateUsername.md b/old_docs/API_docs_v45/methods/account_updateUsername.md index b5e428e4..7daf43e0 100644 --- a/old_docs/API_docs_v45/methods/account_updateUsername.md +++ b/old_docs/API_docs_v45/methods/account_updateUsername.md @@ -20,10 +20,10 @@ description: account.updateUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v45/methods/auth_bindTempAuthKey.md index 87d0c7cf..55e083cd 100644 --- a/old_docs/API_docs_v45/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v45/methods/auth_bindTempAuthKey.md @@ -23,10 +23,10 @@ description: auth.bindTempAuthKey parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/auth_checkPassword.md b/old_docs/API_docs_v45/methods/auth_checkPassword.md index 601146fc..9dcb706a 100644 --- a/old_docs/API_docs_v45/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v45/methods/auth_checkPassword.md @@ -20,10 +20,10 @@ description: auth.checkPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/auth_checkPhone.md b/old_docs/API_docs_v45/methods/auth_checkPhone.md index 2e4db690..ce137f9d 100644 --- a/old_docs/API_docs_v45/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v45/methods/auth_checkPhone.md @@ -20,10 +20,10 @@ description: auth.checkPhone parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/auth_exportAuthorization.md b/old_docs/API_docs_v45/methods/auth_exportAuthorization.md index a69f0301..bfd16433 100644 --- a/old_docs/API_docs_v45/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v45/methods/auth_exportAuthorization.md @@ -20,10 +20,10 @@ description: auth.exportAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/auth_importAuthorization.md b/old_docs/API_docs_v45/methods/auth_importAuthorization.md index a0e2e4b7..956f9a72 100644 --- a/old_docs/API_docs_v45/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v45/methods/auth_importAuthorization.md @@ -21,10 +21,10 @@ description: auth.importAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/auth_importBotAuthorization.md b/old_docs/API_docs_v45/methods/auth_importBotAuthorization.md index a78a5263..11d2f7f3 100644 --- a/old_docs/API_docs_v45/methods/auth_importBotAuthorization.md +++ b/old_docs/API_docs_v45/methods/auth_importBotAuthorization.md @@ -22,10 +22,10 @@ description: auth.importBotAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/auth_logOut.md b/old_docs/API_docs_v45/methods/auth_logOut.md index ac5bd8ae..5651f753 100644 --- a/old_docs/API_docs_v45/methods/auth_logOut.md +++ b/old_docs/API_docs_v45/methods/auth_logOut.md @@ -15,10 +15,10 @@ description: auth.logOut parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/auth_recoverPassword.md b/old_docs/API_docs_v45/methods/auth_recoverPassword.md index 9b7ebcfb..e253e7d9 100644 --- a/old_docs/API_docs_v45/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v45/methods/auth_recoverPassword.md @@ -20,10 +20,10 @@ description: auth.recoverPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v45/methods/auth_requestPasswordRecovery.md index 94c0aeff..2ae670eb 100644 --- a/old_docs/API_docs_v45/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v45/methods/auth_requestPasswordRecovery.md @@ -15,10 +15,10 @@ description: auth.requestPasswordRecovery parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v45/methods/auth_resetAuthorizations.md index f55e2e4d..9b324b42 100644 --- a/old_docs/API_docs_v45/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v45/methods/auth_resetAuthorizations.md @@ -15,10 +15,10 @@ description: auth.resetAuthorizations parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/auth_sendCall.md b/old_docs/API_docs_v45/methods/auth_sendCall.md index 3d44b1d2..584235b0 100644 --- a/old_docs/API_docs_v45/methods/auth_sendCall.md +++ b/old_docs/API_docs_v45/methods/auth_sendCall.md @@ -21,10 +21,10 @@ description: auth.sendCall parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/auth_sendCode.md b/old_docs/API_docs_v45/methods/auth_sendCode.md index 8c4387cf..58305712 100644 --- a/old_docs/API_docs_v45/methods/auth_sendCode.md +++ b/old_docs/API_docs_v45/methods/auth_sendCode.md @@ -24,10 +24,10 @@ description: auth.sendCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/auth_sendInvites.md b/old_docs/API_docs_v45/methods/auth_sendInvites.md index f81a5c7e..87cdc7e3 100644 --- a/old_docs/API_docs_v45/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v45/methods/auth_sendInvites.md @@ -21,10 +21,10 @@ description: auth.sendInvites parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/auth_sendSms.md b/old_docs/API_docs_v45/methods/auth_sendSms.md index ab652a6e..fb469f84 100644 --- a/old_docs/API_docs_v45/methods/auth_sendSms.md +++ b/old_docs/API_docs_v45/methods/auth_sendSms.md @@ -21,10 +21,10 @@ description: auth.sendSms parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/auth_signIn.md b/old_docs/API_docs_v45/methods/auth_signIn.md index 7616bc80..b0fb12fe 100644 --- a/old_docs/API_docs_v45/methods/auth_signIn.md +++ b/old_docs/API_docs_v45/methods/auth_signIn.md @@ -22,10 +22,10 @@ description: auth.signIn parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/auth_signUp.md b/old_docs/API_docs_v45/methods/auth_signUp.md index f9c72d64..6f92b4f7 100644 --- a/old_docs/API_docs_v45/methods/auth_signUp.md +++ b/old_docs/API_docs_v45/methods/auth_signUp.md @@ -24,10 +24,10 @@ description: auth.signUp parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/channels_checkUsername.md b/old_docs/API_docs_v45/methods/channels_checkUsername.md index 82990d05..298b8e35 100644 --- a/old_docs/API_docs_v45/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v45/methods/channels_checkUsername.md @@ -21,10 +21,10 @@ description: channels.checkUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/channels_createChannel.md b/old_docs/API_docs_v45/methods/channels_createChannel.md index b5ffa159..207c60e9 100644 --- a/old_docs/API_docs_v45/methods/channels_createChannel.md +++ b/old_docs/API_docs_v45/methods/channels_createChannel.md @@ -23,10 +23,10 @@ description: channels.createChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/channels_deleteChannel.md b/old_docs/API_docs_v45/methods/channels_deleteChannel.md index c1eba22f..825882ab 100644 --- a/old_docs/API_docs_v45/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v45/methods/channels_deleteChannel.md @@ -20,10 +20,10 @@ description: channels.deleteChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/channels_deleteMessages.md b/old_docs/API_docs_v45/methods/channels_deleteMessages.md index e2e5e2bb..14fe6256 100644 --- a/old_docs/API_docs_v45/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v45/methods/channels_deleteMessages.md @@ -21,10 +21,10 @@ description: channels.deleteMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v45/methods/channels_deleteUserHistory.md index d3feb071..c485126f 100644 --- a/old_docs/API_docs_v45/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v45/methods/channels_deleteUserHistory.md @@ -21,10 +21,10 @@ description: channels.deleteUserHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/channels_editAbout.md b/old_docs/API_docs_v45/methods/channels_editAbout.md index 12d9df80..87c1a2c0 100644 --- a/old_docs/API_docs_v45/methods/channels_editAbout.md +++ b/old_docs/API_docs_v45/methods/channels_editAbout.md @@ -21,10 +21,10 @@ description: channels.editAbout parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/channels_editAdmin.md b/old_docs/API_docs_v45/methods/channels_editAdmin.md index 1e488778..48042957 100644 --- a/old_docs/API_docs_v45/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v45/methods/channels_editAdmin.md @@ -22,10 +22,10 @@ description: channels.editAdmin parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/channels_editPhoto.md b/old_docs/API_docs_v45/methods/channels_editPhoto.md index 9c0d0fe0..caea3df6 100644 --- a/old_docs/API_docs_v45/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v45/methods/channels_editPhoto.md @@ -21,10 +21,10 @@ description: channels.editPhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/channels_editTitle.md b/old_docs/API_docs_v45/methods/channels_editTitle.md index 057c7772..6f05ed61 100644 --- a/old_docs/API_docs_v45/methods/channels_editTitle.md +++ b/old_docs/API_docs_v45/methods/channels_editTitle.md @@ -21,10 +21,10 @@ description: channels.editTitle parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/channels_exportInvite.md b/old_docs/API_docs_v45/methods/channels_exportInvite.md index c5fa1bf9..7483038b 100644 --- a/old_docs/API_docs_v45/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v45/methods/channels_exportInvite.md @@ -20,10 +20,10 @@ description: channels.exportInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/channels_getChannels.md b/old_docs/API_docs_v45/methods/channels_getChannels.md index 24b94c8f..004f7b7e 100644 --- a/old_docs/API_docs_v45/methods/channels_getChannels.md +++ b/old_docs/API_docs_v45/methods/channels_getChannels.md @@ -20,10 +20,10 @@ description: channels.getChannels parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/channels_getDialogs.md b/old_docs/API_docs_v45/methods/channels_getDialogs.md index fbbb59a5..847a23b3 100644 --- a/old_docs/API_docs_v45/methods/channels_getDialogs.md +++ b/old_docs/API_docs_v45/methods/channels_getDialogs.md @@ -21,10 +21,10 @@ description: channels.getDialogs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/channels_getFullChannel.md b/old_docs/API_docs_v45/methods/channels_getFullChannel.md index 8bf78cd9..37abd094 100644 --- a/old_docs/API_docs_v45/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v45/methods/channels_getFullChannel.md @@ -20,10 +20,10 @@ description: channels.getFullChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/channels_getImportantHistory.md b/old_docs/API_docs_v45/methods/channels_getImportantHistory.md index 536f0244..e125fc2c 100644 --- a/old_docs/API_docs_v45/methods/channels_getImportantHistory.md +++ b/old_docs/API_docs_v45/methods/channels_getImportantHistory.md @@ -25,10 +25,10 @@ description: channels.getImportantHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/channels_getMessages.md b/old_docs/API_docs_v45/methods/channels_getMessages.md index 8204bf26..3aca181e 100644 --- a/old_docs/API_docs_v45/methods/channels_getMessages.md +++ b/old_docs/API_docs_v45/methods/channels_getMessages.md @@ -21,10 +21,10 @@ description: channels.getMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/channels_getParticipant.md b/old_docs/API_docs_v45/methods/channels_getParticipant.md index 7b685913..6bb9339e 100644 --- a/old_docs/API_docs_v45/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v45/methods/channels_getParticipant.md @@ -21,10 +21,10 @@ description: channels.getParticipant parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/channels_getParticipants.md b/old_docs/API_docs_v45/methods/channels_getParticipants.md index 6ee31676..51ac2c09 100644 --- a/old_docs/API_docs_v45/methods/channels_getParticipants.md +++ b/old_docs/API_docs_v45/methods/channels_getParticipants.md @@ -23,10 +23,10 @@ description: channels.getParticipants parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/channels_inviteToChannel.md b/old_docs/API_docs_v45/methods/channels_inviteToChannel.md index 4b4985a4..57581c7a 100644 --- a/old_docs/API_docs_v45/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v45/methods/channels_inviteToChannel.md @@ -21,10 +21,10 @@ description: channels.inviteToChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/channels_joinChannel.md b/old_docs/API_docs_v45/methods/channels_joinChannel.md index 97fd5417..359333fd 100644 --- a/old_docs/API_docs_v45/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v45/methods/channels_joinChannel.md @@ -20,10 +20,10 @@ description: channels.joinChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/channels_kickFromChannel.md b/old_docs/API_docs_v45/methods/channels_kickFromChannel.md index cf5a3ebc..930902a3 100644 --- a/old_docs/API_docs_v45/methods/channels_kickFromChannel.md +++ b/old_docs/API_docs_v45/methods/channels_kickFromChannel.md @@ -22,10 +22,10 @@ description: channels.kickFromChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/channels_leaveChannel.md b/old_docs/API_docs_v45/methods/channels_leaveChannel.md index 69dc1852..a10d17e7 100644 --- a/old_docs/API_docs_v45/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v45/methods/channels_leaveChannel.md @@ -20,10 +20,10 @@ description: channels.leaveChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/channels_readHistory.md b/old_docs/API_docs_v45/methods/channels_readHistory.md index 87906417..104a7b8f 100644 --- a/old_docs/API_docs_v45/methods/channels_readHistory.md +++ b/old_docs/API_docs_v45/methods/channels_readHistory.md @@ -21,10 +21,10 @@ description: channels.readHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/channels_reportSpam.md b/old_docs/API_docs_v45/methods/channels_reportSpam.md index dc8542f2..9e3e13ac 100644 --- a/old_docs/API_docs_v45/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v45/methods/channels_reportSpam.md @@ -22,10 +22,10 @@ description: channels.reportSpam parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/channels_toggleComments.md b/old_docs/API_docs_v45/methods/channels_toggleComments.md index eaaeb720..31873eb9 100644 --- a/old_docs/API_docs_v45/methods/channels_toggleComments.md +++ b/old_docs/API_docs_v45/methods/channels_toggleComments.md @@ -21,10 +21,10 @@ description: channels.toggleComments parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/channels_updateUsername.md b/old_docs/API_docs_v45/methods/channels_updateUsername.md index ebb03507..801bc972 100644 --- a/old_docs/API_docs_v45/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v45/methods/channels_updateUsername.md @@ -21,10 +21,10 @@ description: channels.updateUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/contacts_block.md b/old_docs/API_docs_v45/methods/contacts_block.md index b809b15c..f512adcc 100644 --- a/old_docs/API_docs_v45/methods/contacts_block.md +++ b/old_docs/API_docs_v45/methods/contacts_block.md @@ -20,10 +20,10 @@ description: contacts.block parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/contacts_deleteContact.md b/old_docs/API_docs_v45/methods/contacts_deleteContact.md index 18ef51f8..a3e8f63d 100644 --- a/old_docs/API_docs_v45/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v45/methods/contacts_deleteContact.md @@ -20,10 +20,10 @@ description: contacts.deleteContact parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/contacts_deleteContacts.md b/old_docs/API_docs_v45/methods/contacts_deleteContacts.md index 40672188..46e251eb 100644 --- a/old_docs/API_docs_v45/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v45/methods/contacts_deleteContacts.md @@ -20,10 +20,10 @@ description: contacts.deleteContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/contacts_exportCard.md b/old_docs/API_docs_v45/methods/contacts_exportCard.md index 4145d246..f7ec0015 100644 --- a/old_docs/API_docs_v45/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v45/methods/contacts_exportCard.md @@ -15,10 +15,10 @@ description: contacts.exportCard parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/contacts_getBlocked.md b/old_docs/API_docs_v45/methods/contacts_getBlocked.md index 50172d03..0fc72dba 100644 --- a/old_docs/API_docs_v45/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v45/methods/contacts_getBlocked.md @@ -21,10 +21,10 @@ description: contacts.getBlocked parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/contacts_getContacts.md b/old_docs/API_docs_v45/methods/contacts_getContacts.md index 0e6f22e9..656821e0 100644 --- a/old_docs/API_docs_v45/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v45/methods/contacts_getContacts.md @@ -20,10 +20,10 @@ description: contacts.getContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/contacts_getStatuses.md b/old_docs/API_docs_v45/methods/contacts_getStatuses.md index b734f529..ee806f2d 100644 --- a/old_docs/API_docs_v45/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v45/methods/contacts_getStatuses.md @@ -15,10 +15,10 @@ description: contacts.getStatuses parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/contacts_getSuggested.md b/old_docs/API_docs_v45/methods/contacts_getSuggested.md index a49b5913..4cd124e7 100644 --- a/old_docs/API_docs_v45/methods/contacts_getSuggested.md +++ b/old_docs/API_docs_v45/methods/contacts_getSuggested.md @@ -20,10 +20,10 @@ description: contacts.getSuggested parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/contacts_importCard.md b/old_docs/API_docs_v45/methods/contacts_importCard.md index 6b2c612e..162ff4f3 100644 --- a/old_docs/API_docs_v45/methods/contacts_importCard.md +++ b/old_docs/API_docs_v45/methods/contacts_importCard.md @@ -20,10 +20,10 @@ description: contacts.importCard parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/contacts_importContacts.md b/old_docs/API_docs_v45/methods/contacts_importContacts.md index 2426f53c..48412e99 100644 --- a/old_docs/API_docs_v45/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v45/methods/contacts_importContacts.md @@ -21,10 +21,10 @@ description: contacts.importContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/contacts_resolveUsername.md b/old_docs/API_docs_v45/methods/contacts_resolveUsername.md index 0ea67c6f..b847fbe9 100644 --- a/old_docs/API_docs_v45/methods/contacts_resolveUsername.md +++ b/old_docs/API_docs_v45/methods/contacts_resolveUsername.md @@ -20,10 +20,10 @@ description: contacts.resolveUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/contacts_search.md b/old_docs/API_docs_v45/methods/contacts_search.md index 00a39519..9a351db7 100644 --- a/old_docs/API_docs_v45/methods/contacts_search.md +++ b/old_docs/API_docs_v45/methods/contacts_search.md @@ -21,10 +21,10 @@ description: contacts.search parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/contacts_unblock.md b/old_docs/API_docs_v45/methods/contacts_unblock.md index 63f41483..6d739c9b 100644 --- a/old_docs/API_docs_v45/methods/contacts_unblock.md +++ b/old_docs/API_docs_v45/methods/contacts_unblock.md @@ -20,10 +20,10 @@ description: contacts.unblock parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/help_getAppChangelog.md b/old_docs/API_docs_v45/methods/help_getAppChangelog.md index bfe48334..1b52c928 100644 --- a/old_docs/API_docs_v45/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v45/methods/help_getAppChangelog.md @@ -23,10 +23,10 @@ description: help.getAppChangelog parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/help_getAppUpdate.md b/old_docs/API_docs_v45/methods/help_getAppUpdate.md index 7be3b374..9559c840 100644 --- a/old_docs/API_docs_v45/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v45/methods/help_getAppUpdate.md @@ -23,10 +23,10 @@ description: help.getAppUpdate parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/help_getConfig.md b/old_docs/API_docs_v45/methods/help_getConfig.md index cb9c4f1c..9481a0c0 100644 --- a/old_docs/API_docs_v45/methods/help_getConfig.md +++ b/old_docs/API_docs_v45/methods/help_getConfig.md @@ -15,10 +15,10 @@ description: help.getConfig parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/help_getInviteText.md b/old_docs/API_docs_v45/methods/help_getInviteText.md index f265f8d3..14692791 100644 --- a/old_docs/API_docs_v45/methods/help_getInviteText.md +++ b/old_docs/API_docs_v45/methods/help_getInviteText.md @@ -20,10 +20,10 @@ description: help.getInviteText parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/help_getNearestDc.md b/old_docs/API_docs_v45/methods/help_getNearestDc.md index f491ae0c..bb6b1883 100644 --- a/old_docs/API_docs_v45/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v45/methods/help_getNearestDc.md @@ -15,10 +15,10 @@ description: help.getNearestDc parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/help_getSupport.md b/old_docs/API_docs_v45/methods/help_getSupport.md index 03574c6f..0348089a 100644 --- a/old_docs/API_docs_v45/methods/help_getSupport.md +++ b/old_docs/API_docs_v45/methods/help_getSupport.md @@ -15,10 +15,10 @@ description: help.getSupport parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/help_getTermsOfService.md b/old_docs/API_docs_v45/methods/help_getTermsOfService.md index 39129b28..ea71f5f6 100644 --- a/old_docs/API_docs_v45/methods/help_getTermsOfService.md +++ b/old_docs/API_docs_v45/methods/help_getTermsOfService.md @@ -20,10 +20,10 @@ description: help.getTermsOfService parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/help_saveAppLog.md b/old_docs/API_docs_v45/methods/help_saveAppLog.md index 3887ccc2..59b92601 100644 --- a/old_docs/API_docs_v45/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v45/methods/help_saveAppLog.md @@ -20,10 +20,10 @@ description: help.saveAppLog parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/initConnection.md b/old_docs/API_docs_v45/methods/initConnection.md index 1c946720..aa89066c 100644 --- a/old_docs/API_docs_v45/methods/initConnection.md +++ b/old_docs/API_docs_v45/methods/initConnection.md @@ -25,10 +25,10 @@ description: initConnection parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/invokeAfterMsg.md b/old_docs/API_docs_v45/methods/invokeAfterMsg.md index 1b35a238..97c4f1fb 100644 --- a/old_docs/API_docs_v45/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v45/methods/invokeAfterMsg.md @@ -21,10 +21,10 @@ description: invokeAfterMsg parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/invokeAfterMsgs.md b/old_docs/API_docs_v45/methods/invokeAfterMsgs.md index 164ab318..4e278ef1 100644 --- a/old_docs/API_docs_v45/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v45/methods/invokeAfterMsgs.md @@ -21,10 +21,10 @@ description: invokeAfterMsgs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/invokeWithLayer.md b/old_docs/API_docs_v45/methods/invokeWithLayer.md index 497cc285..72fe47ec 100644 --- a/old_docs/API_docs_v45/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v45/methods/invokeWithLayer.md @@ -21,10 +21,10 @@ description: invokeWithLayer parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v45/methods/invokeWithoutUpdates.md index cbdabb07..5151b786 100644 --- a/old_docs/API_docs_v45/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v45/methods/invokeWithoutUpdates.md @@ -20,10 +20,10 @@ description: invokeWithoutUpdates parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_acceptEncryption.md b/old_docs/API_docs_v45/methods/messages_acceptEncryption.md index d41beb91..e016f5d3 100644 --- a/old_docs/API_docs_v45/methods/messages_acceptEncryption.md +++ b/old_docs/API_docs_v45/methods/messages_acceptEncryption.md @@ -22,10 +22,10 @@ description: messages.acceptEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_addChatUser.md b/old_docs/API_docs_v45/methods/messages_addChatUser.md index 13d17a3e..df2cb1a5 100644 --- a/old_docs/API_docs_v45/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v45/methods/messages_addChatUser.md @@ -22,10 +22,10 @@ description: messages.addChatUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_checkChatInvite.md b/old_docs/API_docs_v45/methods/messages_checkChatInvite.md index 0a3a4f84..7670727b 100644 --- a/old_docs/API_docs_v45/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v45/methods/messages_checkChatInvite.md @@ -20,10 +20,10 @@ description: messages.checkChatInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_createChat.md b/old_docs/API_docs_v45/methods/messages_createChat.md index 0ab3101a..2fc5631c 100644 --- a/old_docs/API_docs_v45/methods/messages_createChat.md +++ b/old_docs/API_docs_v45/methods/messages_createChat.md @@ -21,10 +21,10 @@ description: messages.createChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_deleteChatUser.md b/old_docs/API_docs_v45/methods/messages_deleteChatUser.md index ed736ebd..6895649f 100644 --- a/old_docs/API_docs_v45/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v45/methods/messages_deleteChatUser.md @@ -21,10 +21,10 @@ description: messages.deleteChatUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_deleteHistory.md b/old_docs/API_docs_v45/methods/messages_deleteHistory.md index 64c060dc..8517ee62 100644 --- a/old_docs/API_docs_v45/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v45/methods/messages_deleteHistory.md @@ -21,10 +21,10 @@ description: messages.deleteHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_deleteMessages.md b/old_docs/API_docs_v45/methods/messages_deleteMessages.md index 5997c2ed..d9d28886 100644 --- a/old_docs/API_docs_v45/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v45/methods/messages_deleteMessages.md @@ -20,10 +20,10 @@ description: messages.deleteMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_discardEncryption.md b/old_docs/API_docs_v45/methods/messages_discardEncryption.md index ebc1ace5..f237c986 100644 --- a/old_docs/API_docs_v45/methods/messages_discardEncryption.md +++ b/old_docs/API_docs_v45/methods/messages_discardEncryption.md @@ -20,10 +20,10 @@ description: messages.discardEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_editChatAdmin.md b/old_docs/API_docs_v45/methods/messages_editChatAdmin.md index 38bc8de0..74f5a39f 100644 --- a/old_docs/API_docs_v45/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v45/methods/messages_editChatAdmin.md @@ -22,10 +22,10 @@ description: messages.editChatAdmin parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_editChatPhoto.md b/old_docs/API_docs_v45/methods/messages_editChatPhoto.md index e3cbf492..0396c74b 100644 --- a/old_docs/API_docs_v45/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v45/methods/messages_editChatPhoto.md @@ -21,10 +21,10 @@ description: messages.editChatPhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_editChatTitle.md b/old_docs/API_docs_v45/methods/messages_editChatTitle.md index 60eae01c..fabe9c87 100644 --- a/old_docs/API_docs_v45/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v45/methods/messages_editChatTitle.md @@ -21,10 +21,10 @@ description: messages.editChatTitle parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_exportChatInvite.md b/old_docs/API_docs_v45/methods/messages_exportChatInvite.md index 3efc9bf7..b96e7498 100644 --- a/old_docs/API_docs_v45/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v45/methods/messages_exportChatInvite.md @@ -20,10 +20,10 @@ description: messages.exportChatInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_forwardMessage.md b/old_docs/API_docs_v45/methods/messages_forwardMessage.md index a95d259a..ced2cb5b 100644 --- a/old_docs/API_docs_v45/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v45/methods/messages_forwardMessage.md @@ -21,10 +21,10 @@ description: messages.forwardMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_forwardMessages.md b/old_docs/API_docs_v45/methods/messages_forwardMessages.md index a6add4d1..80d98650 100644 --- a/old_docs/API_docs_v45/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v45/methods/messages_forwardMessages.md @@ -23,10 +23,10 @@ description: messages.forwardMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_getAllStickers.md b/old_docs/API_docs_v45/methods/messages_getAllStickers.md index 613db3b2..fe438a80 100644 --- a/old_docs/API_docs_v45/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v45/methods/messages_getAllStickers.md @@ -20,10 +20,10 @@ description: messages.getAllStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_getChats.md b/old_docs/API_docs_v45/methods/messages_getChats.md index ad63744b..be57718e 100644 --- a/old_docs/API_docs_v45/methods/messages_getChats.md +++ b/old_docs/API_docs_v45/methods/messages_getChats.md @@ -20,10 +20,10 @@ description: messages.getChats parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_getDhConfig.md b/old_docs/API_docs_v45/methods/messages_getDhConfig.md index bcebea55..21b37f21 100644 --- a/old_docs/API_docs_v45/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v45/methods/messages_getDhConfig.md @@ -21,10 +21,10 @@ description: messages.getDhConfig parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_getDialogs.md b/old_docs/API_docs_v45/methods/messages_getDialogs.md index 07e2b246..ca93a52a 100644 --- a/old_docs/API_docs_v45/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v45/methods/messages_getDialogs.md @@ -23,10 +23,10 @@ description: messages.getDialogs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v45/methods/messages_getDocumentByHash.md index 32fc1de0..ca26acc3 100644 --- a/old_docs/API_docs_v45/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v45/methods/messages_getDocumentByHash.md @@ -22,10 +22,10 @@ description: messages.getDocumentByHash parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_getFullChat.md b/old_docs/API_docs_v45/methods/messages_getFullChat.md index f3c8223a..10d938ae 100644 --- a/old_docs/API_docs_v45/methods/messages_getFullChat.md +++ b/old_docs/API_docs_v45/methods/messages_getFullChat.md @@ -20,10 +20,10 @@ description: messages.getFullChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_getHistory.md b/old_docs/API_docs_v45/methods/messages_getHistory.md index 84324235..409526cc 100644 --- a/old_docs/API_docs_v45/methods/messages_getHistory.md +++ b/old_docs/API_docs_v45/methods/messages_getHistory.md @@ -25,10 +25,10 @@ description: messages.getHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v45/methods/messages_getInlineBotResults.md index 938e162f..b46895c3 100644 --- a/old_docs/API_docs_v45/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v45/methods/messages_getInlineBotResults.md @@ -22,10 +22,10 @@ description: messages.getInlineBotResults parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_getMessages.md b/old_docs/API_docs_v45/methods/messages_getMessages.md index 224df903..e669bcf8 100644 --- a/old_docs/API_docs_v45/methods/messages_getMessages.md +++ b/old_docs/API_docs_v45/methods/messages_getMessages.md @@ -20,10 +20,10 @@ description: messages.getMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_getMessagesViews.md b/old_docs/API_docs_v45/methods/messages_getMessagesViews.md index d162b668..f27cdb36 100644 --- a/old_docs/API_docs_v45/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v45/methods/messages_getMessagesViews.md @@ -22,10 +22,10 @@ description: messages.getMessagesViews parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_getSavedGifs.md b/old_docs/API_docs_v45/methods/messages_getSavedGifs.md index 0ca34eef..fbdc5129 100644 --- a/old_docs/API_docs_v45/methods/messages_getSavedGifs.md +++ b/old_docs/API_docs_v45/methods/messages_getSavedGifs.md @@ -20,10 +20,10 @@ description: messages.getSavedGifs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_getStickerSet.md b/old_docs/API_docs_v45/methods/messages_getStickerSet.md index 2ec2fa5d..561eec32 100644 --- a/old_docs/API_docs_v45/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v45/methods/messages_getStickerSet.md @@ -20,10 +20,10 @@ description: messages.getStickerSet parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_getStickers.md b/old_docs/API_docs_v45/methods/messages_getStickers.md index 6730f586..e9aedd80 100644 --- a/old_docs/API_docs_v45/methods/messages_getStickers.md +++ b/old_docs/API_docs_v45/methods/messages_getStickers.md @@ -21,10 +21,10 @@ description: messages.getStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v45/methods/messages_getWebPagePreview.md index e2dd428d..a3d5fce3 100644 --- a/old_docs/API_docs_v45/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v45/methods/messages_getWebPagePreview.md @@ -20,10 +20,10 @@ description: messages.getWebPagePreview parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_importChatInvite.md b/old_docs/API_docs_v45/methods/messages_importChatInvite.md index 250d076d..a4e9c052 100644 --- a/old_docs/API_docs_v45/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v45/methods/messages_importChatInvite.md @@ -20,10 +20,10 @@ description: messages.importChatInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_installStickerSet.md b/old_docs/API_docs_v45/methods/messages_installStickerSet.md index f99d40b4..5180bcbd 100644 --- a/old_docs/API_docs_v45/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v45/methods/messages_installStickerSet.md @@ -21,10 +21,10 @@ description: messages.installStickerSet parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_migrateChat.md b/old_docs/API_docs_v45/methods/messages_migrateChat.md index 5b1e375a..731dc904 100644 --- a/old_docs/API_docs_v45/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v45/methods/messages_migrateChat.md @@ -20,10 +20,10 @@ description: messages.migrateChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v45/methods/messages_readEncryptedHistory.md index 555bffe7..5bb05536 100644 --- a/old_docs/API_docs_v45/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v45/methods/messages_readEncryptedHistory.md @@ -21,10 +21,10 @@ description: messages.readEncryptedHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_readHistory.md b/old_docs/API_docs_v45/methods/messages_readHistory.md index 1e2783ae..6bb29fef 100644 --- a/old_docs/API_docs_v45/methods/messages_readHistory.md +++ b/old_docs/API_docs_v45/methods/messages_readHistory.md @@ -21,10 +21,10 @@ description: messages.readHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_readMessageContents.md b/old_docs/API_docs_v45/methods/messages_readMessageContents.md index ae75d612..829e7cc8 100644 --- a/old_docs/API_docs_v45/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v45/methods/messages_readMessageContents.md @@ -20,10 +20,10 @@ description: messages.readMessageContents parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_receivedMessages.md b/old_docs/API_docs_v45/methods/messages_receivedMessages.md index ffeaeed7..05a229b6 100644 --- a/old_docs/API_docs_v45/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v45/methods/messages_receivedMessages.md @@ -20,10 +20,10 @@ description: messages.receivedMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_receivedQueue.md b/old_docs/API_docs_v45/methods/messages_receivedQueue.md index e514669c..d8bfae5e 100644 --- a/old_docs/API_docs_v45/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v45/methods/messages_receivedQueue.md @@ -20,10 +20,10 @@ description: messages.receivedQueue parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_reorderStickerSets.md b/old_docs/API_docs_v45/methods/messages_reorderStickerSets.md index 4070988e..a1d27734 100644 --- a/old_docs/API_docs_v45/methods/messages_reorderStickerSets.md +++ b/old_docs/API_docs_v45/methods/messages_reorderStickerSets.md @@ -20,10 +20,10 @@ description: messages.reorderStickerSets parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_reportSpam.md b/old_docs/API_docs_v45/methods/messages_reportSpam.md index 56975b9d..da747585 100644 --- a/old_docs/API_docs_v45/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v45/methods/messages_reportSpam.md @@ -20,10 +20,10 @@ description: messages.reportSpam parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_requestEncryption.md b/old_docs/API_docs_v45/methods/messages_requestEncryption.md index e82fca54..99fe7ecf 100644 --- a/old_docs/API_docs_v45/methods/messages_requestEncryption.md +++ b/old_docs/API_docs_v45/methods/messages_requestEncryption.md @@ -21,10 +21,10 @@ description: messages.requestEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_saveGif.md b/old_docs/API_docs_v45/methods/messages_saveGif.md index 0bd648d8..ea2174ea 100644 --- a/old_docs/API_docs_v45/methods/messages_saveGif.md +++ b/old_docs/API_docs_v45/methods/messages_saveGif.md @@ -21,10 +21,10 @@ description: messages.saveGif parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_search.md b/old_docs/API_docs_v45/methods/messages_search.md index 9f1ab5ba..4a5c4bb9 100644 --- a/old_docs/API_docs_v45/methods/messages_search.md +++ b/old_docs/API_docs_v45/methods/messages_search.md @@ -28,10 +28,10 @@ description: messages.search parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_searchGifs.md b/old_docs/API_docs_v45/methods/messages_searchGifs.md index 18ad844b..8a1de718 100644 --- a/old_docs/API_docs_v45/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v45/methods/messages_searchGifs.md @@ -21,10 +21,10 @@ description: messages.searchGifs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_searchGlobal.md b/old_docs/API_docs_v45/methods/messages_searchGlobal.md index aacdb99f..02d790e9 100644 --- a/old_docs/API_docs_v45/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v45/methods/messages_searchGlobal.md @@ -24,10 +24,10 @@ description: messages.searchGlobal parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_sendBroadcast.md b/old_docs/API_docs_v45/methods/messages_sendBroadcast.md index 9194fdf1..b19bec57 100644 --- a/old_docs/API_docs_v45/methods/messages_sendBroadcast.md +++ b/old_docs/API_docs_v45/methods/messages_sendBroadcast.md @@ -22,10 +22,10 @@ description: messages.sendBroadcast parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_sendEncrypted.md b/old_docs/API_docs_v45/methods/messages_sendEncrypted.md index f2c2c0c2..c3585580 100644 --- a/old_docs/API_docs_v45/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v45/methods/messages_sendEncrypted.md @@ -21,10 +21,10 @@ description: messages.sendEncrypted parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v45/methods/messages_sendEncryptedFile.md index a57a3dd8..40674df9 100644 --- a/old_docs/API_docs_v45/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v45/methods/messages_sendEncryptedFile.md @@ -22,10 +22,10 @@ description: messages.sendEncryptedFile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v45/methods/messages_sendEncryptedService.md index 4041c4d0..8bfee571 100644 --- a/old_docs/API_docs_v45/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v45/methods/messages_sendEncryptedService.md @@ -21,10 +21,10 @@ description: messages.sendEncryptedService parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v45/methods/messages_sendInlineBotResult.md index fe925485..8741d064 100644 --- a/old_docs/API_docs_v45/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v45/methods/messages_sendInlineBotResult.md @@ -24,10 +24,10 @@ description: messages.sendInlineBotResult parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_sendMedia.md b/old_docs/API_docs_v45/methods/messages_sendMedia.md index 01e66c35..f9e9b49a 100644 --- a/old_docs/API_docs_v45/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v45/methods/messages_sendMedia.md @@ -24,10 +24,10 @@ description: messages.sendMedia parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; @@ -46,3 +46,9 @@ Or, if you're into Lua: Updates = messages.sendMedia({broadcast=Bool, peer=InputPeer, reply_to_msg_id=int, media=InputMedia, reply_markup=ReplyMarkup, }) ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v45/methods/messages_sendMessage.md b/old_docs/API_docs_v45/methods/messages_sendMessage.md index 51e032ca..074cb877 100644 --- a/old_docs/API_docs_v45/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v45/methods/messages_sendMessage.md @@ -27,10 +27,10 @@ description: messages.sendMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; @@ -50,6 +50,12 @@ Updates = messages.sendMessage({no_webpage=Bool, broadcast=Bool, peer=InputPeer, ``` +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + + ## Usage of parse_mode: Set parse_mode to html to enable HTML parsing of the message. diff --git a/old_docs/API_docs_v45/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v45/methods/messages_setEncryptedTyping.md index 95364d49..ae718bba 100644 --- a/old_docs/API_docs_v45/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v45/methods/messages_setEncryptedTyping.md @@ -21,10 +21,10 @@ description: messages.setEncryptedTyping parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v45/methods/messages_setInlineBotResults.md index fac1028b..3afe4664 100644 --- a/old_docs/API_docs_v45/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v45/methods/messages_setInlineBotResults.md @@ -25,10 +25,10 @@ description: messages.setInlineBotResults parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_setTyping.md b/old_docs/API_docs_v45/methods/messages_setTyping.md index 0ce5743d..75903c68 100644 --- a/old_docs/API_docs_v45/methods/messages_setTyping.md +++ b/old_docs/API_docs_v45/methods/messages_setTyping.md @@ -21,10 +21,10 @@ description: messages.setTyping parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_startBot.md b/old_docs/API_docs_v45/methods/messages_startBot.md index 5f563224..bf79b142 100644 --- a/old_docs/API_docs_v45/methods/messages_startBot.md +++ b/old_docs/API_docs_v45/methods/messages_startBot.md @@ -22,10 +22,10 @@ description: messages.startBot parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v45/methods/messages_toggleChatAdmins.md index 0ad6ba92..05d74e5a 100644 --- a/old_docs/API_docs_v45/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v45/methods/messages_toggleChatAdmins.md @@ -21,10 +21,10 @@ description: messages.toggleChatAdmins parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v45/methods/messages_uninstallStickerSet.md index 97fff059..5202b086 100644 --- a/old_docs/API_docs_v45/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v45/methods/messages_uninstallStickerSet.md @@ -20,10 +20,10 @@ description: messages.uninstallStickerSet parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/photos_deletePhotos.md b/old_docs/API_docs_v45/methods/photos_deletePhotos.md index 6a717835..2d27b700 100644 --- a/old_docs/API_docs_v45/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v45/methods/photos_deletePhotos.md @@ -20,10 +20,10 @@ description: photos.deletePhotos parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/photos_getUserPhotos.md b/old_docs/API_docs_v45/methods/photos_getUserPhotos.md index 4aa96dfa..0f50ee6f 100644 --- a/old_docs/API_docs_v45/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v45/methods/photos_getUserPhotos.md @@ -23,10 +23,10 @@ description: photos.getUserPhotos parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v45/methods/photos_updateProfilePhoto.md index f18669cc..9ae9c59e 100644 --- a/old_docs/API_docs_v45/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v45/methods/photos_updateProfilePhoto.md @@ -21,10 +21,10 @@ description: photos.updateProfilePhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v45/methods/photos_uploadProfilePhoto.md index 3eb7a10c..567eb363 100644 --- a/old_docs/API_docs_v45/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v45/methods/photos_uploadProfilePhoto.md @@ -23,10 +23,10 @@ description: photos.uploadProfilePhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/updates_getChannelDifference.md b/old_docs/API_docs_v45/methods/updates_getChannelDifference.md index 1add786f..d3b725f4 100644 --- a/old_docs/API_docs_v45/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v45/methods/updates_getChannelDifference.md @@ -23,10 +23,10 @@ description: updates.getChannelDifference parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/updates_getDifference.md b/old_docs/API_docs_v45/methods/updates_getDifference.md index c7ae5664..719a7a02 100644 --- a/old_docs/API_docs_v45/methods/updates_getDifference.md +++ b/old_docs/API_docs_v45/methods/updates_getDifference.md @@ -22,10 +22,10 @@ description: updates.getDifference parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/updates_getState.md b/old_docs/API_docs_v45/methods/updates_getState.md index 5612ca79..53fc0c16 100644 --- a/old_docs/API_docs_v45/methods/updates_getState.md +++ b/old_docs/API_docs_v45/methods/updates_getState.md @@ -15,10 +15,10 @@ description: updates.getState parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/upload_getFile.md b/old_docs/API_docs_v45/methods/upload_getFile.md index a2f3d961..ee35140a 100644 --- a/old_docs/API_docs_v45/methods/upload_getFile.md +++ b/old_docs/API_docs_v45/methods/upload_getFile.md @@ -22,10 +22,10 @@ description: upload.getFile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/upload_saveBigFilePart.md b/old_docs/API_docs_v45/methods/upload_saveBigFilePart.md index 03641055..503d1b5c 100644 --- a/old_docs/API_docs_v45/methods/upload_saveBigFilePart.md +++ b/old_docs/API_docs_v45/methods/upload_saveBigFilePart.md @@ -23,10 +23,10 @@ description: upload.saveBigFilePart parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/upload_saveFilePart.md b/old_docs/API_docs_v45/methods/upload_saveFilePart.md index 192412c8..d7f745aa 100644 --- a/old_docs/API_docs_v45/methods/upload_saveFilePart.md +++ b/old_docs/API_docs_v45/methods/upload_saveFilePart.md @@ -22,10 +22,10 @@ description: upload.saveFilePart parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/users_getFullUser.md b/old_docs/API_docs_v45/methods/users_getFullUser.md index 864ae387..bcba7f3d 100644 --- a/old_docs/API_docs_v45/methods/users_getFullUser.md +++ b/old_docs/API_docs_v45/methods/users_getFullUser.md @@ -20,10 +20,10 @@ description: users.getFullUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v45/methods/users_getUsers.md b/old_docs/API_docs_v45/methods/users_getUsers.md index 34816478..e03fd2d6 100644 --- a/old_docs/API_docs_v45/methods/users_getUsers.md +++ b/old_docs/API_docs_v45/methods/users_getUsers.md @@ -20,10 +20,10 @@ description: users.getUsers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/constructors/message.md b/old_docs/API_docs_v46/constructors/message.md index 1eef33ab..7eee6d52 100644 --- a/old_docs/API_docs_v46/constructors/message.md +++ b/old_docs/API_docs_v46/constructors/message.md @@ -49,3 +49,9 @@ message={_='message', unread=Bool, out=Bool, mentioned=Bool, media_unread=Bool, ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v46/methods/account_changePhone.md b/old_docs/API_docs_v46/methods/account_changePhone.md index dc3e0427..6691a743 100644 --- a/old_docs/API_docs_v46/methods/account_changePhone.md +++ b/old_docs/API_docs_v46/methods/account_changePhone.md @@ -22,10 +22,10 @@ description: account.changePhone parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/account_checkUsername.md b/old_docs/API_docs_v46/methods/account_checkUsername.md index dc13041c..e954ca99 100644 --- a/old_docs/API_docs_v46/methods/account_checkUsername.md +++ b/old_docs/API_docs_v46/methods/account_checkUsername.md @@ -20,10 +20,10 @@ description: account.checkUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/account_deleteAccount.md b/old_docs/API_docs_v46/methods/account_deleteAccount.md index 4199572b..0d0a6204 100644 --- a/old_docs/API_docs_v46/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v46/methods/account_deleteAccount.md @@ -20,10 +20,10 @@ description: account.deleteAccount parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/account_getAccountTTL.md b/old_docs/API_docs_v46/methods/account_getAccountTTL.md index ff4171df..e284a80e 100644 --- a/old_docs/API_docs_v46/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v46/methods/account_getAccountTTL.md @@ -15,10 +15,10 @@ description: account.getAccountTTL parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/account_getAuthorizations.md b/old_docs/API_docs_v46/methods/account_getAuthorizations.md index 26f755d4..ee5a00d6 100644 --- a/old_docs/API_docs_v46/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v46/methods/account_getAuthorizations.md @@ -15,10 +15,10 @@ description: account.getAuthorizations parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/account_getNotifySettings.md b/old_docs/API_docs_v46/methods/account_getNotifySettings.md index 817f201a..2e7fd9ba 100644 --- a/old_docs/API_docs_v46/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v46/methods/account_getNotifySettings.md @@ -20,10 +20,10 @@ description: account.getNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/account_getPassword.md b/old_docs/API_docs_v46/methods/account_getPassword.md index d7491fec..424d3710 100644 --- a/old_docs/API_docs_v46/methods/account_getPassword.md +++ b/old_docs/API_docs_v46/methods/account_getPassword.md @@ -15,10 +15,10 @@ description: account.getPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/account_getPasswordSettings.md b/old_docs/API_docs_v46/methods/account_getPasswordSettings.md index 5be9a523..3e72e398 100644 --- a/old_docs/API_docs_v46/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v46/methods/account_getPasswordSettings.md @@ -20,10 +20,10 @@ description: account.getPasswordSettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/account_getPrivacy.md b/old_docs/API_docs_v46/methods/account_getPrivacy.md index 649019d5..26137fd3 100644 --- a/old_docs/API_docs_v46/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v46/methods/account_getPrivacy.md @@ -20,10 +20,10 @@ description: account.getPrivacy parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/account_getWallPapers.md b/old_docs/API_docs_v46/methods/account_getWallPapers.md index 9eb0182a..a44ea777 100644 --- a/old_docs/API_docs_v46/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v46/methods/account_getWallPapers.md @@ -15,10 +15,10 @@ description: account.getWallPapers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/account_registerDevice.md b/old_docs/API_docs_v46/methods/account_registerDevice.md index 168dcba0..70cadfab 100644 --- a/old_docs/API_docs_v46/methods/account_registerDevice.md +++ b/old_docs/API_docs_v46/methods/account_registerDevice.md @@ -26,10 +26,10 @@ description: account.registerDevice parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/account_reportPeer.md b/old_docs/API_docs_v46/methods/account_reportPeer.md index bb8dea54..7d913217 100644 --- a/old_docs/API_docs_v46/methods/account_reportPeer.md +++ b/old_docs/API_docs_v46/methods/account_reportPeer.md @@ -21,10 +21,10 @@ description: account.reportPeer parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/account_resetAuthorization.md b/old_docs/API_docs_v46/methods/account_resetAuthorization.md index aaf5a660..2c7c5bc4 100644 --- a/old_docs/API_docs_v46/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v46/methods/account_resetAuthorization.md @@ -20,10 +20,10 @@ description: account.resetAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/account_resetNotifySettings.md b/old_docs/API_docs_v46/methods/account_resetNotifySettings.md index 5a6a4c95..aa01dfce 100644 --- a/old_docs/API_docs_v46/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v46/methods/account_resetNotifySettings.md @@ -15,10 +15,10 @@ description: account.resetNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v46/methods/account_sendChangePhoneCode.md index 98110148..4ccc4045 100644 --- a/old_docs/API_docs_v46/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v46/methods/account_sendChangePhoneCode.md @@ -20,10 +20,10 @@ description: account.sendChangePhoneCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/account_setAccountTTL.md b/old_docs/API_docs_v46/methods/account_setAccountTTL.md index 6ae8d70e..460ae89a 100644 --- a/old_docs/API_docs_v46/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v46/methods/account_setAccountTTL.md @@ -20,10 +20,10 @@ description: account.setAccountTTL parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/account_setPrivacy.md b/old_docs/API_docs_v46/methods/account_setPrivacy.md index e438ca16..f05356db 100644 --- a/old_docs/API_docs_v46/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v46/methods/account_setPrivacy.md @@ -21,10 +21,10 @@ description: account.setPrivacy parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/account_unregisterDevice.md b/old_docs/API_docs_v46/methods/account_unregisterDevice.md index 89ab99a8..1063fad3 100644 --- a/old_docs/API_docs_v46/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v46/methods/account_unregisterDevice.md @@ -21,10 +21,10 @@ description: account.unregisterDevice parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v46/methods/account_updateDeviceLocked.md index 3fe6b8b6..506d974f 100644 --- a/old_docs/API_docs_v46/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v46/methods/account_updateDeviceLocked.md @@ -20,10 +20,10 @@ description: account.updateDeviceLocked parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/account_updateNotifySettings.md b/old_docs/API_docs_v46/methods/account_updateNotifySettings.md index 7eea8202..cb90a39f 100644 --- a/old_docs/API_docs_v46/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v46/methods/account_updateNotifySettings.md @@ -21,10 +21,10 @@ description: account.updateNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v46/methods/account_updatePasswordSettings.md index 56e4d724..ad1a930d 100644 --- a/old_docs/API_docs_v46/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v46/methods/account_updatePasswordSettings.md @@ -21,10 +21,10 @@ description: account.updatePasswordSettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/account_updateProfile.md b/old_docs/API_docs_v46/methods/account_updateProfile.md index fce1c8c9..cf8374de 100644 --- a/old_docs/API_docs_v46/methods/account_updateProfile.md +++ b/old_docs/API_docs_v46/methods/account_updateProfile.md @@ -21,10 +21,10 @@ description: account.updateProfile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/account_updateStatus.md b/old_docs/API_docs_v46/methods/account_updateStatus.md index f2fd751e..ac260312 100644 --- a/old_docs/API_docs_v46/methods/account_updateStatus.md +++ b/old_docs/API_docs_v46/methods/account_updateStatus.md @@ -20,10 +20,10 @@ description: account.updateStatus parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/account_updateUsername.md b/old_docs/API_docs_v46/methods/account_updateUsername.md index b5e428e4..7daf43e0 100644 --- a/old_docs/API_docs_v46/methods/account_updateUsername.md +++ b/old_docs/API_docs_v46/methods/account_updateUsername.md @@ -20,10 +20,10 @@ description: account.updateUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v46/methods/auth_bindTempAuthKey.md index 87d0c7cf..55e083cd 100644 --- a/old_docs/API_docs_v46/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v46/methods/auth_bindTempAuthKey.md @@ -23,10 +23,10 @@ description: auth.bindTempAuthKey parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/auth_checkPassword.md b/old_docs/API_docs_v46/methods/auth_checkPassword.md index 601146fc..9dcb706a 100644 --- a/old_docs/API_docs_v46/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v46/methods/auth_checkPassword.md @@ -20,10 +20,10 @@ description: auth.checkPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/auth_checkPhone.md b/old_docs/API_docs_v46/methods/auth_checkPhone.md index 2e4db690..ce137f9d 100644 --- a/old_docs/API_docs_v46/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v46/methods/auth_checkPhone.md @@ -20,10 +20,10 @@ description: auth.checkPhone parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/auth_exportAuthorization.md b/old_docs/API_docs_v46/methods/auth_exportAuthorization.md index a69f0301..bfd16433 100644 --- a/old_docs/API_docs_v46/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v46/methods/auth_exportAuthorization.md @@ -20,10 +20,10 @@ description: auth.exportAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/auth_importAuthorization.md b/old_docs/API_docs_v46/methods/auth_importAuthorization.md index a0e2e4b7..956f9a72 100644 --- a/old_docs/API_docs_v46/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v46/methods/auth_importAuthorization.md @@ -21,10 +21,10 @@ description: auth.importAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/auth_importBotAuthorization.md b/old_docs/API_docs_v46/methods/auth_importBotAuthorization.md index a78a5263..11d2f7f3 100644 --- a/old_docs/API_docs_v46/methods/auth_importBotAuthorization.md +++ b/old_docs/API_docs_v46/methods/auth_importBotAuthorization.md @@ -22,10 +22,10 @@ description: auth.importBotAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/auth_logOut.md b/old_docs/API_docs_v46/methods/auth_logOut.md index ac5bd8ae..5651f753 100644 --- a/old_docs/API_docs_v46/methods/auth_logOut.md +++ b/old_docs/API_docs_v46/methods/auth_logOut.md @@ -15,10 +15,10 @@ description: auth.logOut parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/auth_recoverPassword.md b/old_docs/API_docs_v46/methods/auth_recoverPassword.md index 9b7ebcfb..e253e7d9 100644 --- a/old_docs/API_docs_v46/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v46/methods/auth_recoverPassword.md @@ -20,10 +20,10 @@ description: auth.recoverPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v46/methods/auth_requestPasswordRecovery.md index 94c0aeff..2ae670eb 100644 --- a/old_docs/API_docs_v46/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v46/methods/auth_requestPasswordRecovery.md @@ -15,10 +15,10 @@ description: auth.requestPasswordRecovery parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v46/methods/auth_resetAuthorizations.md index f55e2e4d..9b324b42 100644 --- a/old_docs/API_docs_v46/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v46/methods/auth_resetAuthorizations.md @@ -15,10 +15,10 @@ description: auth.resetAuthorizations parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/auth_sendCall.md b/old_docs/API_docs_v46/methods/auth_sendCall.md index 3d44b1d2..584235b0 100644 --- a/old_docs/API_docs_v46/methods/auth_sendCall.md +++ b/old_docs/API_docs_v46/methods/auth_sendCall.md @@ -21,10 +21,10 @@ description: auth.sendCall parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/auth_sendCode.md b/old_docs/API_docs_v46/methods/auth_sendCode.md index 8c4387cf..58305712 100644 --- a/old_docs/API_docs_v46/methods/auth_sendCode.md +++ b/old_docs/API_docs_v46/methods/auth_sendCode.md @@ -24,10 +24,10 @@ description: auth.sendCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/auth_sendInvites.md b/old_docs/API_docs_v46/methods/auth_sendInvites.md index f81a5c7e..87cdc7e3 100644 --- a/old_docs/API_docs_v46/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v46/methods/auth_sendInvites.md @@ -21,10 +21,10 @@ description: auth.sendInvites parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/auth_sendSms.md b/old_docs/API_docs_v46/methods/auth_sendSms.md index ab652a6e..fb469f84 100644 --- a/old_docs/API_docs_v46/methods/auth_sendSms.md +++ b/old_docs/API_docs_v46/methods/auth_sendSms.md @@ -21,10 +21,10 @@ description: auth.sendSms parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/auth_signIn.md b/old_docs/API_docs_v46/methods/auth_signIn.md index 7616bc80..b0fb12fe 100644 --- a/old_docs/API_docs_v46/methods/auth_signIn.md +++ b/old_docs/API_docs_v46/methods/auth_signIn.md @@ -22,10 +22,10 @@ description: auth.signIn parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/auth_signUp.md b/old_docs/API_docs_v46/methods/auth_signUp.md index f9c72d64..6f92b4f7 100644 --- a/old_docs/API_docs_v46/methods/auth_signUp.md +++ b/old_docs/API_docs_v46/methods/auth_signUp.md @@ -24,10 +24,10 @@ description: auth.signUp parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/channels_checkUsername.md b/old_docs/API_docs_v46/methods/channels_checkUsername.md index 82990d05..298b8e35 100644 --- a/old_docs/API_docs_v46/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v46/methods/channels_checkUsername.md @@ -21,10 +21,10 @@ description: channels.checkUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/channels_createChannel.md b/old_docs/API_docs_v46/methods/channels_createChannel.md index b5ffa159..207c60e9 100644 --- a/old_docs/API_docs_v46/methods/channels_createChannel.md +++ b/old_docs/API_docs_v46/methods/channels_createChannel.md @@ -23,10 +23,10 @@ description: channels.createChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/channels_deleteChannel.md b/old_docs/API_docs_v46/methods/channels_deleteChannel.md index c1eba22f..825882ab 100644 --- a/old_docs/API_docs_v46/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v46/methods/channels_deleteChannel.md @@ -20,10 +20,10 @@ description: channels.deleteChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/channels_deleteMessages.md b/old_docs/API_docs_v46/methods/channels_deleteMessages.md index e2e5e2bb..14fe6256 100644 --- a/old_docs/API_docs_v46/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v46/methods/channels_deleteMessages.md @@ -21,10 +21,10 @@ description: channels.deleteMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v46/methods/channels_deleteUserHistory.md index d3feb071..c485126f 100644 --- a/old_docs/API_docs_v46/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v46/methods/channels_deleteUserHistory.md @@ -21,10 +21,10 @@ description: channels.deleteUserHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/channels_editAbout.md b/old_docs/API_docs_v46/methods/channels_editAbout.md index 12d9df80..87c1a2c0 100644 --- a/old_docs/API_docs_v46/methods/channels_editAbout.md +++ b/old_docs/API_docs_v46/methods/channels_editAbout.md @@ -21,10 +21,10 @@ description: channels.editAbout parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/channels_editAdmin.md b/old_docs/API_docs_v46/methods/channels_editAdmin.md index 1e488778..48042957 100644 --- a/old_docs/API_docs_v46/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v46/methods/channels_editAdmin.md @@ -22,10 +22,10 @@ description: channels.editAdmin parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/channels_editPhoto.md b/old_docs/API_docs_v46/methods/channels_editPhoto.md index 9c0d0fe0..caea3df6 100644 --- a/old_docs/API_docs_v46/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v46/methods/channels_editPhoto.md @@ -21,10 +21,10 @@ description: channels.editPhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/channels_editTitle.md b/old_docs/API_docs_v46/methods/channels_editTitle.md index 057c7772..6f05ed61 100644 --- a/old_docs/API_docs_v46/methods/channels_editTitle.md +++ b/old_docs/API_docs_v46/methods/channels_editTitle.md @@ -21,10 +21,10 @@ description: channels.editTitle parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/channels_exportInvite.md b/old_docs/API_docs_v46/methods/channels_exportInvite.md index c5fa1bf9..7483038b 100644 --- a/old_docs/API_docs_v46/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v46/methods/channels_exportInvite.md @@ -20,10 +20,10 @@ description: channels.exportInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/channels_getChannels.md b/old_docs/API_docs_v46/methods/channels_getChannels.md index 24b94c8f..004f7b7e 100644 --- a/old_docs/API_docs_v46/methods/channels_getChannels.md +++ b/old_docs/API_docs_v46/methods/channels_getChannels.md @@ -20,10 +20,10 @@ description: channels.getChannels parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/channels_getDialogs.md b/old_docs/API_docs_v46/methods/channels_getDialogs.md index fbbb59a5..847a23b3 100644 --- a/old_docs/API_docs_v46/methods/channels_getDialogs.md +++ b/old_docs/API_docs_v46/methods/channels_getDialogs.md @@ -21,10 +21,10 @@ description: channels.getDialogs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/channels_getFullChannel.md b/old_docs/API_docs_v46/methods/channels_getFullChannel.md index 8bf78cd9..37abd094 100644 --- a/old_docs/API_docs_v46/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v46/methods/channels_getFullChannel.md @@ -20,10 +20,10 @@ description: channels.getFullChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/channels_getImportantHistory.md b/old_docs/API_docs_v46/methods/channels_getImportantHistory.md index 536f0244..e125fc2c 100644 --- a/old_docs/API_docs_v46/methods/channels_getImportantHistory.md +++ b/old_docs/API_docs_v46/methods/channels_getImportantHistory.md @@ -25,10 +25,10 @@ description: channels.getImportantHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/channels_getMessages.md b/old_docs/API_docs_v46/methods/channels_getMessages.md index 8204bf26..3aca181e 100644 --- a/old_docs/API_docs_v46/methods/channels_getMessages.md +++ b/old_docs/API_docs_v46/methods/channels_getMessages.md @@ -21,10 +21,10 @@ description: channels.getMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/channels_getParticipant.md b/old_docs/API_docs_v46/methods/channels_getParticipant.md index 7b685913..6bb9339e 100644 --- a/old_docs/API_docs_v46/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v46/methods/channels_getParticipant.md @@ -21,10 +21,10 @@ description: channels.getParticipant parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/channels_getParticipants.md b/old_docs/API_docs_v46/methods/channels_getParticipants.md index 6ee31676..51ac2c09 100644 --- a/old_docs/API_docs_v46/methods/channels_getParticipants.md +++ b/old_docs/API_docs_v46/methods/channels_getParticipants.md @@ -23,10 +23,10 @@ description: channels.getParticipants parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/channels_inviteToChannel.md b/old_docs/API_docs_v46/methods/channels_inviteToChannel.md index 4b4985a4..57581c7a 100644 --- a/old_docs/API_docs_v46/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v46/methods/channels_inviteToChannel.md @@ -21,10 +21,10 @@ description: channels.inviteToChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/channels_joinChannel.md b/old_docs/API_docs_v46/methods/channels_joinChannel.md index 97fd5417..359333fd 100644 --- a/old_docs/API_docs_v46/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v46/methods/channels_joinChannel.md @@ -20,10 +20,10 @@ description: channels.joinChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/channels_kickFromChannel.md b/old_docs/API_docs_v46/methods/channels_kickFromChannel.md index cf5a3ebc..930902a3 100644 --- a/old_docs/API_docs_v46/methods/channels_kickFromChannel.md +++ b/old_docs/API_docs_v46/methods/channels_kickFromChannel.md @@ -22,10 +22,10 @@ description: channels.kickFromChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/channels_leaveChannel.md b/old_docs/API_docs_v46/methods/channels_leaveChannel.md index 69dc1852..a10d17e7 100644 --- a/old_docs/API_docs_v46/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v46/methods/channels_leaveChannel.md @@ -20,10 +20,10 @@ description: channels.leaveChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/channels_readHistory.md b/old_docs/API_docs_v46/methods/channels_readHistory.md index 87906417..104a7b8f 100644 --- a/old_docs/API_docs_v46/methods/channels_readHistory.md +++ b/old_docs/API_docs_v46/methods/channels_readHistory.md @@ -21,10 +21,10 @@ description: channels.readHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/channels_reportSpam.md b/old_docs/API_docs_v46/methods/channels_reportSpam.md index dc8542f2..9e3e13ac 100644 --- a/old_docs/API_docs_v46/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v46/methods/channels_reportSpam.md @@ -22,10 +22,10 @@ description: channels.reportSpam parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/channels_toggleComments.md b/old_docs/API_docs_v46/methods/channels_toggleComments.md index eaaeb720..31873eb9 100644 --- a/old_docs/API_docs_v46/methods/channels_toggleComments.md +++ b/old_docs/API_docs_v46/methods/channels_toggleComments.md @@ -21,10 +21,10 @@ description: channels.toggleComments parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/channels_updateUsername.md b/old_docs/API_docs_v46/methods/channels_updateUsername.md index ebb03507..801bc972 100644 --- a/old_docs/API_docs_v46/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v46/methods/channels_updateUsername.md @@ -21,10 +21,10 @@ description: channels.updateUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/contacts_block.md b/old_docs/API_docs_v46/methods/contacts_block.md index b809b15c..f512adcc 100644 --- a/old_docs/API_docs_v46/methods/contacts_block.md +++ b/old_docs/API_docs_v46/methods/contacts_block.md @@ -20,10 +20,10 @@ description: contacts.block parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/contacts_deleteContact.md b/old_docs/API_docs_v46/methods/contacts_deleteContact.md index 18ef51f8..a3e8f63d 100644 --- a/old_docs/API_docs_v46/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v46/methods/contacts_deleteContact.md @@ -20,10 +20,10 @@ description: contacts.deleteContact parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/contacts_deleteContacts.md b/old_docs/API_docs_v46/methods/contacts_deleteContacts.md index 40672188..46e251eb 100644 --- a/old_docs/API_docs_v46/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v46/methods/contacts_deleteContacts.md @@ -20,10 +20,10 @@ description: contacts.deleteContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/contacts_exportCard.md b/old_docs/API_docs_v46/methods/contacts_exportCard.md index 4145d246..f7ec0015 100644 --- a/old_docs/API_docs_v46/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v46/methods/contacts_exportCard.md @@ -15,10 +15,10 @@ description: contacts.exportCard parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/contacts_getBlocked.md b/old_docs/API_docs_v46/methods/contacts_getBlocked.md index 50172d03..0fc72dba 100644 --- a/old_docs/API_docs_v46/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v46/methods/contacts_getBlocked.md @@ -21,10 +21,10 @@ description: contacts.getBlocked parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/contacts_getContacts.md b/old_docs/API_docs_v46/methods/contacts_getContacts.md index 0e6f22e9..656821e0 100644 --- a/old_docs/API_docs_v46/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v46/methods/contacts_getContacts.md @@ -20,10 +20,10 @@ description: contacts.getContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/contacts_getStatuses.md b/old_docs/API_docs_v46/methods/contacts_getStatuses.md index b734f529..ee806f2d 100644 --- a/old_docs/API_docs_v46/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v46/methods/contacts_getStatuses.md @@ -15,10 +15,10 @@ description: contacts.getStatuses parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/contacts_getSuggested.md b/old_docs/API_docs_v46/methods/contacts_getSuggested.md index a49b5913..4cd124e7 100644 --- a/old_docs/API_docs_v46/methods/contacts_getSuggested.md +++ b/old_docs/API_docs_v46/methods/contacts_getSuggested.md @@ -20,10 +20,10 @@ description: contacts.getSuggested parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/contacts_importCard.md b/old_docs/API_docs_v46/methods/contacts_importCard.md index 6b2c612e..162ff4f3 100644 --- a/old_docs/API_docs_v46/methods/contacts_importCard.md +++ b/old_docs/API_docs_v46/methods/contacts_importCard.md @@ -20,10 +20,10 @@ description: contacts.importCard parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/contacts_importContacts.md b/old_docs/API_docs_v46/methods/contacts_importContacts.md index 2426f53c..48412e99 100644 --- a/old_docs/API_docs_v46/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v46/methods/contacts_importContacts.md @@ -21,10 +21,10 @@ description: contacts.importContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/contacts_resolveUsername.md b/old_docs/API_docs_v46/methods/contacts_resolveUsername.md index 0ea67c6f..b847fbe9 100644 --- a/old_docs/API_docs_v46/methods/contacts_resolveUsername.md +++ b/old_docs/API_docs_v46/methods/contacts_resolveUsername.md @@ -20,10 +20,10 @@ description: contacts.resolveUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/contacts_search.md b/old_docs/API_docs_v46/methods/contacts_search.md index 00a39519..9a351db7 100644 --- a/old_docs/API_docs_v46/methods/contacts_search.md +++ b/old_docs/API_docs_v46/methods/contacts_search.md @@ -21,10 +21,10 @@ description: contacts.search parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/contacts_unblock.md b/old_docs/API_docs_v46/methods/contacts_unblock.md index 63f41483..6d739c9b 100644 --- a/old_docs/API_docs_v46/methods/contacts_unblock.md +++ b/old_docs/API_docs_v46/methods/contacts_unblock.md @@ -20,10 +20,10 @@ description: contacts.unblock parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/help_getAppChangelog.md b/old_docs/API_docs_v46/methods/help_getAppChangelog.md index bfe48334..1b52c928 100644 --- a/old_docs/API_docs_v46/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v46/methods/help_getAppChangelog.md @@ -23,10 +23,10 @@ description: help.getAppChangelog parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/help_getAppUpdate.md b/old_docs/API_docs_v46/methods/help_getAppUpdate.md index 7be3b374..9559c840 100644 --- a/old_docs/API_docs_v46/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v46/methods/help_getAppUpdate.md @@ -23,10 +23,10 @@ description: help.getAppUpdate parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/help_getConfig.md b/old_docs/API_docs_v46/methods/help_getConfig.md index cb9c4f1c..9481a0c0 100644 --- a/old_docs/API_docs_v46/methods/help_getConfig.md +++ b/old_docs/API_docs_v46/methods/help_getConfig.md @@ -15,10 +15,10 @@ description: help.getConfig parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/help_getInviteText.md b/old_docs/API_docs_v46/methods/help_getInviteText.md index f265f8d3..14692791 100644 --- a/old_docs/API_docs_v46/methods/help_getInviteText.md +++ b/old_docs/API_docs_v46/methods/help_getInviteText.md @@ -20,10 +20,10 @@ description: help.getInviteText parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/help_getNearestDc.md b/old_docs/API_docs_v46/methods/help_getNearestDc.md index f491ae0c..bb6b1883 100644 --- a/old_docs/API_docs_v46/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v46/methods/help_getNearestDc.md @@ -15,10 +15,10 @@ description: help.getNearestDc parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/help_getSupport.md b/old_docs/API_docs_v46/methods/help_getSupport.md index 03574c6f..0348089a 100644 --- a/old_docs/API_docs_v46/methods/help_getSupport.md +++ b/old_docs/API_docs_v46/methods/help_getSupport.md @@ -15,10 +15,10 @@ description: help.getSupport parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/help_getTermsOfService.md b/old_docs/API_docs_v46/methods/help_getTermsOfService.md index 39129b28..ea71f5f6 100644 --- a/old_docs/API_docs_v46/methods/help_getTermsOfService.md +++ b/old_docs/API_docs_v46/methods/help_getTermsOfService.md @@ -20,10 +20,10 @@ description: help.getTermsOfService parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/help_saveAppLog.md b/old_docs/API_docs_v46/methods/help_saveAppLog.md index 3887ccc2..59b92601 100644 --- a/old_docs/API_docs_v46/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v46/methods/help_saveAppLog.md @@ -20,10 +20,10 @@ description: help.saveAppLog parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/initConnection.md b/old_docs/API_docs_v46/methods/initConnection.md index 1c946720..aa89066c 100644 --- a/old_docs/API_docs_v46/methods/initConnection.md +++ b/old_docs/API_docs_v46/methods/initConnection.md @@ -25,10 +25,10 @@ description: initConnection parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/invokeAfterMsg.md b/old_docs/API_docs_v46/methods/invokeAfterMsg.md index 1b35a238..97c4f1fb 100644 --- a/old_docs/API_docs_v46/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v46/methods/invokeAfterMsg.md @@ -21,10 +21,10 @@ description: invokeAfterMsg parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/invokeAfterMsgs.md b/old_docs/API_docs_v46/methods/invokeAfterMsgs.md index 164ab318..4e278ef1 100644 --- a/old_docs/API_docs_v46/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v46/methods/invokeAfterMsgs.md @@ -21,10 +21,10 @@ description: invokeAfterMsgs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/invokeWithLayer.md b/old_docs/API_docs_v46/methods/invokeWithLayer.md index 497cc285..72fe47ec 100644 --- a/old_docs/API_docs_v46/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v46/methods/invokeWithLayer.md @@ -21,10 +21,10 @@ description: invokeWithLayer parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v46/methods/invokeWithoutUpdates.md index cbdabb07..5151b786 100644 --- a/old_docs/API_docs_v46/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v46/methods/invokeWithoutUpdates.md @@ -20,10 +20,10 @@ description: invokeWithoutUpdates parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_acceptEncryption.md b/old_docs/API_docs_v46/methods/messages_acceptEncryption.md index d41beb91..e016f5d3 100644 --- a/old_docs/API_docs_v46/methods/messages_acceptEncryption.md +++ b/old_docs/API_docs_v46/methods/messages_acceptEncryption.md @@ -22,10 +22,10 @@ description: messages.acceptEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_addChatUser.md b/old_docs/API_docs_v46/methods/messages_addChatUser.md index 13d17a3e..df2cb1a5 100644 --- a/old_docs/API_docs_v46/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v46/methods/messages_addChatUser.md @@ -22,10 +22,10 @@ description: messages.addChatUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_checkChatInvite.md b/old_docs/API_docs_v46/methods/messages_checkChatInvite.md index 0a3a4f84..7670727b 100644 --- a/old_docs/API_docs_v46/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v46/methods/messages_checkChatInvite.md @@ -20,10 +20,10 @@ description: messages.checkChatInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_createChat.md b/old_docs/API_docs_v46/methods/messages_createChat.md index 0ab3101a..2fc5631c 100644 --- a/old_docs/API_docs_v46/methods/messages_createChat.md +++ b/old_docs/API_docs_v46/methods/messages_createChat.md @@ -21,10 +21,10 @@ description: messages.createChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_deleteChatUser.md b/old_docs/API_docs_v46/methods/messages_deleteChatUser.md index ed736ebd..6895649f 100644 --- a/old_docs/API_docs_v46/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v46/methods/messages_deleteChatUser.md @@ -21,10 +21,10 @@ description: messages.deleteChatUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_deleteHistory.md b/old_docs/API_docs_v46/methods/messages_deleteHistory.md index 64c060dc..8517ee62 100644 --- a/old_docs/API_docs_v46/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v46/methods/messages_deleteHistory.md @@ -21,10 +21,10 @@ description: messages.deleteHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_deleteMessages.md b/old_docs/API_docs_v46/methods/messages_deleteMessages.md index 5997c2ed..d9d28886 100644 --- a/old_docs/API_docs_v46/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v46/methods/messages_deleteMessages.md @@ -20,10 +20,10 @@ description: messages.deleteMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_discardEncryption.md b/old_docs/API_docs_v46/methods/messages_discardEncryption.md index ebc1ace5..f237c986 100644 --- a/old_docs/API_docs_v46/methods/messages_discardEncryption.md +++ b/old_docs/API_docs_v46/methods/messages_discardEncryption.md @@ -20,10 +20,10 @@ description: messages.discardEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_editChatAdmin.md b/old_docs/API_docs_v46/methods/messages_editChatAdmin.md index 38bc8de0..74f5a39f 100644 --- a/old_docs/API_docs_v46/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v46/methods/messages_editChatAdmin.md @@ -22,10 +22,10 @@ description: messages.editChatAdmin parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_editChatPhoto.md b/old_docs/API_docs_v46/methods/messages_editChatPhoto.md index e3cbf492..0396c74b 100644 --- a/old_docs/API_docs_v46/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v46/methods/messages_editChatPhoto.md @@ -21,10 +21,10 @@ description: messages.editChatPhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_editChatTitle.md b/old_docs/API_docs_v46/methods/messages_editChatTitle.md index 60eae01c..fabe9c87 100644 --- a/old_docs/API_docs_v46/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v46/methods/messages_editChatTitle.md @@ -21,10 +21,10 @@ description: messages.editChatTitle parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_exportChatInvite.md b/old_docs/API_docs_v46/methods/messages_exportChatInvite.md index 3efc9bf7..b96e7498 100644 --- a/old_docs/API_docs_v46/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v46/methods/messages_exportChatInvite.md @@ -20,10 +20,10 @@ description: messages.exportChatInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_forwardMessage.md b/old_docs/API_docs_v46/methods/messages_forwardMessage.md index a95d259a..ced2cb5b 100644 --- a/old_docs/API_docs_v46/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v46/methods/messages_forwardMessage.md @@ -21,10 +21,10 @@ description: messages.forwardMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_forwardMessages.md b/old_docs/API_docs_v46/methods/messages_forwardMessages.md index a6add4d1..80d98650 100644 --- a/old_docs/API_docs_v46/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v46/methods/messages_forwardMessages.md @@ -23,10 +23,10 @@ description: messages.forwardMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_getAllStickers.md b/old_docs/API_docs_v46/methods/messages_getAllStickers.md index 613db3b2..fe438a80 100644 --- a/old_docs/API_docs_v46/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v46/methods/messages_getAllStickers.md @@ -20,10 +20,10 @@ description: messages.getAllStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_getChats.md b/old_docs/API_docs_v46/methods/messages_getChats.md index ad63744b..be57718e 100644 --- a/old_docs/API_docs_v46/methods/messages_getChats.md +++ b/old_docs/API_docs_v46/methods/messages_getChats.md @@ -20,10 +20,10 @@ description: messages.getChats parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_getDhConfig.md b/old_docs/API_docs_v46/methods/messages_getDhConfig.md index bcebea55..21b37f21 100644 --- a/old_docs/API_docs_v46/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v46/methods/messages_getDhConfig.md @@ -21,10 +21,10 @@ description: messages.getDhConfig parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_getDialogs.md b/old_docs/API_docs_v46/methods/messages_getDialogs.md index 07e2b246..ca93a52a 100644 --- a/old_docs/API_docs_v46/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v46/methods/messages_getDialogs.md @@ -23,10 +23,10 @@ description: messages.getDialogs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v46/methods/messages_getDocumentByHash.md index 32fc1de0..ca26acc3 100644 --- a/old_docs/API_docs_v46/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v46/methods/messages_getDocumentByHash.md @@ -22,10 +22,10 @@ description: messages.getDocumentByHash parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_getFullChat.md b/old_docs/API_docs_v46/methods/messages_getFullChat.md index f3c8223a..10d938ae 100644 --- a/old_docs/API_docs_v46/methods/messages_getFullChat.md +++ b/old_docs/API_docs_v46/methods/messages_getFullChat.md @@ -20,10 +20,10 @@ description: messages.getFullChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_getHistory.md b/old_docs/API_docs_v46/methods/messages_getHistory.md index 84324235..409526cc 100644 --- a/old_docs/API_docs_v46/methods/messages_getHistory.md +++ b/old_docs/API_docs_v46/methods/messages_getHistory.md @@ -25,10 +25,10 @@ description: messages.getHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v46/methods/messages_getInlineBotResults.md index 938e162f..b46895c3 100644 --- a/old_docs/API_docs_v46/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v46/methods/messages_getInlineBotResults.md @@ -22,10 +22,10 @@ description: messages.getInlineBotResults parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_getMessages.md b/old_docs/API_docs_v46/methods/messages_getMessages.md index 224df903..e669bcf8 100644 --- a/old_docs/API_docs_v46/methods/messages_getMessages.md +++ b/old_docs/API_docs_v46/methods/messages_getMessages.md @@ -20,10 +20,10 @@ description: messages.getMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_getMessagesViews.md b/old_docs/API_docs_v46/methods/messages_getMessagesViews.md index d162b668..f27cdb36 100644 --- a/old_docs/API_docs_v46/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v46/methods/messages_getMessagesViews.md @@ -22,10 +22,10 @@ description: messages.getMessagesViews parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_getSavedGifs.md b/old_docs/API_docs_v46/methods/messages_getSavedGifs.md index 0ca34eef..fbdc5129 100644 --- a/old_docs/API_docs_v46/methods/messages_getSavedGifs.md +++ b/old_docs/API_docs_v46/methods/messages_getSavedGifs.md @@ -20,10 +20,10 @@ description: messages.getSavedGifs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_getStickerSet.md b/old_docs/API_docs_v46/methods/messages_getStickerSet.md index 2ec2fa5d..561eec32 100644 --- a/old_docs/API_docs_v46/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v46/methods/messages_getStickerSet.md @@ -20,10 +20,10 @@ description: messages.getStickerSet parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_getStickers.md b/old_docs/API_docs_v46/methods/messages_getStickers.md index 6730f586..e9aedd80 100644 --- a/old_docs/API_docs_v46/methods/messages_getStickers.md +++ b/old_docs/API_docs_v46/methods/messages_getStickers.md @@ -21,10 +21,10 @@ description: messages.getStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v46/methods/messages_getWebPagePreview.md index e2dd428d..a3d5fce3 100644 --- a/old_docs/API_docs_v46/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v46/methods/messages_getWebPagePreview.md @@ -20,10 +20,10 @@ description: messages.getWebPagePreview parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_importChatInvite.md b/old_docs/API_docs_v46/methods/messages_importChatInvite.md index 250d076d..a4e9c052 100644 --- a/old_docs/API_docs_v46/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v46/methods/messages_importChatInvite.md @@ -20,10 +20,10 @@ description: messages.importChatInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_installStickerSet.md b/old_docs/API_docs_v46/methods/messages_installStickerSet.md index f99d40b4..5180bcbd 100644 --- a/old_docs/API_docs_v46/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v46/methods/messages_installStickerSet.md @@ -21,10 +21,10 @@ description: messages.installStickerSet parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_migrateChat.md b/old_docs/API_docs_v46/methods/messages_migrateChat.md index 5b1e375a..731dc904 100644 --- a/old_docs/API_docs_v46/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v46/methods/messages_migrateChat.md @@ -20,10 +20,10 @@ description: messages.migrateChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v46/methods/messages_readEncryptedHistory.md index 555bffe7..5bb05536 100644 --- a/old_docs/API_docs_v46/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v46/methods/messages_readEncryptedHistory.md @@ -21,10 +21,10 @@ description: messages.readEncryptedHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_readHistory.md b/old_docs/API_docs_v46/methods/messages_readHistory.md index 1e2783ae..6bb29fef 100644 --- a/old_docs/API_docs_v46/methods/messages_readHistory.md +++ b/old_docs/API_docs_v46/methods/messages_readHistory.md @@ -21,10 +21,10 @@ description: messages.readHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_readMessageContents.md b/old_docs/API_docs_v46/methods/messages_readMessageContents.md index ae75d612..829e7cc8 100644 --- a/old_docs/API_docs_v46/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v46/methods/messages_readMessageContents.md @@ -20,10 +20,10 @@ description: messages.readMessageContents parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_receivedMessages.md b/old_docs/API_docs_v46/methods/messages_receivedMessages.md index ffeaeed7..05a229b6 100644 --- a/old_docs/API_docs_v46/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v46/methods/messages_receivedMessages.md @@ -20,10 +20,10 @@ description: messages.receivedMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_receivedQueue.md b/old_docs/API_docs_v46/methods/messages_receivedQueue.md index e514669c..d8bfae5e 100644 --- a/old_docs/API_docs_v46/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v46/methods/messages_receivedQueue.md @@ -20,10 +20,10 @@ description: messages.receivedQueue parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_reorderStickerSets.md b/old_docs/API_docs_v46/methods/messages_reorderStickerSets.md index 4070988e..a1d27734 100644 --- a/old_docs/API_docs_v46/methods/messages_reorderStickerSets.md +++ b/old_docs/API_docs_v46/methods/messages_reorderStickerSets.md @@ -20,10 +20,10 @@ description: messages.reorderStickerSets parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_reportSpam.md b/old_docs/API_docs_v46/methods/messages_reportSpam.md index 56975b9d..da747585 100644 --- a/old_docs/API_docs_v46/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v46/methods/messages_reportSpam.md @@ -20,10 +20,10 @@ description: messages.reportSpam parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_requestEncryption.md b/old_docs/API_docs_v46/methods/messages_requestEncryption.md index e82fca54..99fe7ecf 100644 --- a/old_docs/API_docs_v46/methods/messages_requestEncryption.md +++ b/old_docs/API_docs_v46/methods/messages_requestEncryption.md @@ -21,10 +21,10 @@ description: messages.requestEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_saveGif.md b/old_docs/API_docs_v46/methods/messages_saveGif.md index 0bd648d8..ea2174ea 100644 --- a/old_docs/API_docs_v46/methods/messages_saveGif.md +++ b/old_docs/API_docs_v46/methods/messages_saveGif.md @@ -21,10 +21,10 @@ description: messages.saveGif parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_search.md b/old_docs/API_docs_v46/methods/messages_search.md index 9f1ab5ba..4a5c4bb9 100644 --- a/old_docs/API_docs_v46/methods/messages_search.md +++ b/old_docs/API_docs_v46/methods/messages_search.md @@ -28,10 +28,10 @@ description: messages.search parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_searchGifs.md b/old_docs/API_docs_v46/methods/messages_searchGifs.md index 18ad844b..8a1de718 100644 --- a/old_docs/API_docs_v46/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v46/methods/messages_searchGifs.md @@ -21,10 +21,10 @@ description: messages.searchGifs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_searchGlobal.md b/old_docs/API_docs_v46/methods/messages_searchGlobal.md index aacdb99f..02d790e9 100644 --- a/old_docs/API_docs_v46/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v46/methods/messages_searchGlobal.md @@ -24,10 +24,10 @@ description: messages.searchGlobal parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_sendBroadcast.md b/old_docs/API_docs_v46/methods/messages_sendBroadcast.md index 9194fdf1..b19bec57 100644 --- a/old_docs/API_docs_v46/methods/messages_sendBroadcast.md +++ b/old_docs/API_docs_v46/methods/messages_sendBroadcast.md @@ -22,10 +22,10 @@ description: messages.sendBroadcast parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_sendEncrypted.md b/old_docs/API_docs_v46/methods/messages_sendEncrypted.md index f2c2c0c2..c3585580 100644 --- a/old_docs/API_docs_v46/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v46/methods/messages_sendEncrypted.md @@ -21,10 +21,10 @@ description: messages.sendEncrypted parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v46/methods/messages_sendEncryptedFile.md index a57a3dd8..40674df9 100644 --- a/old_docs/API_docs_v46/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v46/methods/messages_sendEncryptedFile.md @@ -22,10 +22,10 @@ description: messages.sendEncryptedFile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v46/methods/messages_sendEncryptedService.md index 4041c4d0..8bfee571 100644 --- a/old_docs/API_docs_v46/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v46/methods/messages_sendEncryptedService.md @@ -21,10 +21,10 @@ description: messages.sendEncryptedService parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v46/methods/messages_sendInlineBotResult.md index fe925485..8741d064 100644 --- a/old_docs/API_docs_v46/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v46/methods/messages_sendInlineBotResult.md @@ -24,10 +24,10 @@ description: messages.sendInlineBotResult parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_sendMedia.md b/old_docs/API_docs_v46/methods/messages_sendMedia.md index 01e66c35..f9e9b49a 100644 --- a/old_docs/API_docs_v46/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v46/methods/messages_sendMedia.md @@ -24,10 +24,10 @@ description: messages.sendMedia parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; @@ -46,3 +46,9 @@ Or, if you're into Lua: Updates = messages.sendMedia({broadcast=Bool, peer=InputPeer, reply_to_msg_id=int, media=InputMedia, reply_markup=ReplyMarkup, }) ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v46/methods/messages_sendMessage.md b/old_docs/API_docs_v46/methods/messages_sendMessage.md index 51e032ca..074cb877 100644 --- a/old_docs/API_docs_v46/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v46/methods/messages_sendMessage.md @@ -27,10 +27,10 @@ description: messages.sendMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; @@ -50,6 +50,12 @@ Updates = messages.sendMessage({no_webpage=Bool, broadcast=Bool, peer=InputPeer, ``` +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + + ## Usage of parse_mode: Set parse_mode to html to enable HTML parsing of the message. diff --git a/old_docs/API_docs_v46/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v46/methods/messages_setEncryptedTyping.md index 95364d49..ae718bba 100644 --- a/old_docs/API_docs_v46/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v46/methods/messages_setEncryptedTyping.md @@ -21,10 +21,10 @@ description: messages.setEncryptedTyping parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v46/methods/messages_setInlineBotResults.md index fac1028b..3afe4664 100644 --- a/old_docs/API_docs_v46/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v46/methods/messages_setInlineBotResults.md @@ -25,10 +25,10 @@ description: messages.setInlineBotResults parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_setTyping.md b/old_docs/API_docs_v46/methods/messages_setTyping.md index 0ce5743d..75903c68 100644 --- a/old_docs/API_docs_v46/methods/messages_setTyping.md +++ b/old_docs/API_docs_v46/methods/messages_setTyping.md @@ -21,10 +21,10 @@ description: messages.setTyping parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_startBot.md b/old_docs/API_docs_v46/methods/messages_startBot.md index 5f563224..bf79b142 100644 --- a/old_docs/API_docs_v46/methods/messages_startBot.md +++ b/old_docs/API_docs_v46/methods/messages_startBot.md @@ -22,10 +22,10 @@ description: messages.startBot parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v46/methods/messages_toggleChatAdmins.md index 0ad6ba92..05d74e5a 100644 --- a/old_docs/API_docs_v46/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v46/methods/messages_toggleChatAdmins.md @@ -21,10 +21,10 @@ description: messages.toggleChatAdmins parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v46/methods/messages_uninstallStickerSet.md index 97fff059..5202b086 100644 --- a/old_docs/API_docs_v46/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v46/methods/messages_uninstallStickerSet.md @@ -20,10 +20,10 @@ description: messages.uninstallStickerSet parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/photos_deletePhotos.md b/old_docs/API_docs_v46/methods/photos_deletePhotos.md index 6a717835..2d27b700 100644 --- a/old_docs/API_docs_v46/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v46/methods/photos_deletePhotos.md @@ -20,10 +20,10 @@ description: photos.deletePhotos parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/photos_getUserPhotos.md b/old_docs/API_docs_v46/methods/photos_getUserPhotos.md index 4aa96dfa..0f50ee6f 100644 --- a/old_docs/API_docs_v46/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v46/methods/photos_getUserPhotos.md @@ -23,10 +23,10 @@ description: photos.getUserPhotos parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v46/methods/photos_updateProfilePhoto.md index f18669cc..9ae9c59e 100644 --- a/old_docs/API_docs_v46/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v46/methods/photos_updateProfilePhoto.md @@ -21,10 +21,10 @@ description: photos.updateProfilePhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v46/methods/photos_uploadProfilePhoto.md index 3eb7a10c..567eb363 100644 --- a/old_docs/API_docs_v46/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v46/methods/photos_uploadProfilePhoto.md @@ -23,10 +23,10 @@ description: photos.uploadProfilePhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/updates_getChannelDifference.md b/old_docs/API_docs_v46/methods/updates_getChannelDifference.md index 1add786f..d3b725f4 100644 --- a/old_docs/API_docs_v46/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v46/methods/updates_getChannelDifference.md @@ -23,10 +23,10 @@ description: updates.getChannelDifference parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/updates_getDifference.md b/old_docs/API_docs_v46/methods/updates_getDifference.md index c7ae5664..719a7a02 100644 --- a/old_docs/API_docs_v46/methods/updates_getDifference.md +++ b/old_docs/API_docs_v46/methods/updates_getDifference.md @@ -22,10 +22,10 @@ description: updates.getDifference parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/updates_getState.md b/old_docs/API_docs_v46/methods/updates_getState.md index 5612ca79..53fc0c16 100644 --- a/old_docs/API_docs_v46/methods/updates_getState.md +++ b/old_docs/API_docs_v46/methods/updates_getState.md @@ -15,10 +15,10 @@ description: updates.getState parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/upload_getFile.md b/old_docs/API_docs_v46/methods/upload_getFile.md index a2f3d961..ee35140a 100644 --- a/old_docs/API_docs_v46/methods/upload_getFile.md +++ b/old_docs/API_docs_v46/methods/upload_getFile.md @@ -22,10 +22,10 @@ description: upload.getFile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/upload_saveBigFilePart.md b/old_docs/API_docs_v46/methods/upload_saveBigFilePart.md index 03641055..503d1b5c 100644 --- a/old_docs/API_docs_v46/methods/upload_saveBigFilePart.md +++ b/old_docs/API_docs_v46/methods/upload_saveBigFilePart.md @@ -23,10 +23,10 @@ description: upload.saveBigFilePart parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/upload_saveFilePart.md b/old_docs/API_docs_v46/methods/upload_saveFilePart.md index 192412c8..d7f745aa 100644 --- a/old_docs/API_docs_v46/methods/upload_saveFilePart.md +++ b/old_docs/API_docs_v46/methods/upload_saveFilePart.md @@ -22,10 +22,10 @@ description: upload.saveFilePart parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/users_getFullUser.md b/old_docs/API_docs_v46/methods/users_getFullUser.md index 864ae387..bcba7f3d 100644 --- a/old_docs/API_docs_v46/methods/users_getFullUser.md +++ b/old_docs/API_docs_v46/methods/users_getFullUser.md @@ -20,10 +20,10 @@ description: users.getFullUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v46/methods/users_getUsers.md b/old_docs/API_docs_v46/methods/users_getUsers.md index 34816478..e03fd2d6 100644 --- a/old_docs/API_docs_v46/methods/users_getUsers.md +++ b/old_docs/API_docs_v46/methods/users_getUsers.md @@ -20,10 +20,10 @@ description: users.getUsers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/constructors/botInlineMessageMediaAuto.md b/old_docs/API_docs_v51/constructors/botInlineMessageMediaAuto.md index 6ed2ffd9..694cf6ea 100644 --- a/old_docs/API_docs_v51/constructors/botInlineMessageMediaAuto.md +++ b/old_docs/API_docs_v51/constructors/botInlineMessageMediaAuto.md @@ -34,3 +34,9 @@ botInlineMessageMediaAuto={_='botInlineMessageMediaAuto', caption=string, reply_ ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v51/constructors/botInlineMessageMediaContact.md b/old_docs/API_docs_v51/constructors/botInlineMessageMediaContact.md index 6bdda386..f57e4752 100644 --- a/old_docs/API_docs_v51/constructors/botInlineMessageMediaContact.md +++ b/old_docs/API_docs_v51/constructors/botInlineMessageMediaContact.md @@ -36,3 +36,9 @@ botInlineMessageMediaContact={_='botInlineMessageMediaContact', phone_number=str ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v51/constructors/botInlineMessageMediaGeo.md b/old_docs/API_docs_v51/constructors/botInlineMessageMediaGeo.md index 38b53228..40ea4ca1 100644 --- a/old_docs/API_docs_v51/constructors/botInlineMessageMediaGeo.md +++ b/old_docs/API_docs_v51/constructors/botInlineMessageMediaGeo.md @@ -34,3 +34,9 @@ botInlineMessageMediaGeo={_='botInlineMessageMediaGeo', geo=GeoPoint, reply_mark ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v51/constructors/botInlineMessageMediaVenue.md b/old_docs/API_docs_v51/constructors/botInlineMessageMediaVenue.md index 39880cfc..236f3cf1 100644 --- a/old_docs/API_docs_v51/constructors/botInlineMessageMediaVenue.md +++ b/old_docs/API_docs_v51/constructors/botInlineMessageMediaVenue.md @@ -38,3 +38,9 @@ botInlineMessageMediaVenue={_='botInlineMessageMediaVenue', geo=GeoPoint, title= ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v51/constructors/botInlineMessageText.md b/old_docs/API_docs_v51/constructors/botInlineMessageText.md index 750ddf50..278fe01d 100644 --- a/old_docs/API_docs_v51/constructors/botInlineMessageText.md +++ b/old_docs/API_docs_v51/constructors/botInlineMessageText.md @@ -36,3 +36,9 @@ botInlineMessageText={_='botInlineMessageText', no_webpage=Bool, message=string, ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v51/constructors/inputBotInlineMessageMediaAuto.md b/old_docs/API_docs_v51/constructors/inputBotInlineMessageMediaAuto.md index 52449dff..75bb48f3 100644 --- a/old_docs/API_docs_v51/constructors/inputBotInlineMessageMediaAuto.md +++ b/old_docs/API_docs_v51/constructors/inputBotInlineMessageMediaAuto.md @@ -34,3 +34,9 @@ inputBotInlineMessageMediaAuto={_='inputBotInlineMessageMediaAuto', caption=stri ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v51/constructors/inputBotInlineMessageMediaContact.md b/old_docs/API_docs_v51/constructors/inputBotInlineMessageMediaContact.md index fdab869d..754ce5ac 100644 --- a/old_docs/API_docs_v51/constructors/inputBotInlineMessageMediaContact.md +++ b/old_docs/API_docs_v51/constructors/inputBotInlineMessageMediaContact.md @@ -36,3 +36,9 @@ inputBotInlineMessageMediaContact={_='inputBotInlineMessageMediaContact', phone_ ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v51/constructors/inputBotInlineMessageMediaGeo.md b/old_docs/API_docs_v51/constructors/inputBotInlineMessageMediaGeo.md index 1b741cfc..6eac346e 100644 --- a/old_docs/API_docs_v51/constructors/inputBotInlineMessageMediaGeo.md +++ b/old_docs/API_docs_v51/constructors/inputBotInlineMessageMediaGeo.md @@ -34,3 +34,9 @@ inputBotInlineMessageMediaGeo={_='inputBotInlineMessageMediaGeo', geo_point=Inpu ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v51/constructors/inputBotInlineMessageMediaVenue.md b/old_docs/API_docs_v51/constructors/inputBotInlineMessageMediaVenue.md index ddd2eba5..ddb3c3fe 100644 --- a/old_docs/API_docs_v51/constructors/inputBotInlineMessageMediaVenue.md +++ b/old_docs/API_docs_v51/constructors/inputBotInlineMessageMediaVenue.md @@ -38,3 +38,9 @@ inputBotInlineMessageMediaVenue={_='inputBotInlineMessageMediaVenue', geo_point= ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v51/constructors/inputBotInlineMessageText.md b/old_docs/API_docs_v51/constructors/inputBotInlineMessageText.md index 6d751de2..77de3cf6 100644 --- a/old_docs/API_docs_v51/constructors/inputBotInlineMessageText.md +++ b/old_docs/API_docs_v51/constructors/inputBotInlineMessageText.md @@ -36,3 +36,9 @@ inputBotInlineMessageText={_='inputBotInlineMessageText', no_webpage=Bool, messa ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v51/constructors/message.md b/old_docs/API_docs_v51/constructors/message.md index 52f830bd..d0e34235 100644 --- a/old_docs/API_docs_v51/constructors/message.md +++ b/old_docs/API_docs_v51/constructors/message.md @@ -51,3 +51,9 @@ message={_='message', unread=Bool, out=Bool, mentioned=Bool, media_unread=Bool, ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v51/methods/account_changePhone.md b/old_docs/API_docs_v51/methods/account_changePhone.md index dc3e0427..6691a743 100644 --- a/old_docs/API_docs_v51/methods/account_changePhone.md +++ b/old_docs/API_docs_v51/methods/account_changePhone.md @@ -22,10 +22,10 @@ description: account.changePhone parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/account_checkUsername.md b/old_docs/API_docs_v51/methods/account_checkUsername.md index dc13041c..e954ca99 100644 --- a/old_docs/API_docs_v51/methods/account_checkUsername.md +++ b/old_docs/API_docs_v51/methods/account_checkUsername.md @@ -20,10 +20,10 @@ description: account.checkUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/account_deleteAccount.md b/old_docs/API_docs_v51/methods/account_deleteAccount.md index 4199572b..0d0a6204 100644 --- a/old_docs/API_docs_v51/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v51/methods/account_deleteAccount.md @@ -20,10 +20,10 @@ description: account.deleteAccount parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/account_getAccountTTL.md b/old_docs/API_docs_v51/methods/account_getAccountTTL.md index ff4171df..e284a80e 100644 --- a/old_docs/API_docs_v51/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v51/methods/account_getAccountTTL.md @@ -15,10 +15,10 @@ description: account.getAccountTTL parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/account_getAuthorizations.md b/old_docs/API_docs_v51/methods/account_getAuthorizations.md index 26f755d4..ee5a00d6 100644 --- a/old_docs/API_docs_v51/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v51/methods/account_getAuthorizations.md @@ -15,10 +15,10 @@ description: account.getAuthorizations parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/account_getNotifySettings.md b/old_docs/API_docs_v51/methods/account_getNotifySettings.md index 817f201a..2e7fd9ba 100644 --- a/old_docs/API_docs_v51/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v51/methods/account_getNotifySettings.md @@ -20,10 +20,10 @@ description: account.getNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/account_getPassword.md b/old_docs/API_docs_v51/methods/account_getPassword.md index d7491fec..424d3710 100644 --- a/old_docs/API_docs_v51/methods/account_getPassword.md +++ b/old_docs/API_docs_v51/methods/account_getPassword.md @@ -15,10 +15,10 @@ description: account.getPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/account_getPasswordSettings.md b/old_docs/API_docs_v51/methods/account_getPasswordSettings.md index 5be9a523..3e72e398 100644 --- a/old_docs/API_docs_v51/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v51/methods/account_getPasswordSettings.md @@ -20,10 +20,10 @@ description: account.getPasswordSettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/account_getPrivacy.md b/old_docs/API_docs_v51/methods/account_getPrivacy.md index 649019d5..26137fd3 100644 --- a/old_docs/API_docs_v51/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v51/methods/account_getPrivacy.md @@ -20,10 +20,10 @@ description: account.getPrivacy parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/account_getWallPapers.md b/old_docs/API_docs_v51/methods/account_getWallPapers.md index 9eb0182a..a44ea777 100644 --- a/old_docs/API_docs_v51/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v51/methods/account_getWallPapers.md @@ -15,10 +15,10 @@ description: account.getWallPapers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/account_registerDevice.md b/old_docs/API_docs_v51/methods/account_registerDevice.md index 168dcba0..70cadfab 100644 --- a/old_docs/API_docs_v51/methods/account_registerDevice.md +++ b/old_docs/API_docs_v51/methods/account_registerDevice.md @@ -26,10 +26,10 @@ description: account.registerDevice parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/account_reportPeer.md b/old_docs/API_docs_v51/methods/account_reportPeer.md index bb8dea54..7d913217 100644 --- a/old_docs/API_docs_v51/methods/account_reportPeer.md +++ b/old_docs/API_docs_v51/methods/account_reportPeer.md @@ -21,10 +21,10 @@ description: account.reportPeer parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/account_resetAuthorization.md b/old_docs/API_docs_v51/methods/account_resetAuthorization.md index aaf5a660..2c7c5bc4 100644 --- a/old_docs/API_docs_v51/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v51/methods/account_resetAuthorization.md @@ -20,10 +20,10 @@ description: account.resetAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/account_resetNotifySettings.md b/old_docs/API_docs_v51/methods/account_resetNotifySettings.md index 5a6a4c95..aa01dfce 100644 --- a/old_docs/API_docs_v51/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v51/methods/account_resetNotifySettings.md @@ -15,10 +15,10 @@ description: account.resetNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v51/methods/account_sendChangePhoneCode.md index 8f2e8833..a3d15473 100644 --- a/old_docs/API_docs_v51/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v51/methods/account_sendChangePhoneCode.md @@ -22,10 +22,10 @@ description: account.sendChangePhoneCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/account_setAccountTTL.md b/old_docs/API_docs_v51/methods/account_setAccountTTL.md index 6ae8d70e..460ae89a 100644 --- a/old_docs/API_docs_v51/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v51/methods/account_setAccountTTL.md @@ -20,10 +20,10 @@ description: account.setAccountTTL parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/account_setPrivacy.md b/old_docs/API_docs_v51/methods/account_setPrivacy.md index e438ca16..f05356db 100644 --- a/old_docs/API_docs_v51/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v51/methods/account_setPrivacy.md @@ -21,10 +21,10 @@ description: account.setPrivacy parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/account_unregisterDevice.md b/old_docs/API_docs_v51/methods/account_unregisterDevice.md index 89ab99a8..1063fad3 100644 --- a/old_docs/API_docs_v51/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v51/methods/account_unregisterDevice.md @@ -21,10 +21,10 @@ description: account.unregisterDevice parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v51/methods/account_updateDeviceLocked.md index 3fe6b8b6..506d974f 100644 --- a/old_docs/API_docs_v51/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v51/methods/account_updateDeviceLocked.md @@ -20,10 +20,10 @@ description: account.updateDeviceLocked parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/account_updateNotifySettings.md b/old_docs/API_docs_v51/methods/account_updateNotifySettings.md index 7eea8202..cb90a39f 100644 --- a/old_docs/API_docs_v51/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v51/methods/account_updateNotifySettings.md @@ -21,10 +21,10 @@ description: account.updateNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v51/methods/account_updatePasswordSettings.md index 56e4d724..ad1a930d 100644 --- a/old_docs/API_docs_v51/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v51/methods/account_updatePasswordSettings.md @@ -21,10 +21,10 @@ description: account.updatePasswordSettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/account_updateProfile.md b/old_docs/API_docs_v51/methods/account_updateProfile.md index 186a934d..3edc695d 100644 --- a/old_docs/API_docs_v51/methods/account_updateProfile.md +++ b/old_docs/API_docs_v51/methods/account_updateProfile.md @@ -22,10 +22,10 @@ description: account.updateProfile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/account_updateStatus.md b/old_docs/API_docs_v51/methods/account_updateStatus.md index f2fd751e..ac260312 100644 --- a/old_docs/API_docs_v51/methods/account_updateStatus.md +++ b/old_docs/API_docs_v51/methods/account_updateStatus.md @@ -20,10 +20,10 @@ description: account.updateStatus parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/account_updateUsername.md b/old_docs/API_docs_v51/methods/account_updateUsername.md index b5e428e4..7daf43e0 100644 --- a/old_docs/API_docs_v51/methods/account_updateUsername.md +++ b/old_docs/API_docs_v51/methods/account_updateUsername.md @@ -20,10 +20,10 @@ description: account.updateUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v51/methods/auth_bindTempAuthKey.md index 87d0c7cf..55e083cd 100644 --- a/old_docs/API_docs_v51/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v51/methods/auth_bindTempAuthKey.md @@ -23,10 +23,10 @@ description: auth.bindTempAuthKey parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/auth_cancelCode.md b/old_docs/API_docs_v51/methods/auth_cancelCode.md index 7402df8d..520caa6f 100644 --- a/old_docs/API_docs_v51/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v51/methods/auth_cancelCode.md @@ -21,10 +21,10 @@ description: auth.cancelCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/auth_checkPassword.md b/old_docs/API_docs_v51/methods/auth_checkPassword.md index 601146fc..9dcb706a 100644 --- a/old_docs/API_docs_v51/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v51/methods/auth_checkPassword.md @@ -20,10 +20,10 @@ description: auth.checkPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/auth_checkPhone.md b/old_docs/API_docs_v51/methods/auth_checkPhone.md index 2e4db690..ce137f9d 100644 --- a/old_docs/API_docs_v51/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v51/methods/auth_checkPhone.md @@ -20,10 +20,10 @@ description: auth.checkPhone parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/auth_exportAuthorization.md b/old_docs/API_docs_v51/methods/auth_exportAuthorization.md index a69f0301..bfd16433 100644 --- a/old_docs/API_docs_v51/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v51/methods/auth_exportAuthorization.md @@ -20,10 +20,10 @@ description: auth.exportAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/auth_importAuthorization.md b/old_docs/API_docs_v51/methods/auth_importAuthorization.md index a0e2e4b7..956f9a72 100644 --- a/old_docs/API_docs_v51/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v51/methods/auth_importAuthorization.md @@ -21,10 +21,10 @@ description: auth.importAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/auth_importBotAuthorization.md b/old_docs/API_docs_v51/methods/auth_importBotAuthorization.md index a78a5263..11d2f7f3 100644 --- a/old_docs/API_docs_v51/methods/auth_importBotAuthorization.md +++ b/old_docs/API_docs_v51/methods/auth_importBotAuthorization.md @@ -22,10 +22,10 @@ description: auth.importBotAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/auth_logOut.md b/old_docs/API_docs_v51/methods/auth_logOut.md index ac5bd8ae..5651f753 100644 --- a/old_docs/API_docs_v51/methods/auth_logOut.md +++ b/old_docs/API_docs_v51/methods/auth_logOut.md @@ -15,10 +15,10 @@ description: auth.logOut parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/auth_recoverPassword.md b/old_docs/API_docs_v51/methods/auth_recoverPassword.md index 9b7ebcfb..e253e7d9 100644 --- a/old_docs/API_docs_v51/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v51/methods/auth_recoverPassword.md @@ -20,10 +20,10 @@ description: auth.recoverPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v51/methods/auth_requestPasswordRecovery.md index 94c0aeff..2ae670eb 100644 --- a/old_docs/API_docs_v51/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v51/methods/auth_requestPasswordRecovery.md @@ -15,10 +15,10 @@ description: auth.requestPasswordRecovery parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/auth_resendCode.md b/old_docs/API_docs_v51/methods/auth_resendCode.md index 8b36b17c..cb9dfd91 100644 --- a/old_docs/API_docs_v51/methods/auth_resendCode.md +++ b/old_docs/API_docs_v51/methods/auth_resendCode.md @@ -21,10 +21,10 @@ description: auth.resendCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v51/methods/auth_resetAuthorizations.md index f55e2e4d..9b324b42 100644 --- a/old_docs/API_docs_v51/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v51/methods/auth_resetAuthorizations.md @@ -15,10 +15,10 @@ description: auth.resetAuthorizations parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/auth_sendCode.md b/old_docs/API_docs_v51/methods/auth_sendCode.md index da6ab869..ff353380 100644 --- a/old_docs/API_docs_v51/methods/auth_sendCode.md +++ b/old_docs/API_docs_v51/methods/auth_sendCode.md @@ -25,10 +25,10 @@ description: auth.sendCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/auth_sendInvites.md b/old_docs/API_docs_v51/methods/auth_sendInvites.md index f81a5c7e..87cdc7e3 100644 --- a/old_docs/API_docs_v51/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v51/methods/auth_sendInvites.md @@ -21,10 +21,10 @@ description: auth.sendInvites parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/auth_signIn.md b/old_docs/API_docs_v51/methods/auth_signIn.md index 7616bc80..b0fb12fe 100644 --- a/old_docs/API_docs_v51/methods/auth_signIn.md +++ b/old_docs/API_docs_v51/methods/auth_signIn.md @@ -22,10 +22,10 @@ description: auth.signIn parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/auth_signUp.md b/old_docs/API_docs_v51/methods/auth_signUp.md index f9c72d64..6f92b4f7 100644 --- a/old_docs/API_docs_v51/methods/auth_signUp.md +++ b/old_docs/API_docs_v51/methods/auth_signUp.md @@ -24,10 +24,10 @@ description: auth.signUp parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/channels_checkUsername.md b/old_docs/API_docs_v51/methods/channels_checkUsername.md index 82990d05..298b8e35 100644 --- a/old_docs/API_docs_v51/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v51/methods/channels_checkUsername.md @@ -21,10 +21,10 @@ description: channels.checkUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/channels_createChannel.md b/old_docs/API_docs_v51/methods/channels_createChannel.md index b5ffa159..207c60e9 100644 --- a/old_docs/API_docs_v51/methods/channels_createChannel.md +++ b/old_docs/API_docs_v51/methods/channels_createChannel.md @@ -23,10 +23,10 @@ description: channels.createChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/channels_deleteChannel.md b/old_docs/API_docs_v51/methods/channels_deleteChannel.md index c1eba22f..825882ab 100644 --- a/old_docs/API_docs_v51/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v51/methods/channels_deleteChannel.md @@ -20,10 +20,10 @@ description: channels.deleteChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/channels_deleteMessages.md b/old_docs/API_docs_v51/methods/channels_deleteMessages.md index e2e5e2bb..14fe6256 100644 --- a/old_docs/API_docs_v51/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v51/methods/channels_deleteMessages.md @@ -21,10 +21,10 @@ description: channels.deleteMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v51/methods/channels_deleteUserHistory.md index d3feb071..c485126f 100644 --- a/old_docs/API_docs_v51/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v51/methods/channels_deleteUserHistory.md @@ -21,10 +21,10 @@ description: channels.deleteUserHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/channels_editAbout.md b/old_docs/API_docs_v51/methods/channels_editAbout.md index 12d9df80..87c1a2c0 100644 --- a/old_docs/API_docs_v51/methods/channels_editAbout.md +++ b/old_docs/API_docs_v51/methods/channels_editAbout.md @@ -21,10 +21,10 @@ description: channels.editAbout parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/channels_editAdmin.md b/old_docs/API_docs_v51/methods/channels_editAdmin.md index 1e488778..48042957 100644 --- a/old_docs/API_docs_v51/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v51/methods/channels_editAdmin.md @@ -22,10 +22,10 @@ description: channels.editAdmin parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/channels_editPhoto.md b/old_docs/API_docs_v51/methods/channels_editPhoto.md index 9c0d0fe0..caea3df6 100644 --- a/old_docs/API_docs_v51/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v51/methods/channels_editPhoto.md @@ -21,10 +21,10 @@ description: channels.editPhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/channels_editTitle.md b/old_docs/API_docs_v51/methods/channels_editTitle.md index 057c7772..6f05ed61 100644 --- a/old_docs/API_docs_v51/methods/channels_editTitle.md +++ b/old_docs/API_docs_v51/methods/channels_editTitle.md @@ -21,10 +21,10 @@ description: channels.editTitle parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/channels_exportInvite.md b/old_docs/API_docs_v51/methods/channels_exportInvite.md index c5fa1bf9..7483038b 100644 --- a/old_docs/API_docs_v51/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v51/methods/channels_exportInvite.md @@ -20,10 +20,10 @@ description: channels.exportInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/channels_exportMessageLink.md b/old_docs/API_docs_v51/methods/channels_exportMessageLink.md index 0b1a7102..e239030c 100644 --- a/old_docs/API_docs_v51/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v51/methods/channels_exportMessageLink.md @@ -21,10 +21,10 @@ description: channels.exportMessageLink parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/channels_getChannels.md b/old_docs/API_docs_v51/methods/channels_getChannels.md index 24b94c8f..004f7b7e 100644 --- a/old_docs/API_docs_v51/methods/channels_getChannels.md +++ b/old_docs/API_docs_v51/methods/channels_getChannels.md @@ -20,10 +20,10 @@ description: channels.getChannels parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/channels_getDialogs.md b/old_docs/API_docs_v51/methods/channels_getDialogs.md index fbbb59a5..847a23b3 100644 --- a/old_docs/API_docs_v51/methods/channels_getDialogs.md +++ b/old_docs/API_docs_v51/methods/channels_getDialogs.md @@ -21,10 +21,10 @@ description: channels.getDialogs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/channels_getFullChannel.md b/old_docs/API_docs_v51/methods/channels_getFullChannel.md index 8bf78cd9..37abd094 100644 --- a/old_docs/API_docs_v51/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v51/methods/channels_getFullChannel.md @@ -20,10 +20,10 @@ description: channels.getFullChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/channels_getImportantHistory.md b/old_docs/API_docs_v51/methods/channels_getImportantHistory.md index eff24d28..312e600c 100644 --- a/old_docs/API_docs_v51/methods/channels_getImportantHistory.md +++ b/old_docs/API_docs_v51/methods/channels_getImportantHistory.md @@ -26,10 +26,10 @@ description: channels.getImportantHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/channels_getMessages.md b/old_docs/API_docs_v51/methods/channels_getMessages.md index 8204bf26..3aca181e 100644 --- a/old_docs/API_docs_v51/methods/channels_getMessages.md +++ b/old_docs/API_docs_v51/methods/channels_getMessages.md @@ -21,10 +21,10 @@ description: channels.getMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/channels_getParticipant.md b/old_docs/API_docs_v51/methods/channels_getParticipant.md index 7b685913..6bb9339e 100644 --- a/old_docs/API_docs_v51/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v51/methods/channels_getParticipant.md @@ -21,10 +21,10 @@ description: channels.getParticipant parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/channels_getParticipants.md b/old_docs/API_docs_v51/methods/channels_getParticipants.md index 6ee31676..51ac2c09 100644 --- a/old_docs/API_docs_v51/methods/channels_getParticipants.md +++ b/old_docs/API_docs_v51/methods/channels_getParticipants.md @@ -23,10 +23,10 @@ description: channels.getParticipants parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/channels_inviteToChannel.md b/old_docs/API_docs_v51/methods/channels_inviteToChannel.md index 4b4985a4..57581c7a 100644 --- a/old_docs/API_docs_v51/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v51/methods/channels_inviteToChannel.md @@ -21,10 +21,10 @@ description: channels.inviteToChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/channels_joinChannel.md b/old_docs/API_docs_v51/methods/channels_joinChannel.md index 97fd5417..359333fd 100644 --- a/old_docs/API_docs_v51/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v51/methods/channels_joinChannel.md @@ -20,10 +20,10 @@ description: channels.joinChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/channels_kickFromChannel.md b/old_docs/API_docs_v51/methods/channels_kickFromChannel.md index cf5a3ebc..930902a3 100644 --- a/old_docs/API_docs_v51/methods/channels_kickFromChannel.md +++ b/old_docs/API_docs_v51/methods/channels_kickFromChannel.md @@ -22,10 +22,10 @@ description: channels.kickFromChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/channels_leaveChannel.md b/old_docs/API_docs_v51/methods/channels_leaveChannel.md index 69dc1852..a10d17e7 100644 --- a/old_docs/API_docs_v51/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v51/methods/channels_leaveChannel.md @@ -20,10 +20,10 @@ description: channels.leaveChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/channels_readHistory.md b/old_docs/API_docs_v51/methods/channels_readHistory.md index 87906417..104a7b8f 100644 --- a/old_docs/API_docs_v51/methods/channels_readHistory.md +++ b/old_docs/API_docs_v51/methods/channels_readHistory.md @@ -21,10 +21,10 @@ description: channels.readHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/channels_reportSpam.md b/old_docs/API_docs_v51/methods/channels_reportSpam.md index dc8542f2..9e3e13ac 100644 --- a/old_docs/API_docs_v51/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v51/methods/channels_reportSpam.md @@ -22,10 +22,10 @@ description: channels.reportSpam parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/channels_toggleComments.md b/old_docs/API_docs_v51/methods/channels_toggleComments.md index eaaeb720..31873eb9 100644 --- a/old_docs/API_docs_v51/methods/channels_toggleComments.md +++ b/old_docs/API_docs_v51/methods/channels_toggleComments.md @@ -21,10 +21,10 @@ description: channels.toggleComments parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/channels_toggleInvites.md b/old_docs/API_docs_v51/methods/channels_toggleInvites.md index 6545a16a..5238c028 100644 --- a/old_docs/API_docs_v51/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v51/methods/channels_toggleInvites.md @@ -21,10 +21,10 @@ description: channels.toggleInvites parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/channels_toggleSignatures.md b/old_docs/API_docs_v51/methods/channels_toggleSignatures.md index dcab06a1..c850d592 100644 --- a/old_docs/API_docs_v51/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v51/methods/channels_toggleSignatures.md @@ -21,10 +21,10 @@ description: channels.toggleSignatures parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v51/methods/channels_updatePinnedMessage.md index c86580db..9a879125 100644 --- a/old_docs/API_docs_v51/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v51/methods/channels_updatePinnedMessage.md @@ -22,10 +22,10 @@ description: channels.updatePinnedMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/channels_updateUsername.md b/old_docs/API_docs_v51/methods/channels_updateUsername.md index ebb03507..801bc972 100644 --- a/old_docs/API_docs_v51/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v51/methods/channels_updateUsername.md @@ -21,10 +21,10 @@ description: channels.updateUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/contacts_block.md b/old_docs/API_docs_v51/methods/contacts_block.md index b809b15c..f512adcc 100644 --- a/old_docs/API_docs_v51/methods/contacts_block.md +++ b/old_docs/API_docs_v51/methods/contacts_block.md @@ -20,10 +20,10 @@ description: contacts.block parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/contacts_deleteContact.md b/old_docs/API_docs_v51/methods/contacts_deleteContact.md index 18ef51f8..a3e8f63d 100644 --- a/old_docs/API_docs_v51/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v51/methods/contacts_deleteContact.md @@ -20,10 +20,10 @@ description: contacts.deleteContact parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/contacts_deleteContacts.md b/old_docs/API_docs_v51/methods/contacts_deleteContacts.md index 40672188..46e251eb 100644 --- a/old_docs/API_docs_v51/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v51/methods/contacts_deleteContacts.md @@ -20,10 +20,10 @@ description: contacts.deleteContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/contacts_exportCard.md b/old_docs/API_docs_v51/methods/contacts_exportCard.md index 4145d246..f7ec0015 100644 --- a/old_docs/API_docs_v51/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v51/methods/contacts_exportCard.md @@ -15,10 +15,10 @@ description: contacts.exportCard parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/contacts_getBlocked.md b/old_docs/API_docs_v51/methods/contacts_getBlocked.md index 50172d03..0fc72dba 100644 --- a/old_docs/API_docs_v51/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v51/methods/contacts_getBlocked.md @@ -21,10 +21,10 @@ description: contacts.getBlocked parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/contacts_getContacts.md b/old_docs/API_docs_v51/methods/contacts_getContacts.md index 0e6f22e9..656821e0 100644 --- a/old_docs/API_docs_v51/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v51/methods/contacts_getContacts.md @@ -20,10 +20,10 @@ description: contacts.getContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/contacts_getStatuses.md b/old_docs/API_docs_v51/methods/contacts_getStatuses.md index b734f529..ee806f2d 100644 --- a/old_docs/API_docs_v51/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v51/methods/contacts_getStatuses.md @@ -15,10 +15,10 @@ description: contacts.getStatuses parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/contacts_importCard.md b/old_docs/API_docs_v51/methods/contacts_importCard.md index 6b2c612e..162ff4f3 100644 --- a/old_docs/API_docs_v51/methods/contacts_importCard.md +++ b/old_docs/API_docs_v51/methods/contacts_importCard.md @@ -20,10 +20,10 @@ description: contacts.importCard parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/contacts_importContacts.md b/old_docs/API_docs_v51/methods/contacts_importContacts.md index 2426f53c..48412e99 100644 --- a/old_docs/API_docs_v51/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v51/methods/contacts_importContacts.md @@ -21,10 +21,10 @@ description: contacts.importContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/contacts_resolveUsername.md b/old_docs/API_docs_v51/methods/contacts_resolveUsername.md index 0ea67c6f..b847fbe9 100644 --- a/old_docs/API_docs_v51/methods/contacts_resolveUsername.md +++ b/old_docs/API_docs_v51/methods/contacts_resolveUsername.md @@ -20,10 +20,10 @@ description: contacts.resolveUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/contacts_search.md b/old_docs/API_docs_v51/methods/contacts_search.md index 00a39519..9a351db7 100644 --- a/old_docs/API_docs_v51/methods/contacts_search.md +++ b/old_docs/API_docs_v51/methods/contacts_search.md @@ -21,10 +21,10 @@ description: contacts.search parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/contacts_unblock.md b/old_docs/API_docs_v51/methods/contacts_unblock.md index 63f41483..6d739c9b 100644 --- a/old_docs/API_docs_v51/methods/contacts_unblock.md +++ b/old_docs/API_docs_v51/methods/contacts_unblock.md @@ -20,10 +20,10 @@ description: contacts.unblock parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/help_getAppChangelog.md b/old_docs/API_docs_v51/methods/help_getAppChangelog.md index bfe48334..1b52c928 100644 --- a/old_docs/API_docs_v51/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v51/methods/help_getAppChangelog.md @@ -23,10 +23,10 @@ description: help.getAppChangelog parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/help_getAppUpdate.md b/old_docs/API_docs_v51/methods/help_getAppUpdate.md index 7be3b374..9559c840 100644 --- a/old_docs/API_docs_v51/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v51/methods/help_getAppUpdate.md @@ -23,10 +23,10 @@ description: help.getAppUpdate parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/help_getConfig.md b/old_docs/API_docs_v51/methods/help_getConfig.md index cb9c4f1c..9481a0c0 100644 --- a/old_docs/API_docs_v51/methods/help_getConfig.md +++ b/old_docs/API_docs_v51/methods/help_getConfig.md @@ -15,10 +15,10 @@ description: help.getConfig parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/help_getInviteText.md b/old_docs/API_docs_v51/methods/help_getInviteText.md index f265f8d3..14692791 100644 --- a/old_docs/API_docs_v51/methods/help_getInviteText.md +++ b/old_docs/API_docs_v51/methods/help_getInviteText.md @@ -20,10 +20,10 @@ description: help.getInviteText parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/help_getNearestDc.md b/old_docs/API_docs_v51/methods/help_getNearestDc.md index f491ae0c..bb6b1883 100644 --- a/old_docs/API_docs_v51/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v51/methods/help_getNearestDc.md @@ -15,10 +15,10 @@ description: help.getNearestDc parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/help_getSupport.md b/old_docs/API_docs_v51/methods/help_getSupport.md index 03574c6f..0348089a 100644 --- a/old_docs/API_docs_v51/methods/help_getSupport.md +++ b/old_docs/API_docs_v51/methods/help_getSupport.md @@ -15,10 +15,10 @@ description: help.getSupport parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/help_getTermsOfService.md b/old_docs/API_docs_v51/methods/help_getTermsOfService.md index 39129b28..ea71f5f6 100644 --- a/old_docs/API_docs_v51/methods/help_getTermsOfService.md +++ b/old_docs/API_docs_v51/methods/help_getTermsOfService.md @@ -20,10 +20,10 @@ description: help.getTermsOfService parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/help_saveAppLog.md b/old_docs/API_docs_v51/methods/help_saveAppLog.md index 3887ccc2..59b92601 100644 --- a/old_docs/API_docs_v51/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v51/methods/help_saveAppLog.md @@ -20,10 +20,10 @@ description: help.saveAppLog parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/initConnection.md b/old_docs/API_docs_v51/methods/initConnection.md index 1c946720..aa89066c 100644 --- a/old_docs/API_docs_v51/methods/initConnection.md +++ b/old_docs/API_docs_v51/methods/initConnection.md @@ -25,10 +25,10 @@ description: initConnection parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/invokeAfterMsg.md b/old_docs/API_docs_v51/methods/invokeAfterMsg.md index 1b35a238..97c4f1fb 100644 --- a/old_docs/API_docs_v51/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v51/methods/invokeAfterMsg.md @@ -21,10 +21,10 @@ description: invokeAfterMsg parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/invokeAfterMsgs.md b/old_docs/API_docs_v51/methods/invokeAfterMsgs.md index 164ab318..4e278ef1 100644 --- a/old_docs/API_docs_v51/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v51/methods/invokeAfterMsgs.md @@ -21,10 +21,10 @@ description: invokeAfterMsgs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/invokeWithLayer.md b/old_docs/API_docs_v51/methods/invokeWithLayer.md index 497cc285..72fe47ec 100644 --- a/old_docs/API_docs_v51/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v51/methods/invokeWithLayer.md @@ -21,10 +21,10 @@ description: invokeWithLayer parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v51/methods/invokeWithoutUpdates.md index cbdabb07..5151b786 100644 --- a/old_docs/API_docs_v51/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v51/methods/invokeWithoutUpdates.md @@ -20,10 +20,10 @@ description: invokeWithoutUpdates parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_acceptEncryption.md b/old_docs/API_docs_v51/methods/messages_acceptEncryption.md index d41beb91..e016f5d3 100644 --- a/old_docs/API_docs_v51/methods/messages_acceptEncryption.md +++ b/old_docs/API_docs_v51/methods/messages_acceptEncryption.md @@ -22,10 +22,10 @@ description: messages.acceptEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_addChatUser.md b/old_docs/API_docs_v51/methods/messages_addChatUser.md index 13d17a3e..df2cb1a5 100644 --- a/old_docs/API_docs_v51/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v51/methods/messages_addChatUser.md @@ -22,10 +22,10 @@ description: messages.addChatUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_checkChatInvite.md b/old_docs/API_docs_v51/methods/messages_checkChatInvite.md index 0a3a4f84..7670727b 100644 --- a/old_docs/API_docs_v51/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v51/methods/messages_checkChatInvite.md @@ -20,10 +20,10 @@ description: messages.checkChatInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_createChat.md b/old_docs/API_docs_v51/methods/messages_createChat.md index 0ab3101a..2fc5631c 100644 --- a/old_docs/API_docs_v51/methods/messages_createChat.md +++ b/old_docs/API_docs_v51/methods/messages_createChat.md @@ -21,10 +21,10 @@ description: messages.createChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_deleteChatUser.md b/old_docs/API_docs_v51/methods/messages_deleteChatUser.md index ed736ebd..6895649f 100644 --- a/old_docs/API_docs_v51/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v51/methods/messages_deleteChatUser.md @@ -21,10 +21,10 @@ description: messages.deleteChatUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_deleteHistory.md b/old_docs/API_docs_v51/methods/messages_deleteHistory.md index 64c060dc..8517ee62 100644 --- a/old_docs/API_docs_v51/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v51/methods/messages_deleteHistory.md @@ -21,10 +21,10 @@ description: messages.deleteHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_deleteMessages.md b/old_docs/API_docs_v51/methods/messages_deleteMessages.md index 5997c2ed..d9d28886 100644 --- a/old_docs/API_docs_v51/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v51/methods/messages_deleteMessages.md @@ -20,10 +20,10 @@ description: messages.deleteMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_discardEncryption.md b/old_docs/API_docs_v51/methods/messages_discardEncryption.md index ebc1ace5..f237c986 100644 --- a/old_docs/API_docs_v51/methods/messages_discardEncryption.md +++ b/old_docs/API_docs_v51/methods/messages_discardEncryption.md @@ -20,10 +20,10 @@ description: messages.discardEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_editChatAdmin.md b/old_docs/API_docs_v51/methods/messages_editChatAdmin.md index 38bc8de0..74f5a39f 100644 --- a/old_docs/API_docs_v51/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v51/methods/messages_editChatAdmin.md @@ -22,10 +22,10 @@ description: messages.editChatAdmin parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_editChatPhoto.md b/old_docs/API_docs_v51/methods/messages_editChatPhoto.md index e3cbf492..0396c74b 100644 --- a/old_docs/API_docs_v51/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v51/methods/messages_editChatPhoto.md @@ -21,10 +21,10 @@ description: messages.editChatPhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_editChatTitle.md b/old_docs/API_docs_v51/methods/messages_editChatTitle.md index 60eae01c..fabe9c87 100644 --- a/old_docs/API_docs_v51/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v51/methods/messages_editChatTitle.md @@ -21,10 +21,10 @@ description: messages.editChatTitle parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v51/methods/messages_editInlineBotMessage.md index b275cc64..ae98c13d 100644 --- a/old_docs/API_docs_v51/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v51/methods/messages_editInlineBotMessage.md @@ -25,10 +25,10 @@ description: messages.editInlineBotMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; @@ -48,6 +48,12 @@ Bool = messages.editInlineBotMessage({no_webpage=Bool, id=InputBotInlineMessageI ``` +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + + ## Usage of parse_mode: Set parse_mode to html to enable HTML parsing of the message. diff --git a/old_docs/API_docs_v51/methods/messages_editMessage.md b/old_docs/API_docs_v51/methods/messages_editMessage.md index b7d0eb36..3ce73b6c 100644 --- a/old_docs/API_docs_v51/methods/messages_editMessage.md +++ b/old_docs/API_docs_v51/methods/messages_editMessage.md @@ -26,10 +26,10 @@ description: messages.editMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; @@ -49,6 +49,12 @@ Updates = messages.editMessage({no_webpage=Bool, peer=InputPeer, id=int, message ``` +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + + ## Usage of parse_mode: Set parse_mode to html to enable HTML parsing of the message. diff --git a/old_docs/API_docs_v51/methods/messages_exportChatInvite.md b/old_docs/API_docs_v51/methods/messages_exportChatInvite.md index 3efc9bf7..b96e7498 100644 --- a/old_docs/API_docs_v51/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v51/methods/messages_exportChatInvite.md @@ -20,10 +20,10 @@ description: messages.exportChatInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_forwardMessage.md b/old_docs/API_docs_v51/methods/messages_forwardMessage.md index a95d259a..ced2cb5b 100644 --- a/old_docs/API_docs_v51/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v51/methods/messages_forwardMessage.md @@ -21,10 +21,10 @@ description: messages.forwardMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_forwardMessages.md b/old_docs/API_docs_v51/methods/messages_forwardMessages.md index 1453dc3a..7d4893b3 100644 --- a/old_docs/API_docs_v51/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v51/methods/messages_forwardMessages.md @@ -25,10 +25,10 @@ description: messages.forwardMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_getAllStickers.md b/old_docs/API_docs_v51/methods/messages_getAllStickers.md index 613db3b2..fe438a80 100644 --- a/old_docs/API_docs_v51/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v51/methods/messages_getAllStickers.md @@ -20,10 +20,10 @@ description: messages.getAllStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v51/methods/messages_getBotCallbackAnswer.md index ab7390d1..bcd0754b 100644 --- a/old_docs/API_docs_v51/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v51/methods/messages_getBotCallbackAnswer.md @@ -22,10 +22,10 @@ description: messages.getBotCallbackAnswer parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_getChats.md b/old_docs/API_docs_v51/methods/messages_getChats.md index ad63744b..be57718e 100644 --- a/old_docs/API_docs_v51/methods/messages_getChats.md +++ b/old_docs/API_docs_v51/methods/messages_getChats.md @@ -20,10 +20,10 @@ description: messages.getChats parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_getDhConfig.md b/old_docs/API_docs_v51/methods/messages_getDhConfig.md index bcebea55..21b37f21 100644 --- a/old_docs/API_docs_v51/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v51/methods/messages_getDhConfig.md @@ -21,10 +21,10 @@ description: messages.getDhConfig parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_getDialogs.md b/old_docs/API_docs_v51/methods/messages_getDialogs.md index 07e2b246..ca93a52a 100644 --- a/old_docs/API_docs_v51/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v51/methods/messages_getDialogs.md @@ -23,10 +23,10 @@ description: messages.getDialogs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v51/methods/messages_getDocumentByHash.md index 32fc1de0..ca26acc3 100644 --- a/old_docs/API_docs_v51/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v51/methods/messages_getDocumentByHash.md @@ -22,10 +22,10 @@ description: messages.getDocumentByHash parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_getFullChat.md b/old_docs/API_docs_v51/methods/messages_getFullChat.md index f3c8223a..10d938ae 100644 --- a/old_docs/API_docs_v51/methods/messages_getFullChat.md +++ b/old_docs/API_docs_v51/methods/messages_getFullChat.md @@ -20,10 +20,10 @@ description: messages.getFullChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_getHistory.md b/old_docs/API_docs_v51/methods/messages_getHistory.md index 3311df5b..1befedca 100644 --- a/old_docs/API_docs_v51/methods/messages_getHistory.md +++ b/old_docs/API_docs_v51/methods/messages_getHistory.md @@ -26,10 +26,10 @@ description: messages.getHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v51/methods/messages_getInlineBotResults.md index e76ee714..6364519c 100644 --- a/old_docs/API_docs_v51/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v51/methods/messages_getInlineBotResults.md @@ -24,10 +24,10 @@ description: messages.getInlineBotResults parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_getMessageEditData.md b/old_docs/API_docs_v51/methods/messages_getMessageEditData.md index 8b47e95b..0189b6a5 100644 --- a/old_docs/API_docs_v51/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v51/methods/messages_getMessageEditData.md @@ -21,10 +21,10 @@ description: messages.getMessageEditData parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_getMessages.md b/old_docs/API_docs_v51/methods/messages_getMessages.md index 224df903..e669bcf8 100644 --- a/old_docs/API_docs_v51/methods/messages_getMessages.md +++ b/old_docs/API_docs_v51/methods/messages_getMessages.md @@ -20,10 +20,10 @@ description: messages.getMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_getMessagesViews.md b/old_docs/API_docs_v51/methods/messages_getMessagesViews.md index d162b668..f27cdb36 100644 --- a/old_docs/API_docs_v51/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v51/methods/messages_getMessagesViews.md @@ -22,10 +22,10 @@ description: messages.getMessagesViews parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_getPeerSettings.md b/old_docs/API_docs_v51/methods/messages_getPeerSettings.md index 202867f7..bd60b87b 100644 --- a/old_docs/API_docs_v51/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v51/methods/messages_getPeerSettings.md @@ -20,10 +20,10 @@ description: messages.getPeerSettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_getSavedGifs.md b/old_docs/API_docs_v51/methods/messages_getSavedGifs.md index 0ca34eef..fbdc5129 100644 --- a/old_docs/API_docs_v51/methods/messages_getSavedGifs.md +++ b/old_docs/API_docs_v51/methods/messages_getSavedGifs.md @@ -20,10 +20,10 @@ description: messages.getSavedGifs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_getStickerSet.md b/old_docs/API_docs_v51/methods/messages_getStickerSet.md index 2ec2fa5d..561eec32 100644 --- a/old_docs/API_docs_v51/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v51/methods/messages_getStickerSet.md @@ -20,10 +20,10 @@ description: messages.getStickerSet parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_getStickers.md b/old_docs/API_docs_v51/methods/messages_getStickers.md index 6730f586..e9aedd80 100644 --- a/old_docs/API_docs_v51/methods/messages_getStickers.md +++ b/old_docs/API_docs_v51/methods/messages_getStickers.md @@ -21,10 +21,10 @@ description: messages.getStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v51/methods/messages_getWebPagePreview.md index e2dd428d..a3d5fce3 100644 --- a/old_docs/API_docs_v51/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v51/methods/messages_getWebPagePreview.md @@ -20,10 +20,10 @@ description: messages.getWebPagePreview parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_hideReportSpam.md b/old_docs/API_docs_v51/methods/messages_hideReportSpam.md index 175bbe27..8a86e690 100644 --- a/old_docs/API_docs_v51/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v51/methods/messages_hideReportSpam.md @@ -20,10 +20,10 @@ description: messages.hideReportSpam parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_importChatInvite.md b/old_docs/API_docs_v51/methods/messages_importChatInvite.md index 250d076d..a4e9c052 100644 --- a/old_docs/API_docs_v51/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v51/methods/messages_importChatInvite.md @@ -20,10 +20,10 @@ description: messages.importChatInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_installStickerSet.md b/old_docs/API_docs_v51/methods/messages_installStickerSet.md index f99d40b4..5180bcbd 100644 --- a/old_docs/API_docs_v51/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v51/methods/messages_installStickerSet.md @@ -21,10 +21,10 @@ description: messages.installStickerSet parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_migrateChat.md b/old_docs/API_docs_v51/methods/messages_migrateChat.md index 5b1e375a..731dc904 100644 --- a/old_docs/API_docs_v51/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v51/methods/messages_migrateChat.md @@ -20,10 +20,10 @@ description: messages.migrateChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v51/methods/messages_readEncryptedHistory.md index 555bffe7..5bb05536 100644 --- a/old_docs/API_docs_v51/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v51/methods/messages_readEncryptedHistory.md @@ -21,10 +21,10 @@ description: messages.readEncryptedHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_readHistory.md b/old_docs/API_docs_v51/methods/messages_readHistory.md index 1e2783ae..6bb29fef 100644 --- a/old_docs/API_docs_v51/methods/messages_readHistory.md +++ b/old_docs/API_docs_v51/methods/messages_readHistory.md @@ -21,10 +21,10 @@ description: messages.readHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_readMessageContents.md b/old_docs/API_docs_v51/methods/messages_readMessageContents.md index ae75d612..829e7cc8 100644 --- a/old_docs/API_docs_v51/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v51/methods/messages_readMessageContents.md @@ -20,10 +20,10 @@ description: messages.readMessageContents parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_receivedMessages.md b/old_docs/API_docs_v51/methods/messages_receivedMessages.md index ffeaeed7..05a229b6 100644 --- a/old_docs/API_docs_v51/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v51/methods/messages_receivedMessages.md @@ -20,10 +20,10 @@ description: messages.receivedMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_receivedQueue.md b/old_docs/API_docs_v51/methods/messages_receivedQueue.md index e514669c..d8bfae5e 100644 --- a/old_docs/API_docs_v51/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v51/methods/messages_receivedQueue.md @@ -20,10 +20,10 @@ description: messages.receivedQueue parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_reorderStickerSets.md b/old_docs/API_docs_v51/methods/messages_reorderStickerSets.md index 4070988e..a1d27734 100644 --- a/old_docs/API_docs_v51/methods/messages_reorderStickerSets.md +++ b/old_docs/API_docs_v51/methods/messages_reorderStickerSets.md @@ -20,10 +20,10 @@ description: messages.reorderStickerSets parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_reportSpam.md b/old_docs/API_docs_v51/methods/messages_reportSpam.md index 56975b9d..da747585 100644 --- a/old_docs/API_docs_v51/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v51/methods/messages_reportSpam.md @@ -20,10 +20,10 @@ description: messages.reportSpam parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_requestEncryption.md b/old_docs/API_docs_v51/methods/messages_requestEncryption.md index e82fca54..99fe7ecf 100644 --- a/old_docs/API_docs_v51/methods/messages_requestEncryption.md +++ b/old_docs/API_docs_v51/methods/messages_requestEncryption.md @@ -21,10 +21,10 @@ description: messages.requestEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_saveGif.md b/old_docs/API_docs_v51/methods/messages_saveGif.md index 0bd648d8..ea2174ea 100644 --- a/old_docs/API_docs_v51/methods/messages_saveGif.md +++ b/old_docs/API_docs_v51/methods/messages_saveGif.md @@ -21,10 +21,10 @@ description: messages.saveGif parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_search.md b/old_docs/API_docs_v51/methods/messages_search.md index 9f1ab5ba..4a5c4bb9 100644 --- a/old_docs/API_docs_v51/methods/messages_search.md +++ b/old_docs/API_docs_v51/methods/messages_search.md @@ -28,10 +28,10 @@ description: messages.search parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_searchGifs.md b/old_docs/API_docs_v51/methods/messages_searchGifs.md index 18ad844b..8a1de718 100644 --- a/old_docs/API_docs_v51/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v51/methods/messages_searchGifs.md @@ -21,10 +21,10 @@ description: messages.searchGifs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_searchGlobal.md b/old_docs/API_docs_v51/methods/messages_searchGlobal.md index aacdb99f..02d790e9 100644 --- a/old_docs/API_docs_v51/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v51/methods/messages_searchGlobal.md @@ -24,10 +24,10 @@ description: messages.searchGlobal parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_sendBroadcast.md b/old_docs/API_docs_v51/methods/messages_sendBroadcast.md index 9194fdf1..b19bec57 100644 --- a/old_docs/API_docs_v51/methods/messages_sendBroadcast.md +++ b/old_docs/API_docs_v51/methods/messages_sendBroadcast.md @@ -22,10 +22,10 @@ description: messages.sendBroadcast parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_sendEncrypted.md b/old_docs/API_docs_v51/methods/messages_sendEncrypted.md index f2c2c0c2..c3585580 100644 --- a/old_docs/API_docs_v51/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v51/methods/messages_sendEncrypted.md @@ -21,10 +21,10 @@ description: messages.sendEncrypted parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v51/methods/messages_sendEncryptedFile.md index a57a3dd8..40674df9 100644 --- a/old_docs/API_docs_v51/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v51/methods/messages_sendEncryptedFile.md @@ -22,10 +22,10 @@ description: messages.sendEncryptedFile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v51/methods/messages_sendEncryptedService.md index 4041c4d0..8bfee571 100644 --- a/old_docs/API_docs_v51/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v51/methods/messages_sendEncryptedService.md @@ -21,10 +21,10 @@ description: messages.sendEncryptedService parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v51/methods/messages_sendInlineBotResult.md index e84b1653..4237b5fc 100644 --- a/old_docs/API_docs_v51/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v51/methods/messages_sendInlineBotResult.md @@ -26,10 +26,10 @@ description: messages.sendInlineBotResult parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_sendMedia.md b/old_docs/API_docs_v51/methods/messages_sendMedia.md index d571a464..442b6365 100644 --- a/old_docs/API_docs_v51/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v51/methods/messages_sendMedia.md @@ -26,10 +26,10 @@ description: messages.sendMedia parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; @@ -48,3 +48,9 @@ Or, if you're into Lua: Updates = messages.sendMedia({broadcast=Bool, silent=Bool, background=Bool, peer=InputPeer, reply_to_msg_id=int, media=InputMedia, reply_markup=ReplyMarkup, }) ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v51/methods/messages_sendMessage.md b/old_docs/API_docs_v51/methods/messages_sendMessage.md index 37270130..c362ff14 100644 --- a/old_docs/API_docs_v51/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v51/methods/messages_sendMessage.md @@ -29,10 +29,10 @@ description: messages.sendMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; @@ -52,6 +52,12 @@ Updates = messages.sendMessage({no_webpage=Bool, broadcast=Bool, silent=Bool, ba ``` +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + + ## Usage of parse_mode: Set parse_mode to html to enable HTML parsing of the message. diff --git a/old_docs/API_docs_v51/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v51/methods/messages_setBotCallbackAnswer.md index f1d58f20..554af885 100644 --- a/old_docs/API_docs_v51/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v51/methods/messages_setBotCallbackAnswer.md @@ -22,10 +22,10 @@ description: messages.setBotCallbackAnswer parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v51/methods/messages_setEncryptedTyping.md index 95364d49..ae718bba 100644 --- a/old_docs/API_docs_v51/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v51/methods/messages_setEncryptedTyping.md @@ -21,10 +21,10 @@ description: messages.setEncryptedTyping parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v51/methods/messages_setInlineBotResults.md index a2cf64b7..ea653cd7 100644 --- a/old_docs/API_docs_v51/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v51/methods/messages_setInlineBotResults.md @@ -26,10 +26,10 @@ description: messages.setInlineBotResults parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_setTyping.md b/old_docs/API_docs_v51/methods/messages_setTyping.md index 0ce5743d..75903c68 100644 --- a/old_docs/API_docs_v51/methods/messages_setTyping.md +++ b/old_docs/API_docs_v51/methods/messages_setTyping.md @@ -21,10 +21,10 @@ description: messages.setTyping parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_startBot.md b/old_docs/API_docs_v51/methods/messages_startBot.md index 5f563224..bf79b142 100644 --- a/old_docs/API_docs_v51/methods/messages_startBot.md +++ b/old_docs/API_docs_v51/methods/messages_startBot.md @@ -22,10 +22,10 @@ description: messages.startBot parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v51/methods/messages_toggleChatAdmins.md index 0ad6ba92..05d74e5a 100644 --- a/old_docs/API_docs_v51/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v51/methods/messages_toggleChatAdmins.md @@ -21,10 +21,10 @@ description: messages.toggleChatAdmins parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v51/methods/messages_uninstallStickerSet.md index 97fff059..5202b086 100644 --- a/old_docs/API_docs_v51/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v51/methods/messages_uninstallStickerSet.md @@ -20,10 +20,10 @@ description: messages.uninstallStickerSet parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/photos_deletePhotos.md b/old_docs/API_docs_v51/methods/photos_deletePhotos.md index 6a717835..2d27b700 100644 --- a/old_docs/API_docs_v51/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v51/methods/photos_deletePhotos.md @@ -20,10 +20,10 @@ description: photos.deletePhotos parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/photos_getUserPhotos.md b/old_docs/API_docs_v51/methods/photos_getUserPhotos.md index 4aa96dfa..0f50ee6f 100644 --- a/old_docs/API_docs_v51/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v51/methods/photos_getUserPhotos.md @@ -23,10 +23,10 @@ description: photos.getUserPhotos parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v51/methods/photos_updateProfilePhoto.md index f18669cc..9ae9c59e 100644 --- a/old_docs/API_docs_v51/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v51/methods/photos_updateProfilePhoto.md @@ -21,10 +21,10 @@ description: photos.updateProfilePhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v51/methods/photos_uploadProfilePhoto.md index 3eb7a10c..567eb363 100644 --- a/old_docs/API_docs_v51/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v51/methods/photos_uploadProfilePhoto.md @@ -23,10 +23,10 @@ description: photos.uploadProfilePhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/updates_getChannelDifference.md b/old_docs/API_docs_v51/methods/updates_getChannelDifference.md index 1add786f..d3b725f4 100644 --- a/old_docs/API_docs_v51/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v51/methods/updates_getChannelDifference.md @@ -23,10 +23,10 @@ description: updates.getChannelDifference parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/updates_getDifference.md b/old_docs/API_docs_v51/methods/updates_getDifference.md index c7ae5664..719a7a02 100644 --- a/old_docs/API_docs_v51/methods/updates_getDifference.md +++ b/old_docs/API_docs_v51/methods/updates_getDifference.md @@ -22,10 +22,10 @@ description: updates.getDifference parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/updates_getState.md b/old_docs/API_docs_v51/methods/updates_getState.md index 5612ca79..53fc0c16 100644 --- a/old_docs/API_docs_v51/methods/updates_getState.md +++ b/old_docs/API_docs_v51/methods/updates_getState.md @@ -15,10 +15,10 @@ description: updates.getState parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/upload_getFile.md b/old_docs/API_docs_v51/methods/upload_getFile.md index a2f3d961..ee35140a 100644 --- a/old_docs/API_docs_v51/methods/upload_getFile.md +++ b/old_docs/API_docs_v51/methods/upload_getFile.md @@ -22,10 +22,10 @@ description: upload.getFile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/upload_saveBigFilePart.md b/old_docs/API_docs_v51/methods/upload_saveBigFilePart.md index 03641055..503d1b5c 100644 --- a/old_docs/API_docs_v51/methods/upload_saveBigFilePart.md +++ b/old_docs/API_docs_v51/methods/upload_saveBigFilePart.md @@ -23,10 +23,10 @@ description: upload.saveBigFilePart parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/upload_saveFilePart.md b/old_docs/API_docs_v51/methods/upload_saveFilePart.md index 192412c8..d7f745aa 100644 --- a/old_docs/API_docs_v51/methods/upload_saveFilePart.md +++ b/old_docs/API_docs_v51/methods/upload_saveFilePart.md @@ -22,10 +22,10 @@ description: upload.saveFilePart parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/users_getFullUser.md b/old_docs/API_docs_v51/methods/users_getFullUser.md index 864ae387..bcba7f3d 100644 --- a/old_docs/API_docs_v51/methods/users_getFullUser.md +++ b/old_docs/API_docs_v51/methods/users_getFullUser.md @@ -20,10 +20,10 @@ description: users.getFullUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v51/methods/users_getUsers.md b/old_docs/API_docs_v51/methods/users_getUsers.md index 34816478..e03fd2d6 100644 --- a/old_docs/API_docs_v51/methods/users_getUsers.md +++ b/old_docs/API_docs_v51/methods/users_getUsers.md @@ -20,10 +20,10 @@ description: users.getUsers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/constructors/botInlineMessageMediaAuto.md b/old_docs/API_docs_v53/constructors/botInlineMessageMediaAuto.md index 6ed2ffd9..694cf6ea 100644 --- a/old_docs/API_docs_v53/constructors/botInlineMessageMediaAuto.md +++ b/old_docs/API_docs_v53/constructors/botInlineMessageMediaAuto.md @@ -34,3 +34,9 @@ botInlineMessageMediaAuto={_='botInlineMessageMediaAuto', caption=string, reply_ ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v53/constructors/botInlineMessageMediaContact.md b/old_docs/API_docs_v53/constructors/botInlineMessageMediaContact.md index 6bdda386..f57e4752 100644 --- a/old_docs/API_docs_v53/constructors/botInlineMessageMediaContact.md +++ b/old_docs/API_docs_v53/constructors/botInlineMessageMediaContact.md @@ -36,3 +36,9 @@ botInlineMessageMediaContact={_='botInlineMessageMediaContact', phone_number=str ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v53/constructors/botInlineMessageMediaGeo.md b/old_docs/API_docs_v53/constructors/botInlineMessageMediaGeo.md index 38b53228..40ea4ca1 100644 --- a/old_docs/API_docs_v53/constructors/botInlineMessageMediaGeo.md +++ b/old_docs/API_docs_v53/constructors/botInlineMessageMediaGeo.md @@ -34,3 +34,9 @@ botInlineMessageMediaGeo={_='botInlineMessageMediaGeo', geo=GeoPoint, reply_mark ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v53/constructors/botInlineMessageMediaVenue.md b/old_docs/API_docs_v53/constructors/botInlineMessageMediaVenue.md index 39880cfc..236f3cf1 100644 --- a/old_docs/API_docs_v53/constructors/botInlineMessageMediaVenue.md +++ b/old_docs/API_docs_v53/constructors/botInlineMessageMediaVenue.md @@ -38,3 +38,9 @@ botInlineMessageMediaVenue={_='botInlineMessageMediaVenue', geo=GeoPoint, title= ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v53/constructors/botInlineMessageText.md b/old_docs/API_docs_v53/constructors/botInlineMessageText.md index 750ddf50..278fe01d 100644 --- a/old_docs/API_docs_v53/constructors/botInlineMessageText.md +++ b/old_docs/API_docs_v53/constructors/botInlineMessageText.md @@ -36,3 +36,9 @@ botInlineMessageText={_='botInlineMessageText', no_webpage=Bool, message=string, ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v53/constructors/inputBotInlineMessageMediaAuto.md b/old_docs/API_docs_v53/constructors/inputBotInlineMessageMediaAuto.md index 52449dff..75bb48f3 100644 --- a/old_docs/API_docs_v53/constructors/inputBotInlineMessageMediaAuto.md +++ b/old_docs/API_docs_v53/constructors/inputBotInlineMessageMediaAuto.md @@ -34,3 +34,9 @@ inputBotInlineMessageMediaAuto={_='inputBotInlineMessageMediaAuto', caption=stri ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v53/constructors/inputBotInlineMessageMediaContact.md b/old_docs/API_docs_v53/constructors/inputBotInlineMessageMediaContact.md index fdab869d..754ce5ac 100644 --- a/old_docs/API_docs_v53/constructors/inputBotInlineMessageMediaContact.md +++ b/old_docs/API_docs_v53/constructors/inputBotInlineMessageMediaContact.md @@ -36,3 +36,9 @@ inputBotInlineMessageMediaContact={_='inputBotInlineMessageMediaContact', phone_ ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v53/constructors/inputBotInlineMessageMediaGeo.md b/old_docs/API_docs_v53/constructors/inputBotInlineMessageMediaGeo.md index 1b741cfc..6eac346e 100644 --- a/old_docs/API_docs_v53/constructors/inputBotInlineMessageMediaGeo.md +++ b/old_docs/API_docs_v53/constructors/inputBotInlineMessageMediaGeo.md @@ -34,3 +34,9 @@ inputBotInlineMessageMediaGeo={_='inputBotInlineMessageMediaGeo', geo_point=Inpu ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v53/constructors/inputBotInlineMessageMediaVenue.md b/old_docs/API_docs_v53/constructors/inputBotInlineMessageMediaVenue.md index ddd2eba5..ddb3c3fe 100644 --- a/old_docs/API_docs_v53/constructors/inputBotInlineMessageMediaVenue.md +++ b/old_docs/API_docs_v53/constructors/inputBotInlineMessageMediaVenue.md @@ -38,3 +38,9 @@ inputBotInlineMessageMediaVenue={_='inputBotInlineMessageMediaVenue', geo_point= ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v53/constructors/inputBotInlineMessageText.md b/old_docs/API_docs_v53/constructors/inputBotInlineMessageText.md index 6d751de2..77de3cf6 100644 --- a/old_docs/API_docs_v53/constructors/inputBotInlineMessageText.md +++ b/old_docs/API_docs_v53/constructors/inputBotInlineMessageText.md @@ -36,3 +36,9 @@ inputBotInlineMessageText={_='inputBotInlineMessageText', no_webpage=Bool, messa ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v53/constructors/message.md b/old_docs/API_docs_v53/constructors/message.md index 8ecae9bf..135401c5 100644 --- a/old_docs/API_docs_v53/constructors/message.md +++ b/old_docs/API_docs_v53/constructors/message.md @@ -50,3 +50,9 @@ message={_='message', out=Bool, mentioned=Bool, media_unread=Bool, silent=Bool, ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v53/methods/account_changePhone.md b/old_docs/API_docs_v53/methods/account_changePhone.md index dc3e0427..6691a743 100644 --- a/old_docs/API_docs_v53/methods/account_changePhone.md +++ b/old_docs/API_docs_v53/methods/account_changePhone.md @@ -22,10 +22,10 @@ description: account.changePhone parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/account_checkUsername.md b/old_docs/API_docs_v53/methods/account_checkUsername.md index dc13041c..e954ca99 100644 --- a/old_docs/API_docs_v53/methods/account_checkUsername.md +++ b/old_docs/API_docs_v53/methods/account_checkUsername.md @@ -20,10 +20,10 @@ description: account.checkUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/account_deleteAccount.md b/old_docs/API_docs_v53/methods/account_deleteAccount.md index 4199572b..0d0a6204 100644 --- a/old_docs/API_docs_v53/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v53/methods/account_deleteAccount.md @@ -20,10 +20,10 @@ description: account.deleteAccount parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/account_getAccountTTL.md b/old_docs/API_docs_v53/methods/account_getAccountTTL.md index ff4171df..e284a80e 100644 --- a/old_docs/API_docs_v53/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v53/methods/account_getAccountTTL.md @@ -15,10 +15,10 @@ description: account.getAccountTTL parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/account_getAuthorizations.md b/old_docs/API_docs_v53/methods/account_getAuthorizations.md index 26f755d4..ee5a00d6 100644 --- a/old_docs/API_docs_v53/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v53/methods/account_getAuthorizations.md @@ -15,10 +15,10 @@ description: account.getAuthorizations parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/account_getNotifySettings.md b/old_docs/API_docs_v53/methods/account_getNotifySettings.md index 817f201a..2e7fd9ba 100644 --- a/old_docs/API_docs_v53/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v53/methods/account_getNotifySettings.md @@ -20,10 +20,10 @@ description: account.getNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/account_getPassword.md b/old_docs/API_docs_v53/methods/account_getPassword.md index d7491fec..424d3710 100644 --- a/old_docs/API_docs_v53/methods/account_getPassword.md +++ b/old_docs/API_docs_v53/methods/account_getPassword.md @@ -15,10 +15,10 @@ description: account.getPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/account_getPasswordSettings.md b/old_docs/API_docs_v53/methods/account_getPasswordSettings.md index 5be9a523..3e72e398 100644 --- a/old_docs/API_docs_v53/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v53/methods/account_getPasswordSettings.md @@ -20,10 +20,10 @@ description: account.getPasswordSettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/account_getPrivacy.md b/old_docs/API_docs_v53/methods/account_getPrivacy.md index 649019d5..26137fd3 100644 --- a/old_docs/API_docs_v53/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v53/methods/account_getPrivacy.md @@ -20,10 +20,10 @@ description: account.getPrivacy parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/account_getWallPapers.md b/old_docs/API_docs_v53/methods/account_getWallPapers.md index 9eb0182a..a44ea777 100644 --- a/old_docs/API_docs_v53/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v53/methods/account_getWallPapers.md @@ -15,10 +15,10 @@ description: account.getWallPapers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/account_registerDevice.md b/old_docs/API_docs_v53/methods/account_registerDevice.md index 453de19b..c4704140 100644 --- a/old_docs/API_docs_v53/methods/account_registerDevice.md +++ b/old_docs/API_docs_v53/methods/account_registerDevice.md @@ -21,10 +21,10 @@ description: account.registerDevice parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/account_reportPeer.md b/old_docs/API_docs_v53/methods/account_reportPeer.md index bb8dea54..7d913217 100644 --- a/old_docs/API_docs_v53/methods/account_reportPeer.md +++ b/old_docs/API_docs_v53/methods/account_reportPeer.md @@ -21,10 +21,10 @@ description: account.reportPeer parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/account_resetAuthorization.md b/old_docs/API_docs_v53/methods/account_resetAuthorization.md index aaf5a660..2c7c5bc4 100644 --- a/old_docs/API_docs_v53/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v53/methods/account_resetAuthorization.md @@ -20,10 +20,10 @@ description: account.resetAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/account_resetNotifySettings.md b/old_docs/API_docs_v53/methods/account_resetNotifySettings.md index 5a6a4c95..aa01dfce 100644 --- a/old_docs/API_docs_v53/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v53/methods/account_resetNotifySettings.md @@ -15,10 +15,10 @@ description: account.resetNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v53/methods/account_sendChangePhoneCode.md index 8f2e8833..a3d15473 100644 --- a/old_docs/API_docs_v53/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v53/methods/account_sendChangePhoneCode.md @@ -22,10 +22,10 @@ description: account.sendChangePhoneCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/account_setAccountTTL.md b/old_docs/API_docs_v53/methods/account_setAccountTTL.md index 6ae8d70e..460ae89a 100644 --- a/old_docs/API_docs_v53/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v53/methods/account_setAccountTTL.md @@ -20,10 +20,10 @@ description: account.setAccountTTL parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/account_setPrivacy.md b/old_docs/API_docs_v53/methods/account_setPrivacy.md index e438ca16..f05356db 100644 --- a/old_docs/API_docs_v53/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v53/methods/account_setPrivacy.md @@ -21,10 +21,10 @@ description: account.setPrivacy parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/account_unregisterDevice.md b/old_docs/API_docs_v53/methods/account_unregisterDevice.md index 89ab99a8..1063fad3 100644 --- a/old_docs/API_docs_v53/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v53/methods/account_unregisterDevice.md @@ -21,10 +21,10 @@ description: account.unregisterDevice parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v53/methods/account_updateDeviceLocked.md index 3fe6b8b6..506d974f 100644 --- a/old_docs/API_docs_v53/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v53/methods/account_updateDeviceLocked.md @@ -20,10 +20,10 @@ description: account.updateDeviceLocked parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/account_updateNotifySettings.md b/old_docs/API_docs_v53/methods/account_updateNotifySettings.md index 7eea8202..cb90a39f 100644 --- a/old_docs/API_docs_v53/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v53/methods/account_updateNotifySettings.md @@ -21,10 +21,10 @@ description: account.updateNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v53/methods/account_updatePasswordSettings.md index 56e4d724..ad1a930d 100644 --- a/old_docs/API_docs_v53/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v53/methods/account_updatePasswordSettings.md @@ -21,10 +21,10 @@ description: account.updatePasswordSettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/account_updateProfile.md b/old_docs/API_docs_v53/methods/account_updateProfile.md index 186a934d..3edc695d 100644 --- a/old_docs/API_docs_v53/methods/account_updateProfile.md +++ b/old_docs/API_docs_v53/methods/account_updateProfile.md @@ -22,10 +22,10 @@ description: account.updateProfile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/account_updateStatus.md b/old_docs/API_docs_v53/methods/account_updateStatus.md index f2fd751e..ac260312 100644 --- a/old_docs/API_docs_v53/methods/account_updateStatus.md +++ b/old_docs/API_docs_v53/methods/account_updateStatus.md @@ -20,10 +20,10 @@ description: account.updateStatus parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/account_updateUsername.md b/old_docs/API_docs_v53/methods/account_updateUsername.md index b5e428e4..7daf43e0 100644 --- a/old_docs/API_docs_v53/methods/account_updateUsername.md +++ b/old_docs/API_docs_v53/methods/account_updateUsername.md @@ -20,10 +20,10 @@ description: account.updateUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v53/methods/auth_bindTempAuthKey.md index 87d0c7cf..55e083cd 100644 --- a/old_docs/API_docs_v53/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v53/methods/auth_bindTempAuthKey.md @@ -23,10 +23,10 @@ description: auth.bindTempAuthKey parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/auth_cancelCode.md b/old_docs/API_docs_v53/methods/auth_cancelCode.md index 7402df8d..520caa6f 100644 --- a/old_docs/API_docs_v53/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v53/methods/auth_cancelCode.md @@ -21,10 +21,10 @@ description: auth.cancelCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/auth_checkPassword.md b/old_docs/API_docs_v53/methods/auth_checkPassword.md index 601146fc..9dcb706a 100644 --- a/old_docs/API_docs_v53/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v53/methods/auth_checkPassword.md @@ -20,10 +20,10 @@ description: auth.checkPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/auth_checkPhone.md b/old_docs/API_docs_v53/methods/auth_checkPhone.md index 2e4db690..ce137f9d 100644 --- a/old_docs/API_docs_v53/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v53/methods/auth_checkPhone.md @@ -20,10 +20,10 @@ description: auth.checkPhone parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/auth_exportAuthorization.md b/old_docs/API_docs_v53/methods/auth_exportAuthorization.md index a69f0301..bfd16433 100644 --- a/old_docs/API_docs_v53/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v53/methods/auth_exportAuthorization.md @@ -20,10 +20,10 @@ description: auth.exportAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/auth_importAuthorization.md b/old_docs/API_docs_v53/methods/auth_importAuthorization.md index a0e2e4b7..956f9a72 100644 --- a/old_docs/API_docs_v53/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v53/methods/auth_importAuthorization.md @@ -21,10 +21,10 @@ description: auth.importAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/auth_importBotAuthorization.md b/old_docs/API_docs_v53/methods/auth_importBotAuthorization.md index a78a5263..11d2f7f3 100644 --- a/old_docs/API_docs_v53/methods/auth_importBotAuthorization.md +++ b/old_docs/API_docs_v53/methods/auth_importBotAuthorization.md @@ -22,10 +22,10 @@ description: auth.importBotAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/auth_logOut.md b/old_docs/API_docs_v53/methods/auth_logOut.md index ac5bd8ae..5651f753 100644 --- a/old_docs/API_docs_v53/methods/auth_logOut.md +++ b/old_docs/API_docs_v53/methods/auth_logOut.md @@ -15,10 +15,10 @@ description: auth.logOut parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/auth_recoverPassword.md b/old_docs/API_docs_v53/methods/auth_recoverPassword.md index 9b7ebcfb..e253e7d9 100644 --- a/old_docs/API_docs_v53/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v53/methods/auth_recoverPassword.md @@ -20,10 +20,10 @@ description: auth.recoverPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v53/methods/auth_requestPasswordRecovery.md index 94c0aeff..2ae670eb 100644 --- a/old_docs/API_docs_v53/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v53/methods/auth_requestPasswordRecovery.md @@ -15,10 +15,10 @@ description: auth.requestPasswordRecovery parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/auth_resendCode.md b/old_docs/API_docs_v53/methods/auth_resendCode.md index 8b36b17c..cb9dfd91 100644 --- a/old_docs/API_docs_v53/methods/auth_resendCode.md +++ b/old_docs/API_docs_v53/methods/auth_resendCode.md @@ -21,10 +21,10 @@ description: auth.resendCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v53/methods/auth_resetAuthorizations.md index f55e2e4d..9b324b42 100644 --- a/old_docs/API_docs_v53/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v53/methods/auth_resetAuthorizations.md @@ -15,10 +15,10 @@ description: auth.resetAuthorizations parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/auth_sendCode.md b/old_docs/API_docs_v53/methods/auth_sendCode.md index 6c195531..c5888bac 100644 --- a/old_docs/API_docs_v53/methods/auth_sendCode.md +++ b/old_docs/API_docs_v53/methods/auth_sendCode.md @@ -24,10 +24,10 @@ description: auth.sendCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/auth_sendInvites.md b/old_docs/API_docs_v53/methods/auth_sendInvites.md index f81a5c7e..87cdc7e3 100644 --- a/old_docs/API_docs_v53/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v53/methods/auth_sendInvites.md @@ -21,10 +21,10 @@ description: auth.sendInvites parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/auth_signIn.md b/old_docs/API_docs_v53/methods/auth_signIn.md index 7616bc80..b0fb12fe 100644 --- a/old_docs/API_docs_v53/methods/auth_signIn.md +++ b/old_docs/API_docs_v53/methods/auth_signIn.md @@ -22,10 +22,10 @@ description: auth.signIn parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/auth_signUp.md b/old_docs/API_docs_v53/methods/auth_signUp.md index f9c72d64..6f92b4f7 100644 --- a/old_docs/API_docs_v53/methods/auth_signUp.md +++ b/old_docs/API_docs_v53/methods/auth_signUp.md @@ -24,10 +24,10 @@ description: auth.signUp parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/channels_checkUsername.md b/old_docs/API_docs_v53/methods/channels_checkUsername.md index 82990d05..298b8e35 100644 --- a/old_docs/API_docs_v53/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v53/methods/channels_checkUsername.md @@ -21,10 +21,10 @@ description: channels.checkUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/channels_createChannel.md b/old_docs/API_docs_v53/methods/channels_createChannel.md index b5ffa159..207c60e9 100644 --- a/old_docs/API_docs_v53/methods/channels_createChannel.md +++ b/old_docs/API_docs_v53/methods/channels_createChannel.md @@ -23,10 +23,10 @@ description: channels.createChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/channels_deleteChannel.md b/old_docs/API_docs_v53/methods/channels_deleteChannel.md index c1eba22f..825882ab 100644 --- a/old_docs/API_docs_v53/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v53/methods/channels_deleteChannel.md @@ -20,10 +20,10 @@ description: channels.deleteChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/channels_deleteMessages.md b/old_docs/API_docs_v53/methods/channels_deleteMessages.md index e2e5e2bb..14fe6256 100644 --- a/old_docs/API_docs_v53/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v53/methods/channels_deleteMessages.md @@ -21,10 +21,10 @@ description: channels.deleteMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v53/methods/channels_deleteUserHistory.md index d3feb071..c485126f 100644 --- a/old_docs/API_docs_v53/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v53/methods/channels_deleteUserHistory.md @@ -21,10 +21,10 @@ description: channels.deleteUserHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/channels_editAbout.md b/old_docs/API_docs_v53/methods/channels_editAbout.md index 12d9df80..87c1a2c0 100644 --- a/old_docs/API_docs_v53/methods/channels_editAbout.md +++ b/old_docs/API_docs_v53/methods/channels_editAbout.md @@ -21,10 +21,10 @@ description: channels.editAbout parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/channels_editAdmin.md b/old_docs/API_docs_v53/methods/channels_editAdmin.md index 1e488778..48042957 100644 --- a/old_docs/API_docs_v53/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v53/methods/channels_editAdmin.md @@ -22,10 +22,10 @@ description: channels.editAdmin parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/channels_editPhoto.md b/old_docs/API_docs_v53/methods/channels_editPhoto.md index 9c0d0fe0..caea3df6 100644 --- a/old_docs/API_docs_v53/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v53/methods/channels_editPhoto.md @@ -21,10 +21,10 @@ description: channels.editPhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/channels_editTitle.md b/old_docs/API_docs_v53/methods/channels_editTitle.md index 057c7772..6f05ed61 100644 --- a/old_docs/API_docs_v53/methods/channels_editTitle.md +++ b/old_docs/API_docs_v53/methods/channels_editTitle.md @@ -21,10 +21,10 @@ description: channels.editTitle parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/channels_exportInvite.md b/old_docs/API_docs_v53/methods/channels_exportInvite.md index c5fa1bf9..7483038b 100644 --- a/old_docs/API_docs_v53/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v53/methods/channels_exportInvite.md @@ -20,10 +20,10 @@ description: channels.exportInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/channels_exportMessageLink.md b/old_docs/API_docs_v53/methods/channels_exportMessageLink.md index 0b1a7102..e239030c 100644 --- a/old_docs/API_docs_v53/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v53/methods/channels_exportMessageLink.md @@ -21,10 +21,10 @@ description: channels.exportMessageLink parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/channels_getChannels.md b/old_docs/API_docs_v53/methods/channels_getChannels.md index 24b94c8f..004f7b7e 100644 --- a/old_docs/API_docs_v53/methods/channels_getChannels.md +++ b/old_docs/API_docs_v53/methods/channels_getChannels.md @@ -20,10 +20,10 @@ description: channels.getChannels parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/channels_getFullChannel.md b/old_docs/API_docs_v53/methods/channels_getFullChannel.md index 8bf78cd9..37abd094 100644 --- a/old_docs/API_docs_v53/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v53/methods/channels_getFullChannel.md @@ -20,10 +20,10 @@ description: channels.getFullChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/channels_getMessages.md b/old_docs/API_docs_v53/methods/channels_getMessages.md index 8204bf26..3aca181e 100644 --- a/old_docs/API_docs_v53/methods/channels_getMessages.md +++ b/old_docs/API_docs_v53/methods/channels_getMessages.md @@ -21,10 +21,10 @@ description: channels.getMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/channels_getParticipant.md b/old_docs/API_docs_v53/methods/channels_getParticipant.md index 7b685913..6bb9339e 100644 --- a/old_docs/API_docs_v53/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v53/methods/channels_getParticipant.md @@ -21,10 +21,10 @@ description: channels.getParticipant parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/channels_getParticipants.md b/old_docs/API_docs_v53/methods/channels_getParticipants.md index 6ee31676..51ac2c09 100644 --- a/old_docs/API_docs_v53/methods/channels_getParticipants.md +++ b/old_docs/API_docs_v53/methods/channels_getParticipants.md @@ -23,10 +23,10 @@ description: channels.getParticipants parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/channels_inviteToChannel.md b/old_docs/API_docs_v53/methods/channels_inviteToChannel.md index 4b4985a4..57581c7a 100644 --- a/old_docs/API_docs_v53/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v53/methods/channels_inviteToChannel.md @@ -21,10 +21,10 @@ description: channels.inviteToChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/channels_joinChannel.md b/old_docs/API_docs_v53/methods/channels_joinChannel.md index 97fd5417..359333fd 100644 --- a/old_docs/API_docs_v53/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v53/methods/channels_joinChannel.md @@ -20,10 +20,10 @@ description: channels.joinChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/channels_kickFromChannel.md b/old_docs/API_docs_v53/methods/channels_kickFromChannel.md index cf5a3ebc..930902a3 100644 --- a/old_docs/API_docs_v53/methods/channels_kickFromChannel.md +++ b/old_docs/API_docs_v53/methods/channels_kickFromChannel.md @@ -22,10 +22,10 @@ description: channels.kickFromChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/channels_leaveChannel.md b/old_docs/API_docs_v53/methods/channels_leaveChannel.md index 69dc1852..a10d17e7 100644 --- a/old_docs/API_docs_v53/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v53/methods/channels_leaveChannel.md @@ -20,10 +20,10 @@ description: channels.leaveChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/channels_readHistory.md b/old_docs/API_docs_v53/methods/channels_readHistory.md index 87906417..104a7b8f 100644 --- a/old_docs/API_docs_v53/methods/channels_readHistory.md +++ b/old_docs/API_docs_v53/methods/channels_readHistory.md @@ -21,10 +21,10 @@ description: channels.readHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/channels_reportSpam.md b/old_docs/API_docs_v53/methods/channels_reportSpam.md index dc8542f2..9e3e13ac 100644 --- a/old_docs/API_docs_v53/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v53/methods/channels_reportSpam.md @@ -22,10 +22,10 @@ description: channels.reportSpam parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/channels_toggleInvites.md b/old_docs/API_docs_v53/methods/channels_toggleInvites.md index 6545a16a..5238c028 100644 --- a/old_docs/API_docs_v53/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v53/methods/channels_toggleInvites.md @@ -21,10 +21,10 @@ description: channels.toggleInvites parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/channels_toggleSignatures.md b/old_docs/API_docs_v53/methods/channels_toggleSignatures.md index dcab06a1..c850d592 100644 --- a/old_docs/API_docs_v53/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v53/methods/channels_toggleSignatures.md @@ -21,10 +21,10 @@ description: channels.toggleSignatures parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v53/methods/channels_updatePinnedMessage.md index c86580db..9a879125 100644 --- a/old_docs/API_docs_v53/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v53/methods/channels_updatePinnedMessage.md @@ -22,10 +22,10 @@ description: channels.updatePinnedMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/channels_updateUsername.md b/old_docs/API_docs_v53/methods/channels_updateUsername.md index ebb03507..801bc972 100644 --- a/old_docs/API_docs_v53/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v53/methods/channels_updateUsername.md @@ -21,10 +21,10 @@ description: channels.updateUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/contacts_block.md b/old_docs/API_docs_v53/methods/contacts_block.md index b809b15c..f512adcc 100644 --- a/old_docs/API_docs_v53/methods/contacts_block.md +++ b/old_docs/API_docs_v53/methods/contacts_block.md @@ -20,10 +20,10 @@ description: contacts.block parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/contacts_deleteContact.md b/old_docs/API_docs_v53/methods/contacts_deleteContact.md index 18ef51f8..a3e8f63d 100644 --- a/old_docs/API_docs_v53/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v53/methods/contacts_deleteContact.md @@ -20,10 +20,10 @@ description: contacts.deleteContact parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/contacts_deleteContacts.md b/old_docs/API_docs_v53/methods/contacts_deleteContacts.md index 40672188..46e251eb 100644 --- a/old_docs/API_docs_v53/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v53/methods/contacts_deleteContacts.md @@ -20,10 +20,10 @@ description: contacts.deleteContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/contacts_exportCard.md b/old_docs/API_docs_v53/methods/contacts_exportCard.md index 4145d246..f7ec0015 100644 --- a/old_docs/API_docs_v53/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v53/methods/contacts_exportCard.md @@ -15,10 +15,10 @@ description: contacts.exportCard parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/contacts_getBlocked.md b/old_docs/API_docs_v53/methods/contacts_getBlocked.md index 50172d03..0fc72dba 100644 --- a/old_docs/API_docs_v53/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v53/methods/contacts_getBlocked.md @@ -21,10 +21,10 @@ description: contacts.getBlocked parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/contacts_getContacts.md b/old_docs/API_docs_v53/methods/contacts_getContacts.md index 0e6f22e9..656821e0 100644 --- a/old_docs/API_docs_v53/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v53/methods/contacts_getContacts.md @@ -20,10 +20,10 @@ description: contacts.getContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/contacts_getStatuses.md b/old_docs/API_docs_v53/methods/contacts_getStatuses.md index b734f529..ee806f2d 100644 --- a/old_docs/API_docs_v53/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v53/methods/contacts_getStatuses.md @@ -15,10 +15,10 @@ description: contacts.getStatuses parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/contacts_getTopPeers.md b/old_docs/API_docs_v53/methods/contacts_getTopPeers.md index 9ce29121..75b4126a 100644 --- a/old_docs/API_docs_v53/methods/contacts_getTopPeers.md +++ b/old_docs/API_docs_v53/methods/contacts_getTopPeers.md @@ -27,10 +27,10 @@ description: contacts.getTopPeers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/contacts_importCard.md b/old_docs/API_docs_v53/methods/contacts_importCard.md index 6b2c612e..162ff4f3 100644 --- a/old_docs/API_docs_v53/methods/contacts_importCard.md +++ b/old_docs/API_docs_v53/methods/contacts_importCard.md @@ -20,10 +20,10 @@ description: contacts.importCard parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/contacts_importContacts.md b/old_docs/API_docs_v53/methods/contacts_importContacts.md index 2426f53c..48412e99 100644 --- a/old_docs/API_docs_v53/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v53/methods/contacts_importContacts.md @@ -21,10 +21,10 @@ description: contacts.importContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v53/methods/contacts_resetTopPeerRating.md index 48e8edd6..79cf7847 100644 --- a/old_docs/API_docs_v53/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v53/methods/contacts_resetTopPeerRating.md @@ -21,10 +21,10 @@ description: contacts.resetTopPeerRating parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/contacts_resolveUsername.md b/old_docs/API_docs_v53/methods/contacts_resolveUsername.md index 0ea67c6f..b847fbe9 100644 --- a/old_docs/API_docs_v53/methods/contacts_resolveUsername.md +++ b/old_docs/API_docs_v53/methods/contacts_resolveUsername.md @@ -20,10 +20,10 @@ description: contacts.resolveUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/contacts_search.md b/old_docs/API_docs_v53/methods/contacts_search.md index 00a39519..9a351db7 100644 --- a/old_docs/API_docs_v53/methods/contacts_search.md +++ b/old_docs/API_docs_v53/methods/contacts_search.md @@ -21,10 +21,10 @@ description: contacts.search parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/contacts_unblock.md b/old_docs/API_docs_v53/methods/contacts_unblock.md index 63f41483..6d739c9b 100644 --- a/old_docs/API_docs_v53/methods/contacts_unblock.md +++ b/old_docs/API_docs_v53/methods/contacts_unblock.md @@ -20,10 +20,10 @@ description: contacts.unblock parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/help_getAppChangelog.md b/old_docs/API_docs_v53/methods/help_getAppChangelog.md index 7c52cce8..2e72e305 100644 --- a/old_docs/API_docs_v53/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v53/methods/help_getAppChangelog.md @@ -15,10 +15,10 @@ description: help.getAppChangelog parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/help_getAppUpdate.md b/old_docs/API_docs_v53/methods/help_getAppUpdate.md index cdaa5f04..f2871a39 100644 --- a/old_docs/API_docs_v53/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v53/methods/help_getAppUpdate.md @@ -15,10 +15,10 @@ description: help.getAppUpdate parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/help_getConfig.md b/old_docs/API_docs_v53/methods/help_getConfig.md index cb9c4f1c..9481a0c0 100644 --- a/old_docs/API_docs_v53/methods/help_getConfig.md +++ b/old_docs/API_docs_v53/methods/help_getConfig.md @@ -15,10 +15,10 @@ description: help.getConfig parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/help_getInviteText.md b/old_docs/API_docs_v53/methods/help_getInviteText.md index b5293e91..5f81c4dc 100644 --- a/old_docs/API_docs_v53/methods/help_getInviteText.md +++ b/old_docs/API_docs_v53/methods/help_getInviteText.md @@ -15,10 +15,10 @@ description: help.getInviteText parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/help_getNearestDc.md b/old_docs/API_docs_v53/methods/help_getNearestDc.md index f491ae0c..bb6b1883 100644 --- a/old_docs/API_docs_v53/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v53/methods/help_getNearestDc.md @@ -15,10 +15,10 @@ description: help.getNearestDc parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/help_getSupport.md b/old_docs/API_docs_v53/methods/help_getSupport.md index 03574c6f..0348089a 100644 --- a/old_docs/API_docs_v53/methods/help_getSupport.md +++ b/old_docs/API_docs_v53/methods/help_getSupport.md @@ -15,10 +15,10 @@ description: help.getSupport parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/help_getTermsOfService.md b/old_docs/API_docs_v53/methods/help_getTermsOfService.md index 59147a4e..7a32bdaf 100644 --- a/old_docs/API_docs_v53/methods/help_getTermsOfService.md +++ b/old_docs/API_docs_v53/methods/help_getTermsOfService.md @@ -15,10 +15,10 @@ description: help.getTermsOfService parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/help_saveAppLog.md b/old_docs/API_docs_v53/methods/help_saveAppLog.md index 3887ccc2..59b92601 100644 --- a/old_docs/API_docs_v53/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v53/methods/help_saveAppLog.md @@ -20,10 +20,10 @@ description: help.saveAppLog parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/initConnection.md b/old_docs/API_docs_v53/methods/initConnection.md index 1c946720..aa89066c 100644 --- a/old_docs/API_docs_v53/methods/initConnection.md +++ b/old_docs/API_docs_v53/methods/initConnection.md @@ -25,10 +25,10 @@ description: initConnection parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/invokeAfterMsg.md b/old_docs/API_docs_v53/methods/invokeAfterMsg.md index 1b35a238..97c4f1fb 100644 --- a/old_docs/API_docs_v53/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v53/methods/invokeAfterMsg.md @@ -21,10 +21,10 @@ description: invokeAfterMsg parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/invokeAfterMsgs.md b/old_docs/API_docs_v53/methods/invokeAfterMsgs.md index 164ab318..4e278ef1 100644 --- a/old_docs/API_docs_v53/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v53/methods/invokeAfterMsgs.md @@ -21,10 +21,10 @@ description: invokeAfterMsgs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/invokeWithLayer.md b/old_docs/API_docs_v53/methods/invokeWithLayer.md index 497cc285..72fe47ec 100644 --- a/old_docs/API_docs_v53/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v53/methods/invokeWithLayer.md @@ -21,10 +21,10 @@ description: invokeWithLayer parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v53/methods/invokeWithoutUpdates.md index cbdabb07..5151b786 100644 --- a/old_docs/API_docs_v53/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v53/methods/invokeWithoutUpdates.md @@ -20,10 +20,10 @@ description: invokeWithoutUpdates parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_acceptEncryption.md b/old_docs/API_docs_v53/methods/messages_acceptEncryption.md index d41beb91..e016f5d3 100644 --- a/old_docs/API_docs_v53/methods/messages_acceptEncryption.md +++ b/old_docs/API_docs_v53/methods/messages_acceptEncryption.md @@ -22,10 +22,10 @@ description: messages.acceptEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_addChatUser.md b/old_docs/API_docs_v53/methods/messages_addChatUser.md index 13d17a3e..df2cb1a5 100644 --- a/old_docs/API_docs_v53/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v53/methods/messages_addChatUser.md @@ -22,10 +22,10 @@ description: messages.addChatUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_checkChatInvite.md b/old_docs/API_docs_v53/methods/messages_checkChatInvite.md index 0a3a4f84..7670727b 100644 --- a/old_docs/API_docs_v53/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v53/methods/messages_checkChatInvite.md @@ -20,10 +20,10 @@ description: messages.checkChatInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_createChat.md b/old_docs/API_docs_v53/methods/messages_createChat.md index 0ab3101a..2fc5631c 100644 --- a/old_docs/API_docs_v53/methods/messages_createChat.md +++ b/old_docs/API_docs_v53/methods/messages_createChat.md @@ -21,10 +21,10 @@ description: messages.createChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_deleteChatUser.md b/old_docs/API_docs_v53/methods/messages_deleteChatUser.md index ed736ebd..6895649f 100644 --- a/old_docs/API_docs_v53/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v53/methods/messages_deleteChatUser.md @@ -21,10 +21,10 @@ description: messages.deleteChatUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_deleteHistory.md b/old_docs/API_docs_v53/methods/messages_deleteHistory.md index 6f71f2fe..e8c98c07 100644 --- a/old_docs/API_docs_v53/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v53/methods/messages_deleteHistory.md @@ -22,10 +22,10 @@ description: messages.deleteHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_deleteMessages.md b/old_docs/API_docs_v53/methods/messages_deleteMessages.md index 5997c2ed..d9d28886 100644 --- a/old_docs/API_docs_v53/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v53/methods/messages_deleteMessages.md @@ -20,10 +20,10 @@ description: messages.deleteMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_discardEncryption.md b/old_docs/API_docs_v53/methods/messages_discardEncryption.md index ebc1ace5..f237c986 100644 --- a/old_docs/API_docs_v53/methods/messages_discardEncryption.md +++ b/old_docs/API_docs_v53/methods/messages_discardEncryption.md @@ -20,10 +20,10 @@ description: messages.discardEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_editChatAdmin.md b/old_docs/API_docs_v53/methods/messages_editChatAdmin.md index 38bc8de0..74f5a39f 100644 --- a/old_docs/API_docs_v53/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v53/methods/messages_editChatAdmin.md @@ -22,10 +22,10 @@ description: messages.editChatAdmin parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_editChatPhoto.md b/old_docs/API_docs_v53/methods/messages_editChatPhoto.md index e3cbf492..0396c74b 100644 --- a/old_docs/API_docs_v53/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v53/methods/messages_editChatPhoto.md @@ -21,10 +21,10 @@ description: messages.editChatPhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_editChatTitle.md b/old_docs/API_docs_v53/methods/messages_editChatTitle.md index 60eae01c..fabe9c87 100644 --- a/old_docs/API_docs_v53/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v53/methods/messages_editChatTitle.md @@ -21,10 +21,10 @@ description: messages.editChatTitle parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v53/methods/messages_editInlineBotMessage.md index b275cc64..ae98c13d 100644 --- a/old_docs/API_docs_v53/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v53/methods/messages_editInlineBotMessage.md @@ -25,10 +25,10 @@ description: messages.editInlineBotMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; @@ -48,6 +48,12 @@ Bool = messages.editInlineBotMessage({no_webpage=Bool, id=InputBotInlineMessageI ``` +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + + ## Usage of parse_mode: Set parse_mode to html to enable HTML parsing of the message. diff --git a/old_docs/API_docs_v53/methods/messages_editMessage.md b/old_docs/API_docs_v53/methods/messages_editMessage.md index b7d0eb36..3ce73b6c 100644 --- a/old_docs/API_docs_v53/methods/messages_editMessage.md +++ b/old_docs/API_docs_v53/methods/messages_editMessage.md @@ -26,10 +26,10 @@ description: messages.editMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; @@ -49,6 +49,12 @@ Updates = messages.editMessage({no_webpage=Bool, peer=InputPeer, id=int, message ``` +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + + ## Usage of parse_mode: Set parse_mode to html to enable HTML parsing of the message. diff --git a/old_docs/API_docs_v53/methods/messages_exportChatInvite.md b/old_docs/API_docs_v53/methods/messages_exportChatInvite.md index 3efc9bf7..b96e7498 100644 --- a/old_docs/API_docs_v53/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v53/methods/messages_exportChatInvite.md @@ -20,10 +20,10 @@ description: messages.exportChatInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_forwardMessage.md b/old_docs/API_docs_v53/methods/messages_forwardMessage.md index a95d259a..ced2cb5b 100644 --- a/old_docs/API_docs_v53/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v53/methods/messages_forwardMessage.md @@ -21,10 +21,10 @@ description: messages.forwardMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_forwardMessages.md b/old_docs/API_docs_v53/methods/messages_forwardMessages.md index 60ceefa8..7fda78bd 100644 --- a/old_docs/API_docs_v53/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v53/methods/messages_forwardMessages.md @@ -24,10 +24,10 @@ description: messages.forwardMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_getAllDrafts.md b/old_docs/API_docs_v53/methods/messages_getAllDrafts.md index 39f0a058..ec7ebddb 100644 --- a/old_docs/API_docs_v53/methods/messages_getAllDrafts.md +++ b/old_docs/API_docs_v53/methods/messages_getAllDrafts.md @@ -15,10 +15,10 @@ description: messages.getAllDrafts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_getAllStickers.md b/old_docs/API_docs_v53/methods/messages_getAllStickers.md index 613db3b2..fe438a80 100644 --- a/old_docs/API_docs_v53/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v53/methods/messages_getAllStickers.md @@ -20,10 +20,10 @@ description: messages.getAllStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v53/methods/messages_getBotCallbackAnswer.md index ab7390d1..bcd0754b 100644 --- a/old_docs/API_docs_v53/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v53/methods/messages_getBotCallbackAnswer.md @@ -22,10 +22,10 @@ description: messages.getBotCallbackAnswer parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_getChats.md b/old_docs/API_docs_v53/methods/messages_getChats.md index ad63744b..be57718e 100644 --- a/old_docs/API_docs_v53/methods/messages_getChats.md +++ b/old_docs/API_docs_v53/methods/messages_getChats.md @@ -20,10 +20,10 @@ description: messages.getChats parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_getDhConfig.md b/old_docs/API_docs_v53/methods/messages_getDhConfig.md index bcebea55..21b37f21 100644 --- a/old_docs/API_docs_v53/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v53/methods/messages_getDhConfig.md @@ -21,10 +21,10 @@ description: messages.getDhConfig parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_getDialogs.md b/old_docs/API_docs_v53/methods/messages_getDialogs.md index 07e2b246..ca93a52a 100644 --- a/old_docs/API_docs_v53/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v53/methods/messages_getDialogs.md @@ -23,10 +23,10 @@ description: messages.getDialogs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v53/methods/messages_getDocumentByHash.md index 32fc1de0..ca26acc3 100644 --- a/old_docs/API_docs_v53/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v53/methods/messages_getDocumentByHash.md @@ -22,10 +22,10 @@ description: messages.getDocumentByHash parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_getFullChat.md b/old_docs/API_docs_v53/methods/messages_getFullChat.md index f3c8223a..10d938ae 100644 --- a/old_docs/API_docs_v53/methods/messages_getFullChat.md +++ b/old_docs/API_docs_v53/methods/messages_getFullChat.md @@ -20,10 +20,10 @@ description: messages.getFullChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_getHistory.md b/old_docs/API_docs_v53/methods/messages_getHistory.md index 3311df5b..1befedca 100644 --- a/old_docs/API_docs_v53/methods/messages_getHistory.md +++ b/old_docs/API_docs_v53/methods/messages_getHistory.md @@ -26,10 +26,10 @@ description: messages.getHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v53/methods/messages_getInlineBotResults.md index e76ee714..6364519c 100644 --- a/old_docs/API_docs_v53/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v53/methods/messages_getInlineBotResults.md @@ -24,10 +24,10 @@ description: messages.getInlineBotResults parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_getMessageEditData.md b/old_docs/API_docs_v53/methods/messages_getMessageEditData.md index 8b47e95b..0189b6a5 100644 --- a/old_docs/API_docs_v53/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v53/methods/messages_getMessageEditData.md @@ -21,10 +21,10 @@ description: messages.getMessageEditData parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_getMessages.md b/old_docs/API_docs_v53/methods/messages_getMessages.md index 224df903..e669bcf8 100644 --- a/old_docs/API_docs_v53/methods/messages_getMessages.md +++ b/old_docs/API_docs_v53/methods/messages_getMessages.md @@ -20,10 +20,10 @@ description: messages.getMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_getMessagesViews.md b/old_docs/API_docs_v53/methods/messages_getMessagesViews.md index d162b668..f27cdb36 100644 --- a/old_docs/API_docs_v53/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v53/methods/messages_getMessagesViews.md @@ -22,10 +22,10 @@ description: messages.getMessagesViews parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_getPeerDialogs.md b/old_docs/API_docs_v53/methods/messages_getPeerDialogs.md index cf6dc552..bcf9af29 100644 --- a/old_docs/API_docs_v53/methods/messages_getPeerDialogs.md +++ b/old_docs/API_docs_v53/methods/messages_getPeerDialogs.md @@ -20,10 +20,10 @@ description: messages.getPeerDialogs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_getPeerSettings.md b/old_docs/API_docs_v53/methods/messages_getPeerSettings.md index 202867f7..bd60b87b 100644 --- a/old_docs/API_docs_v53/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v53/methods/messages_getPeerSettings.md @@ -20,10 +20,10 @@ description: messages.getPeerSettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_getSavedGifs.md b/old_docs/API_docs_v53/methods/messages_getSavedGifs.md index 0ca34eef..fbdc5129 100644 --- a/old_docs/API_docs_v53/methods/messages_getSavedGifs.md +++ b/old_docs/API_docs_v53/methods/messages_getSavedGifs.md @@ -20,10 +20,10 @@ description: messages.getSavedGifs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_getStickerSet.md b/old_docs/API_docs_v53/methods/messages_getStickerSet.md index 2ec2fa5d..561eec32 100644 --- a/old_docs/API_docs_v53/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v53/methods/messages_getStickerSet.md @@ -20,10 +20,10 @@ description: messages.getStickerSet parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_getStickers.md b/old_docs/API_docs_v53/methods/messages_getStickers.md index 6730f586..e9aedd80 100644 --- a/old_docs/API_docs_v53/methods/messages_getStickers.md +++ b/old_docs/API_docs_v53/methods/messages_getStickers.md @@ -21,10 +21,10 @@ description: messages.getStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v53/methods/messages_getWebPagePreview.md index e2dd428d..a3d5fce3 100644 --- a/old_docs/API_docs_v53/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v53/methods/messages_getWebPagePreview.md @@ -20,10 +20,10 @@ description: messages.getWebPagePreview parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_hideReportSpam.md b/old_docs/API_docs_v53/methods/messages_hideReportSpam.md index 175bbe27..8a86e690 100644 --- a/old_docs/API_docs_v53/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v53/methods/messages_hideReportSpam.md @@ -20,10 +20,10 @@ description: messages.hideReportSpam parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_importChatInvite.md b/old_docs/API_docs_v53/methods/messages_importChatInvite.md index 250d076d..a4e9c052 100644 --- a/old_docs/API_docs_v53/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v53/methods/messages_importChatInvite.md @@ -20,10 +20,10 @@ description: messages.importChatInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_installStickerSet.md b/old_docs/API_docs_v53/methods/messages_installStickerSet.md index f99d40b4..5180bcbd 100644 --- a/old_docs/API_docs_v53/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v53/methods/messages_installStickerSet.md @@ -21,10 +21,10 @@ description: messages.installStickerSet parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_migrateChat.md b/old_docs/API_docs_v53/methods/messages_migrateChat.md index 5b1e375a..731dc904 100644 --- a/old_docs/API_docs_v53/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v53/methods/messages_migrateChat.md @@ -20,10 +20,10 @@ description: messages.migrateChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v53/methods/messages_readEncryptedHistory.md index 555bffe7..5bb05536 100644 --- a/old_docs/API_docs_v53/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v53/methods/messages_readEncryptedHistory.md @@ -21,10 +21,10 @@ description: messages.readEncryptedHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_readHistory.md b/old_docs/API_docs_v53/methods/messages_readHistory.md index 1e2783ae..6bb29fef 100644 --- a/old_docs/API_docs_v53/methods/messages_readHistory.md +++ b/old_docs/API_docs_v53/methods/messages_readHistory.md @@ -21,10 +21,10 @@ description: messages.readHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_readMessageContents.md b/old_docs/API_docs_v53/methods/messages_readMessageContents.md index ae75d612..829e7cc8 100644 --- a/old_docs/API_docs_v53/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v53/methods/messages_readMessageContents.md @@ -20,10 +20,10 @@ description: messages.readMessageContents parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_receivedMessages.md b/old_docs/API_docs_v53/methods/messages_receivedMessages.md index ffeaeed7..05a229b6 100644 --- a/old_docs/API_docs_v53/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v53/methods/messages_receivedMessages.md @@ -20,10 +20,10 @@ description: messages.receivedMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_receivedQueue.md b/old_docs/API_docs_v53/methods/messages_receivedQueue.md index e514669c..d8bfae5e 100644 --- a/old_docs/API_docs_v53/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v53/methods/messages_receivedQueue.md @@ -20,10 +20,10 @@ description: messages.receivedQueue parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_reorderStickerSets.md b/old_docs/API_docs_v53/methods/messages_reorderStickerSets.md index 4070988e..a1d27734 100644 --- a/old_docs/API_docs_v53/methods/messages_reorderStickerSets.md +++ b/old_docs/API_docs_v53/methods/messages_reorderStickerSets.md @@ -20,10 +20,10 @@ description: messages.reorderStickerSets parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_reportSpam.md b/old_docs/API_docs_v53/methods/messages_reportSpam.md index 56975b9d..da747585 100644 --- a/old_docs/API_docs_v53/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v53/methods/messages_reportSpam.md @@ -20,10 +20,10 @@ description: messages.reportSpam parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_requestEncryption.md b/old_docs/API_docs_v53/methods/messages_requestEncryption.md index e82fca54..99fe7ecf 100644 --- a/old_docs/API_docs_v53/methods/messages_requestEncryption.md +++ b/old_docs/API_docs_v53/methods/messages_requestEncryption.md @@ -21,10 +21,10 @@ description: messages.requestEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_saveDraft.md b/old_docs/API_docs_v53/methods/messages_saveDraft.md index a9fe9721..c3324146 100644 --- a/old_docs/API_docs_v53/methods/messages_saveDraft.md +++ b/old_docs/API_docs_v53/methods/messages_saveDraft.md @@ -25,10 +25,10 @@ description: messages.saveDraft parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_saveGif.md b/old_docs/API_docs_v53/methods/messages_saveGif.md index 0bd648d8..ea2174ea 100644 --- a/old_docs/API_docs_v53/methods/messages_saveGif.md +++ b/old_docs/API_docs_v53/methods/messages_saveGif.md @@ -21,10 +21,10 @@ description: messages.saveGif parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_search.md b/old_docs/API_docs_v53/methods/messages_search.md index fe53fb8c..05309dbf 100644 --- a/old_docs/API_docs_v53/methods/messages_search.md +++ b/old_docs/API_docs_v53/methods/messages_search.md @@ -27,10 +27,10 @@ description: messages.search parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_searchGifs.md b/old_docs/API_docs_v53/methods/messages_searchGifs.md index 18ad844b..8a1de718 100644 --- a/old_docs/API_docs_v53/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v53/methods/messages_searchGifs.md @@ -21,10 +21,10 @@ description: messages.searchGifs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_searchGlobal.md b/old_docs/API_docs_v53/methods/messages_searchGlobal.md index aacdb99f..02d790e9 100644 --- a/old_docs/API_docs_v53/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v53/methods/messages_searchGlobal.md @@ -24,10 +24,10 @@ description: messages.searchGlobal parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_sendBroadcast.md b/old_docs/API_docs_v53/methods/messages_sendBroadcast.md index 9194fdf1..b19bec57 100644 --- a/old_docs/API_docs_v53/methods/messages_sendBroadcast.md +++ b/old_docs/API_docs_v53/methods/messages_sendBroadcast.md @@ -22,10 +22,10 @@ description: messages.sendBroadcast parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_sendEncrypted.md b/old_docs/API_docs_v53/methods/messages_sendEncrypted.md index f2c2c0c2..c3585580 100644 --- a/old_docs/API_docs_v53/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v53/methods/messages_sendEncrypted.md @@ -21,10 +21,10 @@ description: messages.sendEncrypted parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v53/methods/messages_sendEncryptedFile.md index a57a3dd8..40674df9 100644 --- a/old_docs/API_docs_v53/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v53/methods/messages_sendEncryptedFile.md @@ -22,10 +22,10 @@ description: messages.sendEncryptedFile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v53/methods/messages_sendEncryptedService.md index 4041c4d0..8bfee571 100644 --- a/old_docs/API_docs_v53/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v53/methods/messages_sendEncryptedService.md @@ -21,10 +21,10 @@ description: messages.sendEncryptedService parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v53/methods/messages_sendInlineBotResult.md index b2a5ab57..2d71d731 100644 --- a/old_docs/API_docs_v53/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v53/methods/messages_sendInlineBotResult.md @@ -26,10 +26,10 @@ description: messages.sendInlineBotResult parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_sendMedia.md b/old_docs/API_docs_v53/methods/messages_sendMedia.md index 56c95dba..df132dc9 100644 --- a/old_docs/API_docs_v53/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v53/methods/messages_sendMedia.md @@ -26,10 +26,10 @@ description: messages.sendMedia parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; @@ -48,3 +48,9 @@ Or, if you're into Lua: Updates = messages.sendMedia({silent=Bool, background=Bool, clear_draft=Bool, peer=InputPeer, reply_to_msg_id=int, media=InputMedia, reply_markup=ReplyMarkup, }) ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v53/methods/messages_sendMessage.md b/old_docs/API_docs_v53/methods/messages_sendMessage.md index 1433e320..e7f23e30 100644 --- a/old_docs/API_docs_v53/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v53/methods/messages_sendMessage.md @@ -29,10 +29,10 @@ description: messages.sendMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; @@ -52,6 +52,12 @@ Updates = messages.sendMessage({no_webpage=Bool, silent=Bool, background=Bool, c ``` +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + + ## Usage of parse_mode: Set parse_mode to html to enable HTML parsing of the message. diff --git a/old_docs/API_docs_v53/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v53/methods/messages_setBotCallbackAnswer.md index f1d58f20..554af885 100644 --- a/old_docs/API_docs_v53/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v53/methods/messages_setBotCallbackAnswer.md @@ -22,10 +22,10 @@ description: messages.setBotCallbackAnswer parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v53/methods/messages_setEncryptedTyping.md index 95364d49..ae718bba 100644 --- a/old_docs/API_docs_v53/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v53/methods/messages_setEncryptedTyping.md @@ -21,10 +21,10 @@ description: messages.setEncryptedTyping parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v53/methods/messages_setInlineBotResults.md index a2cf64b7..ea653cd7 100644 --- a/old_docs/API_docs_v53/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v53/methods/messages_setInlineBotResults.md @@ -26,10 +26,10 @@ description: messages.setInlineBotResults parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_setTyping.md b/old_docs/API_docs_v53/methods/messages_setTyping.md index 0ce5743d..75903c68 100644 --- a/old_docs/API_docs_v53/methods/messages_setTyping.md +++ b/old_docs/API_docs_v53/methods/messages_setTyping.md @@ -21,10 +21,10 @@ description: messages.setTyping parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_startBot.md b/old_docs/API_docs_v53/methods/messages_startBot.md index 5f563224..bf79b142 100644 --- a/old_docs/API_docs_v53/methods/messages_startBot.md +++ b/old_docs/API_docs_v53/methods/messages_startBot.md @@ -22,10 +22,10 @@ description: messages.startBot parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v53/methods/messages_toggleChatAdmins.md index 0ad6ba92..05d74e5a 100644 --- a/old_docs/API_docs_v53/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v53/methods/messages_toggleChatAdmins.md @@ -21,10 +21,10 @@ description: messages.toggleChatAdmins parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v53/methods/messages_uninstallStickerSet.md index 97fff059..5202b086 100644 --- a/old_docs/API_docs_v53/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v53/methods/messages_uninstallStickerSet.md @@ -20,10 +20,10 @@ description: messages.uninstallStickerSet parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/photos_deletePhotos.md b/old_docs/API_docs_v53/methods/photos_deletePhotos.md index 6a717835..2d27b700 100644 --- a/old_docs/API_docs_v53/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v53/methods/photos_deletePhotos.md @@ -20,10 +20,10 @@ description: photos.deletePhotos parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/photos_getUserPhotos.md b/old_docs/API_docs_v53/methods/photos_getUserPhotos.md index 4aa96dfa..0f50ee6f 100644 --- a/old_docs/API_docs_v53/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v53/methods/photos_getUserPhotos.md @@ -23,10 +23,10 @@ description: photos.getUserPhotos parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v53/methods/photos_updateProfilePhoto.md index f18669cc..9ae9c59e 100644 --- a/old_docs/API_docs_v53/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v53/methods/photos_updateProfilePhoto.md @@ -21,10 +21,10 @@ description: photos.updateProfilePhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v53/methods/photos_uploadProfilePhoto.md index 3eb7a10c..567eb363 100644 --- a/old_docs/API_docs_v53/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v53/methods/photos_uploadProfilePhoto.md @@ -23,10 +23,10 @@ description: photos.uploadProfilePhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/updates_getChannelDifference.md b/old_docs/API_docs_v53/methods/updates_getChannelDifference.md index 1add786f..d3b725f4 100644 --- a/old_docs/API_docs_v53/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v53/methods/updates_getChannelDifference.md @@ -23,10 +23,10 @@ description: updates.getChannelDifference parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/updates_getDifference.md b/old_docs/API_docs_v53/methods/updates_getDifference.md index c7ae5664..719a7a02 100644 --- a/old_docs/API_docs_v53/methods/updates_getDifference.md +++ b/old_docs/API_docs_v53/methods/updates_getDifference.md @@ -22,10 +22,10 @@ description: updates.getDifference parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/updates_getState.md b/old_docs/API_docs_v53/methods/updates_getState.md index 5612ca79..53fc0c16 100644 --- a/old_docs/API_docs_v53/methods/updates_getState.md +++ b/old_docs/API_docs_v53/methods/updates_getState.md @@ -15,10 +15,10 @@ description: updates.getState parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/upload_getFile.md b/old_docs/API_docs_v53/methods/upload_getFile.md index a2f3d961..ee35140a 100644 --- a/old_docs/API_docs_v53/methods/upload_getFile.md +++ b/old_docs/API_docs_v53/methods/upload_getFile.md @@ -22,10 +22,10 @@ description: upload.getFile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/upload_saveBigFilePart.md b/old_docs/API_docs_v53/methods/upload_saveBigFilePart.md index 03641055..503d1b5c 100644 --- a/old_docs/API_docs_v53/methods/upload_saveBigFilePart.md +++ b/old_docs/API_docs_v53/methods/upload_saveBigFilePart.md @@ -23,10 +23,10 @@ description: upload.saveBigFilePart parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/upload_saveFilePart.md b/old_docs/API_docs_v53/methods/upload_saveFilePart.md index 192412c8..d7f745aa 100644 --- a/old_docs/API_docs_v53/methods/upload_saveFilePart.md +++ b/old_docs/API_docs_v53/methods/upload_saveFilePart.md @@ -22,10 +22,10 @@ description: upload.saveFilePart parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/users_getFullUser.md b/old_docs/API_docs_v53/methods/users_getFullUser.md index 864ae387..bcba7f3d 100644 --- a/old_docs/API_docs_v53/methods/users_getFullUser.md +++ b/old_docs/API_docs_v53/methods/users_getFullUser.md @@ -20,10 +20,10 @@ description: users.getFullUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v53/methods/users_getUsers.md b/old_docs/API_docs_v53/methods/users_getUsers.md index 34816478..e03fd2d6 100644 --- a/old_docs/API_docs_v53/methods/users_getUsers.md +++ b/old_docs/API_docs_v53/methods/users_getUsers.md @@ -20,10 +20,10 @@ description: users.getUsers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/constructors/botInlineMessageMediaAuto.md b/old_docs/API_docs_v55/constructors/botInlineMessageMediaAuto.md index 6ed2ffd9..694cf6ea 100644 --- a/old_docs/API_docs_v55/constructors/botInlineMessageMediaAuto.md +++ b/old_docs/API_docs_v55/constructors/botInlineMessageMediaAuto.md @@ -34,3 +34,9 @@ botInlineMessageMediaAuto={_='botInlineMessageMediaAuto', caption=string, reply_ ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v55/constructors/botInlineMessageMediaContact.md b/old_docs/API_docs_v55/constructors/botInlineMessageMediaContact.md index 6bdda386..f57e4752 100644 --- a/old_docs/API_docs_v55/constructors/botInlineMessageMediaContact.md +++ b/old_docs/API_docs_v55/constructors/botInlineMessageMediaContact.md @@ -36,3 +36,9 @@ botInlineMessageMediaContact={_='botInlineMessageMediaContact', phone_number=str ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v55/constructors/botInlineMessageMediaGeo.md b/old_docs/API_docs_v55/constructors/botInlineMessageMediaGeo.md index 38b53228..40ea4ca1 100644 --- a/old_docs/API_docs_v55/constructors/botInlineMessageMediaGeo.md +++ b/old_docs/API_docs_v55/constructors/botInlineMessageMediaGeo.md @@ -34,3 +34,9 @@ botInlineMessageMediaGeo={_='botInlineMessageMediaGeo', geo=GeoPoint, reply_mark ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v55/constructors/botInlineMessageMediaVenue.md b/old_docs/API_docs_v55/constructors/botInlineMessageMediaVenue.md index 39880cfc..236f3cf1 100644 --- a/old_docs/API_docs_v55/constructors/botInlineMessageMediaVenue.md +++ b/old_docs/API_docs_v55/constructors/botInlineMessageMediaVenue.md @@ -38,3 +38,9 @@ botInlineMessageMediaVenue={_='botInlineMessageMediaVenue', geo=GeoPoint, title= ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v55/constructors/botInlineMessageText.md b/old_docs/API_docs_v55/constructors/botInlineMessageText.md index 750ddf50..278fe01d 100644 --- a/old_docs/API_docs_v55/constructors/botInlineMessageText.md +++ b/old_docs/API_docs_v55/constructors/botInlineMessageText.md @@ -36,3 +36,9 @@ botInlineMessageText={_='botInlineMessageText', no_webpage=Bool, message=string, ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v55/constructors/inputBotInlineMessageMediaAuto.md b/old_docs/API_docs_v55/constructors/inputBotInlineMessageMediaAuto.md index 52449dff..75bb48f3 100644 --- a/old_docs/API_docs_v55/constructors/inputBotInlineMessageMediaAuto.md +++ b/old_docs/API_docs_v55/constructors/inputBotInlineMessageMediaAuto.md @@ -34,3 +34,9 @@ inputBotInlineMessageMediaAuto={_='inputBotInlineMessageMediaAuto', caption=stri ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v55/constructors/inputBotInlineMessageMediaContact.md b/old_docs/API_docs_v55/constructors/inputBotInlineMessageMediaContact.md index fdab869d..754ce5ac 100644 --- a/old_docs/API_docs_v55/constructors/inputBotInlineMessageMediaContact.md +++ b/old_docs/API_docs_v55/constructors/inputBotInlineMessageMediaContact.md @@ -36,3 +36,9 @@ inputBotInlineMessageMediaContact={_='inputBotInlineMessageMediaContact', phone_ ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v55/constructors/inputBotInlineMessageMediaGeo.md b/old_docs/API_docs_v55/constructors/inputBotInlineMessageMediaGeo.md index 1b741cfc..6eac346e 100644 --- a/old_docs/API_docs_v55/constructors/inputBotInlineMessageMediaGeo.md +++ b/old_docs/API_docs_v55/constructors/inputBotInlineMessageMediaGeo.md @@ -34,3 +34,9 @@ inputBotInlineMessageMediaGeo={_='inputBotInlineMessageMediaGeo', geo_point=Inpu ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v55/constructors/inputBotInlineMessageMediaVenue.md b/old_docs/API_docs_v55/constructors/inputBotInlineMessageMediaVenue.md index ddd2eba5..ddb3c3fe 100644 --- a/old_docs/API_docs_v55/constructors/inputBotInlineMessageMediaVenue.md +++ b/old_docs/API_docs_v55/constructors/inputBotInlineMessageMediaVenue.md @@ -38,3 +38,9 @@ inputBotInlineMessageMediaVenue={_='inputBotInlineMessageMediaVenue', geo_point= ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v55/constructors/inputBotInlineMessageText.md b/old_docs/API_docs_v55/constructors/inputBotInlineMessageText.md index 6d751de2..77de3cf6 100644 --- a/old_docs/API_docs_v55/constructors/inputBotInlineMessageText.md +++ b/old_docs/API_docs_v55/constructors/inputBotInlineMessageText.md @@ -36,3 +36,9 @@ inputBotInlineMessageText={_='inputBotInlineMessageText', no_webpage=Bool, messa ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v55/constructors/message.md b/old_docs/API_docs_v55/constructors/message.md index 8ecae9bf..135401c5 100644 --- a/old_docs/API_docs_v55/constructors/message.md +++ b/old_docs/API_docs_v55/constructors/message.md @@ -50,3 +50,9 @@ message={_='message', out=Bool, mentioned=Bool, media_unread=Bool, silent=Bool, ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v55/methods/account_changePhone.md b/old_docs/API_docs_v55/methods/account_changePhone.md index dc3e0427..6691a743 100644 --- a/old_docs/API_docs_v55/methods/account_changePhone.md +++ b/old_docs/API_docs_v55/methods/account_changePhone.md @@ -22,10 +22,10 @@ description: account.changePhone parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/account_checkUsername.md b/old_docs/API_docs_v55/methods/account_checkUsername.md index dc13041c..e954ca99 100644 --- a/old_docs/API_docs_v55/methods/account_checkUsername.md +++ b/old_docs/API_docs_v55/methods/account_checkUsername.md @@ -20,10 +20,10 @@ description: account.checkUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/account_confirmPhone.md b/old_docs/API_docs_v55/methods/account_confirmPhone.md index 07582551..99af6c2c 100644 --- a/old_docs/API_docs_v55/methods/account_confirmPhone.md +++ b/old_docs/API_docs_v55/methods/account_confirmPhone.md @@ -21,10 +21,10 @@ description: account.confirmPhone parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/account_deleteAccount.md b/old_docs/API_docs_v55/methods/account_deleteAccount.md index 4199572b..0d0a6204 100644 --- a/old_docs/API_docs_v55/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v55/methods/account_deleteAccount.md @@ -20,10 +20,10 @@ description: account.deleteAccount parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/account_getAccountTTL.md b/old_docs/API_docs_v55/methods/account_getAccountTTL.md index ff4171df..e284a80e 100644 --- a/old_docs/API_docs_v55/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v55/methods/account_getAccountTTL.md @@ -15,10 +15,10 @@ description: account.getAccountTTL parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/account_getAuthorizations.md b/old_docs/API_docs_v55/methods/account_getAuthorizations.md index 26f755d4..ee5a00d6 100644 --- a/old_docs/API_docs_v55/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v55/methods/account_getAuthorizations.md @@ -15,10 +15,10 @@ description: account.getAuthorizations parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/account_getNotifySettings.md b/old_docs/API_docs_v55/methods/account_getNotifySettings.md index 817f201a..2e7fd9ba 100644 --- a/old_docs/API_docs_v55/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v55/methods/account_getNotifySettings.md @@ -20,10 +20,10 @@ description: account.getNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/account_getPassword.md b/old_docs/API_docs_v55/methods/account_getPassword.md index d7491fec..424d3710 100644 --- a/old_docs/API_docs_v55/methods/account_getPassword.md +++ b/old_docs/API_docs_v55/methods/account_getPassword.md @@ -15,10 +15,10 @@ description: account.getPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/account_getPasswordSettings.md b/old_docs/API_docs_v55/methods/account_getPasswordSettings.md index 5be9a523..3e72e398 100644 --- a/old_docs/API_docs_v55/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v55/methods/account_getPasswordSettings.md @@ -20,10 +20,10 @@ description: account.getPasswordSettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/account_getPrivacy.md b/old_docs/API_docs_v55/methods/account_getPrivacy.md index 649019d5..26137fd3 100644 --- a/old_docs/API_docs_v55/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v55/methods/account_getPrivacy.md @@ -20,10 +20,10 @@ description: account.getPrivacy parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/account_getWallPapers.md b/old_docs/API_docs_v55/methods/account_getWallPapers.md index 9eb0182a..a44ea777 100644 --- a/old_docs/API_docs_v55/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v55/methods/account_getWallPapers.md @@ -15,10 +15,10 @@ description: account.getWallPapers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/account_registerDevice.md b/old_docs/API_docs_v55/methods/account_registerDevice.md index 453de19b..c4704140 100644 --- a/old_docs/API_docs_v55/methods/account_registerDevice.md +++ b/old_docs/API_docs_v55/methods/account_registerDevice.md @@ -21,10 +21,10 @@ description: account.registerDevice parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/account_reportPeer.md b/old_docs/API_docs_v55/methods/account_reportPeer.md index bb8dea54..7d913217 100644 --- a/old_docs/API_docs_v55/methods/account_reportPeer.md +++ b/old_docs/API_docs_v55/methods/account_reportPeer.md @@ -21,10 +21,10 @@ description: account.reportPeer parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/account_resetAuthorization.md b/old_docs/API_docs_v55/methods/account_resetAuthorization.md index aaf5a660..2c7c5bc4 100644 --- a/old_docs/API_docs_v55/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v55/methods/account_resetAuthorization.md @@ -20,10 +20,10 @@ description: account.resetAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/account_resetNotifySettings.md b/old_docs/API_docs_v55/methods/account_resetNotifySettings.md index 5a6a4c95..aa01dfce 100644 --- a/old_docs/API_docs_v55/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v55/methods/account_resetNotifySettings.md @@ -15,10 +15,10 @@ description: account.resetNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v55/methods/account_sendChangePhoneCode.md index 8f2e8833..a3d15473 100644 --- a/old_docs/API_docs_v55/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v55/methods/account_sendChangePhoneCode.md @@ -22,10 +22,10 @@ description: account.sendChangePhoneCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/account_sendConfirmPhoneCode.md b/old_docs/API_docs_v55/methods/account_sendConfirmPhoneCode.md index 5897ec41..c1b7cacd 100644 --- a/old_docs/API_docs_v55/methods/account_sendConfirmPhoneCode.md +++ b/old_docs/API_docs_v55/methods/account_sendConfirmPhoneCode.md @@ -22,10 +22,10 @@ description: account.sendConfirmPhoneCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/account_setAccountTTL.md b/old_docs/API_docs_v55/methods/account_setAccountTTL.md index 6ae8d70e..460ae89a 100644 --- a/old_docs/API_docs_v55/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v55/methods/account_setAccountTTL.md @@ -20,10 +20,10 @@ description: account.setAccountTTL parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/account_setPrivacy.md b/old_docs/API_docs_v55/methods/account_setPrivacy.md index e438ca16..f05356db 100644 --- a/old_docs/API_docs_v55/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v55/methods/account_setPrivacy.md @@ -21,10 +21,10 @@ description: account.setPrivacy parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/account_unregisterDevice.md b/old_docs/API_docs_v55/methods/account_unregisterDevice.md index 89ab99a8..1063fad3 100644 --- a/old_docs/API_docs_v55/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v55/methods/account_unregisterDevice.md @@ -21,10 +21,10 @@ description: account.unregisterDevice parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v55/methods/account_updateDeviceLocked.md index 3fe6b8b6..506d974f 100644 --- a/old_docs/API_docs_v55/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v55/methods/account_updateDeviceLocked.md @@ -20,10 +20,10 @@ description: account.updateDeviceLocked parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/account_updateNotifySettings.md b/old_docs/API_docs_v55/methods/account_updateNotifySettings.md index 7eea8202..cb90a39f 100644 --- a/old_docs/API_docs_v55/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v55/methods/account_updateNotifySettings.md @@ -21,10 +21,10 @@ description: account.updateNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v55/methods/account_updatePasswordSettings.md index 56e4d724..ad1a930d 100644 --- a/old_docs/API_docs_v55/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v55/methods/account_updatePasswordSettings.md @@ -21,10 +21,10 @@ description: account.updatePasswordSettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/account_updateProfile.md b/old_docs/API_docs_v55/methods/account_updateProfile.md index 186a934d..3edc695d 100644 --- a/old_docs/API_docs_v55/methods/account_updateProfile.md +++ b/old_docs/API_docs_v55/methods/account_updateProfile.md @@ -22,10 +22,10 @@ description: account.updateProfile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/account_updateStatus.md b/old_docs/API_docs_v55/methods/account_updateStatus.md index f2fd751e..ac260312 100644 --- a/old_docs/API_docs_v55/methods/account_updateStatus.md +++ b/old_docs/API_docs_v55/methods/account_updateStatus.md @@ -20,10 +20,10 @@ description: account.updateStatus parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/account_updateUsername.md b/old_docs/API_docs_v55/methods/account_updateUsername.md index b5e428e4..7daf43e0 100644 --- a/old_docs/API_docs_v55/methods/account_updateUsername.md +++ b/old_docs/API_docs_v55/methods/account_updateUsername.md @@ -20,10 +20,10 @@ description: account.updateUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v55/methods/auth_bindTempAuthKey.md index 87d0c7cf..55e083cd 100644 --- a/old_docs/API_docs_v55/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v55/methods/auth_bindTempAuthKey.md @@ -23,10 +23,10 @@ description: auth.bindTempAuthKey parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/auth_cancelCode.md b/old_docs/API_docs_v55/methods/auth_cancelCode.md index 7402df8d..520caa6f 100644 --- a/old_docs/API_docs_v55/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v55/methods/auth_cancelCode.md @@ -21,10 +21,10 @@ description: auth.cancelCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/auth_checkPassword.md b/old_docs/API_docs_v55/methods/auth_checkPassword.md index 601146fc..9dcb706a 100644 --- a/old_docs/API_docs_v55/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v55/methods/auth_checkPassword.md @@ -20,10 +20,10 @@ description: auth.checkPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/auth_checkPhone.md b/old_docs/API_docs_v55/methods/auth_checkPhone.md index 2e4db690..ce137f9d 100644 --- a/old_docs/API_docs_v55/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v55/methods/auth_checkPhone.md @@ -20,10 +20,10 @@ description: auth.checkPhone parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/auth_exportAuthorization.md b/old_docs/API_docs_v55/methods/auth_exportAuthorization.md index a69f0301..bfd16433 100644 --- a/old_docs/API_docs_v55/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v55/methods/auth_exportAuthorization.md @@ -20,10 +20,10 @@ description: auth.exportAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/auth_importAuthorization.md b/old_docs/API_docs_v55/methods/auth_importAuthorization.md index a0e2e4b7..956f9a72 100644 --- a/old_docs/API_docs_v55/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v55/methods/auth_importAuthorization.md @@ -21,10 +21,10 @@ description: auth.importAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/auth_importBotAuthorization.md b/old_docs/API_docs_v55/methods/auth_importBotAuthorization.md index a78a5263..11d2f7f3 100644 --- a/old_docs/API_docs_v55/methods/auth_importBotAuthorization.md +++ b/old_docs/API_docs_v55/methods/auth_importBotAuthorization.md @@ -22,10 +22,10 @@ description: auth.importBotAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/auth_logOut.md b/old_docs/API_docs_v55/methods/auth_logOut.md index ac5bd8ae..5651f753 100644 --- a/old_docs/API_docs_v55/methods/auth_logOut.md +++ b/old_docs/API_docs_v55/methods/auth_logOut.md @@ -15,10 +15,10 @@ description: auth.logOut parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/auth_recoverPassword.md b/old_docs/API_docs_v55/methods/auth_recoverPassword.md index 9b7ebcfb..e253e7d9 100644 --- a/old_docs/API_docs_v55/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v55/methods/auth_recoverPassword.md @@ -20,10 +20,10 @@ description: auth.recoverPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v55/methods/auth_requestPasswordRecovery.md index 94c0aeff..2ae670eb 100644 --- a/old_docs/API_docs_v55/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v55/methods/auth_requestPasswordRecovery.md @@ -15,10 +15,10 @@ description: auth.requestPasswordRecovery parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/auth_resendCode.md b/old_docs/API_docs_v55/methods/auth_resendCode.md index 8b36b17c..cb9dfd91 100644 --- a/old_docs/API_docs_v55/methods/auth_resendCode.md +++ b/old_docs/API_docs_v55/methods/auth_resendCode.md @@ -21,10 +21,10 @@ description: auth.resendCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v55/methods/auth_resetAuthorizations.md index f55e2e4d..9b324b42 100644 --- a/old_docs/API_docs_v55/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v55/methods/auth_resetAuthorizations.md @@ -15,10 +15,10 @@ description: auth.resetAuthorizations parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/auth_sendCode.md b/old_docs/API_docs_v55/methods/auth_sendCode.md index 6c195531..c5888bac 100644 --- a/old_docs/API_docs_v55/methods/auth_sendCode.md +++ b/old_docs/API_docs_v55/methods/auth_sendCode.md @@ -24,10 +24,10 @@ description: auth.sendCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/auth_sendInvites.md b/old_docs/API_docs_v55/methods/auth_sendInvites.md index f81a5c7e..87cdc7e3 100644 --- a/old_docs/API_docs_v55/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v55/methods/auth_sendInvites.md @@ -21,10 +21,10 @@ description: auth.sendInvites parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/auth_signIn.md b/old_docs/API_docs_v55/methods/auth_signIn.md index 7616bc80..b0fb12fe 100644 --- a/old_docs/API_docs_v55/methods/auth_signIn.md +++ b/old_docs/API_docs_v55/methods/auth_signIn.md @@ -22,10 +22,10 @@ description: auth.signIn parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/auth_signUp.md b/old_docs/API_docs_v55/methods/auth_signUp.md index f9c72d64..6f92b4f7 100644 --- a/old_docs/API_docs_v55/methods/auth_signUp.md +++ b/old_docs/API_docs_v55/methods/auth_signUp.md @@ -24,10 +24,10 @@ description: auth.signUp parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/channels_checkUsername.md b/old_docs/API_docs_v55/methods/channels_checkUsername.md index 82990d05..298b8e35 100644 --- a/old_docs/API_docs_v55/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v55/methods/channels_checkUsername.md @@ -21,10 +21,10 @@ description: channels.checkUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/channels_createChannel.md b/old_docs/API_docs_v55/methods/channels_createChannel.md index b5ffa159..207c60e9 100644 --- a/old_docs/API_docs_v55/methods/channels_createChannel.md +++ b/old_docs/API_docs_v55/methods/channels_createChannel.md @@ -23,10 +23,10 @@ description: channels.createChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/channels_deleteChannel.md b/old_docs/API_docs_v55/methods/channels_deleteChannel.md index c1eba22f..825882ab 100644 --- a/old_docs/API_docs_v55/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v55/methods/channels_deleteChannel.md @@ -20,10 +20,10 @@ description: channels.deleteChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/channels_deleteMessages.md b/old_docs/API_docs_v55/methods/channels_deleteMessages.md index e2e5e2bb..14fe6256 100644 --- a/old_docs/API_docs_v55/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v55/methods/channels_deleteMessages.md @@ -21,10 +21,10 @@ description: channels.deleteMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v55/methods/channels_deleteUserHistory.md index d3feb071..c485126f 100644 --- a/old_docs/API_docs_v55/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v55/methods/channels_deleteUserHistory.md @@ -21,10 +21,10 @@ description: channels.deleteUserHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/channels_editAbout.md b/old_docs/API_docs_v55/methods/channels_editAbout.md index 12d9df80..87c1a2c0 100644 --- a/old_docs/API_docs_v55/methods/channels_editAbout.md +++ b/old_docs/API_docs_v55/methods/channels_editAbout.md @@ -21,10 +21,10 @@ description: channels.editAbout parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/channels_editAdmin.md b/old_docs/API_docs_v55/methods/channels_editAdmin.md index 1e488778..48042957 100644 --- a/old_docs/API_docs_v55/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v55/methods/channels_editAdmin.md @@ -22,10 +22,10 @@ description: channels.editAdmin parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/channels_editPhoto.md b/old_docs/API_docs_v55/methods/channels_editPhoto.md index 9c0d0fe0..caea3df6 100644 --- a/old_docs/API_docs_v55/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v55/methods/channels_editPhoto.md @@ -21,10 +21,10 @@ description: channels.editPhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/channels_editTitle.md b/old_docs/API_docs_v55/methods/channels_editTitle.md index 057c7772..6f05ed61 100644 --- a/old_docs/API_docs_v55/methods/channels_editTitle.md +++ b/old_docs/API_docs_v55/methods/channels_editTitle.md @@ -21,10 +21,10 @@ description: channels.editTitle parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/channels_exportInvite.md b/old_docs/API_docs_v55/methods/channels_exportInvite.md index c5fa1bf9..7483038b 100644 --- a/old_docs/API_docs_v55/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v55/methods/channels_exportInvite.md @@ -20,10 +20,10 @@ description: channels.exportInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/channels_exportMessageLink.md b/old_docs/API_docs_v55/methods/channels_exportMessageLink.md index 0b1a7102..e239030c 100644 --- a/old_docs/API_docs_v55/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v55/methods/channels_exportMessageLink.md @@ -21,10 +21,10 @@ description: channels.exportMessageLink parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/channels_getChannels.md b/old_docs/API_docs_v55/methods/channels_getChannels.md index 24b94c8f..004f7b7e 100644 --- a/old_docs/API_docs_v55/methods/channels_getChannels.md +++ b/old_docs/API_docs_v55/methods/channels_getChannels.md @@ -20,10 +20,10 @@ description: channels.getChannels parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/channels_getFullChannel.md b/old_docs/API_docs_v55/methods/channels_getFullChannel.md index 8bf78cd9..37abd094 100644 --- a/old_docs/API_docs_v55/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v55/methods/channels_getFullChannel.md @@ -20,10 +20,10 @@ description: channels.getFullChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/channels_getMessages.md b/old_docs/API_docs_v55/methods/channels_getMessages.md index 8204bf26..3aca181e 100644 --- a/old_docs/API_docs_v55/methods/channels_getMessages.md +++ b/old_docs/API_docs_v55/methods/channels_getMessages.md @@ -21,10 +21,10 @@ description: channels.getMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/channels_getParticipant.md b/old_docs/API_docs_v55/methods/channels_getParticipant.md index 7b685913..6bb9339e 100644 --- a/old_docs/API_docs_v55/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v55/methods/channels_getParticipant.md @@ -21,10 +21,10 @@ description: channels.getParticipant parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/channels_getParticipants.md b/old_docs/API_docs_v55/methods/channels_getParticipants.md index 6ee31676..51ac2c09 100644 --- a/old_docs/API_docs_v55/methods/channels_getParticipants.md +++ b/old_docs/API_docs_v55/methods/channels_getParticipants.md @@ -23,10 +23,10 @@ description: channels.getParticipants parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/channels_inviteToChannel.md b/old_docs/API_docs_v55/methods/channels_inviteToChannel.md index 4b4985a4..57581c7a 100644 --- a/old_docs/API_docs_v55/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v55/methods/channels_inviteToChannel.md @@ -21,10 +21,10 @@ description: channels.inviteToChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/channels_joinChannel.md b/old_docs/API_docs_v55/methods/channels_joinChannel.md index 97fd5417..359333fd 100644 --- a/old_docs/API_docs_v55/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v55/methods/channels_joinChannel.md @@ -20,10 +20,10 @@ description: channels.joinChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/channels_kickFromChannel.md b/old_docs/API_docs_v55/methods/channels_kickFromChannel.md index cf5a3ebc..930902a3 100644 --- a/old_docs/API_docs_v55/methods/channels_kickFromChannel.md +++ b/old_docs/API_docs_v55/methods/channels_kickFromChannel.md @@ -22,10 +22,10 @@ description: channels.kickFromChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/channels_leaveChannel.md b/old_docs/API_docs_v55/methods/channels_leaveChannel.md index 69dc1852..a10d17e7 100644 --- a/old_docs/API_docs_v55/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v55/methods/channels_leaveChannel.md @@ -20,10 +20,10 @@ description: channels.leaveChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/channels_readHistory.md b/old_docs/API_docs_v55/methods/channels_readHistory.md index 87906417..104a7b8f 100644 --- a/old_docs/API_docs_v55/methods/channels_readHistory.md +++ b/old_docs/API_docs_v55/methods/channels_readHistory.md @@ -21,10 +21,10 @@ description: channels.readHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/channels_reportSpam.md b/old_docs/API_docs_v55/methods/channels_reportSpam.md index dc8542f2..9e3e13ac 100644 --- a/old_docs/API_docs_v55/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v55/methods/channels_reportSpam.md @@ -22,10 +22,10 @@ description: channels.reportSpam parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/channels_toggleInvites.md b/old_docs/API_docs_v55/methods/channels_toggleInvites.md index 6545a16a..5238c028 100644 --- a/old_docs/API_docs_v55/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v55/methods/channels_toggleInvites.md @@ -21,10 +21,10 @@ description: channels.toggleInvites parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/channels_toggleSignatures.md b/old_docs/API_docs_v55/methods/channels_toggleSignatures.md index dcab06a1..c850d592 100644 --- a/old_docs/API_docs_v55/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v55/methods/channels_toggleSignatures.md @@ -21,10 +21,10 @@ description: channels.toggleSignatures parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v55/methods/channels_updatePinnedMessage.md index c86580db..9a879125 100644 --- a/old_docs/API_docs_v55/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v55/methods/channels_updatePinnedMessage.md @@ -22,10 +22,10 @@ description: channels.updatePinnedMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/channels_updateUsername.md b/old_docs/API_docs_v55/methods/channels_updateUsername.md index ebb03507..801bc972 100644 --- a/old_docs/API_docs_v55/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v55/methods/channels_updateUsername.md @@ -21,10 +21,10 @@ description: channels.updateUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/contacts_block.md b/old_docs/API_docs_v55/methods/contacts_block.md index b809b15c..f512adcc 100644 --- a/old_docs/API_docs_v55/methods/contacts_block.md +++ b/old_docs/API_docs_v55/methods/contacts_block.md @@ -20,10 +20,10 @@ description: contacts.block parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/contacts_deleteContact.md b/old_docs/API_docs_v55/methods/contacts_deleteContact.md index 18ef51f8..a3e8f63d 100644 --- a/old_docs/API_docs_v55/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v55/methods/contacts_deleteContact.md @@ -20,10 +20,10 @@ description: contacts.deleteContact parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/contacts_deleteContacts.md b/old_docs/API_docs_v55/methods/contacts_deleteContacts.md index 40672188..46e251eb 100644 --- a/old_docs/API_docs_v55/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v55/methods/contacts_deleteContacts.md @@ -20,10 +20,10 @@ description: contacts.deleteContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/contacts_exportCard.md b/old_docs/API_docs_v55/methods/contacts_exportCard.md index 4145d246..f7ec0015 100644 --- a/old_docs/API_docs_v55/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v55/methods/contacts_exportCard.md @@ -15,10 +15,10 @@ description: contacts.exportCard parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/contacts_getBlocked.md b/old_docs/API_docs_v55/methods/contacts_getBlocked.md index 50172d03..0fc72dba 100644 --- a/old_docs/API_docs_v55/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v55/methods/contacts_getBlocked.md @@ -21,10 +21,10 @@ description: contacts.getBlocked parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/contacts_getContacts.md b/old_docs/API_docs_v55/methods/contacts_getContacts.md index 0e6f22e9..656821e0 100644 --- a/old_docs/API_docs_v55/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v55/methods/contacts_getContacts.md @@ -20,10 +20,10 @@ description: contacts.getContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/contacts_getStatuses.md b/old_docs/API_docs_v55/methods/contacts_getStatuses.md index b734f529..ee806f2d 100644 --- a/old_docs/API_docs_v55/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v55/methods/contacts_getStatuses.md @@ -15,10 +15,10 @@ description: contacts.getStatuses parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/contacts_getTopPeers.md b/old_docs/API_docs_v55/methods/contacts_getTopPeers.md index 9ce29121..75b4126a 100644 --- a/old_docs/API_docs_v55/methods/contacts_getTopPeers.md +++ b/old_docs/API_docs_v55/methods/contacts_getTopPeers.md @@ -27,10 +27,10 @@ description: contacts.getTopPeers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/contacts_importCard.md b/old_docs/API_docs_v55/methods/contacts_importCard.md index 6b2c612e..162ff4f3 100644 --- a/old_docs/API_docs_v55/methods/contacts_importCard.md +++ b/old_docs/API_docs_v55/methods/contacts_importCard.md @@ -20,10 +20,10 @@ description: contacts.importCard parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/contacts_importContacts.md b/old_docs/API_docs_v55/methods/contacts_importContacts.md index 2426f53c..48412e99 100644 --- a/old_docs/API_docs_v55/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v55/methods/contacts_importContacts.md @@ -21,10 +21,10 @@ description: contacts.importContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v55/methods/contacts_resetTopPeerRating.md index 48e8edd6..79cf7847 100644 --- a/old_docs/API_docs_v55/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v55/methods/contacts_resetTopPeerRating.md @@ -21,10 +21,10 @@ description: contacts.resetTopPeerRating parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/contacts_resolveUsername.md b/old_docs/API_docs_v55/methods/contacts_resolveUsername.md index 0ea67c6f..b847fbe9 100644 --- a/old_docs/API_docs_v55/methods/contacts_resolveUsername.md +++ b/old_docs/API_docs_v55/methods/contacts_resolveUsername.md @@ -20,10 +20,10 @@ description: contacts.resolveUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/contacts_search.md b/old_docs/API_docs_v55/methods/contacts_search.md index 00a39519..9a351db7 100644 --- a/old_docs/API_docs_v55/methods/contacts_search.md +++ b/old_docs/API_docs_v55/methods/contacts_search.md @@ -21,10 +21,10 @@ description: contacts.search parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/contacts_unblock.md b/old_docs/API_docs_v55/methods/contacts_unblock.md index 63f41483..6d739c9b 100644 --- a/old_docs/API_docs_v55/methods/contacts_unblock.md +++ b/old_docs/API_docs_v55/methods/contacts_unblock.md @@ -20,10 +20,10 @@ description: contacts.unblock parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/help_getAppChangelog.md b/old_docs/API_docs_v55/methods/help_getAppChangelog.md index 7c52cce8..2e72e305 100644 --- a/old_docs/API_docs_v55/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v55/methods/help_getAppChangelog.md @@ -15,10 +15,10 @@ description: help.getAppChangelog parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/help_getAppUpdate.md b/old_docs/API_docs_v55/methods/help_getAppUpdate.md index cdaa5f04..f2871a39 100644 --- a/old_docs/API_docs_v55/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v55/methods/help_getAppUpdate.md @@ -15,10 +15,10 @@ description: help.getAppUpdate parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/help_getConfig.md b/old_docs/API_docs_v55/methods/help_getConfig.md index cb9c4f1c..9481a0c0 100644 --- a/old_docs/API_docs_v55/methods/help_getConfig.md +++ b/old_docs/API_docs_v55/methods/help_getConfig.md @@ -15,10 +15,10 @@ description: help.getConfig parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/help_getInviteText.md b/old_docs/API_docs_v55/methods/help_getInviteText.md index b5293e91..5f81c4dc 100644 --- a/old_docs/API_docs_v55/methods/help_getInviteText.md +++ b/old_docs/API_docs_v55/methods/help_getInviteText.md @@ -15,10 +15,10 @@ description: help.getInviteText parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/help_getNearestDc.md b/old_docs/API_docs_v55/methods/help_getNearestDc.md index f491ae0c..bb6b1883 100644 --- a/old_docs/API_docs_v55/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v55/methods/help_getNearestDc.md @@ -15,10 +15,10 @@ description: help.getNearestDc parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/help_getSupport.md b/old_docs/API_docs_v55/methods/help_getSupport.md index 03574c6f..0348089a 100644 --- a/old_docs/API_docs_v55/methods/help_getSupport.md +++ b/old_docs/API_docs_v55/methods/help_getSupport.md @@ -15,10 +15,10 @@ description: help.getSupport parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/help_getTermsOfService.md b/old_docs/API_docs_v55/methods/help_getTermsOfService.md index 59147a4e..7a32bdaf 100644 --- a/old_docs/API_docs_v55/methods/help_getTermsOfService.md +++ b/old_docs/API_docs_v55/methods/help_getTermsOfService.md @@ -15,10 +15,10 @@ description: help.getTermsOfService parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/help_saveAppLog.md b/old_docs/API_docs_v55/methods/help_saveAppLog.md index 3887ccc2..59b92601 100644 --- a/old_docs/API_docs_v55/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v55/methods/help_saveAppLog.md @@ -20,10 +20,10 @@ description: help.saveAppLog parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/initConnection.md b/old_docs/API_docs_v55/methods/initConnection.md index 1c946720..aa89066c 100644 --- a/old_docs/API_docs_v55/methods/initConnection.md +++ b/old_docs/API_docs_v55/methods/initConnection.md @@ -25,10 +25,10 @@ description: initConnection parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/invokeAfterMsg.md b/old_docs/API_docs_v55/methods/invokeAfterMsg.md index 1b35a238..97c4f1fb 100644 --- a/old_docs/API_docs_v55/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v55/methods/invokeAfterMsg.md @@ -21,10 +21,10 @@ description: invokeAfterMsg parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/invokeAfterMsgs.md b/old_docs/API_docs_v55/methods/invokeAfterMsgs.md index 164ab318..4e278ef1 100644 --- a/old_docs/API_docs_v55/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v55/methods/invokeAfterMsgs.md @@ -21,10 +21,10 @@ description: invokeAfterMsgs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/invokeWithLayer.md b/old_docs/API_docs_v55/methods/invokeWithLayer.md index 497cc285..72fe47ec 100644 --- a/old_docs/API_docs_v55/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v55/methods/invokeWithLayer.md @@ -21,10 +21,10 @@ description: invokeWithLayer parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v55/methods/invokeWithoutUpdates.md index cbdabb07..5151b786 100644 --- a/old_docs/API_docs_v55/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v55/methods/invokeWithoutUpdates.md @@ -20,10 +20,10 @@ description: invokeWithoutUpdates parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_acceptEncryption.md b/old_docs/API_docs_v55/methods/messages_acceptEncryption.md index d41beb91..e016f5d3 100644 --- a/old_docs/API_docs_v55/methods/messages_acceptEncryption.md +++ b/old_docs/API_docs_v55/methods/messages_acceptEncryption.md @@ -22,10 +22,10 @@ description: messages.acceptEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_addChatUser.md b/old_docs/API_docs_v55/methods/messages_addChatUser.md index 13d17a3e..df2cb1a5 100644 --- a/old_docs/API_docs_v55/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v55/methods/messages_addChatUser.md @@ -22,10 +22,10 @@ description: messages.addChatUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_checkChatInvite.md b/old_docs/API_docs_v55/methods/messages_checkChatInvite.md index 0a3a4f84..7670727b 100644 --- a/old_docs/API_docs_v55/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v55/methods/messages_checkChatInvite.md @@ -20,10 +20,10 @@ description: messages.checkChatInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_clearRecentStickers.md b/old_docs/API_docs_v55/methods/messages_clearRecentStickers.md index 8abcd726..601f6ee5 100644 --- a/old_docs/API_docs_v55/methods/messages_clearRecentStickers.md +++ b/old_docs/API_docs_v55/methods/messages_clearRecentStickers.md @@ -15,10 +15,10 @@ description: messages.clearRecentStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_createChat.md b/old_docs/API_docs_v55/methods/messages_createChat.md index 0ab3101a..2fc5631c 100644 --- a/old_docs/API_docs_v55/methods/messages_createChat.md +++ b/old_docs/API_docs_v55/methods/messages_createChat.md @@ -21,10 +21,10 @@ description: messages.createChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_deleteChatUser.md b/old_docs/API_docs_v55/methods/messages_deleteChatUser.md index ed736ebd..6895649f 100644 --- a/old_docs/API_docs_v55/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v55/methods/messages_deleteChatUser.md @@ -21,10 +21,10 @@ description: messages.deleteChatUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_deleteHistory.md b/old_docs/API_docs_v55/methods/messages_deleteHistory.md index 6f71f2fe..e8c98c07 100644 --- a/old_docs/API_docs_v55/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v55/methods/messages_deleteHistory.md @@ -22,10 +22,10 @@ description: messages.deleteHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_deleteMessages.md b/old_docs/API_docs_v55/methods/messages_deleteMessages.md index 5997c2ed..d9d28886 100644 --- a/old_docs/API_docs_v55/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v55/methods/messages_deleteMessages.md @@ -20,10 +20,10 @@ description: messages.deleteMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_discardEncryption.md b/old_docs/API_docs_v55/methods/messages_discardEncryption.md index ebc1ace5..f237c986 100644 --- a/old_docs/API_docs_v55/methods/messages_discardEncryption.md +++ b/old_docs/API_docs_v55/methods/messages_discardEncryption.md @@ -20,10 +20,10 @@ description: messages.discardEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_editChatAdmin.md b/old_docs/API_docs_v55/methods/messages_editChatAdmin.md index 38bc8de0..74f5a39f 100644 --- a/old_docs/API_docs_v55/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v55/methods/messages_editChatAdmin.md @@ -22,10 +22,10 @@ description: messages.editChatAdmin parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_editChatPhoto.md b/old_docs/API_docs_v55/methods/messages_editChatPhoto.md index e3cbf492..0396c74b 100644 --- a/old_docs/API_docs_v55/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v55/methods/messages_editChatPhoto.md @@ -21,10 +21,10 @@ description: messages.editChatPhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_editChatTitle.md b/old_docs/API_docs_v55/methods/messages_editChatTitle.md index 60eae01c..fabe9c87 100644 --- a/old_docs/API_docs_v55/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v55/methods/messages_editChatTitle.md @@ -21,10 +21,10 @@ description: messages.editChatTitle parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v55/methods/messages_editInlineBotMessage.md index b275cc64..ae98c13d 100644 --- a/old_docs/API_docs_v55/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v55/methods/messages_editInlineBotMessage.md @@ -25,10 +25,10 @@ description: messages.editInlineBotMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; @@ -48,6 +48,12 @@ Bool = messages.editInlineBotMessage({no_webpage=Bool, id=InputBotInlineMessageI ``` +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + + ## Usage of parse_mode: Set parse_mode to html to enable HTML parsing of the message. diff --git a/old_docs/API_docs_v55/methods/messages_editMessage.md b/old_docs/API_docs_v55/methods/messages_editMessage.md index b7d0eb36..3ce73b6c 100644 --- a/old_docs/API_docs_v55/methods/messages_editMessage.md +++ b/old_docs/API_docs_v55/methods/messages_editMessage.md @@ -26,10 +26,10 @@ description: messages.editMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; @@ -49,6 +49,12 @@ Updates = messages.editMessage({no_webpage=Bool, peer=InputPeer, id=int, message ``` +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + + ## Usage of parse_mode: Set parse_mode to html to enable HTML parsing of the message. diff --git a/old_docs/API_docs_v55/methods/messages_exportChatInvite.md b/old_docs/API_docs_v55/methods/messages_exportChatInvite.md index 3efc9bf7..b96e7498 100644 --- a/old_docs/API_docs_v55/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v55/methods/messages_exportChatInvite.md @@ -20,10 +20,10 @@ description: messages.exportChatInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_forwardMessage.md b/old_docs/API_docs_v55/methods/messages_forwardMessage.md index a95d259a..ced2cb5b 100644 --- a/old_docs/API_docs_v55/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v55/methods/messages_forwardMessage.md @@ -21,10 +21,10 @@ description: messages.forwardMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_forwardMessages.md b/old_docs/API_docs_v55/methods/messages_forwardMessages.md index 60ceefa8..7fda78bd 100644 --- a/old_docs/API_docs_v55/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v55/methods/messages_forwardMessages.md @@ -24,10 +24,10 @@ description: messages.forwardMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_getAllDrafts.md b/old_docs/API_docs_v55/methods/messages_getAllDrafts.md index 39f0a058..ec7ebddb 100644 --- a/old_docs/API_docs_v55/methods/messages_getAllDrafts.md +++ b/old_docs/API_docs_v55/methods/messages_getAllDrafts.md @@ -15,10 +15,10 @@ description: messages.getAllDrafts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_getAllStickers.md b/old_docs/API_docs_v55/methods/messages_getAllStickers.md index 613db3b2..fe438a80 100644 --- a/old_docs/API_docs_v55/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v55/methods/messages_getAllStickers.md @@ -20,10 +20,10 @@ description: messages.getAllStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_getArchivedStickers.md b/old_docs/API_docs_v55/methods/messages_getArchivedStickers.md index 1308cc36..7a1cbb16 100644 --- a/old_docs/API_docs_v55/methods/messages_getArchivedStickers.md +++ b/old_docs/API_docs_v55/methods/messages_getArchivedStickers.md @@ -21,10 +21,10 @@ description: messages.getArchivedStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v55/methods/messages_getBotCallbackAnswer.md index ab7390d1..bcd0754b 100644 --- a/old_docs/API_docs_v55/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v55/methods/messages_getBotCallbackAnswer.md @@ -22,10 +22,10 @@ description: messages.getBotCallbackAnswer parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_getChats.md b/old_docs/API_docs_v55/methods/messages_getChats.md index ad63744b..be57718e 100644 --- a/old_docs/API_docs_v55/methods/messages_getChats.md +++ b/old_docs/API_docs_v55/methods/messages_getChats.md @@ -20,10 +20,10 @@ description: messages.getChats parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_getDhConfig.md b/old_docs/API_docs_v55/methods/messages_getDhConfig.md index bcebea55..21b37f21 100644 --- a/old_docs/API_docs_v55/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v55/methods/messages_getDhConfig.md @@ -21,10 +21,10 @@ description: messages.getDhConfig parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_getDialogs.md b/old_docs/API_docs_v55/methods/messages_getDialogs.md index 07e2b246..ca93a52a 100644 --- a/old_docs/API_docs_v55/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v55/methods/messages_getDialogs.md @@ -23,10 +23,10 @@ description: messages.getDialogs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v55/methods/messages_getDocumentByHash.md index 32fc1de0..ca26acc3 100644 --- a/old_docs/API_docs_v55/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v55/methods/messages_getDocumentByHash.md @@ -22,10 +22,10 @@ description: messages.getDocumentByHash parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_getFeaturedStickers.md b/old_docs/API_docs_v55/methods/messages_getFeaturedStickers.md index 47a4d501..e991e78b 100644 --- a/old_docs/API_docs_v55/methods/messages_getFeaturedStickers.md +++ b/old_docs/API_docs_v55/methods/messages_getFeaturedStickers.md @@ -20,10 +20,10 @@ description: messages.getFeaturedStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_getFullChat.md b/old_docs/API_docs_v55/methods/messages_getFullChat.md index f3c8223a..10d938ae 100644 --- a/old_docs/API_docs_v55/methods/messages_getFullChat.md +++ b/old_docs/API_docs_v55/methods/messages_getFullChat.md @@ -20,10 +20,10 @@ description: messages.getFullChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_getHistory.md b/old_docs/API_docs_v55/methods/messages_getHistory.md index 3311df5b..1befedca 100644 --- a/old_docs/API_docs_v55/methods/messages_getHistory.md +++ b/old_docs/API_docs_v55/methods/messages_getHistory.md @@ -26,10 +26,10 @@ description: messages.getHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v55/methods/messages_getInlineBotResults.md index e76ee714..6364519c 100644 --- a/old_docs/API_docs_v55/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v55/methods/messages_getInlineBotResults.md @@ -24,10 +24,10 @@ description: messages.getInlineBotResults parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_getMessageEditData.md b/old_docs/API_docs_v55/methods/messages_getMessageEditData.md index 8b47e95b..0189b6a5 100644 --- a/old_docs/API_docs_v55/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v55/methods/messages_getMessageEditData.md @@ -21,10 +21,10 @@ description: messages.getMessageEditData parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_getMessages.md b/old_docs/API_docs_v55/methods/messages_getMessages.md index 224df903..e669bcf8 100644 --- a/old_docs/API_docs_v55/methods/messages_getMessages.md +++ b/old_docs/API_docs_v55/methods/messages_getMessages.md @@ -20,10 +20,10 @@ description: messages.getMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_getMessagesViews.md b/old_docs/API_docs_v55/methods/messages_getMessagesViews.md index d162b668..f27cdb36 100644 --- a/old_docs/API_docs_v55/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v55/methods/messages_getMessagesViews.md @@ -22,10 +22,10 @@ description: messages.getMessagesViews parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_getPeerDialogs.md b/old_docs/API_docs_v55/methods/messages_getPeerDialogs.md index cf6dc552..bcf9af29 100644 --- a/old_docs/API_docs_v55/methods/messages_getPeerDialogs.md +++ b/old_docs/API_docs_v55/methods/messages_getPeerDialogs.md @@ -20,10 +20,10 @@ description: messages.getPeerDialogs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_getPeerSettings.md b/old_docs/API_docs_v55/methods/messages_getPeerSettings.md index 202867f7..bd60b87b 100644 --- a/old_docs/API_docs_v55/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v55/methods/messages_getPeerSettings.md @@ -20,10 +20,10 @@ description: messages.getPeerSettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_getRecentStickers.md b/old_docs/API_docs_v55/methods/messages_getRecentStickers.md index a9e67d7b..58f930ff 100644 --- a/old_docs/API_docs_v55/methods/messages_getRecentStickers.md +++ b/old_docs/API_docs_v55/methods/messages_getRecentStickers.md @@ -20,10 +20,10 @@ description: messages.getRecentStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_getSavedGifs.md b/old_docs/API_docs_v55/methods/messages_getSavedGifs.md index 0ca34eef..fbdc5129 100644 --- a/old_docs/API_docs_v55/methods/messages_getSavedGifs.md +++ b/old_docs/API_docs_v55/methods/messages_getSavedGifs.md @@ -20,10 +20,10 @@ description: messages.getSavedGifs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_getStickerSet.md b/old_docs/API_docs_v55/methods/messages_getStickerSet.md index 2ec2fa5d..561eec32 100644 --- a/old_docs/API_docs_v55/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v55/methods/messages_getStickerSet.md @@ -20,10 +20,10 @@ description: messages.getStickerSet parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_getStickers.md b/old_docs/API_docs_v55/methods/messages_getStickers.md index 6730f586..e9aedd80 100644 --- a/old_docs/API_docs_v55/methods/messages_getStickers.md +++ b/old_docs/API_docs_v55/methods/messages_getStickers.md @@ -21,10 +21,10 @@ description: messages.getStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_getUnusedStickers.md b/old_docs/API_docs_v55/methods/messages_getUnusedStickers.md index 592fd604..c89f99ee 100644 --- a/old_docs/API_docs_v55/methods/messages_getUnusedStickers.md +++ b/old_docs/API_docs_v55/methods/messages_getUnusedStickers.md @@ -20,10 +20,10 @@ description: messages.getUnusedStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v55/methods/messages_getWebPagePreview.md index e2dd428d..a3d5fce3 100644 --- a/old_docs/API_docs_v55/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v55/methods/messages_getWebPagePreview.md @@ -20,10 +20,10 @@ description: messages.getWebPagePreview parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_hideReportSpam.md b/old_docs/API_docs_v55/methods/messages_hideReportSpam.md index 175bbe27..8a86e690 100644 --- a/old_docs/API_docs_v55/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v55/methods/messages_hideReportSpam.md @@ -20,10 +20,10 @@ description: messages.hideReportSpam parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_importChatInvite.md b/old_docs/API_docs_v55/methods/messages_importChatInvite.md index 250d076d..a4e9c052 100644 --- a/old_docs/API_docs_v55/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v55/methods/messages_importChatInvite.md @@ -20,10 +20,10 @@ description: messages.importChatInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_installStickerSet.md b/old_docs/API_docs_v55/methods/messages_installStickerSet.md index 3de799ef..48b77a20 100644 --- a/old_docs/API_docs_v55/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v55/methods/messages_installStickerSet.md @@ -21,10 +21,10 @@ description: messages.installStickerSet parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_migrateChat.md b/old_docs/API_docs_v55/methods/messages_migrateChat.md index 5b1e375a..731dc904 100644 --- a/old_docs/API_docs_v55/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v55/methods/messages_migrateChat.md @@ -20,10 +20,10 @@ description: messages.migrateChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v55/methods/messages_readEncryptedHistory.md index 555bffe7..5bb05536 100644 --- a/old_docs/API_docs_v55/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v55/methods/messages_readEncryptedHistory.md @@ -21,10 +21,10 @@ description: messages.readEncryptedHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_readFeaturedStickers.md b/old_docs/API_docs_v55/methods/messages_readFeaturedStickers.md index f16839ad..33836f0e 100644 --- a/old_docs/API_docs_v55/methods/messages_readFeaturedStickers.md +++ b/old_docs/API_docs_v55/methods/messages_readFeaturedStickers.md @@ -15,10 +15,10 @@ description: messages.readFeaturedStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_readHistory.md b/old_docs/API_docs_v55/methods/messages_readHistory.md index 1e2783ae..6bb29fef 100644 --- a/old_docs/API_docs_v55/methods/messages_readHistory.md +++ b/old_docs/API_docs_v55/methods/messages_readHistory.md @@ -21,10 +21,10 @@ description: messages.readHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_readMessageContents.md b/old_docs/API_docs_v55/methods/messages_readMessageContents.md index ae75d612..829e7cc8 100644 --- a/old_docs/API_docs_v55/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v55/methods/messages_readMessageContents.md @@ -20,10 +20,10 @@ description: messages.readMessageContents parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_receivedMessages.md b/old_docs/API_docs_v55/methods/messages_receivedMessages.md index ffeaeed7..05a229b6 100644 --- a/old_docs/API_docs_v55/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v55/methods/messages_receivedMessages.md @@ -20,10 +20,10 @@ description: messages.receivedMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_receivedQueue.md b/old_docs/API_docs_v55/methods/messages_receivedQueue.md index e514669c..d8bfae5e 100644 --- a/old_docs/API_docs_v55/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v55/methods/messages_receivedQueue.md @@ -20,10 +20,10 @@ description: messages.receivedQueue parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_reorderStickerSets.md b/old_docs/API_docs_v55/methods/messages_reorderStickerSets.md index 4070988e..a1d27734 100644 --- a/old_docs/API_docs_v55/methods/messages_reorderStickerSets.md +++ b/old_docs/API_docs_v55/methods/messages_reorderStickerSets.md @@ -20,10 +20,10 @@ description: messages.reorderStickerSets parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_reportSpam.md b/old_docs/API_docs_v55/methods/messages_reportSpam.md index 56975b9d..da747585 100644 --- a/old_docs/API_docs_v55/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v55/methods/messages_reportSpam.md @@ -20,10 +20,10 @@ description: messages.reportSpam parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_requestEncryption.md b/old_docs/API_docs_v55/methods/messages_requestEncryption.md index e82fca54..99fe7ecf 100644 --- a/old_docs/API_docs_v55/methods/messages_requestEncryption.md +++ b/old_docs/API_docs_v55/methods/messages_requestEncryption.md @@ -21,10 +21,10 @@ description: messages.requestEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_saveDraft.md b/old_docs/API_docs_v55/methods/messages_saveDraft.md index a9fe9721..c3324146 100644 --- a/old_docs/API_docs_v55/methods/messages_saveDraft.md +++ b/old_docs/API_docs_v55/methods/messages_saveDraft.md @@ -25,10 +25,10 @@ description: messages.saveDraft parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_saveGif.md b/old_docs/API_docs_v55/methods/messages_saveGif.md index 0bd648d8..ea2174ea 100644 --- a/old_docs/API_docs_v55/methods/messages_saveGif.md +++ b/old_docs/API_docs_v55/methods/messages_saveGif.md @@ -21,10 +21,10 @@ description: messages.saveGif parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_saveRecentSticker.md b/old_docs/API_docs_v55/methods/messages_saveRecentSticker.md index a985dd7c..a84e57cf 100644 --- a/old_docs/API_docs_v55/methods/messages_saveRecentSticker.md +++ b/old_docs/API_docs_v55/methods/messages_saveRecentSticker.md @@ -21,10 +21,10 @@ description: messages.saveRecentSticker parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_search.md b/old_docs/API_docs_v55/methods/messages_search.md index fe53fb8c..05309dbf 100644 --- a/old_docs/API_docs_v55/methods/messages_search.md +++ b/old_docs/API_docs_v55/methods/messages_search.md @@ -27,10 +27,10 @@ description: messages.search parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_searchGifs.md b/old_docs/API_docs_v55/methods/messages_searchGifs.md index 18ad844b..8a1de718 100644 --- a/old_docs/API_docs_v55/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v55/methods/messages_searchGifs.md @@ -21,10 +21,10 @@ description: messages.searchGifs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_searchGlobal.md b/old_docs/API_docs_v55/methods/messages_searchGlobal.md index aacdb99f..02d790e9 100644 --- a/old_docs/API_docs_v55/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v55/methods/messages_searchGlobal.md @@ -24,10 +24,10 @@ description: messages.searchGlobal parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_sendBroadcast.md b/old_docs/API_docs_v55/methods/messages_sendBroadcast.md index 9194fdf1..b19bec57 100644 --- a/old_docs/API_docs_v55/methods/messages_sendBroadcast.md +++ b/old_docs/API_docs_v55/methods/messages_sendBroadcast.md @@ -22,10 +22,10 @@ description: messages.sendBroadcast parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_sendEncrypted.md b/old_docs/API_docs_v55/methods/messages_sendEncrypted.md index f2c2c0c2..c3585580 100644 --- a/old_docs/API_docs_v55/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v55/methods/messages_sendEncrypted.md @@ -21,10 +21,10 @@ description: messages.sendEncrypted parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v55/methods/messages_sendEncryptedFile.md index a57a3dd8..40674df9 100644 --- a/old_docs/API_docs_v55/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v55/methods/messages_sendEncryptedFile.md @@ -22,10 +22,10 @@ description: messages.sendEncryptedFile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v55/methods/messages_sendEncryptedService.md index 4041c4d0..8bfee571 100644 --- a/old_docs/API_docs_v55/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v55/methods/messages_sendEncryptedService.md @@ -21,10 +21,10 @@ description: messages.sendEncryptedService parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v55/methods/messages_sendInlineBotResult.md index b2a5ab57..2d71d731 100644 --- a/old_docs/API_docs_v55/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v55/methods/messages_sendInlineBotResult.md @@ -26,10 +26,10 @@ description: messages.sendInlineBotResult parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_sendMedia.md b/old_docs/API_docs_v55/methods/messages_sendMedia.md index 56c95dba..df132dc9 100644 --- a/old_docs/API_docs_v55/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v55/methods/messages_sendMedia.md @@ -26,10 +26,10 @@ description: messages.sendMedia parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; @@ -48,3 +48,9 @@ Or, if you're into Lua: Updates = messages.sendMedia({silent=Bool, background=Bool, clear_draft=Bool, peer=InputPeer, reply_to_msg_id=int, media=InputMedia, reply_markup=ReplyMarkup, }) ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v55/methods/messages_sendMessage.md b/old_docs/API_docs_v55/methods/messages_sendMessage.md index 1433e320..e7f23e30 100644 --- a/old_docs/API_docs_v55/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v55/methods/messages_sendMessage.md @@ -29,10 +29,10 @@ description: messages.sendMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; @@ -52,6 +52,12 @@ Updates = messages.sendMessage({no_webpage=Bool, silent=Bool, background=Bool, c ``` +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + + ## Usage of parse_mode: Set parse_mode to html to enable HTML parsing of the message. diff --git a/old_docs/API_docs_v55/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v55/methods/messages_setBotCallbackAnswer.md index 1e8c7216..f2b71f4e 100644 --- a/old_docs/API_docs_v55/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v55/methods/messages_setBotCallbackAnswer.md @@ -23,10 +23,10 @@ description: messages.setBotCallbackAnswer parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v55/methods/messages_setEncryptedTyping.md index 95364d49..ae718bba 100644 --- a/old_docs/API_docs_v55/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v55/methods/messages_setEncryptedTyping.md @@ -21,10 +21,10 @@ description: messages.setEncryptedTyping parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v55/methods/messages_setInlineBotResults.md index a2cf64b7..ea653cd7 100644 --- a/old_docs/API_docs_v55/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v55/methods/messages_setInlineBotResults.md @@ -26,10 +26,10 @@ description: messages.setInlineBotResults parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_setTyping.md b/old_docs/API_docs_v55/methods/messages_setTyping.md index 0ce5743d..75903c68 100644 --- a/old_docs/API_docs_v55/methods/messages_setTyping.md +++ b/old_docs/API_docs_v55/methods/messages_setTyping.md @@ -21,10 +21,10 @@ description: messages.setTyping parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_startBot.md b/old_docs/API_docs_v55/methods/messages_startBot.md index 5f563224..bf79b142 100644 --- a/old_docs/API_docs_v55/methods/messages_startBot.md +++ b/old_docs/API_docs_v55/methods/messages_startBot.md @@ -22,10 +22,10 @@ description: messages.startBot parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v55/methods/messages_toggleChatAdmins.md index 0ad6ba92..05d74e5a 100644 --- a/old_docs/API_docs_v55/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v55/methods/messages_toggleChatAdmins.md @@ -21,10 +21,10 @@ description: messages.toggleChatAdmins parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v55/methods/messages_uninstallStickerSet.md index 97fff059..5202b086 100644 --- a/old_docs/API_docs_v55/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v55/methods/messages_uninstallStickerSet.md @@ -20,10 +20,10 @@ description: messages.uninstallStickerSet parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/photos_deletePhotos.md b/old_docs/API_docs_v55/methods/photos_deletePhotos.md index 6a717835..2d27b700 100644 --- a/old_docs/API_docs_v55/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v55/methods/photos_deletePhotos.md @@ -20,10 +20,10 @@ description: photos.deletePhotos parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/photos_getUserPhotos.md b/old_docs/API_docs_v55/methods/photos_getUserPhotos.md index 4aa96dfa..0f50ee6f 100644 --- a/old_docs/API_docs_v55/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v55/methods/photos_getUserPhotos.md @@ -23,10 +23,10 @@ description: photos.getUserPhotos parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v55/methods/photos_updateProfilePhoto.md index f18669cc..9ae9c59e 100644 --- a/old_docs/API_docs_v55/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v55/methods/photos_updateProfilePhoto.md @@ -21,10 +21,10 @@ description: photos.updateProfilePhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v55/methods/photos_uploadProfilePhoto.md index 3eb7a10c..567eb363 100644 --- a/old_docs/API_docs_v55/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v55/methods/photos_uploadProfilePhoto.md @@ -23,10 +23,10 @@ description: photos.uploadProfilePhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/updates_getChannelDifference.md b/old_docs/API_docs_v55/methods/updates_getChannelDifference.md index 1add786f..d3b725f4 100644 --- a/old_docs/API_docs_v55/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v55/methods/updates_getChannelDifference.md @@ -23,10 +23,10 @@ description: updates.getChannelDifference parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/updates_getDifference.md b/old_docs/API_docs_v55/methods/updates_getDifference.md index c7ae5664..719a7a02 100644 --- a/old_docs/API_docs_v55/methods/updates_getDifference.md +++ b/old_docs/API_docs_v55/methods/updates_getDifference.md @@ -22,10 +22,10 @@ description: updates.getDifference parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/updates_getState.md b/old_docs/API_docs_v55/methods/updates_getState.md index 5612ca79..53fc0c16 100644 --- a/old_docs/API_docs_v55/methods/updates_getState.md +++ b/old_docs/API_docs_v55/methods/updates_getState.md @@ -15,10 +15,10 @@ description: updates.getState parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/upload_getFile.md b/old_docs/API_docs_v55/methods/upload_getFile.md index a2f3d961..ee35140a 100644 --- a/old_docs/API_docs_v55/methods/upload_getFile.md +++ b/old_docs/API_docs_v55/methods/upload_getFile.md @@ -22,10 +22,10 @@ description: upload.getFile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/upload_saveBigFilePart.md b/old_docs/API_docs_v55/methods/upload_saveBigFilePart.md index 03641055..503d1b5c 100644 --- a/old_docs/API_docs_v55/methods/upload_saveBigFilePart.md +++ b/old_docs/API_docs_v55/methods/upload_saveBigFilePart.md @@ -23,10 +23,10 @@ description: upload.saveBigFilePart parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/upload_saveFilePart.md b/old_docs/API_docs_v55/methods/upload_saveFilePart.md index 192412c8..d7f745aa 100644 --- a/old_docs/API_docs_v55/methods/upload_saveFilePart.md +++ b/old_docs/API_docs_v55/methods/upload_saveFilePart.md @@ -22,10 +22,10 @@ description: upload.saveFilePart parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/users_getFullUser.md b/old_docs/API_docs_v55/methods/users_getFullUser.md index 864ae387..bcba7f3d 100644 --- a/old_docs/API_docs_v55/methods/users_getFullUser.md +++ b/old_docs/API_docs_v55/methods/users_getFullUser.md @@ -20,10 +20,10 @@ description: users.getFullUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v55/methods/users_getUsers.md b/old_docs/API_docs_v55/methods/users_getUsers.md index 34816478..e03fd2d6 100644 --- a/old_docs/API_docs_v55/methods/users_getUsers.md +++ b/old_docs/API_docs_v55/methods/users_getUsers.md @@ -20,10 +20,10 @@ description: users.getUsers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/constructors/botInlineMessageMediaAuto.md b/old_docs/API_docs_v57/constructors/botInlineMessageMediaAuto.md index 6ed2ffd9..694cf6ea 100644 --- a/old_docs/API_docs_v57/constructors/botInlineMessageMediaAuto.md +++ b/old_docs/API_docs_v57/constructors/botInlineMessageMediaAuto.md @@ -34,3 +34,9 @@ botInlineMessageMediaAuto={_='botInlineMessageMediaAuto', caption=string, reply_ ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v57/constructors/botInlineMessageMediaContact.md b/old_docs/API_docs_v57/constructors/botInlineMessageMediaContact.md index 6bdda386..f57e4752 100644 --- a/old_docs/API_docs_v57/constructors/botInlineMessageMediaContact.md +++ b/old_docs/API_docs_v57/constructors/botInlineMessageMediaContact.md @@ -36,3 +36,9 @@ botInlineMessageMediaContact={_='botInlineMessageMediaContact', phone_number=str ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v57/constructors/botInlineMessageMediaGeo.md b/old_docs/API_docs_v57/constructors/botInlineMessageMediaGeo.md index 38b53228..40ea4ca1 100644 --- a/old_docs/API_docs_v57/constructors/botInlineMessageMediaGeo.md +++ b/old_docs/API_docs_v57/constructors/botInlineMessageMediaGeo.md @@ -34,3 +34,9 @@ botInlineMessageMediaGeo={_='botInlineMessageMediaGeo', geo=GeoPoint, reply_mark ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v57/constructors/botInlineMessageMediaVenue.md b/old_docs/API_docs_v57/constructors/botInlineMessageMediaVenue.md index 39880cfc..236f3cf1 100644 --- a/old_docs/API_docs_v57/constructors/botInlineMessageMediaVenue.md +++ b/old_docs/API_docs_v57/constructors/botInlineMessageMediaVenue.md @@ -38,3 +38,9 @@ botInlineMessageMediaVenue={_='botInlineMessageMediaVenue', geo=GeoPoint, title= ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v57/constructors/botInlineMessageText.md b/old_docs/API_docs_v57/constructors/botInlineMessageText.md index 750ddf50..278fe01d 100644 --- a/old_docs/API_docs_v57/constructors/botInlineMessageText.md +++ b/old_docs/API_docs_v57/constructors/botInlineMessageText.md @@ -36,3 +36,9 @@ botInlineMessageText={_='botInlineMessageText', no_webpage=Bool, message=string, ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v57/constructors/inputBotInlineMessageGame.md b/old_docs/API_docs_v57/constructors/inputBotInlineMessageGame.md index 9db76c92..5369ed7a 100644 --- a/old_docs/API_docs_v57/constructors/inputBotInlineMessageGame.md +++ b/old_docs/API_docs_v57/constructors/inputBotInlineMessageGame.md @@ -33,3 +33,9 @@ inputBotInlineMessageGame={_='inputBotInlineMessageGame', reply_markup=ReplyMark ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v57/constructors/inputBotInlineMessageMediaAuto.md b/old_docs/API_docs_v57/constructors/inputBotInlineMessageMediaAuto.md index 52449dff..75bb48f3 100644 --- a/old_docs/API_docs_v57/constructors/inputBotInlineMessageMediaAuto.md +++ b/old_docs/API_docs_v57/constructors/inputBotInlineMessageMediaAuto.md @@ -34,3 +34,9 @@ inputBotInlineMessageMediaAuto={_='inputBotInlineMessageMediaAuto', caption=stri ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v57/constructors/inputBotInlineMessageMediaContact.md b/old_docs/API_docs_v57/constructors/inputBotInlineMessageMediaContact.md index fdab869d..754ce5ac 100644 --- a/old_docs/API_docs_v57/constructors/inputBotInlineMessageMediaContact.md +++ b/old_docs/API_docs_v57/constructors/inputBotInlineMessageMediaContact.md @@ -36,3 +36,9 @@ inputBotInlineMessageMediaContact={_='inputBotInlineMessageMediaContact', phone_ ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v57/constructors/inputBotInlineMessageMediaGeo.md b/old_docs/API_docs_v57/constructors/inputBotInlineMessageMediaGeo.md index 1b741cfc..6eac346e 100644 --- a/old_docs/API_docs_v57/constructors/inputBotInlineMessageMediaGeo.md +++ b/old_docs/API_docs_v57/constructors/inputBotInlineMessageMediaGeo.md @@ -34,3 +34,9 @@ inputBotInlineMessageMediaGeo={_='inputBotInlineMessageMediaGeo', geo_point=Inpu ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v57/constructors/inputBotInlineMessageMediaVenue.md b/old_docs/API_docs_v57/constructors/inputBotInlineMessageMediaVenue.md index ddd2eba5..ddb3c3fe 100644 --- a/old_docs/API_docs_v57/constructors/inputBotInlineMessageMediaVenue.md +++ b/old_docs/API_docs_v57/constructors/inputBotInlineMessageMediaVenue.md @@ -38,3 +38,9 @@ inputBotInlineMessageMediaVenue={_='inputBotInlineMessageMediaVenue', geo_point= ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v57/constructors/inputBotInlineMessageText.md b/old_docs/API_docs_v57/constructors/inputBotInlineMessageText.md index 6d751de2..77de3cf6 100644 --- a/old_docs/API_docs_v57/constructors/inputBotInlineMessageText.md +++ b/old_docs/API_docs_v57/constructors/inputBotInlineMessageText.md @@ -36,3 +36,9 @@ inputBotInlineMessageText={_='inputBotInlineMessageText', no_webpage=Bool, messa ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v57/constructors/message.md b/old_docs/API_docs_v57/constructors/message.md index 8ecae9bf..135401c5 100644 --- a/old_docs/API_docs_v57/constructors/message.md +++ b/old_docs/API_docs_v57/constructors/message.md @@ -50,3 +50,9 @@ message={_='message', out=Bool, mentioned=Bool, media_unread=Bool, silent=Bool, ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v57/methods/account_changePhone.md b/old_docs/API_docs_v57/methods/account_changePhone.md index dc3e0427..6691a743 100644 --- a/old_docs/API_docs_v57/methods/account_changePhone.md +++ b/old_docs/API_docs_v57/methods/account_changePhone.md @@ -22,10 +22,10 @@ description: account.changePhone parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/account_checkUsername.md b/old_docs/API_docs_v57/methods/account_checkUsername.md index dc13041c..e954ca99 100644 --- a/old_docs/API_docs_v57/methods/account_checkUsername.md +++ b/old_docs/API_docs_v57/methods/account_checkUsername.md @@ -20,10 +20,10 @@ description: account.checkUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/account_confirmPhone.md b/old_docs/API_docs_v57/methods/account_confirmPhone.md index 07582551..99af6c2c 100644 --- a/old_docs/API_docs_v57/methods/account_confirmPhone.md +++ b/old_docs/API_docs_v57/methods/account_confirmPhone.md @@ -21,10 +21,10 @@ description: account.confirmPhone parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/account_deleteAccount.md b/old_docs/API_docs_v57/methods/account_deleteAccount.md index 4199572b..0d0a6204 100644 --- a/old_docs/API_docs_v57/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v57/methods/account_deleteAccount.md @@ -20,10 +20,10 @@ description: account.deleteAccount parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/account_getAccountTTL.md b/old_docs/API_docs_v57/methods/account_getAccountTTL.md index ff4171df..e284a80e 100644 --- a/old_docs/API_docs_v57/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v57/methods/account_getAccountTTL.md @@ -15,10 +15,10 @@ description: account.getAccountTTL parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/account_getAuthorizations.md b/old_docs/API_docs_v57/methods/account_getAuthorizations.md index 26f755d4..ee5a00d6 100644 --- a/old_docs/API_docs_v57/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v57/methods/account_getAuthorizations.md @@ -15,10 +15,10 @@ description: account.getAuthorizations parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/account_getNotifySettings.md b/old_docs/API_docs_v57/methods/account_getNotifySettings.md index 817f201a..2e7fd9ba 100644 --- a/old_docs/API_docs_v57/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v57/methods/account_getNotifySettings.md @@ -20,10 +20,10 @@ description: account.getNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/account_getPassword.md b/old_docs/API_docs_v57/methods/account_getPassword.md index d7491fec..424d3710 100644 --- a/old_docs/API_docs_v57/methods/account_getPassword.md +++ b/old_docs/API_docs_v57/methods/account_getPassword.md @@ -15,10 +15,10 @@ description: account.getPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/account_getPasswordSettings.md b/old_docs/API_docs_v57/methods/account_getPasswordSettings.md index 5be9a523..3e72e398 100644 --- a/old_docs/API_docs_v57/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v57/methods/account_getPasswordSettings.md @@ -20,10 +20,10 @@ description: account.getPasswordSettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/account_getPrivacy.md b/old_docs/API_docs_v57/methods/account_getPrivacy.md index 649019d5..26137fd3 100644 --- a/old_docs/API_docs_v57/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v57/methods/account_getPrivacy.md @@ -20,10 +20,10 @@ description: account.getPrivacy parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/account_getWallPapers.md b/old_docs/API_docs_v57/methods/account_getWallPapers.md index 9eb0182a..a44ea777 100644 --- a/old_docs/API_docs_v57/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v57/methods/account_getWallPapers.md @@ -15,10 +15,10 @@ description: account.getWallPapers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/account_registerDevice.md b/old_docs/API_docs_v57/methods/account_registerDevice.md index 453de19b..c4704140 100644 --- a/old_docs/API_docs_v57/methods/account_registerDevice.md +++ b/old_docs/API_docs_v57/methods/account_registerDevice.md @@ -21,10 +21,10 @@ description: account.registerDevice parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/account_reportPeer.md b/old_docs/API_docs_v57/methods/account_reportPeer.md index bb8dea54..7d913217 100644 --- a/old_docs/API_docs_v57/methods/account_reportPeer.md +++ b/old_docs/API_docs_v57/methods/account_reportPeer.md @@ -21,10 +21,10 @@ description: account.reportPeer parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/account_resetAuthorization.md b/old_docs/API_docs_v57/methods/account_resetAuthorization.md index aaf5a660..2c7c5bc4 100644 --- a/old_docs/API_docs_v57/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v57/methods/account_resetAuthorization.md @@ -20,10 +20,10 @@ description: account.resetAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/account_resetNotifySettings.md b/old_docs/API_docs_v57/methods/account_resetNotifySettings.md index 5a6a4c95..aa01dfce 100644 --- a/old_docs/API_docs_v57/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v57/methods/account_resetNotifySettings.md @@ -15,10 +15,10 @@ description: account.resetNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v57/methods/account_sendChangePhoneCode.md index 8f2e8833..a3d15473 100644 --- a/old_docs/API_docs_v57/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v57/methods/account_sendChangePhoneCode.md @@ -22,10 +22,10 @@ description: account.sendChangePhoneCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/account_sendConfirmPhoneCode.md b/old_docs/API_docs_v57/methods/account_sendConfirmPhoneCode.md index 5897ec41..c1b7cacd 100644 --- a/old_docs/API_docs_v57/methods/account_sendConfirmPhoneCode.md +++ b/old_docs/API_docs_v57/methods/account_sendConfirmPhoneCode.md @@ -22,10 +22,10 @@ description: account.sendConfirmPhoneCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/account_setAccountTTL.md b/old_docs/API_docs_v57/methods/account_setAccountTTL.md index 6ae8d70e..460ae89a 100644 --- a/old_docs/API_docs_v57/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v57/methods/account_setAccountTTL.md @@ -20,10 +20,10 @@ description: account.setAccountTTL parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/account_setPrivacy.md b/old_docs/API_docs_v57/methods/account_setPrivacy.md index e438ca16..f05356db 100644 --- a/old_docs/API_docs_v57/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v57/methods/account_setPrivacy.md @@ -21,10 +21,10 @@ description: account.setPrivacy parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/account_unregisterDevice.md b/old_docs/API_docs_v57/methods/account_unregisterDevice.md index 89ab99a8..1063fad3 100644 --- a/old_docs/API_docs_v57/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v57/methods/account_unregisterDevice.md @@ -21,10 +21,10 @@ description: account.unregisterDevice parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v57/methods/account_updateDeviceLocked.md index 3fe6b8b6..506d974f 100644 --- a/old_docs/API_docs_v57/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v57/methods/account_updateDeviceLocked.md @@ -20,10 +20,10 @@ description: account.updateDeviceLocked parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/account_updateNotifySettings.md b/old_docs/API_docs_v57/methods/account_updateNotifySettings.md index 7eea8202..cb90a39f 100644 --- a/old_docs/API_docs_v57/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v57/methods/account_updateNotifySettings.md @@ -21,10 +21,10 @@ description: account.updateNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v57/methods/account_updatePasswordSettings.md index 56e4d724..ad1a930d 100644 --- a/old_docs/API_docs_v57/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v57/methods/account_updatePasswordSettings.md @@ -21,10 +21,10 @@ description: account.updatePasswordSettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/account_updateProfile.md b/old_docs/API_docs_v57/methods/account_updateProfile.md index 186a934d..3edc695d 100644 --- a/old_docs/API_docs_v57/methods/account_updateProfile.md +++ b/old_docs/API_docs_v57/methods/account_updateProfile.md @@ -22,10 +22,10 @@ description: account.updateProfile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/account_updateStatus.md b/old_docs/API_docs_v57/methods/account_updateStatus.md index f2fd751e..ac260312 100644 --- a/old_docs/API_docs_v57/methods/account_updateStatus.md +++ b/old_docs/API_docs_v57/methods/account_updateStatus.md @@ -20,10 +20,10 @@ description: account.updateStatus parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/account_updateUsername.md b/old_docs/API_docs_v57/methods/account_updateUsername.md index b5e428e4..7daf43e0 100644 --- a/old_docs/API_docs_v57/methods/account_updateUsername.md +++ b/old_docs/API_docs_v57/methods/account_updateUsername.md @@ -20,10 +20,10 @@ description: account.updateUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v57/methods/auth_bindTempAuthKey.md index 87d0c7cf..55e083cd 100644 --- a/old_docs/API_docs_v57/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v57/methods/auth_bindTempAuthKey.md @@ -23,10 +23,10 @@ description: auth.bindTempAuthKey parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/auth_cancelCode.md b/old_docs/API_docs_v57/methods/auth_cancelCode.md index 7402df8d..520caa6f 100644 --- a/old_docs/API_docs_v57/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v57/methods/auth_cancelCode.md @@ -21,10 +21,10 @@ description: auth.cancelCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/auth_checkPassword.md b/old_docs/API_docs_v57/methods/auth_checkPassword.md index 601146fc..9dcb706a 100644 --- a/old_docs/API_docs_v57/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v57/methods/auth_checkPassword.md @@ -20,10 +20,10 @@ description: auth.checkPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/auth_checkPhone.md b/old_docs/API_docs_v57/methods/auth_checkPhone.md index 2e4db690..ce137f9d 100644 --- a/old_docs/API_docs_v57/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v57/methods/auth_checkPhone.md @@ -20,10 +20,10 @@ description: auth.checkPhone parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/auth_dropTempAuthKeys.md b/old_docs/API_docs_v57/methods/auth_dropTempAuthKeys.md index b138701f..9c43b925 100644 --- a/old_docs/API_docs_v57/methods/auth_dropTempAuthKeys.md +++ b/old_docs/API_docs_v57/methods/auth_dropTempAuthKeys.md @@ -20,10 +20,10 @@ description: auth.dropTempAuthKeys parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/auth_exportAuthorization.md b/old_docs/API_docs_v57/methods/auth_exportAuthorization.md index a69f0301..bfd16433 100644 --- a/old_docs/API_docs_v57/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v57/methods/auth_exportAuthorization.md @@ -20,10 +20,10 @@ description: auth.exportAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/auth_importAuthorization.md b/old_docs/API_docs_v57/methods/auth_importAuthorization.md index a0e2e4b7..956f9a72 100644 --- a/old_docs/API_docs_v57/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v57/methods/auth_importAuthorization.md @@ -21,10 +21,10 @@ description: auth.importAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/auth_importBotAuthorization.md b/old_docs/API_docs_v57/methods/auth_importBotAuthorization.md index a78a5263..11d2f7f3 100644 --- a/old_docs/API_docs_v57/methods/auth_importBotAuthorization.md +++ b/old_docs/API_docs_v57/methods/auth_importBotAuthorization.md @@ -22,10 +22,10 @@ description: auth.importBotAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/auth_logOut.md b/old_docs/API_docs_v57/methods/auth_logOut.md index ac5bd8ae..5651f753 100644 --- a/old_docs/API_docs_v57/methods/auth_logOut.md +++ b/old_docs/API_docs_v57/methods/auth_logOut.md @@ -15,10 +15,10 @@ description: auth.logOut parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/auth_recoverPassword.md b/old_docs/API_docs_v57/methods/auth_recoverPassword.md index 9b7ebcfb..e253e7d9 100644 --- a/old_docs/API_docs_v57/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v57/methods/auth_recoverPassword.md @@ -20,10 +20,10 @@ description: auth.recoverPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v57/methods/auth_requestPasswordRecovery.md index 94c0aeff..2ae670eb 100644 --- a/old_docs/API_docs_v57/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v57/methods/auth_requestPasswordRecovery.md @@ -15,10 +15,10 @@ description: auth.requestPasswordRecovery parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/auth_resendCode.md b/old_docs/API_docs_v57/methods/auth_resendCode.md index 8b36b17c..cb9dfd91 100644 --- a/old_docs/API_docs_v57/methods/auth_resendCode.md +++ b/old_docs/API_docs_v57/methods/auth_resendCode.md @@ -21,10 +21,10 @@ description: auth.resendCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v57/methods/auth_resetAuthorizations.md index f55e2e4d..9b324b42 100644 --- a/old_docs/API_docs_v57/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v57/methods/auth_resetAuthorizations.md @@ -15,10 +15,10 @@ description: auth.resetAuthorizations parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/auth_sendCode.md b/old_docs/API_docs_v57/methods/auth_sendCode.md index 6c195531..c5888bac 100644 --- a/old_docs/API_docs_v57/methods/auth_sendCode.md +++ b/old_docs/API_docs_v57/methods/auth_sendCode.md @@ -24,10 +24,10 @@ description: auth.sendCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/auth_sendInvites.md b/old_docs/API_docs_v57/methods/auth_sendInvites.md index f81a5c7e..87cdc7e3 100644 --- a/old_docs/API_docs_v57/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v57/methods/auth_sendInvites.md @@ -21,10 +21,10 @@ description: auth.sendInvites parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/auth_signIn.md b/old_docs/API_docs_v57/methods/auth_signIn.md index 7616bc80..b0fb12fe 100644 --- a/old_docs/API_docs_v57/methods/auth_signIn.md +++ b/old_docs/API_docs_v57/methods/auth_signIn.md @@ -22,10 +22,10 @@ description: auth.signIn parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/auth_signUp.md b/old_docs/API_docs_v57/methods/auth_signUp.md index f9c72d64..6f92b4f7 100644 --- a/old_docs/API_docs_v57/methods/auth_signUp.md +++ b/old_docs/API_docs_v57/methods/auth_signUp.md @@ -24,10 +24,10 @@ description: auth.signUp parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/channels_checkUsername.md b/old_docs/API_docs_v57/methods/channels_checkUsername.md index 82990d05..298b8e35 100644 --- a/old_docs/API_docs_v57/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v57/methods/channels_checkUsername.md @@ -21,10 +21,10 @@ description: channels.checkUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/channels_createChannel.md b/old_docs/API_docs_v57/methods/channels_createChannel.md index b5ffa159..207c60e9 100644 --- a/old_docs/API_docs_v57/methods/channels_createChannel.md +++ b/old_docs/API_docs_v57/methods/channels_createChannel.md @@ -23,10 +23,10 @@ description: channels.createChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/channels_deleteChannel.md b/old_docs/API_docs_v57/methods/channels_deleteChannel.md index c1eba22f..825882ab 100644 --- a/old_docs/API_docs_v57/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v57/methods/channels_deleteChannel.md @@ -20,10 +20,10 @@ description: channels.deleteChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/channels_deleteMessages.md b/old_docs/API_docs_v57/methods/channels_deleteMessages.md index e2e5e2bb..14fe6256 100644 --- a/old_docs/API_docs_v57/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v57/methods/channels_deleteMessages.md @@ -21,10 +21,10 @@ description: channels.deleteMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v57/methods/channels_deleteUserHistory.md index d3feb071..c485126f 100644 --- a/old_docs/API_docs_v57/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v57/methods/channels_deleteUserHistory.md @@ -21,10 +21,10 @@ description: channels.deleteUserHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/channels_editAbout.md b/old_docs/API_docs_v57/methods/channels_editAbout.md index 12d9df80..87c1a2c0 100644 --- a/old_docs/API_docs_v57/methods/channels_editAbout.md +++ b/old_docs/API_docs_v57/methods/channels_editAbout.md @@ -21,10 +21,10 @@ description: channels.editAbout parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/channels_editAdmin.md b/old_docs/API_docs_v57/methods/channels_editAdmin.md index 1e488778..48042957 100644 --- a/old_docs/API_docs_v57/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v57/methods/channels_editAdmin.md @@ -22,10 +22,10 @@ description: channels.editAdmin parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/channels_editPhoto.md b/old_docs/API_docs_v57/methods/channels_editPhoto.md index 9c0d0fe0..caea3df6 100644 --- a/old_docs/API_docs_v57/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v57/methods/channels_editPhoto.md @@ -21,10 +21,10 @@ description: channels.editPhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/channels_editTitle.md b/old_docs/API_docs_v57/methods/channels_editTitle.md index 057c7772..6f05ed61 100644 --- a/old_docs/API_docs_v57/methods/channels_editTitle.md +++ b/old_docs/API_docs_v57/methods/channels_editTitle.md @@ -21,10 +21,10 @@ description: channels.editTitle parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/channels_exportInvite.md b/old_docs/API_docs_v57/methods/channels_exportInvite.md index c5fa1bf9..7483038b 100644 --- a/old_docs/API_docs_v57/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v57/methods/channels_exportInvite.md @@ -20,10 +20,10 @@ description: channels.exportInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/channels_exportMessageLink.md b/old_docs/API_docs_v57/methods/channels_exportMessageLink.md index 0b1a7102..e239030c 100644 --- a/old_docs/API_docs_v57/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v57/methods/channels_exportMessageLink.md @@ -21,10 +21,10 @@ description: channels.exportMessageLink parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/channels_getAdminedPublicChannels.md b/old_docs/API_docs_v57/methods/channels_getAdminedPublicChannels.md index 4d3b8c42..5293e859 100644 --- a/old_docs/API_docs_v57/methods/channels_getAdminedPublicChannels.md +++ b/old_docs/API_docs_v57/methods/channels_getAdminedPublicChannels.md @@ -15,10 +15,10 @@ description: channels.getAdminedPublicChannels parameters, return type and examp ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/channels_getChannels.md b/old_docs/API_docs_v57/methods/channels_getChannels.md index 24b94c8f..004f7b7e 100644 --- a/old_docs/API_docs_v57/methods/channels_getChannels.md +++ b/old_docs/API_docs_v57/methods/channels_getChannels.md @@ -20,10 +20,10 @@ description: channels.getChannels parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/channels_getFullChannel.md b/old_docs/API_docs_v57/methods/channels_getFullChannel.md index 8bf78cd9..37abd094 100644 --- a/old_docs/API_docs_v57/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v57/methods/channels_getFullChannel.md @@ -20,10 +20,10 @@ description: channels.getFullChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/channels_getMessages.md b/old_docs/API_docs_v57/methods/channels_getMessages.md index 8204bf26..3aca181e 100644 --- a/old_docs/API_docs_v57/methods/channels_getMessages.md +++ b/old_docs/API_docs_v57/methods/channels_getMessages.md @@ -21,10 +21,10 @@ description: channels.getMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/channels_getParticipant.md b/old_docs/API_docs_v57/methods/channels_getParticipant.md index 7b685913..6bb9339e 100644 --- a/old_docs/API_docs_v57/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v57/methods/channels_getParticipant.md @@ -21,10 +21,10 @@ description: channels.getParticipant parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/channels_getParticipants.md b/old_docs/API_docs_v57/methods/channels_getParticipants.md index 6ee31676..51ac2c09 100644 --- a/old_docs/API_docs_v57/methods/channels_getParticipants.md +++ b/old_docs/API_docs_v57/methods/channels_getParticipants.md @@ -23,10 +23,10 @@ description: channels.getParticipants parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/channels_inviteToChannel.md b/old_docs/API_docs_v57/methods/channels_inviteToChannel.md index 4b4985a4..57581c7a 100644 --- a/old_docs/API_docs_v57/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v57/methods/channels_inviteToChannel.md @@ -21,10 +21,10 @@ description: channels.inviteToChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/channels_joinChannel.md b/old_docs/API_docs_v57/methods/channels_joinChannel.md index 97fd5417..359333fd 100644 --- a/old_docs/API_docs_v57/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v57/methods/channels_joinChannel.md @@ -20,10 +20,10 @@ description: channels.joinChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/channels_kickFromChannel.md b/old_docs/API_docs_v57/methods/channels_kickFromChannel.md index cf5a3ebc..930902a3 100644 --- a/old_docs/API_docs_v57/methods/channels_kickFromChannel.md +++ b/old_docs/API_docs_v57/methods/channels_kickFromChannel.md @@ -22,10 +22,10 @@ description: channels.kickFromChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/channels_leaveChannel.md b/old_docs/API_docs_v57/methods/channels_leaveChannel.md index 69dc1852..a10d17e7 100644 --- a/old_docs/API_docs_v57/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v57/methods/channels_leaveChannel.md @@ -20,10 +20,10 @@ description: channels.leaveChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/channels_readHistory.md b/old_docs/API_docs_v57/methods/channels_readHistory.md index 87906417..104a7b8f 100644 --- a/old_docs/API_docs_v57/methods/channels_readHistory.md +++ b/old_docs/API_docs_v57/methods/channels_readHistory.md @@ -21,10 +21,10 @@ description: channels.readHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/channels_reportSpam.md b/old_docs/API_docs_v57/methods/channels_reportSpam.md index dc8542f2..9e3e13ac 100644 --- a/old_docs/API_docs_v57/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v57/methods/channels_reportSpam.md @@ -22,10 +22,10 @@ description: channels.reportSpam parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/channels_toggleInvites.md b/old_docs/API_docs_v57/methods/channels_toggleInvites.md index 6545a16a..5238c028 100644 --- a/old_docs/API_docs_v57/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v57/methods/channels_toggleInvites.md @@ -21,10 +21,10 @@ description: channels.toggleInvites parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/channels_toggleSignatures.md b/old_docs/API_docs_v57/methods/channels_toggleSignatures.md index dcab06a1..c850d592 100644 --- a/old_docs/API_docs_v57/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v57/methods/channels_toggleSignatures.md @@ -21,10 +21,10 @@ description: channels.toggleSignatures parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v57/methods/channels_updatePinnedMessage.md index c86580db..9a879125 100644 --- a/old_docs/API_docs_v57/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v57/methods/channels_updatePinnedMessage.md @@ -22,10 +22,10 @@ description: channels.updatePinnedMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/channels_updateUsername.md b/old_docs/API_docs_v57/methods/channels_updateUsername.md index ebb03507..801bc972 100644 --- a/old_docs/API_docs_v57/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v57/methods/channels_updateUsername.md @@ -21,10 +21,10 @@ description: channels.updateUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/contacts_block.md b/old_docs/API_docs_v57/methods/contacts_block.md index b809b15c..f512adcc 100644 --- a/old_docs/API_docs_v57/methods/contacts_block.md +++ b/old_docs/API_docs_v57/methods/contacts_block.md @@ -20,10 +20,10 @@ description: contacts.block parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/contacts_deleteContact.md b/old_docs/API_docs_v57/methods/contacts_deleteContact.md index 18ef51f8..a3e8f63d 100644 --- a/old_docs/API_docs_v57/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v57/methods/contacts_deleteContact.md @@ -20,10 +20,10 @@ description: contacts.deleteContact parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/contacts_deleteContacts.md b/old_docs/API_docs_v57/methods/contacts_deleteContacts.md index 40672188..46e251eb 100644 --- a/old_docs/API_docs_v57/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v57/methods/contacts_deleteContacts.md @@ -20,10 +20,10 @@ description: contacts.deleteContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/contacts_exportCard.md b/old_docs/API_docs_v57/methods/contacts_exportCard.md index 4145d246..f7ec0015 100644 --- a/old_docs/API_docs_v57/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v57/methods/contacts_exportCard.md @@ -15,10 +15,10 @@ description: contacts.exportCard parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/contacts_getBlocked.md b/old_docs/API_docs_v57/methods/contacts_getBlocked.md index 50172d03..0fc72dba 100644 --- a/old_docs/API_docs_v57/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v57/methods/contacts_getBlocked.md @@ -21,10 +21,10 @@ description: contacts.getBlocked parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/contacts_getContacts.md b/old_docs/API_docs_v57/methods/contacts_getContacts.md index 0e6f22e9..656821e0 100644 --- a/old_docs/API_docs_v57/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v57/methods/contacts_getContacts.md @@ -20,10 +20,10 @@ description: contacts.getContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/contacts_getStatuses.md b/old_docs/API_docs_v57/methods/contacts_getStatuses.md index b734f529..ee806f2d 100644 --- a/old_docs/API_docs_v57/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v57/methods/contacts_getStatuses.md @@ -15,10 +15,10 @@ description: contacts.getStatuses parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/contacts_getTopPeers.md b/old_docs/API_docs_v57/methods/contacts_getTopPeers.md index 9ce29121..75b4126a 100644 --- a/old_docs/API_docs_v57/methods/contacts_getTopPeers.md +++ b/old_docs/API_docs_v57/methods/contacts_getTopPeers.md @@ -27,10 +27,10 @@ description: contacts.getTopPeers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/contacts_importCard.md b/old_docs/API_docs_v57/methods/contacts_importCard.md index 6b2c612e..162ff4f3 100644 --- a/old_docs/API_docs_v57/methods/contacts_importCard.md +++ b/old_docs/API_docs_v57/methods/contacts_importCard.md @@ -20,10 +20,10 @@ description: contacts.importCard parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/contacts_importContacts.md b/old_docs/API_docs_v57/methods/contacts_importContacts.md index 2426f53c..48412e99 100644 --- a/old_docs/API_docs_v57/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v57/methods/contacts_importContacts.md @@ -21,10 +21,10 @@ description: contacts.importContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v57/methods/contacts_resetTopPeerRating.md index 48e8edd6..79cf7847 100644 --- a/old_docs/API_docs_v57/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v57/methods/contacts_resetTopPeerRating.md @@ -21,10 +21,10 @@ description: contacts.resetTopPeerRating parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/contacts_resolveUsername.md b/old_docs/API_docs_v57/methods/contacts_resolveUsername.md index 0ea67c6f..b847fbe9 100644 --- a/old_docs/API_docs_v57/methods/contacts_resolveUsername.md +++ b/old_docs/API_docs_v57/methods/contacts_resolveUsername.md @@ -20,10 +20,10 @@ description: contacts.resolveUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/contacts_search.md b/old_docs/API_docs_v57/methods/contacts_search.md index 00a39519..9a351db7 100644 --- a/old_docs/API_docs_v57/methods/contacts_search.md +++ b/old_docs/API_docs_v57/methods/contacts_search.md @@ -21,10 +21,10 @@ description: contacts.search parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/contacts_unblock.md b/old_docs/API_docs_v57/methods/contacts_unblock.md index 63f41483..6d739c9b 100644 --- a/old_docs/API_docs_v57/methods/contacts_unblock.md +++ b/old_docs/API_docs_v57/methods/contacts_unblock.md @@ -20,10 +20,10 @@ description: contacts.unblock parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/help_getAppChangelog.md b/old_docs/API_docs_v57/methods/help_getAppChangelog.md index 7c52cce8..2e72e305 100644 --- a/old_docs/API_docs_v57/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v57/methods/help_getAppChangelog.md @@ -15,10 +15,10 @@ description: help.getAppChangelog parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/help_getAppUpdate.md b/old_docs/API_docs_v57/methods/help_getAppUpdate.md index cdaa5f04..f2871a39 100644 --- a/old_docs/API_docs_v57/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v57/methods/help_getAppUpdate.md @@ -15,10 +15,10 @@ description: help.getAppUpdate parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/help_getConfig.md b/old_docs/API_docs_v57/methods/help_getConfig.md index cb9c4f1c..9481a0c0 100644 --- a/old_docs/API_docs_v57/methods/help_getConfig.md +++ b/old_docs/API_docs_v57/methods/help_getConfig.md @@ -15,10 +15,10 @@ description: help.getConfig parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/help_getInviteText.md b/old_docs/API_docs_v57/methods/help_getInviteText.md index b5293e91..5f81c4dc 100644 --- a/old_docs/API_docs_v57/methods/help_getInviteText.md +++ b/old_docs/API_docs_v57/methods/help_getInviteText.md @@ -15,10 +15,10 @@ description: help.getInviteText parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/help_getNearestDc.md b/old_docs/API_docs_v57/methods/help_getNearestDc.md index f491ae0c..bb6b1883 100644 --- a/old_docs/API_docs_v57/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v57/methods/help_getNearestDc.md @@ -15,10 +15,10 @@ description: help.getNearestDc parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/help_getSupport.md b/old_docs/API_docs_v57/methods/help_getSupport.md index 03574c6f..0348089a 100644 --- a/old_docs/API_docs_v57/methods/help_getSupport.md +++ b/old_docs/API_docs_v57/methods/help_getSupport.md @@ -15,10 +15,10 @@ description: help.getSupport parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/help_getTermsOfService.md b/old_docs/API_docs_v57/methods/help_getTermsOfService.md index 59147a4e..7a32bdaf 100644 --- a/old_docs/API_docs_v57/methods/help_getTermsOfService.md +++ b/old_docs/API_docs_v57/methods/help_getTermsOfService.md @@ -15,10 +15,10 @@ description: help.getTermsOfService parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/help_saveAppLog.md b/old_docs/API_docs_v57/methods/help_saveAppLog.md index 3887ccc2..59b92601 100644 --- a/old_docs/API_docs_v57/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v57/methods/help_saveAppLog.md @@ -20,10 +20,10 @@ description: help.saveAppLog parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/initConnection.md b/old_docs/API_docs_v57/methods/initConnection.md index 1c946720..aa89066c 100644 --- a/old_docs/API_docs_v57/methods/initConnection.md +++ b/old_docs/API_docs_v57/methods/initConnection.md @@ -25,10 +25,10 @@ description: initConnection parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/invokeAfterMsg.md b/old_docs/API_docs_v57/methods/invokeAfterMsg.md index 1b35a238..97c4f1fb 100644 --- a/old_docs/API_docs_v57/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v57/methods/invokeAfterMsg.md @@ -21,10 +21,10 @@ description: invokeAfterMsg parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/invokeAfterMsgs.md b/old_docs/API_docs_v57/methods/invokeAfterMsgs.md index 164ab318..4e278ef1 100644 --- a/old_docs/API_docs_v57/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v57/methods/invokeAfterMsgs.md @@ -21,10 +21,10 @@ description: invokeAfterMsgs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/invokeWithLayer.md b/old_docs/API_docs_v57/methods/invokeWithLayer.md index 497cc285..72fe47ec 100644 --- a/old_docs/API_docs_v57/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v57/methods/invokeWithLayer.md @@ -21,10 +21,10 @@ description: invokeWithLayer parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v57/methods/invokeWithoutUpdates.md index cbdabb07..5151b786 100644 --- a/old_docs/API_docs_v57/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v57/methods/invokeWithoutUpdates.md @@ -20,10 +20,10 @@ description: invokeWithoutUpdates parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_acceptEncryption.md b/old_docs/API_docs_v57/methods/messages_acceptEncryption.md index d41beb91..e016f5d3 100644 --- a/old_docs/API_docs_v57/methods/messages_acceptEncryption.md +++ b/old_docs/API_docs_v57/methods/messages_acceptEncryption.md @@ -22,10 +22,10 @@ description: messages.acceptEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_addChatUser.md b/old_docs/API_docs_v57/methods/messages_addChatUser.md index 13d17a3e..df2cb1a5 100644 --- a/old_docs/API_docs_v57/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v57/methods/messages_addChatUser.md @@ -22,10 +22,10 @@ description: messages.addChatUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_checkChatInvite.md b/old_docs/API_docs_v57/methods/messages_checkChatInvite.md index 0a3a4f84..7670727b 100644 --- a/old_docs/API_docs_v57/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v57/methods/messages_checkChatInvite.md @@ -20,10 +20,10 @@ description: messages.checkChatInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_clearRecentStickers.md b/old_docs/API_docs_v57/methods/messages_clearRecentStickers.md index f8cc5f65..100e49da 100644 --- a/old_docs/API_docs_v57/methods/messages_clearRecentStickers.md +++ b/old_docs/API_docs_v57/methods/messages_clearRecentStickers.md @@ -20,10 +20,10 @@ description: messages.clearRecentStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_createChat.md b/old_docs/API_docs_v57/methods/messages_createChat.md index 0ab3101a..2fc5631c 100644 --- a/old_docs/API_docs_v57/methods/messages_createChat.md +++ b/old_docs/API_docs_v57/methods/messages_createChat.md @@ -21,10 +21,10 @@ description: messages.createChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_deleteChatUser.md b/old_docs/API_docs_v57/methods/messages_deleteChatUser.md index ed736ebd..6895649f 100644 --- a/old_docs/API_docs_v57/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v57/methods/messages_deleteChatUser.md @@ -21,10 +21,10 @@ description: messages.deleteChatUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_deleteHistory.md b/old_docs/API_docs_v57/methods/messages_deleteHistory.md index 6f71f2fe..e8c98c07 100644 --- a/old_docs/API_docs_v57/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v57/methods/messages_deleteHistory.md @@ -22,10 +22,10 @@ description: messages.deleteHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_deleteMessages.md b/old_docs/API_docs_v57/methods/messages_deleteMessages.md index 5997c2ed..d9d28886 100644 --- a/old_docs/API_docs_v57/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v57/methods/messages_deleteMessages.md @@ -20,10 +20,10 @@ description: messages.deleteMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_discardEncryption.md b/old_docs/API_docs_v57/methods/messages_discardEncryption.md index ebc1ace5..f237c986 100644 --- a/old_docs/API_docs_v57/methods/messages_discardEncryption.md +++ b/old_docs/API_docs_v57/methods/messages_discardEncryption.md @@ -20,10 +20,10 @@ description: messages.discardEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_editChatAdmin.md b/old_docs/API_docs_v57/methods/messages_editChatAdmin.md index 38bc8de0..74f5a39f 100644 --- a/old_docs/API_docs_v57/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v57/methods/messages_editChatAdmin.md @@ -22,10 +22,10 @@ description: messages.editChatAdmin parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_editChatPhoto.md b/old_docs/API_docs_v57/methods/messages_editChatPhoto.md index e3cbf492..0396c74b 100644 --- a/old_docs/API_docs_v57/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v57/methods/messages_editChatPhoto.md @@ -21,10 +21,10 @@ description: messages.editChatPhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_editChatTitle.md b/old_docs/API_docs_v57/methods/messages_editChatTitle.md index 60eae01c..fabe9c87 100644 --- a/old_docs/API_docs_v57/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v57/methods/messages_editChatTitle.md @@ -21,10 +21,10 @@ description: messages.editChatTitle parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v57/methods/messages_editInlineBotMessage.md index b275cc64..ae98c13d 100644 --- a/old_docs/API_docs_v57/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v57/methods/messages_editInlineBotMessage.md @@ -25,10 +25,10 @@ description: messages.editInlineBotMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; @@ -48,6 +48,12 @@ Bool = messages.editInlineBotMessage({no_webpage=Bool, id=InputBotInlineMessageI ``` +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + + ## Usage of parse_mode: Set parse_mode to html to enable HTML parsing of the message. diff --git a/old_docs/API_docs_v57/methods/messages_editMessage.md b/old_docs/API_docs_v57/methods/messages_editMessage.md index b7d0eb36..3ce73b6c 100644 --- a/old_docs/API_docs_v57/methods/messages_editMessage.md +++ b/old_docs/API_docs_v57/methods/messages_editMessage.md @@ -26,10 +26,10 @@ description: messages.editMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; @@ -49,6 +49,12 @@ Updates = messages.editMessage({no_webpage=Bool, peer=InputPeer, id=int, message ``` +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + + ## Usage of parse_mode: Set parse_mode to html to enable HTML parsing of the message. diff --git a/old_docs/API_docs_v57/methods/messages_exportChatInvite.md b/old_docs/API_docs_v57/methods/messages_exportChatInvite.md index 3efc9bf7..b96e7498 100644 --- a/old_docs/API_docs_v57/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v57/methods/messages_exportChatInvite.md @@ -20,10 +20,10 @@ description: messages.exportChatInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_forwardMessage.md b/old_docs/API_docs_v57/methods/messages_forwardMessage.md index a95d259a..ced2cb5b 100644 --- a/old_docs/API_docs_v57/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v57/methods/messages_forwardMessage.md @@ -21,10 +21,10 @@ description: messages.forwardMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_forwardMessages.md b/old_docs/API_docs_v57/methods/messages_forwardMessages.md index 716a2ebf..c93b7c19 100644 --- a/old_docs/API_docs_v57/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v57/methods/messages_forwardMessages.md @@ -25,10 +25,10 @@ description: messages.forwardMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_getAllDrafts.md b/old_docs/API_docs_v57/methods/messages_getAllDrafts.md index 39f0a058..ec7ebddb 100644 --- a/old_docs/API_docs_v57/methods/messages_getAllDrafts.md +++ b/old_docs/API_docs_v57/methods/messages_getAllDrafts.md @@ -15,10 +15,10 @@ description: messages.getAllDrafts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_getAllStickers.md b/old_docs/API_docs_v57/methods/messages_getAllStickers.md index 613db3b2..fe438a80 100644 --- a/old_docs/API_docs_v57/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v57/methods/messages_getAllStickers.md @@ -20,10 +20,10 @@ description: messages.getAllStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_getArchivedStickers.md b/old_docs/API_docs_v57/methods/messages_getArchivedStickers.md index a0e17df2..5ebdc27c 100644 --- a/old_docs/API_docs_v57/methods/messages_getArchivedStickers.md +++ b/old_docs/API_docs_v57/methods/messages_getArchivedStickers.md @@ -22,10 +22,10 @@ description: messages.getArchivedStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_getAttachedStickers.md b/old_docs/API_docs_v57/methods/messages_getAttachedStickers.md index 99806dae..5556f6fb 100644 --- a/old_docs/API_docs_v57/methods/messages_getAttachedStickers.md +++ b/old_docs/API_docs_v57/methods/messages_getAttachedStickers.md @@ -20,10 +20,10 @@ description: messages.getAttachedStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v57/methods/messages_getBotCallbackAnswer.md index 2f412a3f..ee46a5b9 100644 --- a/old_docs/API_docs_v57/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v57/methods/messages_getBotCallbackAnswer.md @@ -23,10 +23,10 @@ description: messages.getBotCallbackAnswer parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_getChats.md b/old_docs/API_docs_v57/methods/messages_getChats.md index ad63744b..be57718e 100644 --- a/old_docs/API_docs_v57/methods/messages_getChats.md +++ b/old_docs/API_docs_v57/methods/messages_getChats.md @@ -20,10 +20,10 @@ description: messages.getChats parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_getDhConfig.md b/old_docs/API_docs_v57/methods/messages_getDhConfig.md index bcebea55..21b37f21 100644 --- a/old_docs/API_docs_v57/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v57/methods/messages_getDhConfig.md @@ -21,10 +21,10 @@ description: messages.getDhConfig parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_getDialogs.md b/old_docs/API_docs_v57/methods/messages_getDialogs.md index 07e2b246..ca93a52a 100644 --- a/old_docs/API_docs_v57/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v57/methods/messages_getDialogs.md @@ -23,10 +23,10 @@ description: messages.getDialogs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v57/methods/messages_getDocumentByHash.md index 32fc1de0..ca26acc3 100644 --- a/old_docs/API_docs_v57/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v57/methods/messages_getDocumentByHash.md @@ -22,10 +22,10 @@ description: messages.getDocumentByHash parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_getFeaturedStickers.md b/old_docs/API_docs_v57/methods/messages_getFeaturedStickers.md index 47a4d501..e991e78b 100644 --- a/old_docs/API_docs_v57/methods/messages_getFeaturedStickers.md +++ b/old_docs/API_docs_v57/methods/messages_getFeaturedStickers.md @@ -20,10 +20,10 @@ description: messages.getFeaturedStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_getFullChat.md b/old_docs/API_docs_v57/methods/messages_getFullChat.md index f3c8223a..10d938ae 100644 --- a/old_docs/API_docs_v57/methods/messages_getFullChat.md +++ b/old_docs/API_docs_v57/methods/messages_getFullChat.md @@ -20,10 +20,10 @@ description: messages.getFullChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_getGameHighScores.md b/old_docs/API_docs_v57/methods/messages_getGameHighScores.md index 1b8b5b44..097f1fec 100644 --- a/old_docs/API_docs_v57/methods/messages_getGameHighScores.md +++ b/old_docs/API_docs_v57/methods/messages_getGameHighScores.md @@ -22,10 +22,10 @@ description: messages.getGameHighScores parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_getHistory.md b/old_docs/API_docs_v57/methods/messages_getHistory.md index 3311df5b..1befedca 100644 --- a/old_docs/API_docs_v57/methods/messages_getHistory.md +++ b/old_docs/API_docs_v57/methods/messages_getHistory.md @@ -26,10 +26,10 @@ description: messages.getHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v57/methods/messages_getInlineBotResults.md index e76ee714..6364519c 100644 --- a/old_docs/API_docs_v57/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v57/methods/messages_getInlineBotResults.md @@ -24,10 +24,10 @@ description: messages.getInlineBotResults parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_getInlineGameHighScores.md b/old_docs/API_docs_v57/methods/messages_getInlineGameHighScores.md index c857cb17..370ff8fd 100644 --- a/old_docs/API_docs_v57/methods/messages_getInlineGameHighScores.md +++ b/old_docs/API_docs_v57/methods/messages_getInlineGameHighScores.md @@ -21,10 +21,10 @@ description: messages.getInlineGameHighScores parameters, return type and exampl ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_getMaskStickers.md b/old_docs/API_docs_v57/methods/messages_getMaskStickers.md index 7a97cb33..d2e93651 100644 --- a/old_docs/API_docs_v57/methods/messages_getMaskStickers.md +++ b/old_docs/API_docs_v57/methods/messages_getMaskStickers.md @@ -20,10 +20,10 @@ description: messages.getMaskStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_getMessageEditData.md b/old_docs/API_docs_v57/methods/messages_getMessageEditData.md index 8b47e95b..0189b6a5 100644 --- a/old_docs/API_docs_v57/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v57/methods/messages_getMessageEditData.md @@ -21,10 +21,10 @@ description: messages.getMessageEditData parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_getMessages.md b/old_docs/API_docs_v57/methods/messages_getMessages.md index 224df903..e669bcf8 100644 --- a/old_docs/API_docs_v57/methods/messages_getMessages.md +++ b/old_docs/API_docs_v57/methods/messages_getMessages.md @@ -20,10 +20,10 @@ description: messages.getMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_getMessagesViews.md b/old_docs/API_docs_v57/methods/messages_getMessagesViews.md index d162b668..f27cdb36 100644 --- a/old_docs/API_docs_v57/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v57/methods/messages_getMessagesViews.md @@ -22,10 +22,10 @@ description: messages.getMessagesViews parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_getPeerDialogs.md b/old_docs/API_docs_v57/methods/messages_getPeerDialogs.md index cf6dc552..bcf9af29 100644 --- a/old_docs/API_docs_v57/methods/messages_getPeerDialogs.md +++ b/old_docs/API_docs_v57/methods/messages_getPeerDialogs.md @@ -20,10 +20,10 @@ description: messages.getPeerDialogs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_getPeerSettings.md b/old_docs/API_docs_v57/methods/messages_getPeerSettings.md index 202867f7..bd60b87b 100644 --- a/old_docs/API_docs_v57/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v57/methods/messages_getPeerSettings.md @@ -20,10 +20,10 @@ description: messages.getPeerSettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_getRecentStickers.md b/old_docs/API_docs_v57/methods/messages_getRecentStickers.md index 85c89101..b522717c 100644 --- a/old_docs/API_docs_v57/methods/messages_getRecentStickers.md +++ b/old_docs/API_docs_v57/methods/messages_getRecentStickers.md @@ -21,10 +21,10 @@ description: messages.getRecentStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_getSavedGifs.md b/old_docs/API_docs_v57/methods/messages_getSavedGifs.md index 0ca34eef..fbdc5129 100644 --- a/old_docs/API_docs_v57/methods/messages_getSavedGifs.md +++ b/old_docs/API_docs_v57/methods/messages_getSavedGifs.md @@ -20,10 +20,10 @@ description: messages.getSavedGifs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_getStickerSet.md b/old_docs/API_docs_v57/methods/messages_getStickerSet.md index 2ec2fa5d..561eec32 100644 --- a/old_docs/API_docs_v57/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v57/methods/messages_getStickerSet.md @@ -20,10 +20,10 @@ description: messages.getStickerSet parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v57/methods/messages_getWebPagePreview.md index e2dd428d..a3d5fce3 100644 --- a/old_docs/API_docs_v57/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v57/methods/messages_getWebPagePreview.md @@ -20,10 +20,10 @@ description: messages.getWebPagePreview parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_hideReportSpam.md b/old_docs/API_docs_v57/methods/messages_hideReportSpam.md index 175bbe27..8a86e690 100644 --- a/old_docs/API_docs_v57/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v57/methods/messages_hideReportSpam.md @@ -20,10 +20,10 @@ description: messages.hideReportSpam parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_importChatInvite.md b/old_docs/API_docs_v57/methods/messages_importChatInvite.md index 250d076d..a4e9c052 100644 --- a/old_docs/API_docs_v57/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v57/methods/messages_importChatInvite.md @@ -20,10 +20,10 @@ description: messages.importChatInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_installStickerSet.md b/old_docs/API_docs_v57/methods/messages_installStickerSet.md index 3de799ef..48b77a20 100644 --- a/old_docs/API_docs_v57/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v57/methods/messages_installStickerSet.md @@ -21,10 +21,10 @@ description: messages.installStickerSet parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_migrateChat.md b/old_docs/API_docs_v57/methods/messages_migrateChat.md index 5b1e375a..731dc904 100644 --- a/old_docs/API_docs_v57/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v57/methods/messages_migrateChat.md @@ -20,10 +20,10 @@ description: messages.migrateChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v57/methods/messages_readEncryptedHistory.md index 555bffe7..5bb05536 100644 --- a/old_docs/API_docs_v57/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v57/methods/messages_readEncryptedHistory.md @@ -21,10 +21,10 @@ description: messages.readEncryptedHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_readFeaturedStickers.md b/old_docs/API_docs_v57/methods/messages_readFeaturedStickers.md index 61ec71b8..1dbbbe4f 100644 --- a/old_docs/API_docs_v57/methods/messages_readFeaturedStickers.md +++ b/old_docs/API_docs_v57/methods/messages_readFeaturedStickers.md @@ -20,10 +20,10 @@ description: messages.readFeaturedStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_readHistory.md b/old_docs/API_docs_v57/methods/messages_readHistory.md index 1e2783ae..6bb29fef 100644 --- a/old_docs/API_docs_v57/methods/messages_readHistory.md +++ b/old_docs/API_docs_v57/methods/messages_readHistory.md @@ -21,10 +21,10 @@ description: messages.readHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_readMessageContents.md b/old_docs/API_docs_v57/methods/messages_readMessageContents.md index ae75d612..829e7cc8 100644 --- a/old_docs/API_docs_v57/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v57/methods/messages_readMessageContents.md @@ -20,10 +20,10 @@ description: messages.readMessageContents parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_receivedMessages.md b/old_docs/API_docs_v57/methods/messages_receivedMessages.md index ffeaeed7..05a229b6 100644 --- a/old_docs/API_docs_v57/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v57/methods/messages_receivedMessages.md @@ -20,10 +20,10 @@ description: messages.receivedMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_receivedQueue.md b/old_docs/API_docs_v57/methods/messages_receivedQueue.md index e514669c..d8bfae5e 100644 --- a/old_docs/API_docs_v57/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v57/methods/messages_receivedQueue.md @@ -20,10 +20,10 @@ description: messages.receivedQueue parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_reorderStickerSets.md b/old_docs/API_docs_v57/methods/messages_reorderStickerSets.md index 3eab4332..698bc50a 100644 --- a/old_docs/API_docs_v57/methods/messages_reorderStickerSets.md +++ b/old_docs/API_docs_v57/methods/messages_reorderStickerSets.md @@ -21,10 +21,10 @@ description: messages.reorderStickerSets parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_reportSpam.md b/old_docs/API_docs_v57/methods/messages_reportSpam.md index 56975b9d..da747585 100644 --- a/old_docs/API_docs_v57/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v57/methods/messages_reportSpam.md @@ -20,10 +20,10 @@ description: messages.reportSpam parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_requestEncryption.md b/old_docs/API_docs_v57/methods/messages_requestEncryption.md index e82fca54..99fe7ecf 100644 --- a/old_docs/API_docs_v57/methods/messages_requestEncryption.md +++ b/old_docs/API_docs_v57/methods/messages_requestEncryption.md @@ -21,10 +21,10 @@ description: messages.requestEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_saveDraft.md b/old_docs/API_docs_v57/methods/messages_saveDraft.md index a9fe9721..c3324146 100644 --- a/old_docs/API_docs_v57/methods/messages_saveDraft.md +++ b/old_docs/API_docs_v57/methods/messages_saveDraft.md @@ -25,10 +25,10 @@ description: messages.saveDraft parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_saveGif.md b/old_docs/API_docs_v57/methods/messages_saveGif.md index 0bd648d8..ea2174ea 100644 --- a/old_docs/API_docs_v57/methods/messages_saveGif.md +++ b/old_docs/API_docs_v57/methods/messages_saveGif.md @@ -21,10 +21,10 @@ description: messages.saveGif parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_saveRecentSticker.md b/old_docs/API_docs_v57/methods/messages_saveRecentSticker.md index ac212205..b1e76785 100644 --- a/old_docs/API_docs_v57/methods/messages_saveRecentSticker.md +++ b/old_docs/API_docs_v57/methods/messages_saveRecentSticker.md @@ -22,10 +22,10 @@ description: messages.saveRecentSticker parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_search.md b/old_docs/API_docs_v57/methods/messages_search.md index fe53fb8c..05309dbf 100644 --- a/old_docs/API_docs_v57/methods/messages_search.md +++ b/old_docs/API_docs_v57/methods/messages_search.md @@ -27,10 +27,10 @@ description: messages.search parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_searchGifs.md b/old_docs/API_docs_v57/methods/messages_searchGifs.md index 18ad844b..8a1de718 100644 --- a/old_docs/API_docs_v57/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v57/methods/messages_searchGifs.md @@ -21,10 +21,10 @@ description: messages.searchGifs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_searchGlobal.md b/old_docs/API_docs_v57/methods/messages_searchGlobal.md index aacdb99f..02d790e9 100644 --- a/old_docs/API_docs_v57/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v57/methods/messages_searchGlobal.md @@ -24,10 +24,10 @@ description: messages.searchGlobal parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_sendEncrypted.md b/old_docs/API_docs_v57/methods/messages_sendEncrypted.md index f2c2c0c2..c3585580 100644 --- a/old_docs/API_docs_v57/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v57/methods/messages_sendEncrypted.md @@ -21,10 +21,10 @@ description: messages.sendEncrypted parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v57/methods/messages_sendEncryptedFile.md index a57a3dd8..40674df9 100644 --- a/old_docs/API_docs_v57/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v57/methods/messages_sendEncryptedFile.md @@ -22,10 +22,10 @@ description: messages.sendEncryptedFile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v57/methods/messages_sendEncryptedService.md index 4041c4d0..8bfee571 100644 --- a/old_docs/API_docs_v57/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v57/methods/messages_sendEncryptedService.md @@ -21,10 +21,10 @@ description: messages.sendEncryptedService parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v57/methods/messages_sendInlineBotResult.md index b2a5ab57..2d71d731 100644 --- a/old_docs/API_docs_v57/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v57/methods/messages_sendInlineBotResult.md @@ -26,10 +26,10 @@ description: messages.sendInlineBotResult parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_sendMedia.md b/old_docs/API_docs_v57/methods/messages_sendMedia.md index 56c95dba..df132dc9 100644 --- a/old_docs/API_docs_v57/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v57/methods/messages_sendMedia.md @@ -26,10 +26,10 @@ description: messages.sendMedia parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; @@ -48,3 +48,9 @@ Or, if you're into Lua: Updates = messages.sendMedia({silent=Bool, background=Bool, clear_draft=Bool, peer=InputPeer, reply_to_msg_id=int, media=InputMedia, reply_markup=ReplyMarkup, }) ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v57/methods/messages_sendMessage.md b/old_docs/API_docs_v57/methods/messages_sendMessage.md index 1433e320..e7f23e30 100644 --- a/old_docs/API_docs_v57/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v57/methods/messages_sendMessage.md @@ -29,10 +29,10 @@ description: messages.sendMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; @@ -52,6 +52,12 @@ Updates = messages.sendMessage({no_webpage=Bool, silent=Bool, background=Bool, c ``` +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + + ## Usage of parse_mode: Set parse_mode to html to enable HTML parsing of the message. diff --git a/old_docs/API_docs_v57/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v57/methods/messages_setBotCallbackAnswer.md index 1e8c7216..f2b71f4e 100644 --- a/old_docs/API_docs_v57/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v57/methods/messages_setBotCallbackAnswer.md @@ -23,10 +23,10 @@ description: messages.setBotCallbackAnswer parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v57/methods/messages_setEncryptedTyping.md index 95364d49..ae718bba 100644 --- a/old_docs/API_docs_v57/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v57/methods/messages_setEncryptedTyping.md @@ -21,10 +21,10 @@ description: messages.setEncryptedTyping parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_setGameScore.md b/old_docs/API_docs_v57/methods/messages_setGameScore.md index 80bd8ef7..f6a12647 100644 --- a/old_docs/API_docs_v57/methods/messages_setGameScore.md +++ b/old_docs/API_docs_v57/methods/messages_setGameScore.md @@ -24,10 +24,10 @@ description: messages.setGameScore parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v57/methods/messages_setInlineBotResults.md index a2cf64b7..ea653cd7 100644 --- a/old_docs/API_docs_v57/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v57/methods/messages_setInlineBotResults.md @@ -26,10 +26,10 @@ description: messages.setInlineBotResults parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_setInlineGameScore.md b/old_docs/API_docs_v57/methods/messages_setInlineGameScore.md index 7222d590..8ea58b98 100644 --- a/old_docs/API_docs_v57/methods/messages_setInlineGameScore.md +++ b/old_docs/API_docs_v57/methods/messages_setInlineGameScore.md @@ -23,10 +23,10 @@ description: messages.setInlineGameScore parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_setTyping.md b/old_docs/API_docs_v57/methods/messages_setTyping.md index 0ce5743d..75903c68 100644 --- a/old_docs/API_docs_v57/methods/messages_setTyping.md +++ b/old_docs/API_docs_v57/methods/messages_setTyping.md @@ -21,10 +21,10 @@ description: messages.setTyping parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_startBot.md b/old_docs/API_docs_v57/methods/messages_startBot.md index 5f563224..bf79b142 100644 --- a/old_docs/API_docs_v57/methods/messages_startBot.md +++ b/old_docs/API_docs_v57/methods/messages_startBot.md @@ -22,10 +22,10 @@ description: messages.startBot parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v57/methods/messages_toggleChatAdmins.md index 0ad6ba92..05d74e5a 100644 --- a/old_docs/API_docs_v57/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v57/methods/messages_toggleChatAdmins.md @@ -21,10 +21,10 @@ description: messages.toggleChatAdmins parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v57/methods/messages_uninstallStickerSet.md index 97fff059..5202b086 100644 --- a/old_docs/API_docs_v57/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v57/methods/messages_uninstallStickerSet.md @@ -20,10 +20,10 @@ description: messages.uninstallStickerSet parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/photos_deletePhotos.md b/old_docs/API_docs_v57/methods/photos_deletePhotos.md index 6a717835..2d27b700 100644 --- a/old_docs/API_docs_v57/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v57/methods/photos_deletePhotos.md @@ -20,10 +20,10 @@ description: photos.deletePhotos parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/photos_getUserPhotos.md b/old_docs/API_docs_v57/methods/photos_getUserPhotos.md index 4aa96dfa..0f50ee6f 100644 --- a/old_docs/API_docs_v57/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v57/methods/photos_getUserPhotos.md @@ -23,10 +23,10 @@ description: photos.getUserPhotos parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v57/methods/photos_updateProfilePhoto.md index bdca3ef5..13443ab7 100644 --- a/old_docs/API_docs_v57/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v57/methods/photos_updateProfilePhoto.md @@ -20,10 +20,10 @@ description: photos.updateProfilePhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v57/methods/photos_uploadProfilePhoto.md index 5ebe5bfe..76f4514a 100644 --- a/old_docs/API_docs_v57/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v57/methods/photos_uploadProfilePhoto.md @@ -20,10 +20,10 @@ description: photos.uploadProfilePhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/updates_getChannelDifference.md b/old_docs/API_docs_v57/methods/updates_getChannelDifference.md index 1add786f..d3b725f4 100644 --- a/old_docs/API_docs_v57/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v57/methods/updates_getChannelDifference.md @@ -23,10 +23,10 @@ description: updates.getChannelDifference parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/updates_getDifference.md b/old_docs/API_docs_v57/methods/updates_getDifference.md index c7ae5664..719a7a02 100644 --- a/old_docs/API_docs_v57/methods/updates_getDifference.md +++ b/old_docs/API_docs_v57/methods/updates_getDifference.md @@ -22,10 +22,10 @@ description: updates.getDifference parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/updates_getState.md b/old_docs/API_docs_v57/methods/updates_getState.md index 5612ca79..53fc0c16 100644 --- a/old_docs/API_docs_v57/methods/updates_getState.md +++ b/old_docs/API_docs_v57/methods/updates_getState.md @@ -15,10 +15,10 @@ description: updates.getState parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/upload_getFile.md b/old_docs/API_docs_v57/methods/upload_getFile.md index a2f3d961..ee35140a 100644 --- a/old_docs/API_docs_v57/methods/upload_getFile.md +++ b/old_docs/API_docs_v57/methods/upload_getFile.md @@ -22,10 +22,10 @@ description: upload.getFile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/upload_saveBigFilePart.md b/old_docs/API_docs_v57/methods/upload_saveBigFilePart.md index 03641055..503d1b5c 100644 --- a/old_docs/API_docs_v57/methods/upload_saveBigFilePart.md +++ b/old_docs/API_docs_v57/methods/upload_saveBigFilePart.md @@ -23,10 +23,10 @@ description: upload.saveBigFilePart parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/upload_saveFilePart.md b/old_docs/API_docs_v57/methods/upload_saveFilePart.md index 192412c8..d7f745aa 100644 --- a/old_docs/API_docs_v57/methods/upload_saveFilePart.md +++ b/old_docs/API_docs_v57/methods/upload_saveFilePart.md @@ -22,10 +22,10 @@ description: upload.saveFilePart parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/users_getFullUser.md b/old_docs/API_docs_v57/methods/users_getFullUser.md index 864ae387..bcba7f3d 100644 --- a/old_docs/API_docs_v57/methods/users_getFullUser.md +++ b/old_docs/API_docs_v57/methods/users_getFullUser.md @@ -20,10 +20,10 @@ description: users.getFullUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v57/methods/users_getUsers.md b/old_docs/API_docs_v57/methods/users_getUsers.md index 34816478..e03fd2d6 100644 --- a/old_docs/API_docs_v57/methods/users_getUsers.md +++ b/old_docs/API_docs_v57/methods/users_getUsers.md @@ -20,10 +20,10 @@ description: users.getUsers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/constructors/botInlineMessageMediaAuto.md b/old_docs/API_docs_v62/constructors/botInlineMessageMediaAuto.md index 6ed2ffd9..694cf6ea 100644 --- a/old_docs/API_docs_v62/constructors/botInlineMessageMediaAuto.md +++ b/old_docs/API_docs_v62/constructors/botInlineMessageMediaAuto.md @@ -34,3 +34,9 @@ botInlineMessageMediaAuto={_='botInlineMessageMediaAuto', caption=string, reply_ ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v62/constructors/botInlineMessageMediaContact.md b/old_docs/API_docs_v62/constructors/botInlineMessageMediaContact.md index 6bdda386..f57e4752 100644 --- a/old_docs/API_docs_v62/constructors/botInlineMessageMediaContact.md +++ b/old_docs/API_docs_v62/constructors/botInlineMessageMediaContact.md @@ -36,3 +36,9 @@ botInlineMessageMediaContact={_='botInlineMessageMediaContact', phone_number=str ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v62/constructors/botInlineMessageMediaGeo.md b/old_docs/API_docs_v62/constructors/botInlineMessageMediaGeo.md index 38b53228..40ea4ca1 100644 --- a/old_docs/API_docs_v62/constructors/botInlineMessageMediaGeo.md +++ b/old_docs/API_docs_v62/constructors/botInlineMessageMediaGeo.md @@ -34,3 +34,9 @@ botInlineMessageMediaGeo={_='botInlineMessageMediaGeo', geo=GeoPoint, reply_mark ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v62/constructors/botInlineMessageMediaVenue.md b/old_docs/API_docs_v62/constructors/botInlineMessageMediaVenue.md index 39880cfc..236f3cf1 100644 --- a/old_docs/API_docs_v62/constructors/botInlineMessageMediaVenue.md +++ b/old_docs/API_docs_v62/constructors/botInlineMessageMediaVenue.md @@ -38,3 +38,9 @@ botInlineMessageMediaVenue={_='botInlineMessageMediaVenue', geo=GeoPoint, title= ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v62/constructors/botInlineMessageText.md b/old_docs/API_docs_v62/constructors/botInlineMessageText.md index 750ddf50..278fe01d 100644 --- a/old_docs/API_docs_v62/constructors/botInlineMessageText.md +++ b/old_docs/API_docs_v62/constructors/botInlineMessageText.md @@ -36,3 +36,9 @@ botInlineMessageText={_='botInlineMessageText', no_webpage=Bool, message=string, ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v62/constructors/inputBotInlineMessageGame.md b/old_docs/API_docs_v62/constructors/inputBotInlineMessageGame.md index 9db76c92..5369ed7a 100644 --- a/old_docs/API_docs_v62/constructors/inputBotInlineMessageGame.md +++ b/old_docs/API_docs_v62/constructors/inputBotInlineMessageGame.md @@ -33,3 +33,9 @@ inputBotInlineMessageGame={_='inputBotInlineMessageGame', reply_markup=ReplyMark ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v62/constructors/inputBotInlineMessageMediaAuto.md b/old_docs/API_docs_v62/constructors/inputBotInlineMessageMediaAuto.md index 52449dff..75bb48f3 100644 --- a/old_docs/API_docs_v62/constructors/inputBotInlineMessageMediaAuto.md +++ b/old_docs/API_docs_v62/constructors/inputBotInlineMessageMediaAuto.md @@ -34,3 +34,9 @@ inputBotInlineMessageMediaAuto={_='inputBotInlineMessageMediaAuto', caption=stri ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v62/constructors/inputBotInlineMessageMediaContact.md b/old_docs/API_docs_v62/constructors/inputBotInlineMessageMediaContact.md index fdab869d..754ce5ac 100644 --- a/old_docs/API_docs_v62/constructors/inputBotInlineMessageMediaContact.md +++ b/old_docs/API_docs_v62/constructors/inputBotInlineMessageMediaContact.md @@ -36,3 +36,9 @@ inputBotInlineMessageMediaContact={_='inputBotInlineMessageMediaContact', phone_ ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v62/constructors/inputBotInlineMessageMediaGeo.md b/old_docs/API_docs_v62/constructors/inputBotInlineMessageMediaGeo.md index 1b741cfc..6eac346e 100644 --- a/old_docs/API_docs_v62/constructors/inputBotInlineMessageMediaGeo.md +++ b/old_docs/API_docs_v62/constructors/inputBotInlineMessageMediaGeo.md @@ -34,3 +34,9 @@ inputBotInlineMessageMediaGeo={_='inputBotInlineMessageMediaGeo', geo_point=Inpu ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v62/constructors/inputBotInlineMessageMediaVenue.md b/old_docs/API_docs_v62/constructors/inputBotInlineMessageMediaVenue.md index ddd2eba5..ddb3c3fe 100644 --- a/old_docs/API_docs_v62/constructors/inputBotInlineMessageMediaVenue.md +++ b/old_docs/API_docs_v62/constructors/inputBotInlineMessageMediaVenue.md @@ -38,3 +38,9 @@ inputBotInlineMessageMediaVenue={_='inputBotInlineMessageMediaVenue', geo_point= ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v62/constructors/inputBotInlineMessageText.md b/old_docs/API_docs_v62/constructors/inputBotInlineMessageText.md index 6d751de2..77de3cf6 100644 --- a/old_docs/API_docs_v62/constructors/inputBotInlineMessageText.md +++ b/old_docs/API_docs_v62/constructors/inputBotInlineMessageText.md @@ -36,3 +36,9 @@ inputBotInlineMessageText={_='inputBotInlineMessageText', no_webpage=Bool, messa ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v62/constructors/message.md b/old_docs/API_docs_v62/constructors/message.md index 8ecae9bf..135401c5 100644 --- a/old_docs/API_docs_v62/constructors/message.md +++ b/old_docs/API_docs_v62/constructors/message.md @@ -50,3 +50,9 @@ message={_='message', out=Bool, mentioned=Bool, media_unread=Bool, silent=Bool, ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v62/methods/account_changePhone.md b/old_docs/API_docs_v62/methods/account_changePhone.md index dc3e0427..6691a743 100644 --- a/old_docs/API_docs_v62/methods/account_changePhone.md +++ b/old_docs/API_docs_v62/methods/account_changePhone.md @@ -22,10 +22,10 @@ description: account.changePhone parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/account_checkUsername.md b/old_docs/API_docs_v62/methods/account_checkUsername.md index dc13041c..e954ca99 100644 --- a/old_docs/API_docs_v62/methods/account_checkUsername.md +++ b/old_docs/API_docs_v62/methods/account_checkUsername.md @@ -20,10 +20,10 @@ description: account.checkUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/account_confirmPhone.md b/old_docs/API_docs_v62/methods/account_confirmPhone.md index 07582551..99af6c2c 100644 --- a/old_docs/API_docs_v62/methods/account_confirmPhone.md +++ b/old_docs/API_docs_v62/methods/account_confirmPhone.md @@ -21,10 +21,10 @@ description: account.confirmPhone parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/account_deleteAccount.md b/old_docs/API_docs_v62/methods/account_deleteAccount.md index 4199572b..0d0a6204 100644 --- a/old_docs/API_docs_v62/methods/account_deleteAccount.md +++ b/old_docs/API_docs_v62/methods/account_deleteAccount.md @@ -20,10 +20,10 @@ description: account.deleteAccount parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/account_getAccountTTL.md b/old_docs/API_docs_v62/methods/account_getAccountTTL.md index ff4171df..e284a80e 100644 --- a/old_docs/API_docs_v62/methods/account_getAccountTTL.md +++ b/old_docs/API_docs_v62/methods/account_getAccountTTL.md @@ -15,10 +15,10 @@ description: account.getAccountTTL parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/account_getAuthorizations.md b/old_docs/API_docs_v62/methods/account_getAuthorizations.md index 26f755d4..ee5a00d6 100644 --- a/old_docs/API_docs_v62/methods/account_getAuthorizations.md +++ b/old_docs/API_docs_v62/methods/account_getAuthorizations.md @@ -15,10 +15,10 @@ description: account.getAuthorizations parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/account_getNotifySettings.md b/old_docs/API_docs_v62/methods/account_getNotifySettings.md index 817f201a..2e7fd9ba 100644 --- a/old_docs/API_docs_v62/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v62/methods/account_getNotifySettings.md @@ -20,10 +20,10 @@ description: account.getNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/account_getPassword.md b/old_docs/API_docs_v62/methods/account_getPassword.md index d7491fec..424d3710 100644 --- a/old_docs/API_docs_v62/methods/account_getPassword.md +++ b/old_docs/API_docs_v62/methods/account_getPassword.md @@ -15,10 +15,10 @@ description: account.getPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/account_getPasswordSettings.md b/old_docs/API_docs_v62/methods/account_getPasswordSettings.md index 5be9a523..3e72e398 100644 --- a/old_docs/API_docs_v62/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v62/methods/account_getPasswordSettings.md @@ -20,10 +20,10 @@ description: account.getPasswordSettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/account_getPrivacy.md b/old_docs/API_docs_v62/methods/account_getPrivacy.md index 649019d5..26137fd3 100644 --- a/old_docs/API_docs_v62/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v62/methods/account_getPrivacy.md @@ -20,10 +20,10 @@ description: account.getPrivacy parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/account_getWallPapers.md b/old_docs/API_docs_v62/methods/account_getWallPapers.md index 9eb0182a..a44ea777 100644 --- a/old_docs/API_docs_v62/methods/account_getWallPapers.md +++ b/old_docs/API_docs_v62/methods/account_getWallPapers.md @@ -15,10 +15,10 @@ description: account.getWallPapers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/account_registerDevice.md b/old_docs/API_docs_v62/methods/account_registerDevice.md index 453de19b..c4704140 100644 --- a/old_docs/API_docs_v62/methods/account_registerDevice.md +++ b/old_docs/API_docs_v62/methods/account_registerDevice.md @@ -21,10 +21,10 @@ description: account.registerDevice parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/account_reportPeer.md b/old_docs/API_docs_v62/methods/account_reportPeer.md index bb8dea54..7d913217 100644 --- a/old_docs/API_docs_v62/methods/account_reportPeer.md +++ b/old_docs/API_docs_v62/methods/account_reportPeer.md @@ -21,10 +21,10 @@ description: account.reportPeer parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/account_resetAuthorization.md b/old_docs/API_docs_v62/methods/account_resetAuthorization.md index aaf5a660..2c7c5bc4 100644 --- a/old_docs/API_docs_v62/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v62/methods/account_resetAuthorization.md @@ -20,10 +20,10 @@ description: account.resetAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/account_resetNotifySettings.md b/old_docs/API_docs_v62/methods/account_resetNotifySettings.md index 5a6a4c95..aa01dfce 100644 --- a/old_docs/API_docs_v62/methods/account_resetNotifySettings.md +++ b/old_docs/API_docs_v62/methods/account_resetNotifySettings.md @@ -15,10 +15,10 @@ description: account.resetNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v62/methods/account_sendChangePhoneCode.md index 8f2e8833..a3d15473 100644 --- a/old_docs/API_docs_v62/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v62/methods/account_sendChangePhoneCode.md @@ -22,10 +22,10 @@ description: account.sendChangePhoneCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/account_sendConfirmPhoneCode.md b/old_docs/API_docs_v62/methods/account_sendConfirmPhoneCode.md index 5897ec41..c1b7cacd 100644 --- a/old_docs/API_docs_v62/methods/account_sendConfirmPhoneCode.md +++ b/old_docs/API_docs_v62/methods/account_sendConfirmPhoneCode.md @@ -22,10 +22,10 @@ description: account.sendConfirmPhoneCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/account_setAccountTTL.md b/old_docs/API_docs_v62/methods/account_setAccountTTL.md index 6ae8d70e..460ae89a 100644 --- a/old_docs/API_docs_v62/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v62/methods/account_setAccountTTL.md @@ -20,10 +20,10 @@ description: account.setAccountTTL parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/account_setPrivacy.md b/old_docs/API_docs_v62/methods/account_setPrivacy.md index e438ca16..f05356db 100644 --- a/old_docs/API_docs_v62/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v62/methods/account_setPrivacy.md @@ -21,10 +21,10 @@ description: account.setPrivacy parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/account_unregisterDevice.md b/old_docs/API_docs_v62/methods/account_unregisterDevice.md index 89ab99a8..1063fad3 100644 --- a/old_docs/API_docs_v62/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v62/methods/account_unregisterDevice.md @@ -21,10 +21,10 @@ description: account.unregisterDevice parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/account_updateDeviceLocked.md b/old_docs/API_docs_v62/methods/account_updateDeviceLocked.md index 3fe6b8b6..506d974f 100644 --- a/old_docs/API_docs_v62/methods/account_updateDeviceLocked.md +++ b/old_docs/API_docs_v62/methods/account_updateDeviceLocked.md @@ -20,10 +20,10 @@ description: account.updateDeviceLocked parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/account_updateNotifySettings.md b/old_docs/API_docs_v62/methods/account_updateNotifySettings.md index 7eea8202..cb90a39f 100644 --- a/old_docs/API_docs_v62/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v62/methods/account_updateNotifySettings.md @@ -21,10 +21,10 @@ description: account.updateNotifySettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v62/methods/account_updatePasswordSettings.md index 56e4d724..ad1a930d 100644 --- a/old_docs/API_docs_v62/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v62/methods/account_updatePasswordSettings.md @@ -21,10 +21,10 @@ description: account.updatePasswordSettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/account_updateProfile.md b/old_docs/API_docs_v62/methods/account_updateProfile.md index 186a934d..3edc695d 100644 --- a/old_docs/API_docs_v62/methods/account_updateProfile.md +++ b/old_docs/API_docs_v62/methods/account_updateProfile.md @@ -22,10 +22,10 @@ description: account.updateProfile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/account_updateStatus.md b/old_docs/API_docs_v62/methods/account_updateStatus.md index f2fd751e..ac260312 100644 --- a/old_docs/API_docs_v62/methods/account_updateStatus.md +++ b/old_docs/API_docs_v62/methods/account_updateStatus.md @@ -20,10 +20,10 @@ description: account.updateStatus parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/account_updateUsername.md b/old_docs/API_docs_v62/methods/account_updateUsername.md index b5e428e4..7daf43e0 100644 --- a/old_docs/API_docs_v62/methods/account_updateUsername.md +++ b/old_docs/API_docs_v62/methods/account_updateUsername.md @@ -20,10 +20,10 @@ description: account.updateUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v62/methods/auth_bindTempAuthKey.md index 87d0c7cf..55e083cd 100644 --- a/old_docs/API_docs_v62/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v62/methods/auth_bindTempAuthKey.md @@ -23,10 +23,10 @@ description: auth.bindTempAuthKey parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/auth_cancelCode.md b/old_docs/API_docs_v62/methods/auth_cancelCode.md index 7402df8d..520caa6f 100644 --- a/old_docs/API_docs_v62/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v62/methods/auth_cancelCode.md @@ -21,10 +21,10 @@ description: auth.cancelCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/auth_checkPassword.md b/old_docs/API_docs_v62/methods/auth_checkPassword.md index 601146fc..9dcb706a 100644 --- a/old_docs/API_docs_v62/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v62/methods/auth_checkPassword.md @@ -20,10 +20,10 @@ description: auth.checkPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/auth_checkPhone.md b/old_docs/API_docs_v62/methods/auth_checkPhone.md index 2e4db690..ce137f9d 100644 --- a/old_docs/API_docs_v62/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v62/methods/auth_checkPhone.md @@ -20,10 +20,10 @@ description: auth.checkPhone parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/auth_dropTempAuthKeys.md b/old_docs/API_docs_v62/methods/auth_dropTempAuthKeys.md index b138701f..9c43b925 100644 --- a/old_docs/API_docs_v62/methods/auth_dropTempAuthKeys.md +++ b/old_docs/API_docs_v62/methods/auth_dropTempAuthKeys.md @@ -20,10 +20,10 @@ description: auth.dropTempAuthKeys parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/auth_exportAuthorization.md b/old_docs/API_docs_v62/methods/auth_exportAuthorization.md index a69f0301..bfd16433 100644 --- a/old_docs/API_docs_v62/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v62/methods/auth_exportAuthorization.md @@ -20,10 +20,10 @@ description: auth.exportAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/auth_importAuthorization.md b/old_docs/API_docs_v62/methods/auth_importAuthorization.md index a0e2e4b7..956f9a72 100644 --- a/old_docs/API_docs_v62/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v62/methods/auth_importAuthorization.md @@ -21,10 +21,10 @@ description: auth.importAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/auth_importBotAuthorization.md b/old_docs/API_docs_v62/methods/auth_importBotAuthorization.md index a78a5263..11d2f7f3 100644 --- a/old_docs/API_docs_v62/methods/auth_importBotAuthorization.md +++ b/old_docs/API_docs_v62/methods/auth_importBotAuthorization.md @@ -22,10 +22,10 @@ description: auth.importBotAuthorization parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/auth_logOut.md b/old_docs/API_docs_v62/methods/auth_logOut.md index ac5bd8ae..5651f753 100644 --- a/old_docs/API_docs_v62/methods/auth_logOut.md +++ b/old_docs/API_docs_v62/methods/auth_logOut.md @@ -15,10 +15,10 @@ description: auth.logOut parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/auth_recoverPassword.md b/old_docs/API_docs_v62/methods/auth_recoverPassword.md index 9b7ebcfb..e253e7d9 100644 --- a/old_docs/API_docs_v62/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v62/methods/auth_recoverPassword.md @@ -20,10 +20,10 @@ description: auth.recoverPassword parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v62/methods/auth_requestPasswordRecovery.md index 94c0aeff..2ae670eb 100644 --- a/old_docs/API_docs_v62/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v62/methods/auth_requestPasswordRecovery.md @@ -15,10 +15,10 @@ description: auth.requestPasswordRecovery parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/auth_resendCode.md b/old_docs/API_docs_v62/methods/auth_resendCode.md index 8b36b17c..cb9dfd91 100644 --- a/old_docs/API_docs_v62/methods/auth_resendCode.md +++ b/old_docs/API_docs_v62/methods/auth_resendCode.md @@ -21,10 +21,10 @@ description: auth.resendCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v62/methods/auth_resetAuthorizations.md index f55e2e4d..9b324b42 100644 --- a/old_docs/API_docs_v62/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v62/methods/auth_resetAuthorizations.md @@ -15,10 +15,10 @@ description: auth.resetAuthorizations parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/auth_sendCode.md b/old_docs/API_docs_v62/methods/auth_sendCode.md index 6c195531..c5888bac 100644 --- a/old_docs/API_docs_v62/methods/auth_sendCode.md +++ b/old_docs/API_docs_v62/methods/auth_sendCode.md @@ -24,10 +24,10 @@ description: auth.sendCode parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/auth_sendInvites.md b/old_docs/API_docs_v62/methods/auth_sendInvites.md index f81a5c7e..87cdc7e3 100644 --- a/old_docs/API_docs_v62/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v62/methods/auth_sendInvites.md @@ -21,10 +21,10 @@ description: auth.sendInvites parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/auth_signIn.md b/old_docs/API_docs_v62/methods/auth_signIn.md index 7616bc80..b0fb12fe 100644 --- a/old_docs/API_docs_v62/methods/auth_signIn.md +++ b/old_docs/API_docs_v62/methods/auth_signIn.md @@ -22,10 +22,10 @@ description: auth.signIn parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/auth_signUp.md b/old_docs/API_docs_v62/methods/auth_signUp.md index f9c72d64..6f92b4f7 100644 --- a/old_docs/API_docs_v62/methods/auth_signUp.md +++ b/old_docs/API_docs_v62/methods/auth_signUp.md @@ -24,10 +24,10 @@ description: auth.signUp parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/channels_checkUsername.md b/old_docs/API_docs_v62/methods/channels_checkUsername.md index 82990d05..298b8e35 100644 --- a/old_docs/API_docs_v62/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v62/methods/channels_checkUsername.md @@ -21,10 +21,10 @@ description: channels.checkUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/channels_createChannel.md b/old_docs/API_docs_v62/methods/channels_createChannel.md index b5ffa159..207c60e9 100644 --- a/old_docs/API_docs_v62/methods/channels_createChannel.md +++ b/old_docs/API_docs_v62/methods/channels_createChannel.md @@ -23,10 +23,10 @@ description: channels.createChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/channels_deleteChannel.md b/old_docs/API_docs_v62/methods/channels_deleteChannel.md index c1eba22f..825882ab 100644 --- a/old_docs/API_docs_v62/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v62/methods/channels_deleteChannel.md @@ -20,10 +20,10 @@ description: channels.deleteChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/channels_deleteMessages.md b/old_docs/API_docs_v62/methods/channels_deleteMessages.md index e2e5e2bb..14fe6256 100644 --- a/old_docs/API_docs_v62/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v62/methods/channels_deleteMessages.md @@ -21,10 +21,10 @@ description: channels.deleteMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v62/methods/channels_deleteUserHistory.md index d3feb071..c485126f 100644 --- a/old_docs/API_docs_v62/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v62/methods/channels_deleteUserHistory.md @@ -21,10 +21,10 @@ description: channels.deleteUserHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/channels_editAbout.md b/old_docs/API_docs_v62/methods/channels_editAbout.md index 12d9df80..87c1a2c0 100644 --- a/old_docs/API_docs_v62/methods/channels_editAbout.md +++ b/old_docs/API_docs_v62/methods/channels_editAbout.md @@ -21,10 +21,10 @@ description: channels.editAbout parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/channels_editAdmin.md b/old_docs/API_docs_v62/methods/channels_editAdmin.md index 1e488778..48042957 100644 --- a/old_docs/API_docs_v62/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v62/methods/channels_editAdmin.md @@ -22,10 +22,10 @@ description: channels.editAdmin parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/channels_editPhoto.md b/old_docs/API_docs_v62/methods/channels_editPhoto.md index 9c0d0fe0..caea3df6 100644 --- a/old_docs/API_docs_v62/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v62/methods/channels_editPhoto.md @@ -21,10 +21,10 @@ description: channels.editPhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/channels_editTitle.md b/old_docs/API_docs_v62/methods/channels_editTitle.md index 057c7772..6f05ed61 100644 --- a/old_docs/API_docs_v62/methods/channels_editTitle.md +++ b/old_docs/API_docs_v62/methods/channels_editTitle.md @@ -21,10 +21,10 @@ description: channels.editTitle parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/channels_exportInvite.md b/old_docs/API_docs_v62/methods/channels_exportInvite.md index c5fa1bf9..7483038b 100644 --- a/old_docs/API_docs_v62/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v62/methods/channels_exportInvite.md @@ -20,10 +20,10 @@ description: channels.exportInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/channels_exportMessageLink.md b/old_docs/API_docs_v62/methods/channels_exportMessageLink.md index 0b1a7102..e239030c 100644 --- a/old_docs/API_docs_v62/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v62/methods/channels_exportMessageLink.md @@ -21,10 +21,10 @@ description: channels.exportMessageLink parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/channels_getAdminedPublicChannels.md b/old_docs/API_docs_v62/methods/channels_getAdminedPublicChannels.md index 4d3b8c42..5293e859 100644 --- a/old_docs/API_docs_v62/methods/channels_getAdminedPublicChannels.md +++ b/old_docs/API_docs_v62/methods/channels_getAdminedPublicChannels.md @@ -15,10 +15,10 @@ description: channels.getAdminedPublicChannels parameters, return type and examp ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/channels_getChannels.md b/old_docs/API_docs_v62/methods/channels_getChannels.md index 24b94c8f..004f7b7e 100644 --- a/old_docs/API_docs_v62/methods/channels_getChannels.md +++ b/old_docs/API_docs_v62/methods/channels_getChannels.md @@ -20,10 +20,10 @@ description: channels.getChannels parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/channels_getFullChannel.md b/old_docs/API_docs_v62/methods/channels_getFullChannel.md index 8bf78cd9..37abd094 100644 --- a/old_docs/API_docs_v62/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v62/methods/channels_getFullChannel.md @@ -20,10 +20,10 @@ description: channels.getFullChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/channels_getMessages.md b/old_docs/API_docs_v62/methods/channels_getMessages.md index 8204bf26..3aca181e 100644 --- a/old_docs/API_docs_v62/methods/channels_getMessages.md +++ b/old_docs/API_docs_v62/methods/channels_getMessages.md @@ -21,10 +21,10 @@ description: channels.getMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/channels_getParticipant.md b/old_docs/API_docs_v62/methods/channels_getParticipant.md index 7b685913..6bb9339e 100644 --- a/old_docs/API_docs_v62/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v62/methods/channels_getParticipant.md @@ -21,10 +21,10 @@ description: channels.getParticipant parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/channels_getParticipants.md b/old_docs/API_docs_v62/methods/channels_getParticipants.md index 6ee31676..51ac2c09 100644 --- a/old_docs/API_docs_v62/methods/channels_getParticipants.md +++ b/old_docs/API_docs_v62/methods/channels_getParticipants.md @@ -23,10 +23,10 @@ description: channels.getParticipants parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/channels_inviteToChannel.md b/old_docs/API_docs_v62/methods/channels_inviteToChannel.md index 4b4985a4..57581c7a 100644 --- a/old_docs/API_docs_v62/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v62/methods/channels_inviteToChannel.md @@ -21,10 +21,10 @@ description: channels.inviteToChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/channels_joinChannel.md b/old_docs/API_docs_v62/methods/channels_joinChannel.md index 97fd5417..359333fd 100644 --- a/old_docs/API_docs_v62/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v62/methods/channels_joinChannel.md @@ -20,10 +20,10 @@ description: channels.joinChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/channels_kickFromChannel.md b/old_docs/API_docs_v62/methods/channels_kickFromChannel.md index cf5a3ebc..930902a3 100644 --- a/old_docs/API_docs_v62/methods/channels_kickFromChannel.md +++ b/old_docs/API_docs_v62/methods/channels_kickFromChannel.md @@ -22,10 +22,10 @@ description: channels.kickFromChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/channels_leaveChannel.md b/old_docs/API_docs_v62/methods/channels_leaveChannel.md index 69dc1852..a10d17e7 100644 --- a/old_docs/API_docs_v62/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v62/methods/channels_leaveChannel.md @@ -20,10 +20,10 @@ description: channels.leaveChannel parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/channels_readHistory.md b/old_docs/API_docs_v62/methods/channels_readHistory.md index 87906417..104a7b8f 100644 --- a/old_docs/API_docs_v62/methods/channels_readHistory.md +++ b/old_docs/API_docs_v62/methods/channels_readHistory.md @@ -21,10 +21,10 @@ description: channels.readHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/channels_reportSpam.md b/old_docs/API_docs_v62/methods/channels_reportSpam.md index dc8542f2..9e3e13ac 100644 --- a/old_docs/API_docs_v62/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v62/methods/channels_reportSpam.md @@ -22,10 +22,10 @@ description: channels.reportSpam parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/channels_toggleInvites.md b/old_docs/API_docs_v62/methods/channels_toggleInvites.md index 6545a16a..5238c028 100644 --- a/old_docs/API_docs_v62/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v62/methods/channels_toggleInvites.md @@ -21,10 +21,10 @@ description: channels.toggleInvites parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/channels_toggleSignatures.md b/old_docs/API_docs_v62/methods/channels_toggleSignatures.md index dcab06a1..c850d592 100644 --- a/old_docs/API_docs_v62/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v62/methods/channels_toggleSignatures.md @@ -21,10 +21,10 @@ description: channels.toggleSignatures parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v62/methods/channels_updatePinnedMessage.md index c86580db..9a879125 100644 --- a/old_docs/API_docs_v62/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v62/methods/channels_updatePinnedMessage.md @@ -22,10 +22,10 @@ description: channels.updatePinnedMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/channels_updateUsername.md b/old_docs/API_docs_v62/methods/channels_updateUsername.md index ebb03507..801bc972 100644 --- a/old_docs/API_docs_v62/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v62/methods/channels_updateUsername.md @@ -21,10 +21,10 @@ description: channels.updateUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/contacts_block.md b/old_docs/API_docs_v62/methods/contacts_block.md index b809b15c..f512adcc 100644 --- a/old_docs/API_docs_v62/methods/contacts_block.md +++ b/old_docs/API_docs_v62/methods/contacts_block.md @@ -20,10 +20,10 @@ description: contacts.block parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/contacts_deleteContact.md b/old_docs/API_docs_v62/methods/contacts_deleteContact.md index 18ef51f8..a3e8f63d 100644 --- a/old_docs/API_docs_v62/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v62/methods/contacts_deleteContact.md @@ -20,10 +20,10 @@ description: contacts.deleteContact parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/contacts_deleteContacts.md b/old_docs/API_docs_v62/methods/contacts_deleteContacts.md index 40672188..46e251eb 100644 --- a/old_docs/API_docs_v62/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v62/methods/contacts_deleteContacts.md @@ -20,10 +20,10 @@ description: contacts.deleteContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/contacts_exportCard.md b/old_docs/API_docs_v62/methods/contacts_exportCard.md index 4145d246..f7ec0015 100644 --- a/old_docs/API_docs_v62/methods/contacts_exportCard.md +++ b/old_docs/API_docs_v62/methods/contacts_exportCard.md @@ -15,10 +15,10 @@ description: contacts.exportCard parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/contacts_getBlocked.md b/old_docs/API_docs_v62/methods/contacts_getBlocked.md index 50172d03..0fc72dba 100644 --- a/old_docs/API_docs_v62/methods/contacts_getBlocked.md +++ b/old_docs/API_docs_v62/methods/contacts_getBlocked.md @@ -21,10 +21,10 @@ description: contacts.getBlocked parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/contacts_getContacts.md b/old_docs/API_docs_v62/methods/contacts_getContacts.md index 0e6f22e9..656821e0 100644 --- a/old_docs/API_docs_v62/methods/contacts_getContacts.md +++ b/old_docs/API_docs_v62/methods/contacts_getContacts.md @@ -20,10 +20,10 @@ description: contacts.getContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/contacts_getStatuses.md b/old_docs/API_docs_v62/methods/contacts_getStatuses.md index b734f529..ee806f2d 100644 --- a/old_docs/API_docs_v62/methods/contacts_getStatuses.md +++ b/old_docs/API_docs_v62/methods/contacts_getStatuses.md @@ -15,10 +15,10 @@ description: contacts.getStatuses parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/contacts_getTopPeers.md b/old_docs/API_docs_v62/methods/contacts_getTopPeers.md index 9ce29121..75b4126a 100644 --- a/old_docs/API_docs_v62/methods/contacts_getTopPeers.md +++ b/old_docs/API_docs_v62/methods/contacts_getTopPeers.md @@ -27,10 +27,10 @@ description: contacts.getTopPeers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/contacts_importCard.md b/old_docs/API_docs_v62/methods/contacts_importCard.md index 6b2c612e..162ff4f3 100644 --- a/old_docs/API_docs_v62/methods/contacts_importCard.md +++ b/old_docs/API_docs_v62/methods/contacts_importCard.md @@ -20,10 +20,10 @@ description: contacts.importCard parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/contacts_importContacts.md b/old_docs/API_docs_v62/methods/contacts_importContacts.md index 2426f53c..48412e99 100644 --- a/old_docs/API_docs_v62/methods/contacts_importContacts.md +++ b/old_docs/API_docs_v62/methods/contacts_importContacts.md @@ -21,10 +21,10 @@ description: contacts.importContacts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v62/methods/contacts_resetTopPeerRating.md index 48e8edd6..79cf7847 100644 --- a/old_docs/API_docs_v62/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v62/methods/contacts_resetTopPeerRating.md @@ -21,10 +21,10 @@ description: contacts.resetTopPeerRating parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/contacts_resolveUsername.md b/old_docs/API_docs_v62/methods/contacts_resolveUsername.md index 0ea67c6f..b847fbe9 100644 --- a/old_docs/API_docs_v62/methods/contacts_resolveUsername.md +++ b/old_docs/API_docs_v62/methods/contacts_resolveUsername.md @@ -20,10 +20,10 @@ description: contacts.resolveUsername parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/contacts_search.md b/old_docs/API_docs_v62/methods/contacts_search.md index 00a39519..9a351db7 100644 --- a/old_docs/API_docs_v62/methods/contacts_search.md +++ b/old_docs/API_docs_v62/methods/contacts_search.md @@ -21,10 +21,10 @@ description: contacts.search parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/contacts_unblock.md b/old_docs/API_docs_v62/methods/contacts_unblock.md index 63f41483..6d739c9b 100644 --- a/old_docs/API_docs_v62/methods/contacts_unblock.md +++ b/old_docs/API_docs_v62/methods/contacts_unblock.md @@ -20,10 +20,10 @@ description: contacts.unblock parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; 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 c30929ac..83e1393d 100644 --- a/old_docs/API_docs_v62/methods/destroy_auth_key.md +++ b/old_docs/API_docs_v62/methods/destroy_auth_key.md @@ -15,10 +15,10 @@ description: destroy_auth_key parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/help_getAppChangelog.md b/old_docs/API_docs_v62/methods/help_getAppChangelog.md index 7c52cce8..2e72e305 100644 --- a/old_docs/API_docs_v62/methods/help_getAppChangelog.md +++ b/old_docs/API_docs_v62/methods/help_getAppChangelog.md @@ -15,10 +15,10 @@ description: help.getAppChangelog parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/help_getAppUpdate.md b/old_docs/API_docs_v62/methods/help_getAppUpdate.md index cdaa5f04..f2871a39 100644 --- a/old_docs/API_docs_v62/methods/help_getAppUpdate.md +++ b/old_docs/API_docs_v62/methods/help_getAppUpdate.md @@ -15,10 +15,10 @@ description: help.getAppUpdate parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/help_getConfig.md b/old_docs/API_docs_v62/methods/help_getConfig.md index cb9c4f1c..9481a0c0 100644 --- a/old_docs/API_docs_v62/methods/help_getConfig.md +++ b/old_docs/API_docs_v62/methods/help_getConfig.md @@ -15,10 +15,10 @@ description: help.getConfig parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/help_getInviteText.md b/old_docs/API_docs_v62/methods/help_getInviteText.md index b5293e91..5f81c4dc 100644 --- a/old_docs/API_docs_v62/methods/help_getInviteText.md +++ b/old_docs/API_docs_v62/methods/help_getInviteText.md @@ -15,10 +15,10 @@ description: help.getInviteText parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/help_getNearestDc.md b/old_docs/API_docs_v62/methods/help_getNearestDc.md index f491ae0c..bb6b1883 100644 --- a/old_docs/API_docs_v62/methods/help_getNearestDc.md +++ b/old_docs/API_docs_v62/methods/help_getNearestDc.md @@ -15,10 +15,10 @@ description: help.getNearestDc parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/help_getSupport.md b/old_docs/API_docs_v62/methods/help_getSupport.md index 03574c6f..0348089a 100644 --- a/old_docs/API_docs_v62/methods/help_getSupport.md +++ b/old_docs/API_docs_v62/methods/help_getSupport.md @@ -15,10 +15,10 @@ description: help.getSupport parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/help_getTermsOfService.md b/old_docs/API_docs_v62/methods/help_getTermsOfService.md index 59147a4e..7a32bdaf 100644 --- a/old_docs/API_docs_v62/methods/help_getTermsOfService.md +++ b/old_docs/API_docs_v62/methods/help_getTermsOfService.md @@ -15,10 +15,10 @@ description: help.getTermsOfService parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/help_saveAppLog.md b/old_docs/API_docs_v62/methods/help_saveAppLog.md index 3887ccc2..59b92601 100644 --- a/old_docs/API_docs_v62/methods/help_saveAppLog.md +++ b/old_docs/API_docs_v62/methods/help_saveAppLog.md @@ -20,10 +20,10 @@ description: help.saveAppLog parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/help_setBotUpdatesStatus.md b/old_docs/API_docs_v62/methods/help_setBotUpdatesStatus.md index 58fc377d..820d3c0f 100644 --- a/old_docs/API_docs_v62/methods/help_setBotUpdatesStatus.md +++ b/old_docs/API_docs_v62/methods/help_setBotUpdatesStatus.md @@ -21,10 +21,10 @@ description: help.setBotUpdatesStatus parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/initConnection.md b/old_docs/API_docs_v62/methods/initConnection.md index 1c946720..aa89066c 100644 --- a/old_docs/API_docs_v62/methods/initConnection.md +++ b/old_docs/API_docs_v62/methods/initConnection.md @@ -25,10 +25,10 @@ description: initConnection parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/invokeAfterMsg.md b/old_docs/API_docs_v62/methods/invokeAfterMsg.md index 1b35a238..97c4f1fb 100644 --- a/old_docs/API_docs_v62/methods/invokeAfterMsg.md +++ b/old_docs/API_docs_v62/methods/invokeAfterMsg.md @@ -21,10 +21,10 @@ description: invokeAfterMsg parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/invokeAfterMsgs.md b/old_docs/API_docs_v62/methods/invokeAfterMsgs.md index 164ab318..4e278ef1 100644 --- a/old_docs/API_docs_v62/methods/invokeAfterMsgs.md +++ b/old_docs/API_docs_v62/methods/invokeAfterMsgs.md @@ -21,10 +21,10 @@ description: invokeAfterMsgs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/invokeWithLayer.md b/old_docs/API_docs_v62/methods/invokeWithLayer.md index 497cc285..72fe47ec 100644 --- a/old_docs/API_docs_v62/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v62/methods/invokeWithLayer.md @@ -21,10 +21,10 @@ description: invokeWithLayer parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/invokeWithoutUpdates.md b/old_docs/API_docs_v62/methods/invokeWithoutUpdates.md index cbdabb07..5151b786 100644 --- a/old_docs/API_docs_v62/methods/invokeWithoutUpdates.md +++ b/old_docs/API_docs_v62/methods/invokeWithoutUpdates.md @@ -20,10 +20,10 @@ description: invokeWithoutUpdates parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_acceptEncryption.md b/old_docs/API_docs_v62/methods/messages_acceptEncryption.md index d41beb91..e016f5d3 100644 --- a/old_docs/API_docs_v62/methods/messages_acceptEncryption.md +++ b/old_docs/API_docs_v62/methods/messages_acceptEncryption.md @@ -22,10 +22,10 @@ description: messages.acceptEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_addChatUser.md b/old_docs/API_docs_v62/methods/messages_addChatUser.md index 13d17a3e..df2cb1a5 100644 --- a/old_docs/API_docs_v62/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v62/methods/messages_addChatUser.md @@ -22,10 +22,10 @@ description: messages.addChatUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_checkChatInvite.md b/old_docs/API_docs_v62/methods/messages_checkChatInvite.md index 0a3a4f84..7670727b 100644 --- a/old_docs/API_docs_v62/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v62/methods/messages_checkChatInvite.md @@ -20,10 +20,10 @@ description: messages.checkChatInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_clearRecentStickers.md b/old_docs/API_docs_v62/methods/messages_clearRecentStickers.md index f8cc5f65..100e49da 100644 --- a/old_docs/API_docs_v62/methods/messages_clearRecentStickers.md +++ b/old_docs/API_docs_v62/methods/messages_clearRecentStickers.md @@ -20,10 +20,10 @@ description: messages.clearRecentStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_createChat.md b/old_docs/API_docs_v62/methods/messages_createChat.md index 0ab3101a..2fc5631c 100644 --- a/old_docs/API_docs_v62/methods/messages_createChat.md +++ b/old_docs/API_docs_v62/methods/messages_createChat.md @@ -21,10 +21,10 @@ description: messages.createChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_deleteChatUser.md b/old_docs/API_docs_v62/methods/messages_deleteChatUser.md index ed736ebd..6895649f 100644 --- a/old_docs/API_docs_v62/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v62/methods/messages_deleteChatUser.md @@ -21,10 +21,10 @@ description: messages.deleteChatUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_deleteHistory.md b/old_docs/API_docs_v62/methods/messages_deleteHistory.md index 6f71f2fe..e8c98c07 100644 --- a/old_docs/API_docs_v62/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v62/methods/messages_deleteHistory.md @@ -22,10 +22,10 @@ description: messages.deleteHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_deleteMessages.md b/old_docs/API_docs_v62/methods/messages_deleteMessages.md index a930aa42..2a5f61f6 100644 --- a/old_docs/API_docs_v62/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v62/methods/messages_deleteMessages.md @@ -21,10 +21,10 @@ description: messages.deleteMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_discardEncryption.md b/old_docs/API_docs_v62/methods/messages_discardEncryption.md index ebc1ace5..f237c986 100644 --- a/old_docs/API_docs_v62/methods/messages_discardEncryption.md +++ b/old_docs/API_docs_v62/methods/messages_discardEncryption.md @@ -20,10 +20,10 @@ description: messages.discardEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_editChatAdmin.md b/old_docs/API_docs_v62/methods/messages_editChatAdmin.md index 38bc8de0..74f5a39f 100644 --- a/old_docs/API_docs_v62/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v62/methods/messages_editChatAdmin.md @@ -22,10 +22,10 @@ description: messages.editChatAdmin parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_editChatPhoto.md b/old_docs/API_docs_v62/methods/messages_editChatPhoto.md index e3cbf492..0396c74b 100644 --- a/old_docs/API_docs_v62/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v62/methods/messages_editChatPhoto.md @@ -21,10 +21,10 @@ description: messages.editChatPhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_editChatTitle.md b/old_docs/API_docs_v62/methods/messages_editChatTitle.md index 60eae01c..fabe9c87 100644 --- a/old_docs/API_docs_v62/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v62/methods/messages_editChatTitle.md @@ -21,10 +21,10 @@ description: messages.editChatTitle parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v62/methods/messages_editInlineBotMessage.md index b275cc64..ae98c13d 100644 --- a/old_docs/API_docs_v62/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v62/methods/messages_editInlineBotMessage.md @@ -25,10 +25,10 @@ description: messages.editInlineBotMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; @@ -48,6 +48,12 @@ Bool = messages.editInlineBotMessage({no_webpage=Bool, id=InputBotInlineMessageI ``` +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + + ## Usage of parse_mode: Set parse_mode to html to enable HTML parsing of the message. diff --git a/old_docs/API_docs_v62/methods/messages_editMessage.md b/old_docs/API_docs_v62/methods/messages_editMessage.md index b7d0eb36..3ce73b6c 100644 --- a/old_docs/API_docs_v62/methods/messages_editMessage.md +++ b/old_docs/API_docs_v62/methods/messages_editMessage.md @@ -26,10 +26,10 @@ description: messages.editMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; @@ -49,6 +49,12 @@ Updates = messages.editMessage({no_webpage=Bool, peer=InputPeer, id=int, message ``` +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + + ## Usage of parse_mode: Set parse_mode to html to enable HTML parsing of the message. diff --git a/old_docs/API_docs_v62/methods/messages_exportChatInvite.md b/old_docs/API_docs_v62/methods/messages_exportChatInvite.md index 3efc9bf7..b96e7498 100644 --- a/old_docs/API_docs_v62/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v62/methods/messages_exportChatInvite.md @@ -20,10 +20,10 @@ description: messages.exportChatInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_forwardMessage.md b/old_docs/API_docs_v62/methods/messages_forwardMessage.md index a95d259a..ced2cb5b 100644 --- a/old_docs/API_docs_v62/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v62/methods/messages_forwardMessage.md @@ -21,10 +21,10 @@ description: messages.forwardMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_forwardMessages.md b/old_docs/API_docs_v62/methods/messages_forwardMessages.md index 716a2ebf..c93b7c19 100644 --- a/old_docs/API_docs_v62/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v62/methods/messages_forwardMessages.md @@ -25,10 +25,10 @@ description: messages.forwardMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_getAllChats.md b/old_docs/API_docs_v62/methods/messages_getAllChats.md index 7140903e..480205eb 100644 --- a/old_docs/API_docs_v62/methods/messages_getAllChats.md +++ b/old_docs/API_docs_v62/methods/messages_getAllChats.md @@ -20,10 +20,10 @@ description: messages.getAllChats parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_getAllDrafts.md b/old_docs/API_docs_v62/methods/messages_getAllDrafts.md index 39f0a058..ec7ebddb 100644 --- a/old_docs/API_docs_v62/methods/messages_getAllDrafts.md +++ b/old_docs/API_docs_v62/methods/messages_getAllDrafts.md @@ -15,10 +15,10 @@ description: messages.getAllDrafts parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_getAllStickers.md b/old_docs/API_docs_v62/methods/messages_getAllStickers.md index 613db3b2..fe438a80 100644 --- a/old_docs/API_docs_v62/methods/messages_getAllStickers.md +++ b/old_docs/API_docs_v62/methods/messages_getAllStickers.md @@ -20,10 +20,10 @@ description: messages.getAllStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_getArchivedStickers.md b/old_docs/API_docs_v62/methods/messages_getArchivedStickers.md index a0e17df2..5ebdc27c 100644 --- a/old_docs/API_docs_v62/methods/messages_getArchivedStickers.md +++ b/old_docs/API_docs_v62/methods/messages_getArchivedStickers.md @@ -22,10 +22,10 @@ description: messages.getArchivedStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_getAttachedStickers.md b/old_docs/API_docs_v62/methods/messages_getAttachedStickers.md index 99806dae..5556f6fb 100644 --- a/old_docs/API_docs_v62/methods/messages_getAttachedStickers.md +++ b/old_docs/API_docs_v62/methods/messages_getAttachedStickers.md @@ -20,10 +20,10 @@ description: messages.getAttachedStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v62/methods/messages_getBotCallbackAnswer.md index 2f412a3f..ee46a5b9 100644 --- a/old_docs/API_docs_v62/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v62/methods/messages_getBotCallbackAnswer.md @@ -23,10 +23,10 @@ description: messages.getBotCallbackAnswer parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_getChats.md b/old_docs/API_docs_v62/methods/messages_getChats.md index ad63744b..be57718e 100644 --- a/old_docs/API_docs_v62/methods/messages_getChats.md +++ b/old_docs/API_docs_v62/methods/messages_getChats.md @@ -20,10 +20,10 @@ description: messages.getChats parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_getCommonChats.md b/old_docs/API_docs_v62/methods/messages_getCommonChats.md index 4e10d74d..6065b894 100644 --- a/old_docs/API_docs_v62/methods/messages_getCommonChats.md +++ b/old_docs/API_docs_v62/methods/messages_getCommonChats.md @@ -22,10 +22,10 @@ description: messages.getCommonChats parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_getDhConfig.md b/old_docs/API_docs_v62/methods/messages_getDhConfig.md index bcebea55..21b37f21 100644 --- a/old_docs/API_docs_v62/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v62/methods/messages_getDhConfig.md @@ -21,10 +21,10 @@ description: messages.getDhConfig parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_getDialogs.md b/old_docs/API_docs_v62/methods/messages_getDialogs.md index 19f6ca2e..bb9f947e 100644 --- a/old_docs/API_docs_v62/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v62/methods/messages_getDialogs.md @@ -24,10 +24,10 @@ description: messages.getDialogs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v62/methods/messages_getDocumentByHash.md index 32fc1de0..ca26acc3 100644 --- a/old_docs/API_docs_v62/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v62/methods/messages_getDocumentByHash.md @@ -22,10 +22,10 @@ description: messages.getDocumentByHash parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_getFeaturedStickers.md b/old_docs/API_docs_v62/methods/messages_getFeaturedStickers.md index 47a4d501..e991e78b 100644 --- a/old_docs/API_docs_v62/methods/messages_getFeaturedStickers.md +++ b/old_docs/API_docs_v62/methods/messages_getFeaturedStickers.md @@ -20,10 +20,10 @@ description: messages.getFeaturedStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_getFullChat.md b/old_docs/API_docs_v62/methods/messages_getFullChat.md index f3c8223a..10d938ae 100644 --- a/old_docs/API_docs_v62/methods/messages_getFullChat.md +++ b/old_docs/API_docs_v62/methods/messages_getFullChat.md @@ -20,10 +20,10 @@ description: messages.getFullChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_getGameHighScores.md b/old_docs/API_docs_v62/methods/messages_getGameHighScores.md index 1b8b5b44..097f1fec 100644 --- a/old_docs/API_docs_v62/methods/messages_getGameHighScores.md +++ b/old_docs/API_docs_v62/methods/messages_getGameHighScores.md @@ -22,10 +22,10 @@ description: messages.getGameHighScores parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_getHistory.md b/old_docs/API_docs_v62/methods/messages_getHistory.md index 3311df5b..1befedca 100644 --- a/old_docs/API_docs_v62/methods/messages_getHistory.md +++ b/old_docs/API_docs_v62/methods/messages_getHistory.md @@ -26,10 +26,10 @@ description: messages.getHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v62/methods/messages_getInlineBotResults.md index e76ee714..6364519c 100644 --- a/old_docs/API_docs_v62/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v62/methods/messages_getInlineBotResults.md @@ -24,10 +24,10 @@ description: messages.getInlineBotResults parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_getInlineGameHighScores.md b/old_docs/API_docs_v62/methods/messages_getInlineGameHighScores.md index c857cb17..370ff8fd 100644 --- a/old_docs/API_docs_v62/methods/messages_getInlineGameHighScores.md +++ b/old_docs/API_docs_v62/methods/messages_getInlineGameHighScores.md @@ -21,10 +21,10 @@ description: messages.getInlineGameHighScores parameters, return type and exampl ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_getMaskStickers.md b/old_docs/API_docs_v62/methods/messages_getMaskStickers.md index 7a97cb33..d2e93651 100644 --- a/old_docs/API_docs_v62/methods/messages_getMaskStickers.md +++ b/old_docs/API_docs_v62/methods/messages_getMaskStickers.md @@ -20,10 +20,10 @@ description: messages.getMaskStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_getMessageEditData.md b/old_docs/API_docs_v62/methods/messages_getMessageEditData.md index 8b47e95b..0189b6a5 100644 --- a/old_docs/API_docs_v62/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v62/methods/messages_getMessageEditData.md @@ -21,10 +21,10 @@ description: messages.getMessageEditData parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_getMessages.md b/old_docs/API_docs_v62/methods/messages_getMessages.md index 224df903..e669bcf8 100644 --- a/old_docs/API_docs_v62/methods/messages_getMessages.md +++ b/old_docs/API_docs_v62/methods/messages_getMessages.md @@ -20,10 +20,10 @@ description: messages.getMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_getMessagesViews.md b/old_docs/API_docs_v62/methods/messages_getMessagesViews.md index d162b668..f27cdb36 100644 --- a/old_docs/API_docs_v62/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v62/methods/messages_getMessagesViews.md @@ -22,10 +22,10 @@ description: messages.getMessagesViews parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_getPeerDialogs.md b/old_docs/API_docs_v62/methods/messages_getPeerDialogs.md index cf6dc552..bcf9af29 100644 --- a/old_docs/API_docs_v62/methods/messages_getPeerDialogs.md +++ b/old_docs/API_docs_v62/methods/messages_getPeerDialogs.md @@ -20,10 +20,10 @@ description: messages.getPeerDialogs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_getPeerSettings.md b/old_docs/API_docs_v62/methods/messages_getPeerSettings.md index 202867f7..bd60b87b 100644 --- a/old_docs/API_docs_v62/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v62/methods/messages_getPeerSettings.md @@ -20,10 +20,10 @@ description: messages.getPeerSettings parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_getPinnedDialogs.md b/old_docs/API_docs_v62/methods/messages_getPinnedDialogs.md index 1640794a..4dcb6530 100644 --- a/old_docs/API_docs_v62/methods/messages_getPinnedDialogs.md +++ b/old_docs/API_docs_v62/methods/messages_getPinnedDialogs.md @@ -15,10 +15,10 @@ description: messages.getPinnedDialogs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_getRecentStickers.md b/old_docs/API_docs_v62/methods/messages_getRecentStickers.md index 85c89101..b522717c 100644 --- a/old_docs/API_docs_v62/methods/messages_getRecentStickers.md +++ b/old_docs/API_docs_v62/methods/messages_getRecentStickers.md @@ -21,10 +21,10 @@ description: messages.getRecentStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_getSavedGifs.md b/old_docs/API_docs_v62/methods/messages_getSavedGifs.md index 0ca34eef..fbdc5129 100644 --- a/old_docs/API_docs_v62/methods/messages_getSavedGifs.md +++ b/old_docs/API_docs_v62/methods/messages_getSavedGifs.md @@ -20,10 +20,10 @@ description: messages.getSavedGifs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_getStickerSet.md b/old_docs/API_docs_v62/methods/messages_getStickerSet.md index 2ec2fa5d..561eec32 100644 --- a/old_docs/API_docs_v62/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v62/methods/messages_getStickerSet.md @@ -20,10 +20,10 @@ description: messages.getStickerSet parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_getWebPage.md b/old_docs/API_docs_v62/methods/messages_getWebPage.md index 2387c00a..dfcf8cd0 100644 --- a/old_docs/API_docs_v62/methods/messages_getWebPage.md +++ b/old_docs/API_docs_v62/methods/messages_getWebPage.md @@ -21,10 +21,10 @@ description: messages.getWebPage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_getWebPagePreview.md b/old_docs/API_docs_v62/methods/messages_getWebPagePreview.md index e2dd428d..a3d5fce3 100644 --- a/old_docs/API_docs_v62/methods/messages_getWebPagePreview.md +++ b/old_docs/API_docs_v62/methods/messages_getWebPagePreview.md @@ -20,10 +20,10 @@ description: messages.getWebPagePreview parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_hideReportSpam.md b/old_docs/API_docs_v62/methods/messages_hideReportSpam.md index 175bbe27..8a86e690 100644 --- a/old_docs/API_docs_v62/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v62/methods/messages_hideReportSpam.md @@ -20,10 +20,10 @@ description: messages.hideReportSpam parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_importChatInvite.md b/old_docs/API_docs_v62/methods/messages_importChatInvite.md index 250d076d..a4e9c052 100644 --- a/old_docs/API_docs_v62/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v62/methods/messages_importChatInvite.md @@ -20,10 +20,10 @@ description: messages.importChatInvite parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_installStickerSet.md b/old_docs/API_docs_v62/methods/messages_installStickerSet.md index 3de799ef..48b77a20 100644 --- a/old_docs/API_docs_v62/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v62/methods/messages_installStickerSet.md @@ -21,10 +21,10 @@ description: messages.installStickerSet parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_migrateChat.md b/old_docs/API_docs_v62/methods/messages_migrateChat.md index 5b1e375a..731dc904 100644 --- a/old_docs/API_docs_v62/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v62/methods/messages_migrateChat.md @@ -20,10 +20,10 @@ description: messages.migrateChat parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v62/methods/messages_readEncryptedHistory.md index 555bffe7..5bb05536 100644 --- a/old_docs/API_docs_v62/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v62/methods/messages_readEncryptedHistory.md @@ -21,10 +21,10 @@ description: messages.readEncryptedHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_readFeaturedStickers.md b/old_docs/API_docs_v62/methods/messages_readFeaturedStickers.md index 61ec71b8..1dbbbe4f 100644 --- a/old_docs/API_docs_v62/methods/messages_readFeaturedStickers.md +++ b/old_docs/API_docs_v62/methods/messages_readFeaturedStickers.md @@ -20,10 +20,10 @@ description: messages.readFeaturedStickers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_readHistory.md b/old_docs/API_docs_v62/methods/messages_readHistory.md index 1e2783ae..6bb29fef 100644 --- a/old_docs/API_docs_v62/methods/messages_readHistory.md +++ b/old_docs/API_docs_v62/methods/messages_readHistory.md @@ -21,10 +21,10 @@ description: messages.readHistory parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_readMessageContents.md b/old_docs/API_docs_v62/methods/messages_readMessageContents.md index ae75d612..829e7cc8 100644 --- a/old_docs/API_docs_v62/methods/messages_readMessageContents.md +++ b/old_docs/API_docs_v62/methods/messages_readMessageContents.md @@ -20,10 +20,10 @@ description: messages.readMessageContents parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_receivedMessages.md b/old_docs/API_docs_v62/methods/messages_receivedMessages.md index ffeaeed7..05a229b6 100644 --- a/old_docs/API_docs_v62/methods/messages_receivedMessages.md +++ b/old_docs/API_docs_v62/methods/messages_receivedMessages.md @@ -20,10 +20,10 @@ description: messages.receivedMessages parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_receivedQueue.md b/old_docs/API_docs_v62/methods/messages_receivedQueue.md index e514669c..d8bfae5e 100644 --- a/old_docs/API_docs_v62/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v62/methods/messages_receivedQueue.md @@ -20,10 +20,10 @@ description: messages.receivedQueue parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_reorderPinnedDialogs.md b/old_docs/API_docs_v62/methods/messages_reorderPinnedDialogs.md index cf85d9aa..797c5d17 100644 --- a/old_docs/API_docs_v62/methods/messages_reorderPinnedDialogs.md +++ b/old_docs/API_docs_v62/methods/messages_reorderPinnedDialogs.md @@ -21,10 +21,10 @@ description: messages.reorderPinnedDialogs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_reorderStickerSets.md b/old_docs/API_docs_v62/methods/messages_reorderStickerSets.md index 3eab4332..698bc50a 100644 --- a/old_docs/API_docs_v62/methods/messages_reorderStickerSets.md +++ b/old_docs/API_docs_v62/methods/messages_reorderStickerSets.md @@ -21,10 +21,10 @@ description: messages.reorderStickerSets parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_reportEncryptedSpam.md b/old_docs/API_docs_v62/methods/messages_reportEncryptedSpam.md index a7af51d8..6334ba63 100644 --- a/old_docs/API_docs_v62/methods/messages_reportEncryptedSpam.md +++ b/old_docs/API_docs_v62/methods/messages_reportEncryptedSpam.md @@ -20,10 +20,10 @@ description: messages.reportEncryptedSpam parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_reportSpam.md b/old_docs/API_docs_v62/methods/messages_reportSpam.md index 56975b9d..da747585 100644 --- a/old_docs/API_docs_v62/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v62/methods/messages_reportSpam.md @@ -20,10 +20,10 @@ description: messages.reportSpam parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_requestEncryption.md b/old_docs/API_docs_v62/methods/messages_requestEncryption.md index e82fca54..99fe7ecf 100644 --- a/old_docs/API_docs_v62/methods/messages_requestEncryption.md +++ b/old_docs/API_docs_v62/methods/messages_requestEncryption.md @@ -21,10 +21,10 @@ description: messages.requestEncryption parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_saveDraft.md b/old_docs/API_docs_v62/methods/messages_saveDraft.md index a9fe9721..c3324146 100644 --- a/old_docs/API_docs_v62/methods/messages_saveDraft.md +++ b/old_docs/API_docs_v62/methods/messages_saveDraft.md @@ -25,10 +25,10 @@ description: messages.saveDraft parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_saveGif.md b/old_docs/API_docs_v62/methods/messages_saveGif.md index 0bd648d8..ea2174ea 100644 --- a/old_docs/API_docs_v62/methods/messages_saveGif.md +++ b/old_docs/API_docs_v62/methods/messages_saveGif.md @@ -21,10 +21,10 @@ description: messages.saveGif parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_saveRecentSticker.md b/old_docs/API_docs_v62/methods/messages_saveRecentSticker.md index ac212205..b1e76785 100644 --- a/old_docs/API_docs_v62/methods/messages_saveRecentSticker.md +++ b/old_docs/API_docs_v62/methods/messages_saveRecentSticker.md @@ -22,10 +22,10 @@ description: messages.saveRecentSticker parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_search.md b/old_docs/API_docs_v62/methods/messages_search.md index fe53fb8c..05309dbf 100644 --- a/old_docs/API_docs_v62/methods/messages_search.md +++ b/old_docs/API_docs_v62/methods/messages_search.md @@ -27,10 +27,10 @@ description: messages.search parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_searchGifs.md b/old_docs/API_docs_v62/methods/messages_searchGifs.md index 18ad844b..8a1de718 100644 --- a/old_docs/API_docs_v62/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v62/methods/messages_searchGifs.md @@ -21,10 +21,10 @@ description: messages.searchGifs parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_searchGlobal.md b/old_docs/API_docs_v62/methods/messages_searchGlobal.md index aacdb99f..02d790e9 100644 --- a/old_docs/API_docs_v62/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v62/methods/messages_searchGlobal.md @@ -24,10 +24,10 @@ description: messages.searchGlobal parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_sendEncrypted.md b/old_docs/API_docs_v62/methods/messages_sendEncrypted.md index f2c2c0c2..c3585580 100644 --- a/old_docs/API_docs_v62/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v62/methods/messages_sendEncrypted.md @@ -21,10 +21,10 @@ description: messages.sendEncrypted parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v62/methods/messages_sendEncryptedFile.md index a57a3dd8..40674df9 100644 --- a/old_docs/API_docs_v62/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v62/methods/messages_sendEncryptedFile.md @@ -22,10 +22,10 @@ description: messages.sendEncryptedFile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v62/methods/messages_sendEncryptedService.md index 4041c4d0..8bfee571 100644 --- a/old_docs/API_docs_v62/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v62/methods/messages_sendEncryptedService.md @@ -21,10 +21,10 @@ description: messages.sendEncryptedService parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v62/methods/messages_sendInlineBotResult.md index b2a5ab57..2d71d731 100644 --- a/old_docs/API_docs_v62/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v62/methods/messages_sendInlineBotResult.md @@ -26,10 +26,10 @@ description: messages.sendInlineBotResult parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_sendMedia.md b/old_docs/API_docs_v62/methods/messages_sendMedia.md index 56c95dba..df132dc9 100644 --- a/old_docs/API_docs_v62/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v62/methods/messages_sendMedia.md @@ -26,10 +26,10 @@ description: messages.sendMedia parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; @@ -48,3 +48,9 @@ Or, if you're into Lua: Updates = messages.sendMedia({silent=Bool, background=Bool, clear_draft=Bool, peer=InputPeer, reply_to_msg_id=int, media=InputMedia, reply_markup=ReplyMarkup, }) ``` + +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + diff --git a/old_docs/API_docs_v62/methods/messages_sendMessage.md b/old_docs/API_docs_v62/methods/messages_sendMessage.md index 1433e320..e7f23e30 100644 --- a/old_docs/API_docs_v62/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v62/methods/messages_sendMessage.md @@ -29,10 +29,10 @@ description: messages.sendMessage parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; @@ -52,6 +52,12 @@ Updates = messages.sendMessage({no_webpage=Bool, silent=Bool, background=Bool, c ``` +## Usage of reply_markup + +You can provide bot API reply_markup objects here. + + + ## Usage of parse_mode: Set parse_mode to html to enable HTML parsing of the message. diff --git a/old_docs/API_docs_v62/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v62/methods/messages_setBotCallbackAnswer.md index 536e2892..73a43bf2 100644 --- a/old_docs/API_docs_v62/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v62/methods/messages_setBotCallbackAnswer.md @@ -24,10 +24,10 @@ description: messages.setBotCallbackAnswer parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v62/methods/messages_setEncryptedTyping.md index 95364d49..ae718bba 100644 --- a/old_docs/API_docs_v62/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v62/methods/messages_setEncryptedTyping.md @@ -21,10 +21,10 @@ description: messages.setEncryptedTyping parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_setGameScore.md b/old_docs/API_docs_v62/methods/messages_setGameScore.md index 49427cbe..5d5231ea 100644 --- a/old_docs/API_docs_v62/methods/messages_setGameScore.md +++ b/old_docs/API_docs_v62/methods/messages_setGameScore.md @@ -25,10 +25,10 @@ description: messages.setGameScore parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v62/methods/messages_setInlineBotResults.md index a2cf64b7..ea653cd7 100644 --- a/old_docs/API_docs_v62/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v62/methods/messages_setInlineBotResults.md @@ -26,10 +26,10 @@ description: messages.setInlineBotResults parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_setInlineGameScore.md b/old_docs/API_docs_v62/methods/messages_setInlineGameScore.md index 63f432e1..02082156 100644 --- a/old_docs/API_docs_v62/methods/messages_setInlineGameScore.md +++ b/old_docs/API_docs_v62/methods/messages_setInlineGameScore.md @@ -24,10 +24,10 @@ description: messages.setInlineGameScore parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_setTyping.md b/old_docs/API_docs_v62/methods/messages_setTyping.md index 0ce5743d..75903c68 100644 --- a/old_docs/API_docs_v62/methods/messages_setTyping.md +++ b/old_docs/API_docs_v62/methods/messages_setTyping.md @@ -21,10 +21,10 @@ description: messages.setTyping parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_startBot.md b/old_docs/API_docs_v62/methods/messages_startBot.md index 5f563224..bf79b142 100644 --- a/old_docs/API_docs_v62/methods/messages_startBot.md +++ b/old_docs/API_docs_v62/methods/messages_startBot.md @@ -22,10 +22,10 @@ description: messages.startBot parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v62/methods/messages_toggleChatAdmins.md index 0ad6ba92..05d74e5a 100644 --- a/old_docs/API_docs_v62/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v62/methods/messages_toggleChatAdmins.md @@ -21,10 +21,10 @@ description: messages.toggleChatAdmins parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_toggleDialogPin.md b/old_docs/API_docs_v62/methods/messages_toggleDialogPin.md index 685d796b..3b5eafc8 100644 --- a/old_docs/API_docs_v62/methods/messages_toggleDialogPin.md +++ b/old_docs/API_docs_v62/methods/messages_toggleDialogPin.md @@ -21,10 +21,10 @@ description: messages.toggleDialogPin parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v62/methods/messages_uninstallStickerSet.md index 97fff059..5202b086 100644 --- a/old_docs/API_docs_v62/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v62/methods/messages_uninstallStickerSet.md @@ -20,10 +20,10 @@ description: messages.uninstallStickerSet parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/phone_acceptCall.md b/old_docs/API_docs_v62/methods/phone_acceptCall.md index cd80779b..4d7275d8 100644 --- a/old_docs/API_docs_v62/methods/phone_acceptCall.md +++ b/old_docs/API_docs_v62/methods/phone_acceptCall.md @@ -23,10 +23,10 @@ description: phone.acceptCall parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/phone_discardCall.md b/old_docs/API_docs_v62/methods/phone_discardCall.md index 9bde1032..02c21048 100644 --- a/old_docs/API_docs_v62/methods/phone_discardCall.md +++ b/old_docs/API_docs_v62/methods/phone_discardCall.md @@ -23,10 +23,10 @@ description: phone.discardCall parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/phone_receivedCall.md b/old_docs/API_docs_v62/methods/phone_receivedCall.md index 7af92abc..793907ea 100644 --- a/old_docs/API_docs_v62/methods/phone_receivedCall.md +++ b/old_docs/API_docs_v62/methods/phone_receivedCall.md @@ -20,10 +20,10 @@ description: phone.receivedCall parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/phone_requestCall.md b/old_docs/API_docs_v62/methods/phone_requestCall.md index c7a95c5c..a8d475b7 100644 --- a/old_docs/API_docs_v62/methods/phone_requestCall.md +++ b/old_docs/API_docs_v62/methods/phone_requestCall.md @@ -22,10 +22,10 @@ description: phone.requestCall parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/photos_deletePhotos.md b/old_docs/API_docs_v62/methods/photos_deletePhotos.md index 6a717835..2d27b700 100644 --- a/old_docs/API_docs_v62/methods/photos_deletePhotos.md +++ b/old_docs/API_docs_v62/methods/photos_deletePhotos.md @@ -20,10 +20,10 @@ description: photos.deletePhotos parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/photos_getUserPhotos.md b/old_docs/API_docs_v62/methods/photos_getUserPhotos.md index 4aa96dfa..0f50ee6f 100644 --- a/old_docs/API_docs_v62/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v62/methods/photos_getUserPhotos.md @@ -23,10 +23,10 @@ description: photos.getUserPhotos parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/photos_updateProfilePhoto.md b/old_docs/API_docs_v62/methods/photos_updateProfilePhoto.md index bdca3ef5..13443ab7 100644 --- a/old_docs/API_docs_v62/methods/photos_updateProfilePhoto.md +++ b/old_docs/API_docs_v62/methods/photos_updateProfilePhoto.md @@ -20,10 +20,10 @@ description: photos.updateProfilePhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v62/methods/photos_uploadProfilePhoto.md index 5ebe5bfe..76f4514a 100644 --- a/old_docs/API_docs_v62/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v62/methods/photos_uploadProfilePhoto.md @@ -20,10 +20,10 @@ description: photos.uploadProfilePhoto parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/updates_getChannelDifference.md b/old_docs/API_docs_v62/methods/updates_getChannelDifference.md index 03333e2c..20a16be2 100644 --- a/old_docs/API_docs_v62/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v62/methods/updates_getChannelDifference.md @@ -24,10 +24,10 @@ description: updates.getChannelDifference parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/updates_getDifference.md b/old_docs/API_docs_v62/methods/updates_getDifference.md index bc0e20cc..ae27a7b9 100644 --- a/old_docs/API_docs_v62/methods/updates_getDifference.md +++ b/old_docs/API_docs_v62/methods/updates_getDifference.md @@ -23,10 +23,10 @@ description: updates.getDifference parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/updates_getState.md b/old_docs/API_docs_v62/methods/updates_getState.md index 5612ca79..53fc0c16 100644 --- a/old_docs/API_docs_v62/methods/updates_getState.md +++ b/old_docs/API_docs_v62/methods/updates_getState.md @@ -15,10 +15,10 @@ description: updates.getState parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/upload_getFile.md b/old_docs/API_docs_v62/methods/upload_getFile.md index a2f3d961..ee35140a 100644 --- a/old_docs/API_docs_v62/methods/upload_getFile.md +++ b/old_docs/API_docs_v62/methods/upload_getFile.md @@ -22,10 +22,10 @@ description: upload.getFile parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/upload_saveBigFilePart.md b/old_docs/API_docs_v62/methods/upload_saveBigFilePart.md index 03641055..503d1b5c 100644 --- a/old_docs/API_docs_v62/methods/upload_saveBigFilePart.md +++ b/old_docs/API_docs_v62/methods/upload_saveBigFilePart.md @@ -23,10 +23,10 @@ description: upload.saveBigFilePart parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/upload_saveFilePart.md b/old_docs/API_docs_v62/methods/upload_saveFilePart.md index 192412c8..d7f745aa 100644 --- a/old_docs/API_docs_v62/methods/upload_saveFilePart.md +++ b/old_docs/API_docs_v62/methods/upload_saveFilePart.md @@ -22,10 +22,10 @@ description: upload.saveFilePart parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/users_getFullUser.md b/old_docs/API_docs_v62/methods/users_getFullUser.md index 864ae387..bcba7f3d 100644 --- a/old_docs/API_docs_v62/methods/users_getFullUser.md +++ b/old_docs/API_docs_v62/methods/users_getFullUser.md @@ -20,10 +20,10 @@ description: users.getFullUser parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/old_docs/API_docs_v62/methods/users_getUsers.md b/old_docs/API_docs_v62/methods/users_getUsers.md index 34816478..e03fd2d6 100644 --- a/old_docs/API_docs_v62/methods/users_getUsers.md +++ b/old_docs/API_docs_v62/methods/users_getUsers.md @@ -20,10 +20,10 @@ description: users.getUsers parameters, return type and example ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { +if (isset($token)) { // Login as a bot $this->bot_login($token); } -if (isset($number)) { +if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; $code = ''; diff --git a/src/danog/MadelineProto/DocsBuilder.php b/src/danog/MadelineProto/DocsBuilder.php index 11604333..db571341 100755 --- a/src/danog/MadelineProto/DocsBuilder.php +++ b/src/danog/MadelineProto/DocsBuilder.php @@ -162,9 +162,7 @@ description: '.$this->settings['description'].' $params .= (isset($param['subtype']) ? '['.$ptype.']' : $ptype).', '; $lua_params .= $param['name'].'='; $lua_params .= (isset($param['subtype']) ? '{'.$ptype.'}' : $ptype).', '; - if ($param['name'] === 'reply_markup') { - $hasreplymarkup = true; - } + if ($param['name'] === 'reply_markup') $hasreplymarkup = true; if ($param['name'] === 'entities') { $hasentities = true; $table .= '|parse\_mode| [string](../types/string.md) | Optional | @@ -195,7 +193,7 @@ description: '.$description.' ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { // Login as a normal bot +if (isset($token)) { // Login as a bot $this->bot_login($token); } if (isset($number)) { // Login as a user @@ -220,10 +218,11 @@ Or, if you\'re into Lua: '); if ($hasreplymarkup) { $example .= ' -## Usage of reply_markup: +## Usage of reply_markup You can provide bot API reply_markup objects here. + '; } if ($hasentities) { @@ -403,11 +402,13 @@ description: List of methods $table .= $this->td_descriptions['constructors'][$rconstructor]['params'][$param['name']].'|'; } $table .= PHP_EOL; - if ($param['name'] === 'reply_markup) $hasreplymarkup = true; + $params .= "'".$param['name']."' => "; $params .= (isset($param['subtype']) ? '['.$ptype.']' : $ptype).', '; $lua_params .= $param['name'].'='; $lua_params .= (isset($param['subtype']) ? '{'.$ptype.'}' : $ptype).', '; + if ($param['name'] === 'reply_markup') $hasreplymarkup = true; + } $params = "['_' => '".$rconstructor."', ".$params.']'; $lua_params = "{_='".$rconstructor."', ".$lua_params.'}'; @@ -452,12 +453,13 @@ Or, if you\'re into Lua: '; if ($hasreplymarkup) { $example .= ' -## Usage of reply_markup: +## Usage of reply_markup You can provide bot API reply_markup objects here. -'; +'; + } file_put_contents('constructors/'.$constructor.$layer.'.md', $header.$table.$type.$example); } diff --git a/src/danog/MadelineProto/MTProto.php b/src/danog/MadelineProto/MTProto.php index 3082313b..492cc003 100644 --- a/src/danog/MadelineProto/MTProto.php +++ b/src/danog/MadelineProto/MTProto.php @@ -444,7 +444,7 @@ Slv8kg9qv1m6XHVQY3PnEw+QQtqSIXklHwIDAQAB public function getV() { - return 9; + return 10; } public function get_self() diff --git a/src/danog/MadelineProto/TL/Conversion/BotAPI.php b/src/danog/MadelineProto/TL/Conversion/BotAPI.php index eaf97b6c..7e8daeb1 100644 --- a/src/danog/MadelineProto/TL/Conversion/BotAPI.php +++ b/src/danog/MadelineProto/TL/Conversion/BotAPI.php @@ -287,6 +287,7 @@ trait BotAPI break; case 'documentAttributeAnimated': + $type_name = 'gif'; $res['animated'] = true; break; diff --git a/src/danog/MadelineProto/TL/Conversion/BotAPIFiles.php b/src/danog/MadelineProto/TL/Conversion/BotAPIFiles.php index 67b3ff50..ab4055bc 100644 --- a/src/danog/MadelineProto/TL/Conversion/BotAPIFiles.php +++ b/src/danog/MadelineProto/TL/Conversion/BotAPIFiles.php @@ -134,6 +134,13 @@ trait BotAPIFiles return $res; + case 'bot_gif': + unset($deserialized['_']); + $constructor = array_merge($deserialized, ['_' => 'document', 'mime_type' => '', 'attributes' => [['_' => 'documentAttributeAnimated']]]); + $res['MessageMedia'] = ['_' => 'messageMediaDocument', 'document' => $constructor, 'caption' => '']; + + return $res; + case 'bot_audio': unset($deserialized['_']); $constructor = array_merge($deserialized, ['_' => 'document', 'mime_type' => '', 'attributes' => [['_' => 'documentAttributeAudio', 'voice' => false]]]); diff --git a/src/danog/MadelineProto/TL_botAPI.tl b/src/danog/MadelineProto/TL_botAPI.tl index 19b65011..044e8a5c 100644 --- a/src/danog/MadelineProto/TL_botAPI.tl +++ b/src/danog/MadelineProto/TL_botAPI.tl @@ -5,3 +5,4 @@ bot_video#4 dc_id:int id:long access_hash:long = File; bot_document#5 dc_id:int id:long access_hash:long = File; bot_sticker#8 dc_id:int id:long access_hash:long = File; bot_audio#9 dc_id:int id:long access_hash:long = File; +bot_gif#9 dc_id:int id:long access_hash:long = File; diff --git a/tests/testing.php b/tests/testing.php index e29f45a8..2b196edb 100755 --- a/tests/testing.php +++ b/tests/testing.php @@ -15,6 +15,7 @@ require_once 'vendor/autoload.php'; if (file_exists('web_data.php')) { require_once 'web_data.php'; } + echo 'Deserializing MadelineProto from session.madeline...'.PHP_EOL; $MadelineProto = false; try { @@ -69,7 +70,6 @@ $message = (getenv('TRAVIS_COMMIT') == '') ? 'I iz works always (io laborare sem echo 'Serializing MadelineProto to session.madeline...'.PHP_EOL; echo 'Wrote '.\danog\MadelineProto\Serialization::serialize('session.madeline', $MadelineProto).' bytes'.PHP_EOL; echo 'Size of MadelineProto instance is '.strlen(serialize($MadelineProto)).' bytes'.PHP_EOL; - $call = $MadelineProto->API->request_call(getenv('TEST_SECRET_CHAT')); echo 'Waiting for '.getenv('TEST_SECRET_CHAT').' to accept the call...'.PHP_EOL;