Documentation fixes, added bot_gif file id constructor

This commit is contained in:
Daniil Gentili 2017-04-10 13:49:32 +02:00
parent b97959b6c9
commit d8292e9add
2990 changed files with 6639 additions and 5792 deletions

View File

@ -34,3 +34,9 @@ botInlineMessageMediaAuto={_='botInlineMessageMediaAuto', caption=string, reply_
```
## Usage of reply_markup
You can provide bot API reply_markup objects here.

View File

@ -36,3 +36,9 @@ botInlineMessageMediaContact={_='botInlineMessageMediaContact', phone_number=str
```
## Usage of reply_markup
You can provide bot API reply_markup objects here.

View File

@ -34,3 +34,9 @@ botInlineMessageMediaGeo={_='botInlineMessageMediaGeo', geo=GeoPoint, reply_mark
```
## Usage of reply_markup
You can provide bot API reply_markup objects here.

View File

@ -38,3 +38,9 @@ botInlineMessageMediaVenue={_='botInlineMessageMediaVenue', geo=GeoPoint, title=
```
## Usage of reply_markup
You can provide bot API reply_markup objects here.

View File

@ -36,3 +36,9 @@ botInlineMessageText={_='botInlineMessageText', no_webpage=Bool, message=string,
```
## Usage of reply_markup
You can provide bot API reply_markup objects here.

View File

@ -33,3 +33,9 @@ inputBotInlineMessageGame={_='inputBotInlineMessageGame', reply_markup=ReplyMark
```
## Usage of reply_markup
You can provide bot API reply_markup objects here.

View File

@ -34,3 +34,9 @@ inputBotInlineMessageMediaAuto={_='inputBotInlineMessageMediaAuto', caption=stri
```
## Usage of reply_markup
You can provide bot API reply_markup objects here.

View File

@ -36,3 +36,9 @@ inputBotInlineMessageMediaContact={_='inputBotInlineMessageMediaContact', phone_
```
## Usage of reply_markup
You can provide bot API reply_markup objects here.

View File

@ -34,3 +34,9 @@ inputBotInlineMessageMediaGeo={_='inputBotInlineMessageMediaGeo', geo_point=Inpu
```
## Usage of reply_markup
You can provide bot API reply_markup objects here.

View File

@ -38,3 +38,9 @@ inputBotInlineMessageMediaVenue={_='inputBotInlineMessageMediaVenue', geo_point=
```
## Usage of reply_markup
You can provide bot API reply_markup objects here.

View File

@ -36,3 +36,9 @@ inputBotInlineMessageText={_='inputBotInlineMessageText', no_webpage=Bool, messa
```
## Usage of reply_markup
You can provide bot API reply_markup objects here.

View File

@ -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.

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

View File

@ -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 = '';

Some files were not shown because too many files have changed in this diff Show More