This commit is contained in:
Daniil Gentili 2017-08-18 18:10:30 +02:00
parent 5e5e2e2d7f
commit 116271ca85
445 changed files with 1144 additions and 26020 deletions

View File

@ -13,6 +13,7 @@ If not, see <http://www.gnu.org/licenses/>.
require 'vendor/autoload.php';
$param = 1;
\danog\MadelineProto\Logger::constructor($param);
set_error_handler(['\danog\MadelineProto\Exception', 'ExceptionErrorHandler']);
\danog\MadelineProto\Logger::log(['Copying readme...'], \danog\MadelineProto\Logger::NOTICE);

View File

@ -4,9 +4,6 @@ description: List of constructors
---
# Constructors
[Back to API documentation index](..)
***
<br><br>[$accountDaysTTL](../constructors/accountDaysTTL.md) = \['days' => [int](../types/int.md), \];<a name="accountDaysTTL"></a>
@ -417,25 +414,25 @@ description: List of constructors
<br><br>[$document](../constructors/document.md) = \['id' => [long](../types/long.md), 'access_hash' => [long](../types/long.md), 'date' => [int](../types/int.md), 'mime_type' => [string](../types/string.md), 'size' => [int](../types/int.md), 'thumb' => [PhotoSize](../types/PhotoSize.md), 'dc_id' => [int](../types/int.md), 'version' => [int](../types/int.md), 'attributes' => \[[DocumentAttribute](../types/DocumentAttribute.md)\], \];<a name="document"></a>
***
<br><br>[$documentAttributeAnimated\_23](../constructors/documentAttributeAnimated_23.md) = \[\];<a name="documentAttributeAnimated_23"></a>
<br><br>[$documentAttributeAnimated](../constructors/documentAttributeAnimated.md) = \[\];<a name="documentAttributeAnimated"></a>
***
<br><br>[$documentAttributeAudio\_46](../constructors/documentAttributeAudio_46.md) = \['duration' => [int](../types/int.md), 'title' => [string](../types/string.md), 'performer' => [string](../types/string.md), \];<a name="documentAttributeAudio_46"></a>
***
<br><br>[$documentAttributeFilename\_23](../constructors/documentAttributeFilename_23.md) = \['file_name' => [string](../types/string.md), \];<a name="documentAttributeFilename_23"></a>
<br><br>[$documentAttributeFilename](../constructors/documentAttributeFilename.md) = \['file_name' => [string](../types/string.md), \];<a name="documentAttributeFilename"></a>
***
<br><br>[$documentAttributeHasStickers](../constructors/documentAttributeHasStickers.md) = \[\];<a name="documentAttributeHasStickers"></a>
***
<br><br>[$documentAttributeImageSize\_23](../constructors/documentAttributeImageSize_23.md) = \['w' => [int](../types/int.md), 'h' => [int](../types/int.md), \];<a name="documentAttributeImageSize_23"></a>
<br><br>[$documentAttributeImageSize](../constructors/documentAttributeImageSize.md) = \['w' => [int](../types/int.md), 'h' => [int](../types/int.md), \];<a name="documentAttributeImageSize"></a>
***
<br><br>[$documentAttributeSticker\_55](../constructors/documentAttributeSticker_55.md) = \['alt' => [string](../types/string.md), 'stickerset' => [InputStickerSet](../types/InputStickerSet.md), \];<a name="documentAttributeSticker_55"></a>
***
<br><br>[$documentAttributeVideo\_66](../constructors/documentAttributeVideo_66.md) = \['round_message' => [Bool](../types/Bool.md), 'duration' => [int](../types/int.md), 'w' => [int](../types/int.md), 'h' => [int](../types/int.md), \];<a name="documentAttributeVideo_66"></a>
<br><br>[$documentAttributeVideo](../constructors/documentAttributeVideo.md) = \['round_message' => [Bool](../types/Bool.md), 'duration' => [int](../types/int.md), 'w' => [int](../types/int.md), 'h' => [int](../types/int.md), \];<a name="documentAttributeVideo"></a>
***
<br><br>[$documentEmpty](../constructors/documentEmpty.md) = \['id' => [long](../types/long.md), \];<a name="documentEmpty"></a>
@ -480,10 +477,10 @@ description: List of constructors
<br><br>[$exportedMessageLink](../constructors/exportedMessageLink.md) = \['link' => [string](../types/string.md), \];<a name="exportedMessageLink"></a>
***
<br><br>[$fileLocation\_23](../constructors/fileLocation_23.md) = \['dc_id' => [int](../types/int.md), 'volume_id' => [long](../types/long.md), 'local_id' => [int](../types/int.md), 'secret' => [long](../types/long.md), \];<a name="fileLocation_23"></a>
<br><br>[$fileLocation](../constructors/fileLocation.md) = \['dc_id' => [int](../types/int.md), 'volume_id' => [long](../types/long.md), 'local_id' => [int](../types/int.md), 'secret' => [long](../types/long.md), \];<a name="fileLocation"></a>
***
<br><br>[$fileLocationUnavailable\_23](../constructors/fileLocationUnavailable_23.md) = \['volume_id' => [long](../types/long.md), 'local_id' => [int](../types/int.md), 'secret' => [long](../types/long.md), \];<a name="fileLocationUnavailable_23"></a>
<br><br>[$fileLocationUnavailable](../constructors/fileLocationUnavailable.md) = \['volume_id' => [long](../types/long.md), 'local_id' => [int](../types/int.md), 'secret' => [long](../types/long.md), \];<a name="fileLocationUnavailable"></a>
***
<br><br>[$foundGif](../constructors/foundGif.md) = \['url' => [string](../types/string.md), 'thumb_url' => [string](../types/string.md), 'content_url' => [string](../types/string.md), 'content_type' => [string](../types/string.md), 'w' => [int](../types/int.md), 'h' => [int](../types/int.md), \];<a name="foundGif"></a>
@ -508,7 +505,7 @@ description: List of constructors
***
<br><br>[$help\_appUpdate](../constructors/help_appUpdate.md) = \['id' => [int](../types/int.md), 'critical' => [Bool](../types/Bool.md), 'url' => [string](../types/string.md), 'text' => [string](../types/string.md), \];<a name="help_appUpdate"></a>
[$help\_configSimple](../constructors/help_configSimple.md) = \['date' => [int](../types/int.md), 'expires' => [int](../types/int.md), 'dc_id' => [int](../types/int.md), 'ip_port_list' => \[[ipPort](../types/ipPort.md)\], \];<a name="help_configSimple"></a>
[$help\_configSimple](../constructors/help_configSimple.md) = \['date' => [int](../types/int.md), 'expires' => [int](../types/int.md), 'dc_id' => [int](../types/int.md), 'ip_port_list' => \[[ipPort](../constructors/ipPort.md)\], \];<a name="help_configSimple"></a>
[$help\_inviteText](../constructors/help_inviteText.md) = \['message' => [string](../types/string.md), \];<a name="help_inviteText"></a>
@ -1301,16 +1298,16 @@ description: List of constructors
<br><br>[$photo](../constructors/photo.md) = \['has_stickers' => [Bool](../types/Bool.md), 'id' => [long](../types/long.md), 'access_hash' => [long](../types/long.md), 'date' => [int](../types/int.md), 'sizes' => \[[PhotoSize](../types/PhotoSize.md)\], \];<a name="photo"></a>
***
<br><br>[$photoCachedSize\_23](../constructors/photoCachedSize_23.md) = \['type' => [string](../types/string.md), 'location' => [FileLocation](../types/FileLocation.md), 'w' => [int](../types/int.md), 'h' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \];<a name="photoCachedSize_23"></a>
<br><br>[$photoCachedSize](../constructors/photoCachedSize.md) = \['type' => [string](../types/string.md), 'location' => [FileLocation](../types/FileLocation.md), 'w' => [int](../types/int.md), 'h' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \];<a name="photoCachedSize"></a>
***
<br><br>[$photoEmpty](../constructors/photoEmpty.md) = \['id' => [long](../types/long.md), \];<a name="photoEmpty"></a>
***
<br><br>[$photoSize\_23](../constructors/photoSize_23.md) = \['type' => [string](../types/string.md), 'location' => [FileLocation](../types/FileLocation.md), 'w' => [int](../types/int.md), 'h' => [int](../types/int.md), 'size' => [int](../types/int.md), \];<a name="photoSize_23"></a>
<br><br>[$photoSize](../constructors/photoSize.md) = \['type' => [string](../types/string.md), 'location' => [FileLocation](../types/FileLocation.md), 'w' => [int](../types/int.md), 'h' => [int](../types/int.md), 'size' => [int](../types/int.md), \];<a name="photoSize"></a>
***
<br><br>[$photoSizeEmpty\_23](../constructors/photoSizeEmpty_23.md) = \['type' => [string](../types/string.md), \];<a name="photoSizeEmpty_23"></a>
<br><br>[$photoSizeEmpty](../constructors/photoSizeEmpty.md) = \['type' => [string](../types/string.md), \];<a name="photoSizeEmpty"></a>
***
<br><br>[$photos\_photo](../constructors/photos_photo.md) = \['photo' => [Photo](../types/Photo.md), 'users' => \[[User](../types/User.md)\], \];<a name="photos_photo"></a>
@ -1383,28 +1380,28 @@ description: List of constructors
[$rpc\_error](../constructors/rpc_error.md) = \['error_code' => [int](../types/int.md), 'error_message' => [string](../types/string.md), \];<a name="rpc_error"></a>
***
<br><br>[$sendMessageCancelAction\_17](../constructors/sendMessageCancelAction_17.md) = \[\];<a name="sendMessageCancelAction_17"></a>
<br><br>[$sendMessageCancelAction](../constructors/sendMessageCancelAction.md) = \[\];<a name="sendMessageCancelAction"></a>
***
<br><br>[$sendMessageChooseContactAction\_17](../constructors/sendMessageChooseContactAction_17.md) = \[\];<a name="sendMessageChooseContactAction_17"></a>
<br><br>[$sendMessageChooseContactAction](../constructors/sendMessageChooseContactAction.md) = \[\];<a name="sendMessageChooseContactAction"></a>
***
<br><br>[$sendMessageGamePlayAction](../constructors/sendMessageGamePlayAction.md) = \[\];<a name="sendMessageGamePlayAction"></a>
***
<br><br>[$sendMessageGeoLocationAction\_17](../constructors/sendMessageGeoLocationAction_17.md) = \[\];<a name="sendMessageGeoLocationAction_17"></a>
<br><br>[$sendMessageGeoLocationAction](../constructors/sendMessageGeoLocationAction.md) = \[\];<a name="sendMessageGeoLocationAction"></a>
***
<br><br>[$sendMessageRecordAudioAction\_17](../constructors/sendMessageRecordAudioAction_17.md) = \[\];<a name="sendMessageRecordAudioAction_17"></a>
<br><br>[$sendMessageRecordAudioAction](../constructors/sendMessageRecordAudioAction.md) = \[\];<a name="sendMessageRecordAudioAction"></a>
***
<br><br>[$sendMessageRecordRoundAction](../constructors/sendMessageRecordRoundAction.md) = \[\];<a name="sendMessageRecordRoundAction"></a>
***
<br><br>[$sendMessageRecordVideoAction\_17](../constructors/sendMessageRecordVideoAction_17.md) = \[\];<a name="sendMessageRecordVideoAction_17"></a>
<br><br>[$sendMessageRecordVideoAction](../constructors/sendMessageRecordVideoAction.md) = \[\];<a name="sendMessageRecordVideoAction"></a>
***
<br><br>[$sendMessageTypingAction\_17](../constructors/sendMessageTypingAction_17.md) = \[\];<a name="sendMessageTypingAction_17"></a>
<br><br>[$sendMessageTypingAction](../constructors/sendMessageTypingAction.md) = \[\];<a name="sendMessageTypingAction"></a>
***
<br><br>[$sendMessageUploadAudioAction\_17](../constructors/sendMessageUploadAudioAction_17.md) = \[\];<a name="sendMessageUploadAudioAction_17"></a>

View File

@ -6,71 +6,8 @@ description: auth.importBotAuthorization parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the bot_login method instead (see https://daniil.it/MadelineProto for more info)*
**You cannot use this method directly, use the bot_login method instead (see https://daniil.it/MadelineProto for more info)**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|api\_id|[int](../types/int.md) | Yes|
|api\_hash|[string](../types/string.md) | Yes|
|bot\_auth\_token|[string](../types/string.md) | Yes|
### Return type: [auth\_Authorization](../types/auth_Authorization.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$auth_Authorization = $MadelineProto->auth->importBotAuthorization(['api_id' => int, 'api_hash' => 'string', 'bot_auth_token' => 'string', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - auth.importBotAuthorization
* params - `{"api_id": int, "api_hash": "string", "bot_auth_token": "string", }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.importBotAuthorization`
Parameters:
api_id - Json encoded int
api_hash - Json encoded string
bot_auth_token - Json encoded string
Or, if you're into Lua:
```
auth_Authorization = auth.importBotAuthorization({api_id=int, api_hash='string', bot_auth_token='string', })
```

View File

@ -6,61 +6,8 @@ description: auth.logOut parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the logout method instead (see https://daniil.it/MadelineProto for more info)*
**You cannot use this method directly, use the logout method instead (see https://daniil.it/MadelineProto for more info)**
### Return type: [Bool](../types/Bool.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$Bool = $MadelineProto->auth->logOut();
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - auth.logOut
* params - `{}`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.logOut`
Parameters:
Or, if you're into Lua:
```
Bool = auth.logOut({})
```

View File

@ -6,75 +6,8 @@ description: auth.sendCode parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the phone_login method instead (see https://daniil.it/MadelineProto for more info)*
**You cannot use this method directly, use the phone_login method instead (see https://daniil.it/MadelineProto for more info)**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|allow\_flashcall|[Bool](../types/Bool.md) | Optional|
|phone\_number|[string](../types/string.md) | Yes|
|current\_number|[Bool](../types/Bool.md) | Optional|
|api\_id|[int](../types/int.md) | Yes|
|api\_hash|[string](../types/string.md) | Yes|
### Return type: [auth\_SentCode](../types/auth_SentCode.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$auth_SentCode = $MadelineProto->auth->sendCode(['allow_flashcall' => Bool, 'phone_number' => 'string', 'current_number' => Bool, 'api_id' => int, 'api_hash' => 'string', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - auth.sendCode
* params - `{"allow_flashcall": Bool, "phone_number": "string", "current_number": Bool, "api_id": int, "api_hash": "string", }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.sendCode`
Parameters:
allow_flashcall - Json encoded Bool
phone_number - Json encoded string
current_number - Json encoded Bool
api_id - Json encoded int
api_hash - Json encoded string
Or, if you're into Lua:
```
auth_SentCode = auth.sendCode({allow_flashcall=Bool, phone_number='string', current_number=Bool, api_id=int, api_hash='string', })
```

View File

@ -6,71 +6,8 @@ description: auth.signIn parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the complete_phone_login method instead (see https://daniil.it/MadelineProto for more info)*
**You cannot use this method directly, use the complete_phone_login method instead (see https://daniil.it/MadelineProto for more info)**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|phone\_number|[string](../types/string.md) | Yes|
|phone\_code\_hash|[string](../types/string.md) | Yes|
|phone\_code|[string](../types/string.md) | Yes|
### Return type: [auth\_Authorization](../types/auth_Authorization.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$auth_Authorization = $MadelineProto->auth->signIn(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - auth.signIn
* params - `{"phone_number": "string", "phone_code_hash": "string", "phone_code": "string", }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.signIn`
Parameters:
phone_number - Json encoded string
phone_code_hash - Json encoded string
phone_code - Json encoded string
Or, if you're into Lua:
```
auth_Authorization = auth.signIn({phone_number='string', phone_code_hash='string', phone_code='string', })
```

View File

@ -6,75 +6,8 @@ description: auth.signUp parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the complete_signup method instead (see https://daniil.it/MadelineProto for more info)*
**You cannot use this method directly, use the complete_signup method instead (see https://daniil.it/MadelineProto for more info)**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|phone\_number|[string](../types/string.md) | Yes|
|phone\_code\_hash|[string](../types/string.md) | Yes|
|phone\_code|[string](../types/string.md) | Yes|
|first\_name|[string](../types/string.md) | Yes|
|last\_name|[string](../types/string.md) | Yes|
### Return type: [auth\_Authorization](../types/auth_Authorization.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$auth_Authorization = $MadelineProto->auth->signUp(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', 'first_name' => 'string', 'last_name' => 'string', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - auth.signUp
* params - `{"phone_number": "string", "phone_code_hash": "string", "phone_code": "string", "first_name": "string", "last_name": "string", }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.signUp`
Parameters:
phone_number - Json encoded string
phone_code_hash - Json encoded string
phone_code - Json encoded string
first_name - Json encoded string
last_name - Json encoded string
Or, if you're into Lua:
```
auth_Authorization = auth.signUp({phone_number='string', phone_code_hash='string', phone_code='string', first_name='string', last_name='string', })
```

View File

@ -6,67 +6,8 @@ description: channels.getFullChannel parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://daniil.it/MadelineProto for more info)*
**You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://daniil.it/MadelineProto for more info)**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|channel|[InputChannel](../types/InputChannel.md) | Yes|
### Return type: [messages\_ChatFull](../types/messages_ChatFull.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$messages_ChatFull = $MadelineProto->channels->getFullChannel(['channel' => InputChannel, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - channels.getFullChannel
* params - `{"channel": InputChannel, }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/channels.getFullChannel`
Parameters:
channel - Json encoded InputChannel
Or, if you're into Lua:
```
messages_ChatFull = channels.getFullChannel({channel=InputChannel, })
```

View File

@ -6,73 +6,8 @@ description: channels.getParticipants parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://daniil.it/MadelineProto for more info)*
**You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://daniil.it/MadelineProto for more info)**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|channel|[InputChannel](../types/InputChannel.md) | Yes|
|filter|[ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md) | Yes|
|offset|[int](../types/int.md) | Yes|
|limit|[int](../types/int.md) | Yes|
### Return type: [channels\_ChannelParticipants](../types/channels_ChannelParticipants.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$channels_ChannelParticipants = $MadelineProto->channels->getParticipants(['channel' => InputChannel, 'filter' => ChannelParticipantsFilter, 'offset' => int, 'limit' => int, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - channels.getParticipants
* params - `{"channel": InputChannel, "filter": ChannelParticipantsFilter, "offset": int, "limit": int, }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/channels.getParticipants`
Parameters:
channel - Json encoded InputChannel
filter - Json encoded ChannelParticipantsFilter
offset - Json encoded int
limit - Json encoded int
Or, if you're into Lua:
```
channels_ChannelParticipants = channels.getParticipants({channel=InputChannel, filter=ChannelParticipantsFilter, offset=int, limit=int, })
```

View File

@ -6,67 +6,8 @@ description: contacts.resolveUsername parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://daniil.it/MadelineProto for more info)*
**You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://daniil.it/MadelineProto for more info)**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|username|[string](../types/string.md) | Yes|
### Return type: [contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$contacts_ResolvedPeer = $MadelineProto->contacts->resolveUsername(['username' => 'string', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - contacts.resolveUsername
* params - `{"username": "string", }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/contacts.resolveUsername`
Parameters:
username - Json encoded string
Or, if you're into Lua:
```
contacts_ResolvedPeer = contacts.resolveUsername({username='string', })
```

View File

@ -6,71 +6,8 @@ description: messages.acceptEncryption parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats*
**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes|
|g\_b|[bytes](../types/bytes.md) | Yes|
|key\_fingerprint|[long](../types/long.md) | Yes|
### Return type: [EncryptedChat](../types/EncryptedChat.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$EncryptedChat = $MadelineProto->messages->acceptEncryption(['peer' => InputEncryptedChat, 'g_b' => 'bytes', 'key_fingerprint' => long, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - messages.acceptEncryption
* params - `{"peer": InputEncryptedChat, "g_b": "bytes", "key_fingerprint": long, }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.acceptEncryption`
Parameters:
peer - Json encoded InputEncryptedChat
g_b - Json encoded bytes
key_fingerprint - Json encoded long
Or, if you're into Lua:
```
EncryptedChat = messages.acceptEncryption({peer=InputEncryptedChat, g_b='bytes', key_fingerprint=long, })
```

View File

@ -6,67 +6,8 @@ description: messages.discardEncryption parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats*
**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|chat\_id|[int](../types/int.md) | Yes|
### Return type: [Bool](../types/Bool.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$Bool = $MadelineProto->messages->discardEncryption(['chat_id' => int, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - messages.discardEncryption
* params - `{"chat_id": int, }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.discardEncryption`
Parameters:
chat_id - Json encoded int
Or, if you're into Lua:
```
Bool = messages.discardEncryption({chat_id=int, })
```

View File

@ -6,67 +6,8 @@ description: messages.getFullChat parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://daniil.it/MadelineProto for more info)*
**You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://daniil.it/MadelineProto for more info)**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [messages\_ChatFull](../types/messages_ChatFull.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$messages_ChatFull = $MadelineProto->messages->getFullChat(['chat_id' => InputPeer, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - messages.getFullChat
* params - `{"chat_id": InputPeer, }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getFullChat`
Parameters:
chat_id - Json encoded InputPeer
Or, if you're into Lua:
```
messages_ChatFull = messages.getFullChat({chat_id=InputPeer, })
```

View File

@ -6,69 +6,8 @@ description: messages.requestEncryption parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats*
**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
|g\_a|[bytes](../types/bytes.md) | Yes|
### Return type: [EncryptedChat](../types/EncryptedChat.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$EncryptedChat = $MadelineProto->messages->requestEncryption(['user_id' => InputUser, 'g_a' => 'bytes', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - messages.requestEncryption
* params - `{"user_id": InputUser, "g_a": "bytes", }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.requestEncryption`
Parameters:
user_id - Json encoded InputUser
g_a - Json encoded bytes
Or, if you're into Lua:
```
EncryptedChat = messages.requestEncryption({user_id=InputUser, g_a='bytes', })
```

View File

@ -6,71 +6,8 @@ description: phone.acceptCall parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, see https://daniil.it/MadelineProto#calls for more info on handling calls*
**You cannot use this method directly, see https://daniil.it/MadelineProto#calls for more info on handling calls**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|peer|[InputPhoneCall](../types/InputPhoneCall.md) | Yes|
|g\_b|[bytes](../types/bytes.md) | Yes|
|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Yes|
### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$phone_PhoneCall = $MadelineProto->phone->acceptCall(['peer' => InputPhoneCall, 'g_b' => 'bytes', 'protocol' => PhoneCallProtocol, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - phone.acceptCall
* params - `{"peer": InputPhoneCall, "g_b": "bytes", "protocol": PhoneCallProtocol, }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/phone.acceptCall`
Parameters:
peer - Json encoded InputPhoneCall
g_b - Json encoded bytes
protocol - Json encoded PhoneCallProtocol
Or, if you're into Lua:
```
phone_PhoneCall = phone.acceptCall({peer=InputPhoneCall, g_b='bytes', protocol=PhoneCallProtocol, })
```

View File

@ -6,73 +6,8 @@ description: phone.confirmCall parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, see https://daniil.it/MadelineProto#calls for more info on handling calls*
**You cannot use this method directly, see https://daniil.it/MadelineProto#calls for more info on handling calls**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|peer|[InputPhoneCall](../types/InputPhoneCall.md) | Yes|
|g\_a|[bytes](../types/bytes.md) | Yes|
|key\_fingerprint|[long](../types/long.md) | Yes|
|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Yes|
### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$phone_PhoneCall = $MadelineProto->phone->confirmCall(['peer' => InputPhoneCall, 'g_a' => 'bytes', 'key_fingerprint' => long, 'protocol' => PhoneCallProtocol, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - phone.confirmCall
* params - `{"peer": InputPhoneCall, "g_a": "bytes", "key_fingerprint": long, "protocol": PhoneCallProtocol, }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/phone.confirmCall`
Parameters:
peer - Json encoded InputPhoneCall
g_a - Json encoded bytes
key_fingerprint - Json encoded long
protocol - Json encoded PhoneCallProtocol
Or, if you're into Lua:
```
phone_PhoneCall = phone.confirmCall({peer=InputPhoneCall, g_a='bytes', key_fingerprint=long, protocol=PhoneCallProtocol, })
```

View File

@ -6,73 +6,8 @@ description: phone.discardCall parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, see https://daniil.it/MadelineProto#calls for more info on handling calls*
**You cannot use this method directly, see https://daniil.it/MadelineProto#calls for more info on handling calls**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|peer|[InputPhoneCall](../types/InputPhoneCall.md) | Yes|
|duration|[int](../types/int.md) | Yes|
|reason|[PhoneCallDiscardReason](../types/PhoneCallDiscardReason.md) | Yes|
|connection\_id|[long](../types/long.md) | Yes|
### Return type: [Updates](../types/Updates.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$Updates = $MadelineProto->phone->discardCall(['peer' => InputPhoneCall, 'duration' => int, 'reason' => PhoneCallDiscardReason, 'connection_id' => long, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - phone.discardCall
* params - `{"peer": InputPhoneCall, "duration": int, "reason": PhoneCallDiscardReason, "connection_id": long, }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/phone.discardCall`
Parameters:
peer - Json encoded InputPhoneCall
duration - Json encoded int
reason - Json encoded PhoneCallDiscardReason
connection_id - Json encoded long
Or, if you're into Lua:
```
Updates = phone.discardCall({peer=InputPhoneCall, duration=int, reason=PhoneCallDiscardReason, connection_id=long, })
```

View File

@ -6,71 +6,8 @@ description: phone.requestCall parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, see https://daniil.it/MadelineProto#calls for more info on handling calls*
**You cannot use this method directly, see https://daniil.it/MadelineProto#calls for more info on handling calls**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
|g\_a\_hash|[bytes](../types/bytes.md) | Yes|
|protocol|[PhoneCallProtocol](../types/PhoneCallProtocol.md) | Yes|
### Return type: [phone\_PhoneCall](../types/phone_PhoneCall.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$phone_PhoneCall = $MadelineProto->phone->requestCall(['user_id' => InputUser, 'g_a_hash' => 'bytes', 'protocol' => PhoneCallProtocol, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - phone.requestCall
* params - `{"user_id": InputUser, "g_a_hash": "bytes", "protocol": PhoneCallProtocol, }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/phone.requestCall`
Parameters:
user_id - Json encoded InputUser
g_a_hash - Json encoded bytes
protocol - Json encoded PhoneCallProtocol
Or, if you're into Lua:
```
phone_PhoneCall = phone.requestCall({user_id=InputUser, g_a_hash='bytes', protocol=PhoneCallProtocol, })
```

View File

@ -6,75 +6,8 @@ description: updates.getChannelDifference parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates*
**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|force|[Bool](../types/Bool.md) | Optional|
|channel|[InputChannel](../types/InputChannel.md) | Yes|
|filter|[ChannelMessagesFilter](../types/ChannelMessagesFilter.md) | Yes|
|pts|[int](../types/int.md) | Yes|
|limit|[int](../types/int.md) | Yes|
### Return type: [updates\_ChannelDifference](../types/updates_ChannelDifference.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$updates_ChannelDifference = $MadelineProto->updates->getChannelDifference(['force' => Bool, 'channel' => InputChannel, 'filter' => ChannelMessagesFilter, 'pts' => int, 'limit' => int, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - updates.getChannelDifference
* params - `{"force": Bool, "channel": InputChannel, "filter": ChannelMessagesFilter, "pts": int, "limit": int, }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/updates.getChannelDifference`
Parameters:
force - Json encoded Bool
channel - Json encoded InputChannel
filter - Json encoded ChannelMessagesFilter
pts - Json encoded int
limit - Json encoded int
Or, if you're into Lua:
```
updates_ChannelDifference = updates.getChannelDifference({force=Bool, channel=InputChannel, filter=ChannelMessagesFilter, pts=int, limit=int, })
```

View File

@ -6,73 +6,8 @@ description: updates.getDifference parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates*
**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|pts|[int](../types/int.md) | Yes|
|pts\_total\_limit|[int](../types/int.md) | Optional|
|date|[int](../types/int.md) | Yes|
|qts|[int](../types/int.md) | Yes|
### Return type: [updates\_Difference](../types/updates_Difference.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$updates_Difference = $MadelineProto->updates->getDifference(['pts' => int, 'pts_total_limit' => int, 'date' => int, 'qts' => int, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - updates.getDifference
* params - `{"pts": int, "pts_total_limit": int, "date": int, "qts": int, }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/updates.getDifference`
Parameters:
pts - Json encoded int
pts_total_limit - Json encoded int
date - Json encoded int
qts - Json encoded int
Or, if you're into Lua:
```
updates_Difference = updates.getDifference({pts=int, pts_total_limit=int, date=int, qts=int, })
```

View File

@ -6,61 +6,8 @@ description: updates.getState parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates*
**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates**
### Return type: [updates\_State](../types/updates_State.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$updates_State = $MadelineProto->updates->getState();
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - updates.getState
* params - `{}`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/updates.getState`
Parameters:
Or, if you're into Lua:
```
updates_State = updates.getState({})
```

View File

@ -6,71 +6,8 @@ description: upload.getCdnFile parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://daniil.it/MadelineProto for more info*
**You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://daniil.it/MadelineProto for more info**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|file\_token|[bytes](../types/bytes.md) | Yes|
|offset|[int](../types/int.md) | Yes|
|limit|[int](../types/int.md) | Yes|
### Return type: [upload\_CdnFile](../types/upload_CdnFile.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$upload_CdnFile = $MadelineProto->upload->getCdnFile(['file_token' => 'bytes', 'offset' => int, 'limit' => int, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - upload.getCdnFile
* params - `{"file_token": "bytes", "offset": int, "limit": int, }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/upload.getCdnFile`
Parameters:
file_token - Json encoded bytes
offset - Json encoded int
limit - Json encoded int
Or, if you're into Lua:
```
upload_CdnFile = upload.getCdnFile({file_token='bytes', offset=int, limit=int, })
```

View File

@ -6,69 +6,8 @@ description: upload.getCdnFileHashes parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://daniil.it/MadelineProto for more info*
**You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://daniil.it/MadelineProto for more info**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|file\_token|[bytes](../types/bytes.md) | Yes|
|offset|[int](../types/int.md) | Yes|
### Return type: [Vector\_of\_CdnFileHash](../types/CdnFileHash.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$Vector_of_CdnFileHash = $MadelineProto->upload->getCdnFileHashes(['file_token' => 'bytes', 'offset' => int, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - upload.getCdnFileHashes
* params - `{"file_token": "bytes", "offset": int, }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/upload.getCdnFileHashes`
Parameters:
file_token - Json encoded bytes
offset - Json encoded int
Or, if you're into Lua:
```
Vector_of_CdnFileHash = upload.getCdnFileHashes({file_token='bytes', offset=int, })
```

View File

@ -6,71 +6,8 @@ description: upload.getFile parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://daniil.it/MadelineProto for more info*
**You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://daniil.it/MadelineProto for more info**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|location|[InputFileLocation](../types/InputFileLocation.md) | Yes|
|offset|[int](../types/int.md) | Yes|
|limit|[int](../types/int.md) | Yes|
### Return type: [upload\_File](../types/upload_File.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$upload_File = $MadelineProto->upload->getFile(['location' => InputFileLocation, 'offset' => int, 'limit' => int, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - upload.getFile
* params - `{"location": InputFileLocation, "offset": int, "limit": int, }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/upload.getFile`
Parameters:
location - Json encoded InputFileLocation
offset - Json encoded int
limit - Json encoded int
Or, if you're into Lua:
```
upload_File = upload.getFile({location=InputFileLocation, offset=int, limit=int, })
```

View File

@ -6,69 +6,8 @@ description: upload.reuploadCdnFile parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://daniil.it/MadelineProto for more info*
**You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://daniil.it/MadelineProto for more info**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|file\_token|[bytes](../types/bytes.md) | Yes|
|request\_token|[bytes](../types/bytes.md) | Yes|
### Return type: [Vector\_of\_CdnFileHash](../types/CdnFileHash.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$Vector_of_CdnFileHash = $MadelineProto->upload->reuploadCdnFile(['file_token' => 'bytes', 'request_token' => 'bytes', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - upload.reuploadCdnFile
* params - `{"file_token": "bytes", "request_token": "bytes", }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/upload.reuploadCdnFile`
Parameters:
file_token - Json encoded bytes
request_token - Json encoded bytes
Or, if you're into Lua:
```
Vector_of_CdnFileHash = upload.reuploadCdnFile({file_token='bytes', request_token='bytes', })
```

View File

@ -6,73 +6,8 @@ description: upload.saveBigFilePart parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://daniil.it/MadelineProto for more info*
**You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://daniil.it/MadelineProto for more info**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|file\_id|[long](../types/long.md) | Yes|
|file\_part|[int](../types/int.md) | Yes|
|file\_total\_parts|[int](../types/int.md) | Yes|
|bytes|[bytes](../types/bytes.md) | Yes|
### Return type: [Bool](../types/Bool.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$Bool = $MadelineProto->upload->saveBigFilePart(['file_id' => long, 'file_part' => int, 'file_total_parts' => int, 'bytes' => 'bytes', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - upload.saveBigFilePart
* params - `{"file_id": long, "file_part": int, "file_total_parts": int, "bytes": "bytes", }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/upload.saveBigFilePart`
Parameters:
file_id - Json encoded long
file_part - Json encoded int
file_total_parts - Json encoded int
bytes - Json encoded bytes
Or, if you're into Lua:
```
Bool = upload.saveBigFilePart({file_id=long, file_part=int, file_total_parts=int, bytes='bytes', })
```

View File

@ -6,71 +6,8 @@ description: upload.saveFilePart parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://daniil.it/MadelineProto for more info*
**You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://daniil.it/MadelineProto for more info**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|file\_id|[long](../types/long.md) | Yes|
|file\_part|[int](../types/int.md) | Yes|
|bytes|[bytes](../types/bytes.md) | Yes|
### Return type: [Bool](../types/Bool.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$Bool = $MadelineProto->upload->saveFilePart(['file_id' => long, 'file_part' => int, 'bytes' => 'bytes', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - upload.saveFilePart
* params - `{"file_id": long, "file_part": int, "bytes": "bytes", }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/upload.saveFilePart`
Parameters:
file_id - Json encoded long
file_part - Json encoded int
bytes - Json encoded bytes
Or, if you're into Lua:
```
Bool = upload.saveFilePart({file_id=long, file_part=int, bytes='bytes', })
```

View File

@ -6,67 +6,8 @@ description: users.getFullUser parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://daniil.it/MadelineProto for more info)*
**You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://daniil.it/MadelineProto for more info)**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|id|[InputUser](../types/InputUser.md) | Yes|
### Return type: [UserFull](../types/UserFull.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$UserFull = $MadelineProto->users->getFullUser(['id' => InputUser, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - users.getFullUser
* params - `{"id": InputUser, }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/users.getFullUser`
Parameters:
id - Json encoded InputUser
Or, if you're into Lua:
```
UserFull = users.getFullUser({id=InputUser, })
```

View File

@ -9,37 +9,37 @@ description: constructors and methods of type DocumentAttribute
### Possible values (constructors):
[documentAttributeImageSize](../constructors/documentAttributeImageSize.md)
[documentAttributeAnimated](../constructors/documentAttributeAnimated.md)
[documentAttributeSticker](../constructors/documentAttributeSticker.md)
[documentAttributeVideo](../constructors/documentAttributeVideo.md)
[documentAttributeAudio](../constructors/documentAttributeAudio.md)
[documentAttributeFilename](../constructors/documentAttributeFilename.md)
[documentAttributeHasStickers](../constructors/documentAttributeHasStickers.md)
[documentAttributeImageSize\_23](../constructors/documentAttributeImageSize_23.md)
[documentAttributeAnimated\_23](../constructors/documentAttributeAnimated_23.md)
[documentAttributeSticker](../constructors/documentAttributeSticker.md)
[documentAttributeVideo\_66](../constructors/documentAttributeVideo_66.md)
[documentAttributeAudio](../constructors/documentAttributeAudio.md)
[documentAttributeFilename\_23](../constructors/documentAttributeFilename_23.md)
[documentAttributeHasStickers](../constructors/documentAttributeHasStickers.md)
[documentAttributeImageSize](../constructors/documentAttributeImageSize.md)
[documentAttributeAnimated](../constructors/documentAttributeAnimated.md)
[documentAttributeSticker\_23](../constructors/documentAttributeSticker_23.md)
[documentAttributeVideo\_23](../constructors/documentAttributeVideo_23.md)
[documentAttributeAudio\_23](../constructors/documentAttributeAudio_23.md)
[documentAttributeFilename\_23](../constructors/documentAttributeFilename_23.md)
[documentAttributeFilename](../constructors/documentAttributeFilename.md)
[documentAttributeAudio\_46](../constructors/documentAttributeAudio_46.md)
[documentAttributeSticker\_55](../constructors/documentAttributeSticker_55.md)
[documentAttributeVideo\_66](../constructors/documentAttributeVideo_66.md)
[documentAttributeVideo](../constructors/documentAttributeVideo.md)

View File

@ -9,14 +9,14 @@ description: constructors and methods of type FileLocation
### Possible values (constructors):
[fileLocationUnavailable](../constructors/fileLocationUnavailable.md)
[fileLocation](../constructors/fileLocation.md)
[fileLocationUnavailable\_23](../constructors/fileLocationUnavailable_23.md)
[fileLocation\_23](../constructors/fileLocation_23.md)
[fileLocationUnavailable](../constructors/fileLocationUnavailable.md)
[fileLocation](../constructors/fileLocation.md)
### Methods that return an object of this type (methods):

View File

@ -146,7 +146,6 @@ The audio configuration is an array structured in the following way:
* `playOnHold(array $files)` - Array of audio files encoded in PCM, with the audio input configuration to loop on hold (when the files given with play/then have finished playing). If not called, no data will be played, returns `$this`
* `isPlaying()` - Returns true if MadelineProto is still playing the files given with play/then, false if the hold files (or nothing) is being played
* `setMicMute(bool $mute)` - Stops/resumes playing files/hold files, returns `$this`
* `setBitrate(int $bitrate)` - Sets maximum outgoing bitrate, and increases the bitrate of the call to the maximum outgoing bitrate (high values increase the quality of the song), returns `$this`
* `setOutputFile(string $outputfile)` - Writes incoming audio data to file encoded in PCM, with the audio output configuration, returns `$this`
* `unsetOutputFile()` - Stops writing audio data to previously set file, returns `$this`

View File

@ -9,18 +9,18 @@ description: constructors and methods of type PhotoSize
### Possible values (constructors):
[photoSizeEmpty](../constructors/photoSizeEmpty.md)
[photoSize](../constructors/photoSize.md)
[photoCachedSize](../constructors/photoCachedSize.md)
[photoSizeEmpty\_23](../constructors/photoSizeEmpty_23.md)
[photoSize\_23](../constructors/photoSize_23.md)
[photoCachedSize\_23](../constructors/photoCachedSize_23.md)
[photoSizeEmpty](../constructors/photoSizeEmpty.md)
[photoSize](../constructors/photoSize.md)
[photoCachedSize](../constructors/photoCachedSize.md)
### Methods that return an object of this type (methods):

View File

@ -11,15 +11,15 @@ Notifies about activity in chat
### Possible values (constructors):
[sendMessageTypingAction](../constructors/sendMessageTypingAction.md)
[sendMessageTypingAction\_17](../constructors/sendMessageTypingAction_17.md)
[sendMessageCancelAction](../constructors/sendMessageCancelAction.md)
[sendMessageCancelAction\_17](../constructors/sendMessageCancelAction_17.md)
[sendMessageRecordVideoAction](../constructors/sendMessageRecordVideoAction.md)
[sendMessageRecordVideoAction\_17](../constructors/sendMessageRecordVideoAction_17.md)
[sendMessageUploadVideoAction](../constructors/sendMessageUploadVideoAction.md)
[sendMessageRecordAudioAction](../constructors/sendMessageRecordAudioAction.md)
[sendMessageRecordAudioAction\_17](../constructors/sendMessageRecordAudioAction_17.md)
[sendMessageUploadAudioAction](../constructors/sendMessageUploadAudioAction.md)
@ -27,9 +27,9 @@ Notifies about activity in chat
[sendMessageUploadDocumentAction](../constructors/sendMessageUploadDocumentAction.md)
[sendMessageGeoLocationAction](../constructors/sendMessageGeoLocationAction.md)
[sendMessageGeoLocationAction\_17](../constructors/sendMessageGeoLocationAction_17.md)
[sendMessageChooseContactAction](../constructors/sendMessageChooseContactAction.md)
[sendMessageChooseContactAction\_17](../constructors/sendMessageChooseContactAction_17.md)
[sendMessageGamePlayAction](../constructors/sendMessageGamePlayAction.md)
@ -37,15 +37,15 @@ Notifies about activity in chat
[sendMessageUploadRoundAction](../constructors/sendMessageUploadRoundAction.md)
[sendMessageTypingAction\_17](../constructors/sendMessageTypingAction_17.md)
[sendMessageTypingAction](../constructors/sendMessageTypingAction.md)
[sendMessageCancelAction\_17](../constructors/sendMessageCancelAction_17.md)
[sendMessageCancelAction](../constructors/sendMessageCancelAction.md)
[sendMessageRecordVideoAction\_17](../constructors/sendMessageRecordVideoAction_17.md)
[sendMessageRecordVideoAction](../constructors/sendMessageRecordVideoAction.md)
[sendMessageUploadVideoAction\_17](../constructors/sendMessageUploadVideoAction_17.md)
[sendMessageRecordAudioAction\_17](../constructors/sendMessageRecordAudioAction_17.md)
[sendMessageRecordAudioAction](../constructors/sendMessageRecordAudioAction.md)
[sendMessageUploadAudioAction\_17](../constructors/sendMessageUploadAudioAction_17.md)
@ -53,9 +53,9 @@ Notifies about activity in chat
[sendMessageUploadDocumentAction\_17](../constructors/sendMessageUploadDocumentAction_17.md)
[sendMessageGeoLocationAction\_17](../constructors/sendMessageGeoLocationAction_17.md)
[sendMessageGeoLocationAction](../constructors/sendMessageGeoLocationAction.md)
[sendMessageChooseContactAction\_17](../constructors/sendMessageChooseContactAction_17.md)
[sendMessageChooseContactAction](../constructors/sendMessageChooseContactAction.md)

View File

@ -4,9 +4,6 @@ description: List of constructors
---
# Constructors
[Back to API documentation index](..)
***
<br><br>[$MTmessage](../constructors/MTmessage.md) = \['msg_id' => [long](../types/long.md), 'seqno' => [int](../types/int.md), 'bytes' => [int](../types/int.md), 'body' => [Object](../types/Object.md), \];<a name="MTmessage"></a>

View File

@ -4,14 +4,11 @@ description: List of constructors
---
# Constructors
[Back to API documentation index](..)
***
<br><br>[$accountTtl](../constructors/accountTtl.md) = \['days' => [int](../types/int.md), \];<a name="accountTtl"></a>
***
<br><br>[$animation](../constructors/animation.md) = \['width' => [int](../types/int.md), 'height' => [int](../types/int.md), 'file_name' => [string](../types/string.md), 'mime_type' => [string](../types/string.md), 'thumb' => [photoSize](../types/photoSize.md), 'animation' => [file](../types/file.md), \];<a name="animation"></a>
<br><br>[$animation](../constructors/animation.md) = \['width' => [int](../types/int.md), 'height' => [int](../types/int.md), 'file_name' => [string](../types/string.md), 'mime_type' => [string](../types/string.md), 'thumb' => [photoSize](../constructors/photoSize.md), 'animation' => [file](../constructors/file.md), \];<a name="animation"></a>
***
<br><br>[$animations](../constructors/animations.md) = \['animations' => \[[animation](../constructors/animation.md)\], \];<a name="animations"></a>
@ -20,7 +17,7 @@ description: List of constructors
<br><br>[$apnsDeviceToken](../constructors/apnsDeviceToken.md) = \['token' => [string](../types/string.md), \];<a name="apnsDeviceToken"></a>
***
<br><br>[$audio](../constructors/audio.md) = \['duration' => [int](../types/int.md), 'title' => [string](../types/string.md), 'performer' => [string](../types/string.md), 'file_name' => [string](../types/string.md), 'mime_type' => [string](../types/string.md), 'album_cover_thumb' => [photoSize](../types/photoSize.md), 'audio' => [file](../types/file.md), \];<a name="audio"></a>
<br><br>[$audio](../constructors/audio.md) = \['duration' => [int](../types/int.md), 'title' => [string](../types/string.md), 'performer' => [string](../types/string.md), 'file_name' => [string](../types/string.md), 'mime_type' => [string](../types/string.md), 'album_cover_thumb' => [photoSize](../constructors/photoSize.md), 'audio' => [file](../constructors/file.md), \];<a name="audio"></a>
***
<br><br>[$authCodeTypeCall](../constructors/authCodeTypeCall.md) = \['length' => [int](../types/int.md), \];<a name="authCodeTypeCall"></a>
@ -71,10 +68,10 @@ description: List of constructors
<br><br>[$channel](../constructors/channel.md) = \['id' => [int](../types/int.md), 'username' => [string](../types/string.md), 'date' => [int](../types/int.md), 'status' => [ChatMemberStatus](../types/ChatMemberStatus.md), 'anyone_can_invite' => [Bool](../types/Bool.md), 'sign_messages' => [Bool](../types/Bool.md), 'is_supergroup' => [Bool](../types/Bool.md), 'is_verified' => [Bool](../types/Bool.md), 'restriction_reason' => [string](../types/string.md), \];<a name="channel"></a>
***
<br><br>[$channelChatInfo](../constructors/channelChatInfo.md) = \['channel' => [channel](../types/channel.md), \];<a name="channelChatInfo"></a>
<br><br>[$channelChatInfo](../constructors/channelChatInfo.md) = \['channel' => [channel](../constructors/channel.md), \];<a name="channelChatInfo"></a>
***
<br><br>[$channelFull](../constructors/channelFull.md) = \['channel' => [channel](../types/channel.md), 'about' => [string](../types/string.md), 'member_count' => [int](../types/int.md), 'administrator_count' => [int](../types/int.md), 'kicked_count' => [int](../types/int.md), 'can_get_members' => [Bool](../types/Bool.md), 'can_set_username' => [Bool](../types/Bool.md), 'invite_link' => [string](../types/string.md), 'pinned_message_id' => [long](../types/long.md), 'migrated_from_group_id' => [int](../types/int.md), 'migrated_from_max_message_id' => [long](../types/long.md), \];<a name="channelFull"></a>
<br><br>[$channelFull](../constructors/channelFull.md) = \['channel' => [channel](../constructors/channel.md), 'about' => [string](../types/string.md), 'member_count' => [int](../types/int.md), 'administrator_count' => [int](../types/int.md), 'kicked_count' => [int](../types/int.md), 'can_get_members' => [Bool](../types/Bool.md), 'can_set_username' => [Bool](../types/Bool.md), 'invite_link' => [string](../types/string.md), 'pinned_message_id' => [long](../types/long.md), 'migrated_from_group_id' => [int](../types/int.md), 'migrated_from_max_message_id' => [long](../types/long.md), \];<a name="channelFull"></a>
***
<br><br>[$channelMembersAdministrators](../constructors/channelMembersAdministrators.md) = \[\];<a name="channelMembersAdministrators"></a>
@ -89,19 +86,19 @@ description: List of constructors
<br><br>[$channelMembersRecent](../constructors/channelMembersRecent.md) = \[\];<a name="channelMembersRecent"></a>
***
<br><br>[$channels](../constructors/channels.md) = \['channel_ids' => \[[int](../constructors/int.md)\], \];<a name="channels"></a>
<br><br>[$channels](../constructors/channels.md) = \['channel_ids' => \[[int](../types/int.md)\], \];<a name="channels"></a>
***
<br><br>[$chat](../constructors/chat.md) = \['id' => [long](../types/long.md), 'title' => [string](../types/string.md), 'photo' => [chatPhoto](../types/chatPhoto.md), 'top_message' => [message](../types/message.md), 'order' => [long](../types/long.md), 'unread_count' => [int](../types/int.md), 'last_read_inbox_message_id' => [long](../types/long.md), 'last_read_outbox_message_id' => [long](../types/long.md), 'notification_settings' => [notificationSettings](../types/notificationSettings.md), 'reply_markup_message_id' => [long](../types/long.md), 'draft_message' => [draftMessage](../types/draftMessage.md), 'type' => [ChatInfo](../types/ChatInfo.md), \];<a name="chat"></a>
<br><br>[$chat](../constructors/chat.md) = \['id' => [long](../types/long.md), 'title' => [string](../types/string.md), 'photo' => [chatPhoto](../constructors/chatPhoto.md), 'top_message' => [message](../constructors/message.md), 'order' => [long](../types/long.md), 'unread_count' => [int](../types/int.md), 'last_read_inbox_message_id' => [long](../types/long.md), 'last_read_outbox_message_id' => [long](../types/long.md), 'notification_settings' => [notificationSettings](../constructors/notificationSettings.md), 'reply_markup_message_id' => [long](../types/long.md), 'draft_message' => [draftMessage](../constructors/draftMessage.md), 'type' => [ChatInfo](../types/ChatInfo.md), \];<a name="chat"></a>
***
<br><br>[$chatInviteLink](../constructors/chatInviteLink.md) = \['invite_link' => [string](../types/string.md), \];<a name="chatInviteLink"></a>
***
<br><br>[$chatInviteLinkInfo](../constructors/chatInviteLinkInfo.md) = \['chat_id' => [long](../types/long.md), 'title' => [string](../types/string.md), 'photo' => [chatPhoto](../types/chatPhoto.md), 'member_count' => [int](../types/int.md), 'members' => \[[user](../constructors/user.md)\], 'is_group' => [Bool](../types/Bool.md), 'is_channel' => [Bool](../types/Bool.md), 'is_public_channel' => [Bool](../types/Bool.md), 'is_supergroup_channel' => [Bool](../types/Bool.md), \];<a name="chatInviteLinkInfo"></a>
<br><br>[$chatInviteLinkInfo](../constructors/chatInviteLinkInfo.md) = \['chat_id' => [long](../types/long.md), 'title' => [string](../types/string.md), 'photo' => [chatPhoto](../constructors/chatPhoto.md), 'member_count' => [int](../types/int.md), 'members' => \[[user](../constructors/user.md)\], 'is_group' => [Bool](../types/Bool.md), 'is_channel' => [Bool](../types/Bool.md), 'is_public_channel' => [Bool](../types/Bool.md), 'is_supergroup_channel' => [Bool](../types/Bool.md), \];<a name="chatInviteLinkInfo"></a>
***
<br><br>[$chatMember](../constructors/chatMember.md) = \['user_id' => [int](../types/int.md), 'inviter_user_id' => [int](../types/int.md), 'join_date' => [int](../types/int.md), 'status' => [ChatMemberStatus](../types/ChatMemberStatus.md), 'bot_info' => [botInfo](../types/botInfo.md), \];<a name="chatMember"></a>
<br><br>[$chatMember](../constructors/chatMember.md) = \['user_id' => [int](../types/int.md), 'inviter_user_id' => [int](../types/int.md), 'join_date' => [int](../types/int.md), 'status' => [ChatMemberStatus](../types/ChatMemberStatus.md), 'bot_info' => [botInfo](../constructors/botInfo.md), \];<a name="chatMember"></a>
***
<br><br>[$chatMemberStatusCreator](../constructors/chatMemberStatusCreator.md) = \[\];<a name="chatMemberStatusCreator"></a>
@ -125,7 +122,7 @@ description: List of constructors
<br><br>[$chatMembers](../constructors/chatMembers.md) = \['total_count' => [int](../types/int.md), 'members' => \[[chatMember](../constructors/chatMember.md)\], \];<a name="chatMembers"></a>
***
<br><br>[$chatPhoto](../constructors/chatPhoto.md) = \['small' => [file](../types/file.md), 'big' => [file](../types/file.md), \];<a name="chatPhoto"></a>
<br><br>[$chatPhoto](../constructors/chatPhoto.md) = \['small' => [file](../constructors/file.md), 'big' => [file](../constructors/file.md), \];<a name="chatPhoto"></a>
***
<br><br>[$chatReportSpamState](../constructors/chatReportSpamState.md) = \['can_report_spam' => [Bool](../types/Bool.md), \];<a name="chatReportSpamState"></a>
@ -137,10 +134,10 @@ description: List of constructors
<br><br>[$contact](../constructors/contact.md) = \['phone_number' => [string](../types/string.md), 'first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), 'user_id' => [int](../types/int.md), \];<a name="contact"></a>
***
<br><br>[$deviceTokenSet](../constructors/deviceTokenSet.md) = \['tokens' => \[[DeviceToken](../constructors/DeviceToken.md)\], \];<a name="deviceTokenSet"></a>
<br><br>[$deviceTokenSet](../constructors/deviceTokenSet.md) = \['tokens' => \[[DeviceToken](../types/DeviceToken.md)\], \];<a name="deviceTokenSet"></a>
***
<br><br>[$document](../constructors/document.md) = \['file_name' => [string](../types/string.md), 'mime_type' => [string](../types/string.md), 'thumb' => [photoSize](../types/photoSize.md), 'document' => [file](../types/file.md), \];<a name="document"></a>
<br><br>[$document](../constructors/document.md) = \['file_name' => [string](../types/string.md), 'mime_type' => [string](../types/string.md), 'thumb' => [photoSize](../constructors/photoSize.md), 'document' => [file](../constructors/file.md), \];<a name="document"></a>
***
<br><br>[$draftMessage](../constructors/draftMessage.md) = \['reply_to_message_id' => [long](../types/long.md), 'input_message_text' => [InputMessageContent](../types/InputMessageContent.md), \];<a name="draftMessage"></a>
@ -152,7 +149,7 @@ description: List of constructors
<br><br>[$file](../constructors/file.md) = \['id' => [int](../types/int.md), 'persistent_id' => [string](../types/string.md), 'size' => [int](../types/int.md), 'path' => [string](../types/string.md), \];<a name="file"></a>
***
<br><br>[$game](../constructors/game.md) = \['id' => [long](../types/long.md), 'short_name' => [string](../types/string.md), 'title' => [string](../types/string.md), 'text' => [string](../types/string.md), 'text_entities' => \[[MessageEntity](../constructors/MessageEntity.md)\], 'description' => [string](../types/string.md), 'photo' => [photo](../types/photo.md), 'animation' => [animation](../types/animation.md), \];<a name="game"></a>
<br><br>[$game](../constructors/game.md) = \['id' => [long](../types/long.md), 'short_name' => [string](../types/string.md), 'title' => [string](../types/string.md), 'text' => [string](../types/string.md), 'text_entities' => \[[MessageEntity](../types/MessageEntity.md)\], 'description' => [string](../types/string.md), 'photo' => [photo](../constructors/photo.md), 'animation' => [animation](../constructors/animation.md), \];<a name="game"></a>
***
<br><br>[$gameHighScore](../constructors/gameHighScore.md) = \['position' => [int](../types/int.md), 'user_id' => [int](../types/int.md), 'score' => [int](../types/int.md), \];<a name="gameHighScore"></a>
@ -167,10 +164,10 @@ description: List of constructors
<br><br>[$group](../constructors/group.md) = \['id' => [int](../types/int.md), 'member_count' => [int](../types/int.md), 'status' => [ChatMemberStatus](../types/ChatMemberStatus.md), 'anyone_can_edit' => [Bool](../types/Bool.md), 'is_active' => [Bool](../types/Bool.md), 'migrated_to_channel_id' => [int](../types/int.md), \];<a name="group"></a>
***
<br><br>[$groupChatInfo](../constructors/groupChatInfo.md) = \['group' => [group](../types/group.md), \];<a name="groupChatInfo"></a>
<br><br>[$groupChatInfo](../constructors/groupChatInfo.md) = \['group' => [group](../constructors/group.md), \];<a name="groupChatInfo"></a>
***
<br><br>[$groupFull](../constructors/groupFull.md) = \['group' => [group](../types/group.md), 'creator_user_id' => [int](../types/int.md), 'members' => \[[chatMember](../constructors/chatMember.md)\], 'invite_link' => [string](../types/string.md), \];<a name="groupFull"></a>
<br><br>[$groupFull](../constructors/groupFull.md) = \['group' => [group](../constructors/group.md), 'creator_user_id' => [int](../types/int.md), 'members' => \[[chatMember](../constructors/chatMember.md)\], 'invite_link' => [string](../types/string.md), \];<a name="groupFull"></a>
***
<br><br>[$inlineKeyboardButton](../constructors/inlineKeyboardButton.md) = \['text' => [string](../types/string.md), 'type' => [InlineKeyboardButtonType](../types/InlineKeyboardButtonType.md), \];<a name="inlineKeyboardButton"></a>
@ -188,43 +185,43 @@ description: List of constructors
<br><br>[$inlineKeyboardButtonTypeUrl](../constructors/inlineKeyboardButtonTypeUrl.md) = \['url' => [string](../types/string.md), \];<a name="inlineKeyboardButtonTypeUrl"></a>
***
<br><br>[$inlineQueryResultAnimation](../constructors/inlineQueryResultAnimation.md) = \['id' => [string](../types/string.md), 'animation' => [animation](../types/animation.md), 'title' => [string](../types/string.md), \];<a name="inlineQueryResultAnimation"></a>
<br><br>[$inlineQueryResultAnimation](../constructors/inlineQueryResultAnimation.md) = \['id' => [string](../types/string.md), 'animation' => [animation](../constructors/animation.md), 'title' => [string](../types/string.md), \];<a name="inlineQueryResultAnimation"></a>
***
<br><br>[$inlineQueryResultArticle](../constructors/inlineQueryResultArticle.md) = \['id' => [string](../types/string.md), 'url' => [string](../types/string.md), 'hide_url' => [Bool](../types/Bool.md), 'title' => [string](../types/string.md), 'description' => [string](../types/string.md), 'thumb_url' => [string](../types/string.md), 'thumb_width' => [int](../types/int.md), 'thumb_height' => [int](../types/int.md), \];<a name="inlineQueryResultArticle"></a>
***
<br><br>[$inlineQueryResultAudio](../constructors/inlineQueryResultAudio.md) = \['id' => [string](../types/string.md), 'audio' => [audio](../types/audio.md), \];<a name="inlineQueryResultAudio"></a>
<br><br>[$inlineQueryResultAudio](../constructors/inlineQueryResultAudio.md) = \['id' => [string](../types/string.md), 'audio' => [audio](../constructors/audio.md), \];<a name="inlineQueryResultAudio"></a>
***
<br><br>[$inlineQueryResultContact](../constructors/inlineQueryResultContact.md) = \['id' => [string](../types/string.md), 'contact' => [contact](../types/contact.md), 'thumb_url' => [string](../types/string.md), 'thumb_width' => [int](../types/int.md), 'thumb_height' => [int](../types/int.md), \];<a name="inlineQueryResultContact"></a>
<br><br>[$inlineQueryResultContact](../constructors/inlineQueryResultContact.md) = \['id' => [string](../types/string.md), 'contact' => [contact](../constructors/contact.md), 'thumb_url' => [string](../types/string.md), 'thumb_width' => [int](../types/int.md), 'thumb_height' => [int](../types/int.md), \];<a name="inlineQueryResultContact"></a>
***
<br><br>[$inlineQueryResultDocument](../constructors/inlineQueryResultDocument.md) = \['id' => [string](../types/string.md), 'document' => [document](../types/document.md), 'title' => [string](../types/string.md), 'description' => [string](../types/string.md), \];<a name="inlineQueryResultDocument"></a>
<br><br>[$inlineQueryResultDocument](../constructors/inlineQueryResultDocument.md) = \['id' => [string](../types/string.md), 'document' => [document](../constructors/document.md), 'title' => [string](../types/string.md), 'description' => [string](../types/string.md), \];<a name="inlineQueryResultDocument"></a>
***
<br><br>[$inlineQueryResultGame](../constructors/inlineQueryResultGame.md) = \['id' => [string](../types/string.md), 'game' => [game](../types/game.md), \];<a name="inlineQueryResultGame"></a>
<br><br>[$inlineQueryResultGame](../constructors/inlineQueryResultGame.md) = \['id' => [string](../types/string.md), 'game' => [game](../constructors/game.md), \];<a name="inlineQueryResultGame"></a>
***
<br><br>[$inlineQueryResultLocation](../constructors/inlineQueryResultLocation.md) = \['id' => [string](../types/string.md), 'location' => [location](../types/location.md), 'title' => [string](../types/string.md), 'thumb_url' => [string](../types/string.md), 'thumb_width' => [int](../types/int.md), 'thumb_height' => [int](../types/int.md), \];<a name="inlineQueryResultLocation"></a>
<br><br>[$inlineQueryResultLocation](../constructors/inlineQueryResultLocation.md) = \['id' => [string](../types/string.md), 'location' => [location](../constructors/location.md), 'title' => [string](../types/string.md), 'thumb_url' => [string](../types/string.md), 'thumb_width' => [int](../types/int.md), 'thumb_height' => [int](../types/int.md), \];<a name="inlineQueryResultLocation"></a>
***
<br><br>[$inlineQueryResultPhoto](../constructors/inlineQueryResultPhoto.md) = \['id' => [string](../types/string.md), 'photo' => [photo](../types/photo.md), 'title' => [string](../types/string.md), 'description' => [string](../types/string.md), \];<a name="inlineQueryResultPhoto"></a>
<br><br>[$inlineQueryResultPhoto](../constructors/inlineQueryResultPhoto.md) = \['id' => [string](../types/string.md), 'photo' => [photo](../constructors/photo.md), 'title' => [string](../types/string.md), 'description' => [string](../types/string.md), \];<a name="inlineQueryResultPhoto"></a>
***
<br><br>[$inlineQueryResultSticker](../constructors/inlineQueryResultSticker.md) = \['id' => [string](../types/string.md), 'sticker' => [sticker](../types/sticker.md), \];<a name="inlineQueryResultSticker"></a>
<br><br>[$inlineQueryResultSticker](../constructors/inlineQueryResultSticker.md) = \['id' => [string](../types/string.md), 'sticker' => [sticker](../constructors/sticker.md), \];<a name="inlineQueryResultSticker"></a>
***
<br><br>[$inlineQueryResultVenue](../constructors/inlineQueryResultVenue.md) = \['id' => [string](../types/string.md), 'venue' => [venue](../types/venue.md), 'thumb_url' => [string](../types/string.md), 'thumb_width' => [int](../types/int.md), 'thumb_height' => [int](../types/int.md), \];<a name="inlineQueryResultVenue"></a>
<br><br>[$inlineQueryResultVenue](../constructors/inlineQueryResultVenue.md) = \['id' => [string](../types/string.md), 'venue' => [venue](../constructors/venue.md), 'thumb_url' => [string](../types/string.md), 'thumb_width' => [int](../types/int.md), 'thumb_height' => [int](../types/int.md), \];<a name="inlineQueryResultVenue"></a>
***
<br><br>[$inlineQueryResultVideo](../constructors/inlineQueryResultVideo.md) = \['id' => [string](../types/string.md), 'video' => [video](../types/video.md), 'title' => [string](../types/string.md), 'description' => [string](../types/string.md), \];<a name="inlineQueryResultVideo"></a>
<br><br>[$inlineQueryResultVideo](../constructors/inlineQueryResultVideo.md) = \['id' => [string](../types/string.md), 'video' => [video](../constructors/video.md), 'title' => [string](../types/string.md), 'description' => [string](../types/string.md), \];<a name="inlineQueryResultVideo"></a>
***
<br><br>[$inlineQueryResultVoice](../constructors/inlineQueryResultVoice.md) = \['id' => [string](../types/string.md), 'voice' => [voice](../types/voice.md), 'title' => [string](../types/string.md), \];<a name="inlineQueryResultVoice"></a>
<br><br>[$inlineQueryResultVoice](../constructors/inlineQueryResultVoice.md) = \['id' => [string](../types/string.md), 'voice' => [voice](../constructors/voice.md), 'title' => [string](../types/string.md), \];<a name="inlineQueryResultVoice"></a>
***
<br><br>[$inlineQueryResults](../constructors/inlineQueryResults.md) = \['inline_query_id' => [long](../types/long.md), 'next_offset' => [string](../types/string.md), 'results' => \[[InlineQueryResult](../constructors/InlineQueryResult.md)\], 'switch_pm_text' => [string](../types/string.md), 'switch_pm_parameter' => [string](../types/string.md), \];<a name="inlineQueryResults"></a>
<br><br>[$inlineQueryResults](../constructors/inlineQueryResults.md) = \['inline_query_id' => [long](../types/long.md), 'next_offset' => [string](../types/string.md), 'results' => \[[InlineQueryResult](../types/InlineQueryResult.md)\], 'switch_pm_text' => [string](../types/string.md), 'switch_pm_parameter' => [string](../types/string.md), \];<a name="inlineQueryResults"></a>
***
<br><br>[$inputFileGenerated](../constructors/inputFileGenerated.md) = \['original_path' => [string](../types/string.md), 'conversion' => [string](../types/string.md), 'expected_size' => [int](../types/int.md), 'should_cache' => [Bool](../types/Bool.md), \];<a name="inputFileGenerated"></a>
@ -251,7 +248,7 @@ description: List of constructors
<br><br>[$inputInlineQueryResultAudio](../constructors/inputInlineQueryResultAudio.md) = \['id' => [string](../types/string.md), 'title' => [string](../types/string.md), 'performer' => [string](../types/string.md), 'audio_url' => [string](../types/string.md), 'audio_duration' => [int](../types/int.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'input_message_content' => [InputMessageContent](../types/InputMessageContent.md), \];<a name="inputInlineQueryResultAudio"></a>
***
<br><br>[$inputInlineQueryResultContact](../constructors/inputInlineQueryResultContact.md) = \['id' => [string](../types/string.md), 'contact' => [contact](../types/contact.md), 'thumb_url' => [string](../types/string.md), 'thumb_width' => [int](../types/int.md), 'thumb_height' => [int](../types/int.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'input_message_content' => [InputMessageContent](../types/InputMessageContent.md), \];<a name="inputInlineQueryResultContact"></a>
<br><br>[$inputInlineQueryResultContact](../constructors/inputInlineQueryResultContact.md) = \['id' => [string](../types/string.md), 'contact' => [contact](../constructors/contact.md), 'thumb_url' => [string](../types/string.md), 'thumb_width' => [int](../types/int.md), 'thumb_height' => [int](../types/int.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'input_message_content' => [InputMessageContent](../types/InputMessageContent.md), \];<a name="inputInlineQueryResultContact"></a>
***
<br><br>[$inputInlineQueryResultDocument](../constructors/inputInlineQueryResultDocument.md) = \['id' => [string](../types/string.md), 'title' => [string](../types/string.md), 'description' => [string](../types/string.md), 'document_url' => [string](../types/string.md), 'mime_type' => [string](../types/string.md), 'thumb_url' => [string](../types/string.md), 'thumb_width' => [int](../types/int.md), 'thumb_height' => [int](../types/int.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'input_message_content' => [InputMessageContent](../types/InputMessageContent.md), \];<a name="inputInlineQueryResultDocument"></a>
@ -260,7 +257,7 @@ description: List of constructors
<br><br>[$inputInlineQueryResultGame](../constructors/inputInlineQueryResultGame.md) = \['id' => [string](../types/string.md), 'game_short_name' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \];<a name="inputInlineQueryResultGame"></a>
***
<br><br>[$inputInlineQueryResultLocation](../constructors/inputInlineQueryResultLocation.md) = \['id' => [string](../types/string.md), 'location' => [location](../types/location.md), 'title' => [string](../types/string.md), 'thumb_url' => [string](../types/string.md), 'thumb_width' => [int](../types/int.md), 'thumb_height' => [int](../types/int.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'input_message_content' => [InputMessageContent](../types/InputMessageContent.md), \];<a name="inputInlineQueryResultLocation"></a>
<br><br>[$inputInlineQueryResultLocation](../constructors/inputInlineQueryResultLocation.md) = \['id' => [string](../types/string.md), 'location' => [location](../constructors/location.md), 'title' => [string](../types/string.md), 'thumb_url' => [string](../types/string.md), 'thumb_width' => [int](../types/int.md), 'thumb_height' => [int](../types/int.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'input_message_content' => [InputMessageContent](../types/InputMessageContent.md), \];<a name="inputInlineQueryResultLocation"></a>
***
<br><br>[$inputInlineQueryResultPhoto](../constructors/inputInlineQueryResultPhoto.md) = \['id' => [string](../types/string.md), 'title' => [string](../types/string.md), 'description' => [string](../types/string.md), 'thumb_url' => [string](../types/string.md), 'photo_url' => [string](../types/string.md), 'photo_width' => [int](../types/int.md), 'photo_height' => [int](../types/int.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'input_message_content' => [InputMessageContent](../types/InputMessageContent.md), \];<a name="inputInlineQueryResultPhoto"></a>
@ -269,7 +266,7 @@ description: List of constructors
<br><br>[$inputInlineQueryResultSticker](../constructors/inputInlineQueryResultSticker.md) = \['id' => [string](../types/string.md), 'thumb_url' => [string](../types/string.md), 'sticker_url' => [string](../types/string.md), 'sticker_width' => [int](../types/int.md), 'sticker_height' => [int](../types/int.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'input_message_content' => [InputMessageContent](../types/InputMessageContent.md), \];<a name="inputInlineQueryResultSticker"></a>
***
<br><br>[$inputInlineQueryResultVenue](../constructors/inputInlineQueryResultVenue.md) = \['id' => [string](../types/string.md), 'venue' => [venue](../types/venue.md), 'thumb_url' => [string](../types/string.md), 'thumb_width' => [int](../types/int.md), 'thumb_height' => [int](../types/int.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'input_message_content' => [InputMessageContent](../types/InputMessageContent.md), \];<a name="inputInlineQueryResultVenue"></a>
<br><br>[$inputInlineQueryResultVenue](../constructors/inputInlineQueryResultVenue.md) = \['id' => [string](../types/string.md), 'venue' => [venue](../constructors/venue.md), 'thumb_url' => [string](../types/string.md), 'thumb_width' => [int](../types/int.md), 'thumb_height' => [int](../types/int.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'input_message_content' => [InputMessageContent](../types/InputMessageContent.md), \];<a name="inputInlineQueryResultVenue"></a>
***
<br><br>[$inputInlineQueryResultVideo](../constructors/inputInlineQueryResultVideo.md) = \['id' => [string](../types/string.md), 'title' => [string](../types/string.md), 'description' => [string](../types/string.md), 'thumb_url' => [string](../types/string.md), 'video_url' => [string](../types/string.md), 'mime_type' => [string](../types/string.md), 'video_width' => [int](../types/int.md), 'video_height' => [int](../types/int.md), 'video_duration' => [int](../types/int.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'input_message_content' => [InputMessageContent](../types/InputMessageContent.md), \];<a name="inputInlineQueryResultVideo"></a>
@ -284,7 +281,7 @@ description: List of constructors
<br><br>[$inputMessageAudio](../constructors/inputMessageAudio.md) = \['audio' => [InputFile](../types/InputFile.md), 'album_cover_thumb' => [InputThumb](../types/InputThumb.md), 'duration' => [int](../types/int.md), 'title' => [string](../types/string.md), 'performer' => [string](../types/string.md), 'caption' => [string](../types/string.md), \];<a name="inputMessageAudio"></a>
***
<br><br>[$inputMessageContact](../constructors/inputMessageContact.md) = \['contact' => [contact](../types/contact.md), \];<a name="inputMessageContact"></a>
<br><br>[$inputMessageContact](../constructors/inputMessageContact.md) = \['contact' => [contact](../constructors/contact.md), \];<a name="inputMessageContact"></a>
***
<br><br>[$inputMessageDocument](../constructors/inputMessageDocument.md) = \['document' => [InputFile](../types/InputFile.md), 'thumb' => [InputThumb](../types/InputThumb.md), 'caption' => [string](../types/string.md), \];<a name="inputMessageDocument"></a>
@ -296,22 +293,22 @@ description: List of constructors
<br><br>[$inputMessageGame](../constructors/inputMessageGame.md) = \['bot_user_id' => [int](../types/int.md), 'game_short_name' => [string](../types/string.md), \];<a name="inputMessageGame"></a>
***
<br><br>[$inputMessageLocation](../constructors/inputMessageLocation.md) = \['location' => [location](../types/location.md), \];<a name="inputMessageLocation"></a>
<br><br>[$inputMessageLocation](../constructors/inputMessageLocation.md) = \['location' => [location](../constructors/location.md), \];<a name="inputMessageLocation"></a>
***
<br><br>[$inputMessagePhoto](../constructors/inputMessagePhoto.md) = \['photo' => [InputFile](../types/InputFile.md), 'thumb' => [InputThumb](../types/InputThumb.md), 'added_sticker_file_ids' => \[[int](../constructors/int.md)\], 'width' => [int](../types/int.md), 'height' => [int](../types/int.md), 'caption' => [string](../types/string.md), \];<a name="inputMessagePhoto"></a>
<br><br>[$inputMessagePhoto](../constructors/inputMessagePhoto.md) = \['photo' => [InputFile](../types/InputFile.md), 'thumb' => [InputThumb](../types/InputThumb.md), 'added_sticker_file_ids' => \[[int](../types/int.md)\], 'width' => [int](../types/int.md), 'height' => [int](../types/int.md), 'caption' => [string](../types/string.md), \];<a name="inputMessagePhoto"></a>
***
<br><br>[$inputMessageSticker](../constructors/inputMessageSticker.md) = \['sticker' => [InputFile](../types/InputFile.md), 'thumb' => [InputThumb](../types/InputThumb.md), 'width' => [int](../types/int.md), 'height' => [int](../types/int.md), \];<a name="inputMessageSticker"></a>
***
<br><br>[$inputMessageText](../constructors/inputMessageText.md) = \['text' => [string](../types/string.md), 'disable_web_page_preview' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'entities' => \[[MessageEntity](../constructors/MessageEntity.md)\], 'parse_mode' => [TextParseMode](../types/TextParseMode.md), \];<a name="inputMessageText"></a>
<br><br>[$inputMessageText](../constructors/inputMessageText.md) = \['text' => [string](../types/string.md), 'disable_web_page_preview' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], 'parse_mode' => [TextParseMode](../types/TextParseMode.md), \];<a name="inputMessageText"></a>
***
<br><br>[$inputMessageVenue](../constructors/inputMessageVenue.md) = \['venue' => [venue](../types/venue.md), \];<a name="inputMessageVenue"></a>
<br><br>[$inputMessageVenue](../constructors/inputMessageVenue.md) = \['venue' => [venue](../constructors/venue.md), \];<a name="inputMessageVenue"></a>
***
<br><br>[$inputMessageVideo](../constructors/inputMessageVideo.md) = \['video' => [InputFile](../types/InputFile.md), 'thumb' => [InputThumb](../types/InputThumb.md), 'added_sticker_file_ids' => \[[int](../constructors/int.md)\], 'duration' => [int](../types/int.md), 'width' => [int](../types/int.md), 'height' => [int](../types/int.md), 'caption' => [string](../types/string.md), \];<a name="inputMessageVideo"></a>
<br><br>[$inputMessageVideo](../constructors/inputMessageVideo.md) = \['video' => [InputFile](../types/InputFile.md), 'thumb' => [InputThumb](../types/InputThumb.md), 'added_sticker_file_ids' => \[[int](../types/int.md)\], 'duration' => [int](../types/int.md), 'width' => [int](../types/int.md), 'height' => [int](../types/int.md), 'caption' => [string](../types/string.md), \];<a name="inputMessageVideo"></a>
***
<br><br>[$inputMessageVoice](../constructors/inputMessageVoice.md) = \['voice' => [InputFile](../types/InputFile.md), 'duration' => [int](../types/int.md), 'waveform' => [bytes](../types/bytes.md), 'caption' => [string](../types/string.md), \];<a name="inputMessageVoice"></a>
@ -353,10 +350,10 @@ description: List of constructors
<br><br>[$message](../constructors/message.md) = \['id' => [long](../types/long.md), 'sender_user_id' => [int](../types/int.md), 'chat_id' => [long](../types/long.md), 'send_state' => [MessageSendState](../types/MessageSendState.md), 'can_be_edited' => [Bool](../types/Bool.md), 'can_be_deleted' => [Bool](../types/Bool.md), 'is_post' => [Bool](../types/Bool.md), 'date' => [int](../types/int.md), 'edit_date' => [int](../types/int.md), 'forward_info' => [MessageForwardInfo](../types/MessageForwardInfo.md), 'reply_to_message_id' => [long](../types/long.md), 'ttl' => [int](../types/int.md), 'ttl_expires_in' => [double](../types/double.md), 'via_bot_user_id' => [int](../types/int.md), 'views' => [int](../types/int.md), 'content' => [MessageContent](../types/MessageContent.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \];<a name="message"></a>
***
<br><br>[$messageAnimation](../constructors/messageAnimation.md) = \['animation' => [animation](../types/animation.md), 'caption' => [string](../types/string.md), \];<a name="messageAnimation"></a>
<br><br>[$messageAnimation](../constructors/messageAnimation.md) = \['animation' => [animation](../constructors/animation.md), 'caption' => [string](../types/string.md), \];<a name="messageAnimation"></a>
***
<br><br>[$messageAudio](../constructors/messageAudio.md) = \['audio' => [audio](../types/audio.md), 'caption' => [string](../types/string.md), 'is_listened' => [Bool](../types/Bool.md), \];<a name="messageAudio"></a>
<br><br>[$messageAudio](../constructors/messageAudio.md) = \['audio' => [audio](../constructors/audio.md), 'caption' => [string](../types/string.md), 'is_listened' => [Bool](../types/Bool.md), \];<a name="messageAudio"></a>
***
<br><br>[$messageChannelChatCreate](../constructors/messageChannelChatCreate.md) = \['title' => [string](../types/string.md), \];<a name="messageChannelChatCreate"></a>
@ -365,13 +362,13 @@ description: List of constructors
<br><br>[$messageChatAddMembers](../constructors/messageChatAddMembers.md) = \['members' => \[[user](../constructors/user.md)\], \];<a name="messageChatAddMembers"></a>
***
<br><br>[$messageChatChangePhoto](../constructors/messageChatChangePhoto.md) = \['photo' => [photo](../types/photo.md), \];<a name="messageChatChangePhoto"></a>
<br><br>[$messageChatChangePhoto](../constructors/messageChatChangePhoto.md) = \['photo' => [photo](../constructors/photo.md), \];<a name="messageChatChangePhoto"></a>
***
<br><br>[$messageChatChangeTitle](../constructors/messageChatChangeTitle.md) = \['title' => [string](../types/string.md), \];<a name="messageChatChangeTitle"></a>
***
<br><br>[$messageChatDeleteMember](../constructors/messageChatDeleteMember.md) = \['user' => [user](../types/user.md), \];<a name="messageChatDeleteMember"></a>
<br><br>[$messageChatDeleteMember](../constructors/messageChatDeleteMember.md) = \['user' => [user](../constructors/user.md), \];<a name="messageChatDeleteMember"></a>
***
<br><br>[$messageChatDeletePhoto](../constructors/messageChatDeletePhoto.md) = \[\];<a name="messageChatDeletePhoto"></a>
@ -389,10 +386,10 @@ description: List of constructors
<br><br>[$messageChatSetTtl](../constructors/messageChatSetTtl.md) = \['ttl' => [int](../types/int.md), \];<a name="messageChatSetTtl"></a>
***
<br><br>[$messageContact](../constructors/messageContact.md) = \['contact' => [contact](../types/contact.md), \];<a name="messageContact"></a>
<br><br>[$messageContact](../constructors/messageContact.md) = \['contact' => [contact](../constructors/contact.md), \];<a name="messageContact"></a>
***
<br><br>[$messageDocument](../constructors/messageDocument.md) = \['document' => [document](../types/document.md), 'caption' => [string](../types/string.md), \];<a name="messageDocument"></a>
<br><br>[$messageDocument](../constructors/messageDocument.md) = \['document' => [document](../constructors/document.md), 'caption' => [string](../types/string.md), \];<a name="messageDocument"></a>
***
<br><br>[$messageEntityBold](../constructors/messageEntityBold.md) = \['offset' => [int](../types/int.md), 'length' => [int](../types/int.md), \];<a name="messageEntityBold"></a>
@ -437,7 +434,7 @@ description: List of constructors
<br><br>[$messageForwardedPost](../constructors/messageForwardedPost.md) = \['chat_id' => [long](../types/long.md), 'sender_user_id' => [int](../types/int.md), 'date' => [int](../types/int.md), 'message_id' => [long](../types/long.md), \];<a name="messageForwardedPost"></a>
***
<br><br>[$messageGame](../constructors/messageGame.md) = \['game' => [game](../types/game.md), \];<a name="messageGame"></a>
<br><br>[$messageGame](../constructors/messageGame.md) = \['game' => [game](../constructors/game.md), \];<a name="messageGame"></a>
***
<br><br>[$messageGameScore](../constructors/messageGameScore.md) = \['game_message_id' => [long](../types/long.md), 'game_id' => [long](../types/long.md), 'score' => [int](../types/int.md), \];<a name="messageGameScore"></a>
@ -458,10 +455,10 @@ description: List of constructors
<br><br>[$messageIsSuccessfullySent](../constructors/messageIsSuccessfullySent.md) = \[\];<a name="messageIsSuccessfullySent"></a>
***
<br><br>[$messageLocation](../constructors/messageLocation.md) = \['location' => [location](../types/location.md), \];<a name="messageLocation"></a>
<br><br>[$messageLocation](../constructors/messageLocation.md) = \['location' => [location](../constructors/location.md), \];<a name="messageLocation"></a>
***
<br><br>[$messagePhoto](../constructors/messagePhoto.md) = \['photo' => [photo](../types/photo.md), 'caption' => [string](../types/string.md), \];<a name="messagePhoto"></a>
<br><br>[$messagePhoto](../constructors/messagePhoto.md) = \['photo' => [photo](../constructors/photo.md), 'caption' => [string](../types/string.md), \];<a name="messagePhoto"></a>
***
<br><br>[$messagePinMessage](../constructors/messagePinMessage.md) = \['message_id' => [long](../types/long.md), \];<a name="messagePinMessage"></a>
@ -470,22 +467,22 @@ description: List of constructors
<br><br>[$messageScreenshotTaken](../constructors/messageScreenshotTaken.md) = \[\];<a name="messageScreenshotTaken"></a>
***
<br><br>[$messageSticker](../constructors/messageSticker.md) = \['sticker' => [sticker](../types/sticker.md), \];<a name="messageSticker"></a>
<br><br>[$messageSticker](../constructors/messageSticker.md) = \['sticker' => [sticker](../constructors/sticker.md), \];<a name="messageSticker"></a>
***
<br><br>[$messageText](../constructors/messageText.md) = \['text' => [string](../types/string.md), 'entities' => \[[MessageEntity](../constructors/MessageEntity.md)\], 'web_page' => [webPage](../types/webPage.md), \];<a name="messageText"></a>
<br><br>[$messageText](../constructors/messageText.md) = \['text' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], 'web_page' => [webPage](../constructors/webPage.md), \];<a name="messageText"></a>
***
<br><br>[$messageUnsupported](../constructors/messageUnsupported.md) = \[\];<a name="messageUnsupported"></a>
***
<br><br>[$messageVenue](../constructors/messageVenue.md) = \['venue' => [venue](../types/venue.md), \];<a name="messageVenue"></a>
<br><br>[$messageVenue](../constructors/messageVenue.md) = \['venue' => [venue](../constructors/venue.md), \];<a name="messageVenue"></a>
***
<br><br>[$messageVideo](../constructors/messageVideo.md) = \['video' => [video](../types/video.md), 'caption' => [string](../types/string.md), \];<a name="messageVideo"></a>
<br><br>[$messageVideo](../constructors/messageVideo.md) = \['video' => [video](../constructors/video.md), 'caption' => [string](../types/string.md), \];<a name="messageVideo"></a>
***
<br><br>[$messageVoice](../constructors/messageVoice.md) = \['voice' => [voice](../types/voice.md), 'caption' => [string](../types/string.md), 'is_listened' => [Bool](../types/Bool.md), \];<a name="messageVoice"></a>
<br><br>[$messageVoice](../constructors/messageVoice.md) = \['voice' => [voice](../constructors/voice.md), 'caption' => [string](../types/string.md), 'is_listened' => [Bool](../types/Bool.md), \];<a name="messageVoice"></a>
***
<br><br>[$messages](../constructors/messages.md) = \['total_count' => [int](../types/int.md), 'messages' => \[[message](../constructors/message.md)\], \];<a name="messages"></a>
@ -533,7 +530,7 @@ description: List of constructors
<br><br>[$photo](../constructors/photo.md) = \['id' => [long](../types/long.md), 'has_stickers' => [Bool](../types/Bool.md), 'sizes' => \[[photoSize](../constructors/photoSize.md)\], \];<a name="photo"></a>
***
<br><br>[$photoSize](../constructors/photoSize.md) = \['type' => [string](../types/string.md), 'photo' => [file](../types/file.md), 'width' => [int](../types/int.md), 'height' => [int](../types/int.md), \];<a name="photoSize"></a>
<br><br>[$photoSize](../constructors/photoSize.md) = \['type' => [string](../types/string.md), 'photo' => [file](../constructors/file.md), 'width' => [int](../types/int.md), 'height' => [int](../types/int.md), \];<a name="photoSize"></a>
***
<br><br>[$privacyKeyChatInvite](../constructors/privacyKeyChatInvite.md) = \[\];<a name="privacyKeyChatInvite"></a>
@ -548,7 +545,7 @@ description: List of constructors
<br><br>[$privacyRuleAllowContacts](../constructors/privacyRuleAllowContacts.md) = \[\];<a name="privacyRuleAllowContacts"></a>
***
<br><br>[$privacyRuleAllowUsers](../constructors/privacyRuleAllowUsers.md) = \['user_ids' => \[[int](../constructors/int.md)\], \];<a name="privacyRuleAllowUsers"></a>
<br><br>[$privacyRuleAllowUsers](../constructors/privacyRuleAllowUsers.md) = \['user_ids' => \[[int](../types/int.md)\], \];<a name="privacyRuleAllowUsers"></a>
***
<br><br>[$privacyRuleDisallowAll](../constructors/privacyRuleDisallowAll.md) = \[\];<a name="privacyRuleDisallowAll"></a>
@ -557,16 +554,16 @@ description: List of constructors
<br><br>[$privacyRuleDisallowContacts](../constructors/privacyRuleDisallowContacts.md) = \[\];<a name="privacyRuleDisallowContacts"></a>
***
<br><br>[$privacyRuleDisallowUsers](../constructors/privacyRuleDisallowUsers.md) = \['user_ids' => \[[int](../constructors/int.md)\], \];<a name="privacyRuleDisallowUsers"></a>
<br><br>[$privacyRuleDisallowUsers](../constructors/privacyRuleDisallowUsers.md) = \['user_ids' => \[[int](../types/int.md)\], \];<a name="privacyRuleDisallowUsers"></a>
***
<br><br>[$privacyRules](../constructors/privacyRules.md) = \['rules' => \[[PrivacyRule](../constructors/PrivacyRule.md)\], \];<a name="privacyRules"></a>
<br><br>[$privacyRules](../constructors/privacyRules.md) = \['rules' => \[[PrivacyRule](../types/PrivacyRule.md)\], \];<a name="privacyRules"></a>
***
<br><br>[$privateChatInfo](../constructors/privateChatInfo.md) = \['user' => [user](../types/user.md), \];<a name="privateChatInfo"></a>
<br><br>[$privateChatInfo](../constructors/privateChatInfo.md) = \['user' => [user](../constructors/user.md), \];<a name="privateChatInfo"></a>
***
<br><br>[$profilePhoto](../constructors/profilePhoto.md) = \['id' => [long](../types/long.md), 'small' => [file](../types/file.md), 'big' => [file](../types/file.md), \];<a name="profilePhoto"></a>
<br><br>[$profilePhoto](../constructors/profilePhoto.md) = \['id' => [long](../types/long.md), 'small' => [file](../constructors/file.md), 'big' => [file](../constructors/file.md), \];<a name="profilePhoto"></a>
***
<br><br>[$recoveryEmail](../constructors/recoveryEmail.md) = \['recovery_email' => [string](../types/string.md), \];<a name="recoveryEmail"></a>
@ -617,7 +614,7 @@ description: List of constructors
<br><br>[$secretChat](../constructors/secretChat.md) = \['id' => [int](../types/int.md), 'user_id' => [int](../types/int.md), 'state' => [int](../types/int.md), 'is_outbound' => [Bool](../types/Bool.md), 'ttl' => [int](../types/int.md), 'key_hash' => [bytes](../types/bytes.md), \];<a name="secretChat"></a>
***
<br><br>[$secretChatInfo](../constructors/secretChatInfo.md) = \['secret_chat' => [secretChat](../types/secretChat.md), \];<a name="secretChatInfo"></a>
<br><br>[$secretChatInfo](../constructors/secretChatInfo.md) = \['secret_chat' => [secretChat](../constructors/secretChat.md), \];<a name="secretChatInfo"></a>
***
<br><br>[$sendMessageCancelAction](../constructors/sendMessageCancelAction.md) = \[\];<a name="sendMessageCancelAction"></a>
@ -662,10 +659,10 @@ description: List of constructors
<br><br>[$simplePushDeviceToken](../constructors/simplePushDeviceToken.md) = \['token' => [string](../types/string.md), \];<a name="simplePushDeviceToken"></a>
***
<br><br>[$sticker](../constructors/sticker.md) = \['set_id' => [long](../types/long.md), 'width' => [int](../types/int.md), 'height' => [int](../types/int.md), 'emoji' => [string](../types/string.md), 'is_mask' => [Bool](../types/Bool.md), 'mask_position' => [maskPosition](../types/maskPosition.md), 'thumb' => [photoSize](../types/photoSize.md), 'sticker' => [file](../types/file.md), \];<a name="sticker"></a>
<br><br>[$sticker](../constructors/sticker.md) = \['set_id' => [long](../types/long.md), 'width' => [int](../types/int.md), 'height' => [int](../types/int.md), 'emoji' => [string](../types/string.md), 'is_mask' => [Bool](../types/Bool.md), 'mask_position' => [maskPosition](../constructors/maskPosition.md), 'thumb' => [photoSize](../constructors/photoSize.md), 'sticker' => [file](../constructors/file.md), \];<a name="sticker"></a>
***
<br><br>[$stickerEmojis](../constructors/stickerEmojis.md) = \['emojis' => \[[string](../constructors/string.md)\], \];<a name="stickerEmojis"></a>
<br><br>[$stickerEmojis](../constructors/stickerEmojis.md) = \['emojis' => \[[string](../types/string.md)\], \];<a name="stickerEmojis"></a>
***
<br><br>[$stickerSet](../constructors/stickerSet.md) = \['id' => [long](../types/long.md), 'title' => [string](../types/string.md), 'name' => [string](../types/string.md), 'is_installed' => [Bool](../types/Bool.md), 'is_archived' => [Bool](../types/Bool.md), 'is_official' => [Bool](../types/Bool.md), 'is_masks' => [Bool](../types/Bool.md), 'is_viewed' => [Bool](../types/Bool.md), 'stickers' => \[[sticker](../constructors/sticker.md)\], 'emojis' => \[[stickerEmojis](../constructors/stickerEmojis.md)\], \];<a name="stickerSet"></a>
@ -688,13 +685,13 @@ description: List of constructors
[$test\_string](../constructors/test_string.md) = \['value' => [string](../types/string.md), \];<a name="test_string"></a>
[$test\_vectorInt](../constructors/test_vectorInt.md) = \['value' => \[[int](../constructors/int.md)\], \];<a name="test_vectorInt"></a>
[$test\_vectorInt](../constructors/test_vectorInt.md) = \['value' => \[[int](../types/int.md)\], \];<a name="test_vectorInt"></a>
[$test\_vectorIntObject](../constructors/test_vectorIntObject.md) = \['value' => \[[test\_Int](../constructors/test_Int.md)\], \];<a name="test_vectorIntObject"></a>
[$test\_vectorIntObject](../constructors/test_vectorIntObject.md) = \['value' => \[[test\_Int](../types/test_Int.md)\], \];<a name="test_vectorIntObject"></a>
[$test\_vectorString](../constructors/test_vectorString.md) = \['value' => \[[string](../constructors/string.md)\], \];<a name="test_vectorString"></a>
[$test\_vectorString](../constructors/test_vectorString.md) = \['value' => \[[string](../types/string.md)\], \];<a name="test_vectorString"></a>
[$test\_vectorStringObject](../constructors/test_vectorStringObject.md) = \['value' => \[[test\_String](../constructors/test_String.md)\], \];<a name="test_vectorStringObject"></a>
[$test\_vectorStringObject](../constructors/test_vectorStringObject.md) = \['value' => \[[test\_String](../types/test_String.md)\], \];<a name="test_vectorStringObject"></a>
***
<br><br>[$textParseModeHTML](../constructors/textParseModeHTML.md) = \[\];<a name="textParseModeHTML"></a>
@ -709,22 +706,22 @@ description: List of constructors
<br><br>[$updateAuthState](../constructors/updateAuthState.md) = \['auth_state' => [AuthState](../types/AuthState.md), \];<a name="updateAuthState"></a>
***
<br><br>[$updateChannel](../constructors/updateChannel.md) = \['channel' => [channel](../types/channel.md), \];<a name="updateChannel"></a>
<br><br>[$updateChannel](../constructors/updateChannel.md) = \['channel' => [channel](../constructors/channel.md), \];<a name="updateChannel"></a>
***
<br><br>[$updateChannelFull](../constructors/updateChannelFull.md) = \['channel_full' => [channelFull](../types/channelFull.md), \];<a name="updateChannelFull"></a>
<br><br>[$updateChannelFull](../constructors/updateChannelFull.md) = \['channel_full' => [channelFull](../constructors/channelFull.md), \];<a name="updateChannelFull"></a>
***
<br><br>[$updateChat](../constructors/updateChat.md) = \['chat' => [chat](../types/chat.md), \];<a name="updateChat"></a>
<br><br>[$updateChat](../constructors/updateChat.md) = \['chat' => [chat](../constructors/chat.md), \];<a name="updateChat"></a>
***
<br><br>[$updateChatDraftMessage](../constructors/updateChatDraftMessage.md) = \['chat_id' => [long](../types/long.md), 'draft_message' => [draftMessage](../types/draftMessage.md), \];<a name="updateChatDraftMessage"></a>
<br><br>[$updateChatDraftMessage](../constructors/updateChatDraftMessage.md) = \['chat_id' => [long](../types/long.md), 'draft_message' => [draftMessage](../constructors/draftMessage.md), \];<a name="updateChatDraftMessage"></a>
***
<br><br>[$updateChatOrder](../constructors/updateChatOrder.md) = \['chat_id' => [long](../types/long.md), 'order' => [long](../types/long.md), \];<a name="updateChatOrder"></a>
***
<br><br>[$updateChatPhoto](../constructors/updateChatPhoto.md) = \['chat_id' => [long](../types/long.md), 'photo' => [chatPhoto](../types/chatPhoto.md), \];<a name="updateChatPhoto"></a>
<br><br>[$updateChatPhoto](../constructors/updateChatPhoto.md) = \['chat_id' => [long](../types/long.md), 'photo' => [chatPhoto](../constructors/chatPhoto.md), \];<a name="updateChatPhoto"></a>
***
<br><br>[$updateChatReadInbox](../constructors/updateChatReadInbox.md) = \['chat_id' => [long](../types/long.md), 'last_read_inbox_message_id' => [long](../types/long.md), 'unread_count' => [int](../types/int.md), \];<a name="updateChatReadInbox"></a>
@ -739,16 +736,16 @@ description: List of constructors
<br><br>[$updateChatTitle](../constructors/updateChatTitle.md) = \['chat_id' => [long](../types/long.md), 'title' => [string](../types/string.md), \];<a name="updateChatTitle"></a>
***
<br><br>[$updateChatTopMessage](../constructors/updateChatTopMessage.md) = \['chat_id' => [long](../types/long.md), 'top_message' => [message](../types/message.md), \];<a name="updateChatTopMessage"></a>
<br><br>[$updateChatTopMessage](../constructors/updateChatTopMessage.md) = \['chat_id' => [long](../types/long.md), 'top_message' => [message](../constructors/message.md), \];<a name="updateChatTopMessage"></a>
***
<br><br>[$updateDeleteMessages](../constructors/updateDeleteMessages.md) = \['chat_id' => [long](../types/long.md), 'message_ids' => \[[long](../constructors/long.md)\], \];<a name="updateDeleteMessages"></a>
<br><br>[$updateDeleteMessages](../constructors/updateDeleteMessages.md) = \['chat_id' => [long](../types/long.md), 'message_ids' => \[[long](../types/long.md)\], \];<a name="updateDeleteMessages"></a>
***
<br><br>[$updateFile](../constructors/updateFile.md) = \['file' => [file](../types/file.md), \];<a name="updateFile"></a>
<br><br>[$updateFile](../constructors/updateFile.md) = \['file' => [file](../constructors/file.md), \];<a name="updateFile"></a>
***
<br><br>[$updateFileGenerationFinish](../constructors/updateFileGenerationFinish.md) = \['file' => [file](../types/file.md), \];<a name="updateFileGenerationFinish"></a>
<br><br>[$updateFileGenerationFinish](../constructors/updateFileGenerationFinish.md) = \['file' => [file](../constructors/file.md), \];<a name="updateFileGenerationFinish"></a>
***
<br><br>[$updateFileGenerationProgress](../constructors/updateFileGenerationProgress.md) = \['file_id' => [int](../types/int.md), 'size' => [int](../types/int.md), 'ready' => [int](../types/int.md), \];<a name="updateFileGenerationProgress"></a>
@ -760,7 +757,7 @@ description: List of constructors
<br><br>[$updateFileProgress](../constructors/updateFileProgress.md) = \['file_id' => [int](../types/int.md), 'size' => [int](../types/int.md), 'ready' => [int](../types/int.md), \];<a name="updateFileProgress"></a>
***
<br><br>[$updateGroup](../constructors/updateGroup.md) = \['group' => [group](../types/group.md), \];<a name="updateGroup"></a>
<br><br>[$updateGroup](../constructors/updateGroup.md) = \['group' => [group](../constructors/group.md), \];<a name="updateGroup"></a>
***
<br><br>[$updateMessageContent](../constructors/updateMessageContent.md) = \['chat_id' => [long](../types/long.md), 'message_id' => [long](../types/long.md), 'new_content' => [MessageContent](../types/MessageContent.md), \];<a name="updateMessageContent"></a>
@ -772,7 +769,7 @@ description: List of constructors
<br><br>[$updateMessageSendFailed](../constructors/updateMessageSendFailed.md) = \['chat_id' => [long](../types/long.md), 'message_id' => [long](../types/long.md), 'error_code' => [int](../types/int.md), 'error_message' => [string](../types/string.md), \];<a name="updateMessageSendFailed"></a>
***
<br><br>[$updateMessageSendSucceeded](../constructors/updateMessageSendSucceeded.md) = \['message' => [message](../types/message.md), 'old_message_id' => [long](../types/long.md), \];<a name="updateMessageSendSucceeded"></a>
<br><br>[$updateMessageSendSucceeded](../constructors/updateMessageSendSucceeded.md) = \['message' => [message](../constructors/message.md), 'old_message_id' => [long](../types/long.md), \];<a name="updateMessageSendSucceeded"></a>
***
<br><br>[$updateMessageViews](../constructors/updateMessageViews.md) = \['chat_id' => [long](../types/long.md), 'message_id' => [long](../types/long.md), 'views' => [int](../types/int.md), \];<a name="updateMessageViews"></a>
@ -781,46 +778,46 @@ description: List of constructors
<br><br>[$updateNewCallbackQuery](../constructors/updateNewCallbackQuery.md) = \['id' => [long](../types/long.md), 'sender_user_id' => [int](../types/int.md), 'chat_id' => [long](../types/long.md), 'message_id' => [long](../types/long.md), 'chat_instance' => [long](../types/long.md), 'payload' => [CallbackQueryPayload](../types/CallbackQueryPayload.md), \];<a name="updateNewCallbackQuery"></a>
***
<br><br>[$updateNewChosenInlineResult](../constructors/updateNewChosenInlineResult.md) = \['sender_user_id' => [int](../types/int.md), 'user_location' => [location](../types/location.md), 'query' => [string](../types/string.md), 'result_id' => [string](../types/string.md), 'inline_message_id' => [string](../types/string.md), \];<a name="updateNewChosenInlineResult"></a>
<br><br>[$updateNewChosenInlineResult](../constructors/updateNewChosenInlineResult.md) = \['sender_user_id' => [int](../types/int.md), 'user_location' => [location](../constructors/location.md), 'query' => [string](../types/string.md), 'result_id' => [string](../types/string.md), 'inline_message_id' => [string](../types/string.md), \];<a name="updateNewChosenInlineResult"></a>
***
<br><br>[$updateNewInlineCallbackQuery](../constructors/updateNewInlineCallbackQuery.md) = \['id' => [long](../types/long.md), 'sender_user_id' => [int](../types/int.md), 'inline_message_id' => [string](../types/string.md), 'chat_instance' => [long](../types/long.md), 'payload' => [CallbackQueryPayload](../types/CallbackQueryPayload.md), \];<a name="updateNewInlineCallbackQuery"></a>
***
<br><br>[$updateNewInlineQuery](../constructors/updateNewInlineQuery.md) = \['id' => [long](../types/long.md), 'sender_user_id' => [int](../types/int.md), 'user_location' => [location](../types/location.md), 'query' => [string](../types/string.md), 'offset' => [string](../types/string.md), \];<a name="updateNewInlineQuery"></a>
<br><br>[$updateNewInlineQuery](../constructors/updateNewInlineQuery.md) = \['id' => [long](../types/long.md), 'sender_user_id' => [int](../types/int.md), 'user_location' => [location](../constructors/location.md), 'query' => [string](../types/string.md), 'offset' => [string](../types/string.md), \];<a name="updateNewInlineQuery"></a>
***
<br><br>[$updateNewMessage](../constructors/updateNewMessage.md) = \['message' => [message](../types/message.md), 'disable_notification' => [Bool](../types/Bool.md), \];<a name="updateNewMessage"></a>
<br><br>[$updateNewMessage](../constructors/updateNewMessage.md) = \['message' => [message](../constructors/message.md), 'disable_notification' => [Bool](../types/Bool.md), \];<a name="updateNewMessage"></a>
***
<br><br>[$updateNotificationSettings](../constructors/updateNotificationSettings.md) = \['scope' => [NotificationSettingsScope](../types/NotificationSettingsScope.md), 'notification_settings' => [notificationSettings](../types/notificationSettings.md), \];<a name="updateNotificationSettings"></a>
<br><br>[$updateNotificationSettings](../constructors/updateNotificationSettings.md) = \['scope' => [NotificationSettingsScope](../types/NotificationSettingsScope.md), 'notification_settings' => [notificationSettings](../constructors/notificationSettings.md), \];<a name="updateNotificationSettings"></a>
***
<br><br>[$updateOption](../constructors/updateOption.md) = \['name' => [string](../types/string.md), 'value' => [OptionValue](../types/OptionValue.md), \];<a name="updateOption"></a>
***
<br><br>[$updatePrivacy](../constructors/updatePrivacy.md) = \['key' => [PrivacyKey](../types/PrivacyKey.md), 'rules' => [privacyRules](../types/privacyRules.md), \];<a name="updatePrivacy"></a>
<br><br>[$updatePrivacy](../constructors/updatePrivacy.md) = \['key' => [PrivacyKey](../types/PrivacyKey.md), 'rules' => [privacyRules](../constructors/privacyRules.md), \];<a name="updatePrivacy"></a>
***
<br><br>[$updateRecentStickers](../constructors/updateRecentStickers.md) = \['is_attached' => [Bool](../types/Bool.md), 'sticker_ids' => \[[int](../constructors/int.md)\], \];<a name="updateRecentStickers"></a>
<br><br>[$updateRecentStickers](../constructors/updateRecentStickers.md) = \['is_attached' => [Bool](../types/Bool.md), 'sticker_ids' => \[[int](../types/int.md)\], \];<a name="updateRecentStickers"></a>
***
<br><br>[$updateSavedAnimations](../constructors/updateSavedAnimations.md) = \[\];<a name="updateSavedAnimations"></a>
***
<br><br>[$updateSecretChat](../constructors/updateSecretChat.md) = \['secret_chat' => [secretChat](../types/secretChat.md), \];<a name="updateSecretChat"></a>
<br><br>[$updateSecretChat](../constructors/updateSecretChat.md) = \['secret_chat' => [secretChat](../constructors/secretChat.md), \];<a name="updateSecretChat"></a>
***
<br><br>[$updateServiceNotification](../constructors/updateServiceNotification.md) = \['type' => [string](../types/string.md), 'content' => [MessageContent](../types/MessageContent.md), \];<a name="updateServiceNotification"></a>
***
<br><br>[$updateStickerSets](../constructors/updateStickerSets.md) = \['is_masks' => [Bool](../types/Bool.md), 'sticker_set_ids' => \[[long](../constructors/long.md)\], \];<a name="updateStickerSets"></a>
<br><br>[$updateStickerSets](../constructors/updateStickerSets.md) = \['is_masks' => [Bool](../types/Bool.md), 'sticker_set_ids' => \[[long](../types/long.md)\], \];<a name="updateStickerSets"></a>
***
<br><br>[$updateTrendingStickerSets](../constructors/updateTrendingStickerSets.md) = \['sticker_sets' => [stickerSets](../types/stickerSets.md), \];<a name="updateTrendingStickerSets"></a>
<br><br>[$updateTrendingStickerSets](../constructors/updateTrendingStickerSets.md) = \['sticker_sets' => [stickerSets](../constructors/stickerSets.md), \];<a name="updateTrendingStickerSets"></a>
***
<br><br>[$updateUser](../constructors/updateUser.md) = \['user' => [user](../types/user.md), \];<a name="updateUser"></a>
<br><br>[$updateUser](../constructors/updateUser.md) = \['user' => [user](../constructors/user.md), \];<a name="updateUser"></a>
***
<br><br>[$updateUserAction](../constructors/updateUserAction.md) = \['chat_id' => [long](../types/long.md), 'user_id' => [int](../types/int.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \];<a name="updateUserAction"></a>
@ -832,10 +829,10 @@ description: List of constructors
<br><br>[$updateUserStatus](../constructors/updateUserStatus.md) = \['user_id' => [int](../types/int.md), 'status' => [UserStatus](../types/UserStatus.md), \];<a name="updateUserStatus"></a>
***
<br><br>[$user](../constructors/user.md) = \['id' => [int](../types/int.md), 'first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), 'username' => [string](../types/string.md), 'phone_number' => [string](../types/string.md), 'status' => [UserStatus](../types/UserStatus.md), 'profile_photo' => [profilePhoto](../types/profilePhoto.md), 'my_link' => [LinkState](../types/LinkState.md), 'foreign_link' => [LinkState](../types/LinkState.md), 'is_verified' => [Bool](../types/Bool.md), 'restriction_reason' => [string](../types/string.md), 'have_access' => [Bool](../types/Bool.md), 'type' => [UserType](../types/UserType.md), \];<a name="user"></a>
<br><br>[$user](../constructors/user.md) = \['id' => [int](../types/int.md), 'first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), 'username' => [string](../types/string.md), 'phone_number' => [string](../types/string.md), 'status' => [UserStatus](../types/UserStatus.md), 'profile_photo' => [profilePhoto](../constructors/profilePhoto.md), 'my_link' => [LinkState](../types/LinkState.md), 'foreign_link' => [LinkState](../types/LinkState.md), 'is_verified' => [Bool](../types/Bool.md), 'restriction_reason' => [string](../types/string.md), 'have_access' => [Bool](../types/Bool.md), 'type' => [UserType](../types/UserType.md), \];<a name="user"></a>
***
<br><br>[$userFull](../constructors/userFull.md) = \['user' => [user](../types/user.md), 'is_blocked' => [Bool](../types/Bool.md), 'about' => [string](../types/string.md), 'common_chat_count' => [int](../types/int.md), 'bot_info' => [botInfo](../types/botInfo.md), \];<a name="userFull"></a>
<br><br>[$userFull](../constructors/userFull.md) = \['user' => [user](../constructors/user.md), 'is_blocked' => [Bool](../types/Bool.md), 'about' => [string](../types/string.md), 'common_chat_count' => [int](../types/int.md), 'bot_info' => [botInfo](../constructors/botInfo.md), \];<a name="userFull"></a>
***
<br><br>[$userProfilePhotos](../constructors/userProfilePhotos.md) = \['total_count' => [int](../types/int.md), 'photos' => \[[photo](../constructors/photo.md)\], \];<a name="userProfilePhotos"></a>
@ -874,13 +871,13 @@ description: List of constructors
<br><br>[$users](../constructors/users.md) = \['total_count' => [int](../types/int.md), 'users' => \[[user](../constructors/user.md)\], \];<a name="users"></a>
***
<br><br>[$venue](../constructors/venue.md) = \['location' => [location](../types/location.md), 'title' => [string](../types/string.md), 'address' => [string](../types/string.md), 'provider' => [string](../types/string.md), 'id' => [string](../types/string.md), \];<a name="venue"></a>
<br><br>[$venue](../constructors/venue.md) = \['location' => [location](../constructors/location.md), 'title' => [string](../types/string.md), 'address' => [string](../types/string.md), 'provider' => [string](../types/string.md), 'id' => [string](../types/string.md), \];<a name="venue"></a>
***
<br><br>[$video](../constructors/video.md) = \['duration' => [int](../types/int.md), 'width' => [int](../types/int.md), 'height' => [int](../types/int.md), 'file_name' => [string](../types/string.md), 'mime_type' => [string](../types/string.md), 'has_stickers' => [Bool](../types/Bool.md), 'thumb' => [photoSize](../types/photoSize.md), 'video' => [file](../types/file.md), \];<a name="video"></a>
<br><br>[$video](../constructors/video.md) = \['duration' => [int](../types/int.md), 'width' => [int](../types/int.md), 'height' => [int](../types/int.md), 'file_name' => [string](../types/string.md), 'mime_type' => [string](../types/string.md), 'has_stickers' => [Bool](../types/Bool.md), 'thumb' => [photoSize](../constructors/photoSize.md), 'video' => [file](../constructors/file.md), \];<a name="video"></a>
***
<br><br>[$voice](../constructors/voice.md) = \['duration' => [int](../types/int.md), 'waveform' => [bytes](../types/bytes.md), 'mime_type' => [string](../types/string.md), 'voice' => [file](../types/file.md), \];<a name="voice"></a>
<br><br>[$voice](../constructors/voice.md) = \['duration' => [int](../types/int.md), 'waveform' => [bytes](../types/bytes.md), 'mime_type' => [string](../types/string.md), 'voice' => [file](../constructors/file.md), \];<a name="voice"></a>
***
<br><br>[$wallpaper](../constructors/wallpaper.md) = \['sizes' => \[[photoSize](../constructors/photoSize.md)\], 'color' => [int](../types/int.md), \];<a name="wallpaper"></a>
@ -889,5 +886,5 @@ description: List of constructors
<br><br>[$wallpapers](../constructors/wallpapers.md) = \['wallpapers' => \[[wallpaper](../constructors/wallpaper.md)\], \];<a name="wallpapers"></a>
***
<br><br>[$webPage](../constructors/webPage.md) = \['url' => [string](../types/string.md), 'display_url' => [string](../types/string.md), 'type' => [string](../types/string.md), 'site_name' => [string](../types/string.md), 'title' => [string](../types/string.md), 'description' => [string](../types/string.md), 'photo' => [photo](../types/photo.md), 'embed_url' => [string](../types/string.md), 'embed_type' => [string](../types/string.md), 'embed_width' => [int](../types/int.md), 'embed_height' => [int](../types/int.md), 'duration' => [int](../types/int.md), 'author' => [string](../types/string.md), 'animation' => [animation](../types/animation.md), 'audio' => [audio](../types/audio.md), 'document' => [document](../types/document.md), 'sticker' => [sticker](../types/sticker.md), 'video' => [video](../types/video.md), 'voice' => [voice](../types/voice.md), \];<a name="webPage"></a>
<br><br>[$webPage](../constructors/webPage.md) = \['url' => [string](../types/string.md), 'display_url' => [string](../types/string.md), 'type' => [string](../types/string.md), 'site_name' => [string](../types/string.md), 'title' => [string](../types/string.md), 'description' => [string](../types/string.md), 'photo' => [photo](../constructors/photo.md), 'embed_url' => [string](../types/string.md), 'embed_type' => [string](../types/string.md), 'embed_width' => [int](../types/int.md), 'embed_height' => [int](../types/int.md), 'duration' => [int](../types/int.md), 'author' => [string](../types/string.md), 'animation' => [animation](../constructors/animation.md), 'audio' => [audio](../constructors/audio.md), 'document' => [document](../constructors/document.md), 'sticker' => [sticker](../constructors/sticker.md), 'video' => [video](../constructors/video.md), 'voice' => [voice](../constructors/voice.md), \];<a name="webPage"></a>

View File

@ -11,7 +11,7 @@ description: List of methods
<br><br>$MadelineProto->[addChatMember](addChatMember.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [int](../types/int.md), 'forward_limit' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md)<a name="addChatMember"></a>
***
<br><br>$MadelineProto->[addChatMembers](addChatMembers.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_ids' => \[[int](../constructors/int.md)\], \]) === [$Ok](../types/Ok.md)<a name="addChatMembers"></a>
<br><br>$MadelineProto->[addChatMembers](addChatMembers.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_ids' => \[[int](../types/int.md)\], \]) === [$Ok](../types/Ok.md)<a name="addChatMembers"></a>
***
<br><br>$MadelineProto->[addRecentSticker](addRecentSticker.md)(\['is_attached' => [Bool](../types/Bool.md), 'sticker' => [InputFile](../types/InputFile.md), \]) === [$Stickers](../types/Stickers.md)<a name="addRecentSticker"></a>
@ -26,7 +26,7 @@ description: List of methods
<br><br>$MadelineProto->[answerCallbackQuery](answerCallbackQuery.md)(\['callback_query_id' => [long](../types/long.md), 'text' => [string](../types/string.md), 'show_alert' => [Bool](../types/Bool.md), 'url' => [string](../types/string.md), 'cache_time' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md)<a name="answerCallbackQuery"></a>
***
<br><br>$MadelineProto->[answerInlineQuery](answerInlineQuery.md)(\['inline_query_id' => [long](../types/long.md), 'is_personal' => [Bool](../types/Bool.md), 'results' => \[[InputInlineQueryResult](../constructors/InputInlineQueryResult.md)\], 'cache_time' => [int](../types/int.md), 'next_offset' => [string](../types/string.md), 'switch_pm_text' => [string](../types/string.md), 'switch_pm_parameter' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md)<a name="answerInlineQuery"></a>
<br><br>$MadelineProto->[answerInlineQuery](answerInlineQuery.md)(\['inline_query_id' => [long](../types/long.md), 'is_personal' => [Bool](../types/Bool.md), 'results' => \[[InputInlineQueryResult](../types/InputInlineQueryResult.md)\], 'cache_time' => [int](../types/int.md), 'next_offset' => [string](../types/string.md), 'switch_pm_text' => [string](../types/string.md), 'switch_pm_parameter' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md)<a name="answerInlineQuery"></a>
***
<br><br>$MadelineProto->[blockUser](blockUser.md)(\['user_id' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md)<a name="blockUser"></a>
@ -38,7 +38,7 @@ description: List of methods
<br><br>$MadelineProto->[changeAbout](changeAbout.md)(\['about' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md)<a name="changeAbout"></a>
***
<br><br>$MadelineProto->[changeAccountTtl](changeAccountTtl.md)(\['ttl' => [accountTtl](../types/accountTtl.md), \]) === [$Ok](../types/Ok.md)<a name="changeAccountTtl"></a>
<br><br>$MadelineProto->[changeAccountTtl](changeAccountTtl.md)(\['ttl' => [accountTtl](../constructors/accountTtl.md), \]) === [$Ok](../types/Ok.md)<a name="changeAccountTtl"></a>
***
<br><br>$MadelineProto->[changeChannelAbout](changeChannelAbout.md)(\['channel_id' => [int](../types/int.md), 'about' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md)<a name="changeChannelAbout"></a>
@ -47,7 +47,7 @@ description: List of methods
<br><br>$MadelineProto->[changeChannelUsername](changeChannelUsername.md)(\['channel_id' => [int](../types/int.md), 'username' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md)<a name="changeChannelUsername"></a>
***
<br><br>$MadelineProto->[changeChatDraftMessage](changeChatDraftMessage.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'draft_message' => [draftMessage](../types/draftMessage.md), \]) === [$Ok](../types/Ok.md)<a name="changeChatDraftMessage"></a>
<br><br>$MadelineProto->[changeChatDraftMessage](changeChatDraftMessage.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'draft_message' => [draftMessage](../constructors/draftMessage.md), \]) === [$Ok](../types/Ok.md)<a name="changeChatDraftMessage"></a>
***
<br><br>$MadelineProto->[changeChatMemberStatus](changeChatMemberStatus.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [int](../types/int.md), 'status' => [ChatMemberStatus](../types/ChatMemberStatus.md), \]) === [$Ok](../types/Ok.md)<a name="changeChatMemberStatus"></a>
@ -104,7 +104,7 @@ description: List of methods
<br><br>$MadelineProto->[createNewChannelChat](createNewChannelChat.md)(\['title' => [string](../types/string.md), 'is_supergroup' => [Bool](../types/Bool.md), 'about' => [string](../types/string.md), \]) === [$Chat](../types/Chat.md)<a name="createNewChannelChat"></a>
***
<br><br>$MadelineProto->[createNewGroupChat](createNewGroupChat.md)(\['user_ids' => \[[int](../constructors/int.md)\], 'title' => [string](../types/string.md), \]) === [$Chat](../types/Chat.md)<a name="createNewGroupChat"></a>
<br><br>$MadelineProto->[createNewGroupChat](createNewGroupChat.md)(\['user_ids' => \[[int](../types/int.md)\], 'title' => [string](../types/string.md), \]) === [$Chat](../types/Chat.md)<a name="createNewGroupChat"></a>
***
<br><br>$MadelineProto->[createNewSecretChat](createNewSecretChat.md)(\['user_id' => [int](../types/int.md), \]) === [$Chat](../types/Chat.md)<a name="createNewSecretChat"></a>
@ -128,10 +128,10 @@ description: List of methods
<br><br>$MadelineProto->[deleteChatReplyMarkup](deleteChatReplyMarkup.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'message_id' => [long](../types/long.md), \]) === [$Ok](../types/Ok.md)<a name="deleteChatReplyMarkup"></a>
***
<br><br>$MadelineProto->[deleteContacts](deleteContacts.md)(\['user_ids' => \[[int](../constructors/int.md)\], \]) === [$Ok](../types/Ok.md)<a name="deleteContacts"></a>
<br><br>$MadelineProto->[deleteContacts](deleteContacts.md)(\['user_ids' => \[[int](../types/int.md)\], \]) === [$Ok](../types/Ok.md)<a name="deleteContacts"></a>
***
<br><br>$MadelineProto->[deleteMessages](deleteMessages.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'message_ids' => \[[long](../constructors/long.md)\], \]) === [$Ok](../types/Ok.md)<a name="deleteMessages"></a>
<br><br>$MadelineProto->[deleteMessages](deleteMessages.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'message_ids' => \[[long](../types/long.md)\], \]) === [$Ok](../types/Ok.md)<a name="deleteMessages"></a>
***
<br><br>$MadelineProto->[deleteMessagesFromUser](deleteMessagesFromUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [int](../types/int.md), \]) === [$Ok](../types/Ok.md)<a name="deleteMessagesFromUser"></a>
@ -179,7 +179,7 @@ description: List of methods
<br><br>$MadelineProto->[finishFileGeneration](finishFileGeneration.md)(\['generation_id' => [long](../types/long.md), \]) === [$Ok](../types/Ok.md)<a name="finishFileGeneration"></a>
***
<br><br>$MadelineProto->[forwardMessages](forwardMessages.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'from_chat_id' => [long](../types/long.md), 'message_ids' => \[[long](../constructors/long.md)\], 'disable_notification' => [Bool](../types/Bool.md), 'from_background' => [Bool](../types/Bool.md), \]) === [$Messages](../types/Messages.md)<a name="forwardMessages"></a>
<br><br>$MadelineProto->[forwardMessages](forwardMessages.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'from_chat_id' => [long](../types/long.md), 'message_ids' => \[[long](../types/long.md)\], 'disable_notification' => [Bool](../types/Bool.md), 'from_background' => [Bool](../types/Bool.md), \]) === [$Messages](../types/Messages.md)<a name="forwardMessages"></a>
***
<br><br>$MadelineProto->[getAccountTtl](getAccountTtl.md)(\[\]) === [$AccountTtl](../types/AccountTtl.md)<a name="getAccountTtl"></a>
@ -254,7 +254,7 @@ description: List of methods
<br><br>$MadelineProto->[getInlineGameHighScores](getInlineGameHighScores.md)(\['inline_message_id' => [string](../types/string.md), 'user_id' => [int](../types/int.md), \]) === [$GameHighScores](../types/GameHighScores.md)<a name="getInlineGameHighScores"></a>
***
<br><br>$MadelineProto->[getInlineQueryResults](getInlineQueryResults.md)(\['bot_user_id' => [int](../types/int.md), 'chat_id' => [InputPeer](../types/InputPeer.md), 'user_location' => [location](../types/location.md), 'query' => [string](../types/string.md), 'offset' => [string](../types/string.md), \]) === [$InlineQueryResults](../types/InlineQueryResults.md)<a name="getInlineQueryResults"></a>
<br><br>$MadelineProto->[getInlineQueryResults](getInlineQueryResults.md)(\['bot_user_id' => [int](../types/int.md), 'chat_id' => [InputPeer](../types/InputPeer.md), 'user_location' => [location](../constructors/location.md), 'query' => [string](../types/string.md), 'offset' => [string](../types/string.md), \]) === [$InlineQueryResults](../types/InlineQueryResults.md)<a name="getInlineQueryResults"></a>
***
<br><br>$MadelineProto->[getMe](getMe.md)(\[\]) === [$User](../types/User.md)<a name="getMe"></a>
@ -263,7 +263,7 @@ description: List of methods
<br><br>$MadelineProto->[getMessage](getMessage.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'message_id' => [long](../types/long.md), \]) === [$Message](../types/Message.md)<a name="getMessage"></a>
***
<br><br>$MadelineProto->[getMessages](getMessages.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'message_ids' => \[[long](../constructors/long.md)\], \]) === [$Messages](../types/Messages.md)<a name="getMessages"></a>
<br><br>$MadelineProto->[getMessages](getMessages.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'message_ids' => \[[long](../types/long.md)\], \]) === [$Messages](../types/Messages.md)<a name="getMessages"></a>
***
<br><br>$MadelineProto->[getNotificationSettings](getNotificationSettings.md)(\['scope' => [NotificationSettingsScope](../types/NotificationSettingsScope.md), \]) === [$NotificationSettings](../types/NotificationSettings.md)<a name="getNotificationSettings"></a>
@ -353,10 +353,10 @@ description: List of methods
<br><br>$MadelineProto->[registerDevice](registerDevice.md)(\['device_token' => [DeviceToken](../types/DeviceToken.md), \]) === [$Ok](../types/Ok.md)<a name="registerDevice"></a>
***
<br><br>$MadelineProto->[reorderStickerSets](reorderStickerSets.md)(\['is_masks' => [Bool](../types/Bool.md), 'sticker_set_ids' => \[[long](../constructors/long.md)\], \]) === [$Ok](../types/Ok.md)<a name="reorderStickerSets"></a>
<br><br>$MadelineProto->[reorderStickerSets](reorderStickerSets.md)(\['is_masks' => [Bool](../types/Bool.md), 'sticker_set_ids' => \[[long](../types/long.md)\], \]) === [$Ok](../types/Ok.md)<a name="reorderStickerSets"></a>
***
<br><br>$MadelineProto->[reportChannelSpam](reportChannelSpam.md)(\['channel_id' => [int](../types/int.md), 'user_id' => [int](../types/int.md), 'message_ids' => \[[long](../constructors/long.md)\], \]) === [$Ok](../types/Ok.md)<a name="reportChannelSpam"></a>
<br><br>$MadelineProto->[reportChannelSpam](reportChannelSpam.md)(\['channel_id' => [int](../types/int.md), 'user_id' => [int](../types/int.md), 'message_ids' => \[[long](../types/long.md)\], \]) === [$Ok](../types/Ok.md)<a name="reportChannelSpam"></a>
***
<br><br>$MadelineProto->[requestAuthPasswordRecovery](requestAuthPasswordRecovery.md)(\[\]) === [$AuthState](../types/AuthState.md)<a name="requestAuthPasswordRecovery"></a>
@ -434,7 +434,7 @@ description: List of methods
<br><br>$MadelineProto->[setInlineGameScore](setInlineGameScore.md)(\['inline_message_id' => [string](../types/string.md), 'edit_message' => [Bool](../types/Bool.md), 'user_id' => [int](../types/int.md), 'score' => [int](../types/int.md), 'force' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md)<a name="setInlineGameScore"></a>
***
<br><br>$MadelineProto->[setNotificationSettings](setNotificationSettings.md)(\['scope' => [NotificationSettingsScope](../types/NotificationSettingsScope.md), 'notification_settings' => [notificationSettings](../types/notificationSettings.md), \]) === [$Ok](../types/Ok.md)<a name="setNotificationSettings"></a>
<br><br>$MadelineProto->[setNotificationSettings](setNotificationSettings.md)(\['scope' => [NotificationSettingsScope](../types/NotificationSettingsScope.md), 'notification_settings' => [notificationSettings](../constructors/notificationSettings.md), \]) === [$Ok](../types/Ok.md)<a name="setNotificationSettings"></a>
***
<br><br>$MadelineProto->[setOption](setOption.md)(\['name' => [string](../types/string.md), 'value' => [OptionValue](../types/OptionValue.md), \]) === [$Ok](../types/Ok.md)<a name="setOption"></a>
@ -443,7 +443,7 @@ description: List of methods
<br><br>$MadelineProto->[setPassword](setPassword.md)(\['old_password' => [string](../types/string.md), 'new_password' => [string](../types/string.md), 'new_hint' => [string](../types/string.md), 'set_recovery_email' => [Bool](../types/Bool.md), 'new_recovery_email' => [string](../types/string.md), \]) === [$PasswordState](../types/PasswordState.md)<a name="setPassword"></a>
***
<br><br>$MadelineProto->[setPrivacy](setPrivacy.md)(\['key' => [PrivacyKey](../types/PrivacyKey.md), 'rules' => [privacyRules](../types/privacyRules.md), \]) === [$Ok](../types/Ok.md)<a name="setPrivacy"></a>
<br><br>$MadelineProto->[setPrivacy](setPrivacy.md)(\['key' => [PrivacyKey](../types/PrivacyKey.md), 'rules' => [privacyRules](../constructors/privacyRules.md), \]) === [$Ok](../types/Ok.md)<a name="setPrivacy"></a>
***
<br><br>$MadelineProto->[setProfilePhoto](setProfilePhoto.md)(\['photo_path' => [string](../types/string.md), \]) === [$Ok](../types/Ok.md)<a name="setProfilePhoto"></a>
@ -497,8 +497,8 @@ $MadelineProto->[test->testNet](test_testNet.md)(\[\]) === [$test\_Empty](../typ
<br><br>$MadelineProto->[updateStickerSet](updateStickerSet.md)(\['set_id' => [long](../types/long.md), 'is_installed' => [Bool](../types/Bool.md), 'is_archived' => [Bool](../types/Bool.md), \]) === [$Ok](../types/Ok.md)<a name="updateStickerSet"></a>
***
<br><br>$MadelineProto->[viewMessages](viewMessages.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'message_ids' => \[[long](../constructors/long.md)\], \]) === [$Ok](../types/Ok.md)<a name="viewMessages"></a>
<br><br>$MadelineProto->[viewMessages](viewMessages.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'message_ids' => \[[long](../types/long.md)\], \]) === [$Ok](../types/Ok.md)<a name="viewMessages"></a>
***
<br><br>$MadelineProto->[viewTrendingStickerSets](viewTrendingStickerSets.md)(\['sticker_set_ids' => \[[long](../constructors/long.md)\], \]) === [$Ok](../types/Ok.md)<a name="viewTrendingStickerSets"></a>
<br><br>$MadelineProto->[viewTrendingStickerSets](viewTrendingStickerSets.md)(\['sticker_set_ids' => \[[long](../types/long.md)\], \]) === [$Ok](../types/Ok.md)<a name="viewTrendingStickerSets"></a>

View File

@ -1,3 +1,7 @@
---
title: MadelineProto documentation
description: PHP implementation of telegram's MTProto protocol
---
# MadelineProto
[![StyleCI](https://styleci.io/repos/61838413/shield)](https://styleci.io/repos/61838413)
[![Build Status](https://travis-ci.org/danog/MadelineProto.svg?branch=master)](https://travis-ci.org/danog/MadelineProto)

View File

@ -4,9 +4,6 @@ description: List of constructors
---
# Constructors
[Back to API documentation index](..)
***
<br><br>[$audio](../constructors/audio.md) = \['id' => [long](../types/long.md), 'access_hash' => [long](../types/long.md), 'user_id' => [int](../types/int.md), 'date' => [int](../types/int.md), 'duration' => [int](../types/int.md), 'mime_type' => [string](../types/string.md), 'size' => [int](../types/int.md), 'dc_id' => [int](../types/int.md), \];<a name="audio"></a>

View File

@ -6,61 +6,8 @@ description: auth.logOut parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the logout method instead (see https://daniil.it/MadelineProto for more info)*
**You cannot use this method directly, use the logout method instead (see https://daniil.it/MadelineProto for more info)**
### Return type: [Bool](../types/Bool.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$Bool = $MadelineProto->auth->logOut();
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - auth.logOut
* params - `{}`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.logOut`
Parameters:
Or, if you're into Lua:
```
Bool = auth.logOut({})
```

View File

@ -6,75 +6,8 @@ description: auth.sendCode parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the phone_login method instead (see https://daniil.it/MadelineProto for more info)*
**You cannot use this method directly, use the phone_login method instead (see https://daniil.it/MadelineProto for more info)**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|phone\_number|[string](../types/string.md) | Yes|
|sms\_type|[int](../types/int.md) | Yes|
|api\_id|[int](../types/int.md) | Yes|
|api\_hash|[string](../types/string.md) | Yes|
|lang\_code|[string](../types/string.md) | Yes|
### Return type: [auth\_SentCode](../types/auth_SentCode.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$auth_SentCode = $MadelineProto->auth->sendCode(['phone_number' => 'string', 'sms_type' => int, 'api_id' => int, 'api_hash' => 'string', 'lang_code' => 'string', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - auth.sendCode
* params - `{"phone_number": "string", "sms_type": int, "api_id": int, "api_hash": "string", "lang_code": "string", }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.sendCode`
Parameters:
phone_number - Json encoded string
sms_type - Json encoded int
api_id - Json encoded int
api_hash - Json encoded string
lang_code - Json encoded string
Or, if you're into Lua:
```
auth_SentCode = auth.sendCode({phone_number='string', sms_type=int, api_id=int, api_hash='string', lang_code='string', })
```

View File

@ -6,71 +6,8 @@ description: auth.signIn parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the complete_phone_login method instead (see https://daniil.it/MadelineProto for more info)*
**You cannot use this method directly, use the complete_phone_login method instead (see https://daniil.it/MadelineProto for more info)**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|phone\_number|[string](../types/string.md) | Yes|
|phone\_code\_hash|[string](../types/string.md) | Yes|
|phone\_code|[string](../types/string.md) | Yes|
### Return type: [auth\_Authorization](../types/auth_Authorization.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$auth_Authorization = $MadelineProto->auth->signIn(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - auth.signIn
* params - `{"phone_number": "string", "phone_code_hash": "string", "phone_code": "string", }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.signIn`
Parameters:
phone_number - Json encoded string
phone_code_hash - Json encoded string
phone_code - Json encoded string
Or, if you're into Lua:
```
auth_Authorization = auth.signIn({phone_number='string', phone_code_hash='string', phone_code='string', })
```

View File

@ -6,75 +6,8 @@ description: auth.signUp parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the complete_signup method instead (see https://daniil.it/MadelineProto for more info)*
**You cannot use this method directly, use the complete_signup method instead (see https://daniil.it/MadelineProto for more info)**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|phone\_number|[string](../types/string.md) | Yes|
|phone\_code\_hash|[string](../types/string.md) | Yes|
|phone\_code|[string](../types/string.md) | Yes|
|first\_name|[string](../types/string.md) | Yes|
|last\_name|[string](../types/string.md) | Yes|
### Return type: [auth\_Authorization](../types/auth_Authorization.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$auth_Authorization = $MadelineProto->auth->signUp(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', 'first_name' => 'string', 'last_name' => 'string', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - auth.signUp
* params - `{"phone_number": "string", "phone_code_hash": "string", "phone_code": "string", "first_name": "string", "last_name": "string", }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.signUp`
Parameters:
phone_number - Json encoded string
phone_code_hash - Json encoded string
phone_code - Json encoded string
first_name - Json encoded string
last_name - Json encoded string
Or, if you're into Lua:
```
auth_Authorization = auth.signUp({phone_number='string', phone_code_hash='string', phone_code='string', first_name='string', last_name='string', })
```

View File

@ -6,71 +6,8 @@ description: messages.acceptEncryption parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats*
**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes|
|g\_b|[bytes](../types/bytes.md) | Yes|
|key\_fingerprint|[long](../types/long.md) | Yes|
### Return type: [EncryptedChat](../types/EncryptedChat.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$EncryptedChat = $MadelineProto->messages->acceptEncryption(['peer' => InputEncryptedChat, 'g_b' => 'bytes', 'key_fingerprint' => long, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - messages.acceptEncryption
* params - `{"peer": InputEncryptedChat, "g_b": "bytes", "key_fingerprint": long, }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.acceptEncryption`
Parameters:
peer - Json encoded InputEncryptedChat
g_b - Json encoded bytes
key_fingerprint - Json encoded long
Or, if you're into Lua:
```
EncryptedChat = messages.acceptEncryption({peer=InputEncryptedChat, g_b='bytes', key_fingerprint=long, })
```

View File

@ -6,67 +6,8 @@ description: messages.discardEncryption parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats*
**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|chat\_id|[int](../types/int.md) | Yes|
### Return type: [Bool](../types/Bool.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$Bool = $MadelineProto->messages->discardEncryption(['chat_id' => int, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - messages.discardEncryption
* params - `{"chat_id": int, }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.discardEncryption`
Parameters:
chat_id - Json encoded int
Or, if you're into Lua:
```
Bool = messages.discardEncryption({chat_id=int, })
```

View File

@ -6,67 +6,8 @@ description: messages.getFullChat parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://daniil.it/MadelineProto for more info)*
**You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://daniil.it/MadelineProto for more info)**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [messages\_ChatFull](../types/messages_ChatFull.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$messages_ChatFull = $MadelineProto->messages->getFullChat(['chat_id' => InputPeer, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - messages.getFullChat
* params - `{"chat_id": InputPeer, }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getFullChat`
Parameters:
chat_id - Json encoded InputPeer
Or, if you're into Lua:
```
messages_ChatFull = messages.getFullChat({chat_id=InputPeer, })
```

View File

@ -6,69 +6,8 @@ description: messages.requestEncryption parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats*
**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
|g\_a|[bytes](../types/bytes.md) | Yes|
### Return type: [EncryptedChat](../types/EncryptedChat.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$EncryptedChat = $MadelineProto->messages->requestEncryption(['user_id' => InputUser, 'g_a' => 'bytes', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - messages.requestEncryption
* params - `{"user_id": InputUser, "g_a": "bytes", }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.requestEncryption`
Parameters:
user_id - Json encoded InputUser
g_a - Json encoded bytes
Or, if you're into Lua:
```
EncryptedChat = messages.requestEncryption({user_id=InputUser, g_a='bytes', })
```

View File

@ -6,71 +6,8 @@ description: updates.getDifference parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates*
**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|pts|[int](../types/int.md) | Yes|
|date|[int](../types/int.md) | Yes|
|qts|[int](../types/int.md) | Yes|
### Return type: [updates\_Difference](../types/updates_Difference.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$updates_Difference = $MadelineProto->updates->getDifference(['pts' => int, 'date' => int, 'qts' => int, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - updates.getDifference
* params - `{"pts": int, "date": int, "qts": int, }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/updates.getDifference`
Parameters:
pts - Json encoded int
date - Json encoded int
qts - Json encoded int
Or, if you're into Lua:
```
updates_Difference = updates.getDifference({pts=int, date=int, qts=int, })
```

View File

@ -6,61 +6,8 @@ description: updates.getState parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates*
**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates**
### Return type: [updates\_State](../types/updates_State.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$updates_State = $MadelineProto->updates->getState();
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - updates.getState
* params - `{}`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/updates.getState`
Parameters:
Or, if you're into Lua:
```
updates_State = updates.getState({})
```

View File

@ -6,71 +6,8 @@ description: upload.getFile parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://daniil.it/MadelineProto for more info*
**You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://daniil.it/MadelineProto for more info**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|location|[InputFileLocation](../types/InputFileLocation.md) | Yes|
|offset|[int](../types/int.md) | Yes|
|limit|[int](../types/int.md) | Yes|
### Return type: [upload\_File](../types/upload_File.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$upload_File = $MadelineProto->upload->getFile(['location' => InputFileLocation, 'offset' => int, 'limit' => int, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - upload.getFile
* params - `{"location": InputFileLocation, "offset": int, "limit": int, }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/upload.getFile`
Parameters:
location - Json encoded InputFileLocation
offset - Json encoded int
limit - Json encoded int
Or, if you're into Lua:
```
upload_File = upload.getFile({location=InputFileLocation, offset=int, limit=int, })
```

View File

@ -6,73 +6,8 @@ description: upload.saveBigFilePart parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://daniil.it/MadelineProto for more info*
**You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://daniil.it/MadelineProto for more info**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|file\_id|[long](../types/long.md) | Yes|
|file\_part|[int](../types/int.md) | Yes|
|file\_total\_parts|[int](../types/int.md) | Yes|
|bytes|[bytes](../types/bytes.md) | Yes|
### Return type: [Bool](../types/Bool.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$Bool = $MadelineProto->upload->saveBigFilePart(['file_id' => long, 'file_part' => int, 'file_total_parts' => int, 'bytes' => 'bytes', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - upload.saveBigFilePart
* params - `{"file_id": long, "file_part": int, "file_total_parts": int, "bytes": "bytes", }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/upload.saveBigFilePart`
Parameters:
file_id - Json encoded long
file_part - Json encoded int
file_total_parts - Json encoded int
bytes - Json encoded bytes
Or, if you're into Lua:
```
Bool = upload.saveBigFilePart({file_id=long, file_part=int, file_total_parts=int, bytes='bytes', })
```

View File

@ -6,71 +6,8 @@ description: upload.saveFilePart parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://daniil.it/MadelineProto for more info*
**You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://daniil.it/MadelineProto for more info**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|file\_id|[long](../types/long.md) | Yes|
|file\_part|[int](../types/int.md) | Yes|
|bytes|[bytes](../types/bytes.md) | Yes|
### Return type: [Bool](../types/Bool.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$Bool = $MadelineProto->upload->saveFilePart(['file_id' => long, 'file_part' => int, 'bytes' => 'bytes', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - upload.saveFilePart
* params - `{"file_id": long, "file_part": int, "bytes": "bytes", }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/upload.saveFilePart`
Parameters:
file_id - Json encoded long
file_part - Json encoded int
bytes - Json encoded bytes
Or, if you're into Lua:
```
Bool = upload.saveFilePart({file_id=long, file_part=int, bytes='bytes', })
```

View File

@ -6,67 +6,8 @@ description: users.getFullUser parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://daniil.it/MadelineProto for more info)*
**You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://daniil.it/MadelineProto for more info)**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|id|[InputUser](../types/InputUser.md) | Yes|
### Return type: [UserFull](../types/UserFull.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$UserFull = $MadelineProto->users->getFullUser(['id' => InputUser, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - users.getFullUser
* params - `{"id": InputUser, }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/users.getFullUser`
Parameters:
id - Json encoded InputUser
Or, if you're into Lua:
```
UserFull = users.getFullUser({id=InputUser, })
```

View File

@ -4,9 +4,6 @@ description: List of constructors
---
# Constructors
[Back to API documentation index](..)
***
<br><br>[$accountDaysTTL](../constructors/accountDaysTTL.md) = \['days' => [int](../types/int.md), \];<a name="accountDaysTTL"></a>

View File

@ -6,61 +6,8 @@ description: auth.logOut parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the logout method instead (see https://daniil.it/MadelineProto for more info)*
**You cannot use this method directly, use the logout method instead (see https://daniil.it/MadelineProto for more info)**
### Return type: [Bool](../types/Bool.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$Bool = $MadelineProto->auth->logOut();
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - auth.logOut
* params - `{}`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.logOut`
Parameters:
Or, if you're into Lua:
```
Bool = auth.logOut({})
```

View File

@ -6,75 +6,8 @@ description: auth.sendCode parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the phone_login method instead (see https://daniil.it/MadelineProto for more info)*
**You cannot use this method directly, use the phone_login method instead (see https://daniil.it/MadelineProto for more info)**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|phone\_number|[string](../types/string.md) | Yes|
|sms\_type|[int](../types/int.md) | Yes|
|api\_id|[int](../types/int.md) | Yes|
|api\_hash|[string](../types/string.md) | Yes|
|lang\_code|[string](../types/string.md) | Yes|
### Return type: [auth\_SentCode](../types/auth_SentCode.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$auth_SentCode = $MadelineProto->auth->sendCode(['phone_number' => 'string', 'sms_type' => int, 'api_id' => int, 'api_hash' => 'string', 'lang_code' => 'string', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - auth.sendCode
* params - `{"phone_number": "string", "sms_type": int, "api_id": int, "api_hash": "string", "lang_code": "string", }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.sendCode`
Parameters:
phone_number - Json encoded string
sms_type - Json encoded int
api_id - Json encoded int
api_hash - Json encoded string
lang_code - Json encoded string
Or, if you're into Lua:
```
auth_SentCode = auth.sendCode({phone_number='string', sms_type=int, api_id=int, api_hash='string', lang_code='string', })
```

View File

@ -6,71 +6,8 @@ description: auth.signIn parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the complete_phone_login method instead (see https://daniil.it/MadelineProto for more info)*
**You cannot use this method directly, use the complete_phone_login method instead (see https://daniil.it/MadelineProto for more info)**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|phone\_number|[string](../types/string.md) | Yes|
|phone\_code\_hash|[string](../types/string.md) | Yes|
|phone\_code|[string](../types/string.md) | Yes|
### Return type: [auth\_Authorization](../types/auth_Authorization.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$auth_Authorization = $MadelineProto->auth->signIn(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - auth.signIn
* params - `{"phone_number": "string", "phone_code_hash": "string", "phone_code": "string", }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.signIn`
Parameters:
phone_number - Json encoded string
phone_code_hash - Json encoded string
phone_code - Json encoded string
Or, if you're into Lua:
```
auth_Authorization = auth.signIn({phone_number='string', phone_code_hash='string', phone_code='string', })
```

View File

@ -6,75 +6,8 @@ description: auth.signUp parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the complete_signup method instead (see https://daniil.it/MadelineProto for more info)*
**You cannot use this method directly, use the complete_signup method instead (see https://daniil.it/MadelineProto for more info)**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|phone\_number|[string](../types/string.md) | Yes|
|phone\_code\_hash|[string](../types/string.md) | Yes|
|phone\_code|[string](../types/string.md) | Yes|
|first\_name|[string](../types/string.md) | Yes|
|last\_name|[string](../types/string.md) | Yes|
### Return type: [auth\_Authorization](../types/auth_Authorization.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$auth_Authorization = $MadelineProto->auth->signUp(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', 'first_name' => 'string', 'last_name' => 'string', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - auth.signUp
* params - `{"phone_number": "string", "phone_code_hash": "string", "phone_code": "string", "first_name": "string", "last_name": "string", }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.signUp`
Parameters:
phone_number - Json encoded string
phone_code_hash - Json encoded string
phone_code - Json encoded string
first_name - Json encoded string
last_name - Json encoded string
Or, if you're into Lua:
```
auth_Authorization = auth.signUp({phone_number='string', phone_code_hash='string', phone_code='string', first_name='string', last_name='string', })
```

View File

@ -6,67 +6,8 @@ description: contacts.resolveUsername parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://daniil.it/MadelineProto for more info)*
**You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://daniil.it/MadelineProto for more info)**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|username|[string](../types/string.md) | Yes|
### Return type: [User](../types/User.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$User = $MadelineProto->contacts->resolveUsername(['username' => 'string', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - contacts.resolveUsername
* params - `{"username": "string", }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/contacts.resolveUsername`
Parameters:
username - Json encoded string
Or, if you're into Lua:
```
User = contacts.resolveUsername({username='string', })
```

View File

@ -6,71 +6,8 @@ description: messages.acceptEncryption parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats*
**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes|
|g\_b|[bytes](../types/bytes.md) | Yes|
|key\_fingerprint|[long](../types/long.md) | Yes|
### Return type: [EncryptedChat](../types/EncryptedChat.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$EncryptedChat = $MadelineProto->messages->acceptEncryption(['peer' => InputEncryptedChat, 'g_b' => 'bytes', 'key_fingerprint' => long, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - messages.acceptEncryption
* params - `{"peer": InputEncryptedChat, "g_b": "bytes", "key_fingerprint": long, }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.acceptEncryption`
Parameters:
peer - Json encoded InputEncryptedChat
g_b - Json encoded bytes
key_fingerprint - Json encoded long
Or, if you're into Lua:
```
EncryptedChat = messages.acceptEncryption({peer=InputEncryptedChat, g_b='bytes', key_fingerprint=long, })
```

View File

@ -6,67 +6,8 @@ description: messages.discardEncryption parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats*
**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|chat\_id|[int](../types/int.md) | Yes|
### Return type: [Bool](../types/Bool.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$Bool = $MadelineProto->messages->discardEncryption(['chat_id' => int, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - messages.discardEncryption
* params - `{"chat_id": int, }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.discardEncryption`
Parameters:
chat_id - Json encoded int
Or, if you're into Lua:
```
Bool = messages.discardEncryption({chat_id=int, })
```

View File

@ -6,67 +6,8 @@ description: messages.getFullChat parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://daniil.it/MadelineProto for more info)*
**You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://daniil.it/MadelineProto for more info)**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [messages\_ChatFull](../types/messages_ChatFull.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$messages_ChatFull = $MadelineProto->messages->getFullChat(['chat_id' => InputPeer, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - messages.getFullChat
* params - `{"chat_id": InputPeer, }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getFullChat`
Parameters:
chat_id - Json encoded InputPeer
Or, if you're into Lua:
```
messages_ChatFull = messages.getFullChat({chat_id=InputPeer, })
```

View File

@ -6,69 +6,8 @@ description: messages.requestEncryption parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats*
**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
|g\_a|[bytes](../types/bytes.md) | Yes|
### Return type: [EncryptedChat](../types/EncryptedChat.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$EncryptedChat = $MadelineProto->messages->requestEncryption(['user_id' => InputUser, 'g_a' => 'bytes', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - messages.requestEncryption
* params - `{"user_id": InputUser, "g_a": "bytes", }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.requestEncryption`
Parameters:
user_id - Json encoded InputUser
g_a - Json encoded bytes
Or, if you're into Lua:
```
EncryptedChat = messages.requestEncryption({user_id=InputUser, g_a='bytes', })
```

View File

@ -6,71 +6,8 @@ description: updates.getDifference parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates*
**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|pts|[int](../types/int.md) | Yes|
|date|[int](../types/int.md) | Yes|
|qts|[int](../types/int.md) | Yes|
### Return type: [updates\_Difference](../types/updates_Difference.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$updates_Difference = $MadelineProto->updates->getDifference(['pts' => int, 'date' => int, 'qts' => int, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - updates.getDifference
* params - `{"pts": int, "date": int, "qts": int, }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/updates.getDifference`
Parameters:
pts - Json encoded int
date - Json encoded int
qts - Json encoded int
Or, if you're into Lua:
```
updates_Difference = updates.getDifference({pts=int, date=int, qts=int, })
```

View File

@ -6,61 +6,8 @@ description: updates.getState parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates*
**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates**
### Return type: [updates\_State](../types/updates_State.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$updates_State = $MadelineProto->updates->getState();
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - updates.getState
* params - `{}`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/updates.getState`
Parameters:
Or, if you're into Lua:
```
updates_State = updates.getState({})
```

View File

@ -6,71 +6,8 @@ description: upload.getFile parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://daniil.it/MadelineProto for more info*
**You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://daniil.it/MadelineProto for more info**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|location|[InputFileLocation](../types/InputFileLocation.md) | Yes|
|offset|[int](../types/int.md) | Yes|
|limit|[int](../types/int.md) | Yes|
### Return type: [upload\_File](../types/upload_File.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$upload_File = $MadelineProto->upload->getFile(['location' => InputFileLocation, 'offset' => int, 'limit' => int, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - upload.getFile
* params - `{"location": InputFileLocation, "offset": int, "limit": int, }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/upload.getFile`
Parameters:
location - Json encoded InputFileLocation
offset - Json encoded int
limit - Json encoded int
Or, if you're into Lua:
```
upload_File = upload.getFile({location=InputFileLocation, offset=int, limit=int, })
```

View File

@ -6,73 +6,8 @@ description: upload.saveBigFilePart parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://daniil.it/MadelineProto for more info*
**You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://daniil.it/MadelineProto for more info**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|file\_id|[long](../types/long.md) | Yes|
|file\_part|[int](../types/int.md) | Yes|
|file\_total\_parts|[int](../types/int.md) | Yes|
|bytes|[bytes](../types/bytes.md) | Yes|
### Return type: [Bool](../types/Bool.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$Bool = $MadelineProto->upload->saveBigFilePart(['file_id' => long, 'file_part' => int, 'file_total_parts' => int, 'bytes' => 'bytes', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - upload.saveBigFilePart
* params - `{"file_id": long, "file_part": int, "file_total_parts": int, "bytes": "bytes", }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/upload.saveBigFilePart`
Parameters:
file_id - Json encoded long
file_part - Json encoded int
file_total_parts - Json encoded int
bytes - Json encoded bytes
Or, if you're into Lua:
```
Bool = upload.saveBigFilePart({file_id=long, file_part=int, file_total_parts=int, bytes='bytes', })
```

View File

@ -6,71 +6,8 @@ description: upload.saveFilePart parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://daniil.it/MadelineProto for more info*
**You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://daniil.it/MadelineProto for more info**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|file\_id|[long](../types/long.md) | Yes|
|file\_part|[int](../types/int.md) | Yes|
|bytes|[bytes](../types/bytes.md) | Yes|
### Return type: [Bool](../types/Bool.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$Bool = $MadelineProto->upload->saveFilePart(['file_id' => long, 'file_part' => int, 'bytes' => 'bytes', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - upload.saveFilePart
* params - `{"file_id": long, "file_part": int, "bytes": "bytes", }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/upload.saveFilePart`
Parameters:
file_id - Json encoded long
file_part - Json encoded int
bytes - Json encoded bytes
Or, if you're into Lua:
```
Bool = upload.saveFilePart({file_id=long, file_part=int, bytes='bytes', })
```

View File

@ -6,67 +6,8 @@ description: users.getFullUser parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://daniil.it/MadelineProto for more info)*
**You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://daniil.it/MadelineProto for more info)**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|id|[InputUser](../types/InputUser.md) | Yes|
### Return type: [UserFull](../types/UserFull.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$UserFull = $MadelineProto->users->getFullUser(['id' => InputUser, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - users.getFullUser
* params - `{"id": InputUser, }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/users.getFullUser`
Parameters:
id - Json encoded InputUser
Or, if you're into Lua:
```
UserFull = users.getFullUser({id=InputUser, })
```

View File

@ -4,9 +4,6 @@ description: List of constructors
---
# Constructors
[Back to API documentation index](..)
***
<br><br>[$accountDaysTTL](../constructors/accountDaysTTL.md) = \['days' => [int](../types/int.md), \];<a name="accountDaysTTL"></a>

View File

@ -6,61 +6,8 @@ description: auth.logOut parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the logout method instead (see https://daniil.it/MadelineProto for more info)*
**You cannot use this method directly, use the logout method instead (see https://daniil.it/MadelineProto for more info)**
### Return type: [Bool](../types/Bool.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$Bool = $MadelineProto->auth->logOut();
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - auth.logOut
* params - `{}`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.logOut`
Parameters:
Or, if you're into Lua:
```
Bool = auth.logOut({})
```

View File

@ -6,75 +6,8 @@ description: auth.sendCode parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the phone_login method instead (see https://daniil.it/MadelineProto for more info)*
**You cannot use this method directly, use the phone_login method instead (see https://daniil.it/MadelineProto for more info)**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|phone\_number|[string](../types/string.md) | Yes|
|sms\_type|[int](../types/int.md) | Yes|
|api\_id|[int](../types/int.md) | Yes|
|api\_hash|[string](../types/string.md) | Yes|
|lang\_code|[string](../types/string.md) | Yes|
### Return type: [auth\_SentCode](../types/auth_SentCode.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$auth_SentCode = $MadelineProto->auth->sendCode(['phone_number' => 'string', 'sms_type' => int, 'api_id' => int, 'api_hash' => 'string', 'lang_code' => 'string', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - auth.sendCode
* params - `{"phone_number": "string", "sms_type": int, "api_id": int, "api_hash": "string", "lang_code": "string", }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.sendCode`
Parameters:
phone_number - Json encoded string
sms_type - Json encoded int
api_id - Json encoded int
api_hash - Json encoded string
lang_code - Json encoded string
Or, if you're into Lua:
```
auth_SentCode = auth.sendCode({phone_number='string', sms_type=int, api_id=int, api_hash='string', lang_code='string', })
```

View File

@ -6,71 +6,8 @@ description: auth.signIn parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the complete_phone_login method instead (see https://daniil.it/MadelineProto for more info)*
**You cannot use this method directly, use the complete_phone_login method instead (see https://daniil.it/MadelineProto for more info)**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|phone\_number|[string](../types/string.md) | Yes|
|phone\_code\_hash|[string](../types/string.md) | Yes|
|phone\_code|[string](../types/string.md) | Yes|
### Return type: [auth\_Authorization](../types/auth_Authorization.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$auth_Authorization = $MadelineProto->auth->signIn(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - auth.signIn
* params - `{"phone_number": "string", "phone_code_hash": "string", "phone_code": "string", }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.signIn`
Parameters:
phone_number - Json encoded string
phone_code_hash - Json encoded string
phone_code - Json encoded string
Or, if you're into Lua:
```
auth_Authorization = auth.signIn({phone_number='string', phone_code_hash='string', phone_code='string', })
```

View File

@ -6,75 +6,8 @@ description: auth.signUp parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the complete_signup method instead (see https://daniil.it/MadelineProto for more info)*
**You cannot use this method directly, use the complete_signup method instead (see https://daniil.it/MadelineProto for more info)**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|phone\_number|[string](../types/string.md) | Yes|
|phone\_code\_hash|[string](../types/string.md) | Yes|
|phone\_code|[string](../types/string.md) | Yes|
|first\_name|[string](../types/string.md) | Yes|
|last\_name|[string](../types/string.md) | Yes|
### Return type: [auth\_Authorization](../types/auth_Authorization.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$auth_Authorization = $MadelineProto->auth->signUp(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', 'first_name' => 'string', 'last_name' => 'string', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - auth.signUp
* params - `{"phone_number": "string", "phone_code_hash": "string", "phone_code": "string", "first_name": "string", "last_name": "string", }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.signUp`
Parameters:
phone_number - Json encoded string
phone_code_hash - Json encoded string
phone_code - Json encoded string
first_name - Json encoded string
last_name - Json encoded string
Or, if you're into Lua:
```
auth_Authorization = auth.signUp({phone_number='string', phone_code_hash='string', phone_code='string', first_name='string', last_name='string', })
```

View File

@ -6,67 +6,8 @@ description: contacts.resolveUsername parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://daniil.it/MadelineProto for more info)*
**You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://daniil.it/MadelineProto for more info)**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|username|[string](../types/string.md) | Yes|
### Return type: [User](../types/User.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$User = $MadelineProto->contacts->resolveUsername(['username' => 'string', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - contacts.resolveUsername
* params - `{"username": "string", }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/contacts.resolveUsername`
Parameters:
username - Json encoded string
Or, if you're into Lua:
```
User = contacts.resolveUsername({username='string', })
```

View File

@ -6,71 +6,8 @@ description: messages.acceptEncryption parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats*
**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes|
|g\_b|[bytes](../types/bytes.md) | Yes|
|key\_fingerprint|[long](../types/long.md) | Yes|
### Return type: [EncryptedChat](../types/EncryptedChat.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$EncryptedChat = $MadelineProto->messages->acceptEncryption(['peer' => InputEncryptedChat, 'g_b' => 'bytes', 'key_fingerprint' => long, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - messages.acceptEncryption
* params - `{"peer": InputEncryptedChat, "g_b": "bytes", "key_fingerprint": long, }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.acceptEncryption`
Parameters:
peer - Json encoded InputEncryptedChat
g_b - Json encoded bytes
key_fingerprint - Json encoded long
Or, if you're into Lua:
```
EncryptedChat = messages.acceptEncryption({peer=InputEncryptedChat, g_b='bytes', key_fingerprint=long, })
```

View File

@ -6,67 +6,8 @@ description: messages.discardEncryption parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats*
**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|chat\_id|[int](../types/int.md) | Yes|
### Return type: [Bool](../types/Bool.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$Bool = $MadelineProto->messages->discardEncryption(['chat_id' => int, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - messages.discardEncryption
* params - `{"chat_id": int, }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.discardEncryption`
Parameters:
chat_id - Json encoded int
Or, if you're into Lua:
```
Bool = messages.discardEncryption({chat_id=int, })
```

View File

@ -6,67 +6,8 @@ description: messages.getFullChat parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://daniil.it/MadelineProto for more info)*
**You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://daniil.it/MadelineProto for more info)**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [messages\_ChatFull](../types/messages_ChatFull.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$messages_ChatFull = $MadelineProto->messages->getFullChat(['chat_id' => InputPeer, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - messages.getFullChat
* params - `{"chat_id": InputPeer, }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getFullChat`
Parameters:
chat_id - Json encoded InputPeer
Or, if you're into Lua:
```
messages_ChatFull = messages.getFullChat({chat_id=InputPeer, })
```

View File

@ -6,69 +6,8 @@ description: messages.requestEncryption parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats*
**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
|g\_a|[bytes](../types/bytes.md) | Yes|
### Return type: [EncryptedChat](../types/EncryptedChat.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$EncryptedChat = $MadelineProto->messages->requestEncryption(['user_id' => InputUser, 'g_a' => 'bytes', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - messages.requestEncryption
* params - `{"user_id": InputUser, "g_a": "bytes", }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.requestEncryption`
Parameters:
user_id - Json encoded InputUser
g_a - Json encoded bytes
Or, if you're into Lua:
```
EncryptedChat = messages.requestEncryption({user_id=InputUser, g_a='bytes', })
```

View File

@ -6,71 +6,8 @@ description: updates.getDifference parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates*
**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|pts|[int](../types/int.md) | Yes|
|date|[int](../types/int.md) | Yes|
|qts|[int](../types/int.md) | Yes|
### Return type: [updates\_Difference](../types/updates_Difference.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$updates_Difference = $MadelineProto->updates->getDifference(['pts' => int, 'date' => int, 'qts' => int, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - updates.getDifference
* params - `{"pts": int, "date": int, "qts": int, }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/updates.getDifference`
Parameters:
pts - Json encoded int
date - Json encoded int
qts - Json encoded int
Or, if you're into Lua:
```
updates_Difference = updates.getDifference({pts=int, date=int, qts=int, })
```

View File

@ -6,61 +6,8 @@ description: updates.getState parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates*
**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates**
### Return type: [updates\_State](../types/updates_State.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$updates_State = $MadelineProto->updates->getState();
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - updates.getState
* params - `{}`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/updates.getState`
Parameters:
Or, if you're into Lua:
```
updates_State = updates.getState({})
```

View File

@ -6,71 +6,8 @@ description: upload.getFile parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://daniil.it/MadelineProto for more info*
**You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://daniil.it/MadelineProto for more info**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|location|[InputFileLocation](../types/InputFileLocation.md) | Yes|
|offset|[int](../types/int.md) | Yes|
|limit|[int](../types/int.md) | Yes|
### Return type: [upload\_File](../types/upload_File.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$upload_File = $MadelineProto->upload->getFile(['location' => InputFileLocation, 'offset' => int, 'limit' => int, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - upload.getFile
* params - `{"location": InputFileLocation, "offset": int, "limit": int, }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/upload.getFile`
Parameters:
location - Json encoded InputFileLocation
offset - Json encoded int
limit - Json encoded int
Or, if you're into Lua:
```
upload_File = upload.getFile({location=InputFileLocation, offset=int, limit=int, })
```

View File

@ -6,73 +6,8 @@ description: upload.saveBigFilePart parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://daniil.it/MadelineProto for more info*
**You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://daniil.it/MadelineProto for more info**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|file\_id|[long](../types/long.md) | Yes|
|file\_part|[int](../types/int.md) | Yes|
|file\_total\_parts|[int](../types/int.md) | Yes|
|bytes|[bytes](../types/bytes.md) | Yes|
### Return type: [Bool](../types/Bool.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$Bool = $MadelineProto->upload->saveBigFilePart(['file_id' => long, 'file_part' => int, 'file_total_parts' => int, 'bytes' => 'bytes', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - upload.saveBigFilePart
* params - `{"file_id": long, "file_part": int, "file_total_parts": int, "bytes": "bytes", }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/upload.saveBigFilePart`
Parameters:
file_id - Json encoded long
file_part - Json encoded int
file_total_parts - Json encoded int
bytes - Json encoded bytes
Or, if you're into Lua:
```
Bool = upload.saveBigFilePart({file_id=long, file_part=int, file_total_parts=int, bytes='bytes', })
```

View File

@ -6,71 +6,8 @@ description: upload.saveFilePart parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://daniil.it/MadelineProto for more info*
**You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://daniil.it/MadelineProto for more info**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|file\_id|[long](../types/long.md) | Yes|
|file\_part|[int](../types/int.md) | Yes|
|bytes|[bytes](../types/bytes.md) | Yes|
### Return type: [Bool](../types/Bool.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$Bool = $MadelineProto->upload->saveFilePart(['file_id' => long, 'file_part' => int, 'bytes' => 'bytes', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - upload.saveFilePart
* params - `{"file_id": long, "file_part": int, "bytes": "bytes", }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/upload.saveFilePart`
Parameters:
file_id - Json encoded long
file_part - Json encoded int
bytes - Json encoded bytes
Or, if you're into Lua:
```
Bool = upload.saveFilePart({file_id=long, file_part=int, bytes='bytes', })
```

View File

@ -6,67 +6,8 @@ description: users.getFullUser parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://daniil.it/MadelineProto for more info)*
**You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://daniil.it/MadelineProto for more info)**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|id|[InputUser](../types/InputUser.md) | Yes|
### Return type: [UserFull](../types/UserFull.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$UserFull = $MadelineProto->users->getFullUser(['id' => InputUser, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - users.getFullUser
* params - `{"id": InputUser, }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/users.getFullUser`
Parameters:
id - Json encoded InputUser
Or, if you're into Lua:
```
UserFull = users.getFullUser({id=InputUser, })
```

View File

@ -4,9 +4,6 @@ description: List of constructors
---
# Constructors
[Back to API documentation index](..)
***
<br><br>[$accountDaysTTL](../constructors/accountDaysTTL.md) = \['days' => [int](../types/int.md), \];<a name="accountDaysTTL"></a>

View File

@ -6,61 +6,8 @@ description: auth.logOut parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the logout method instead (see https://daniil.it/MadelineProto for more info)*
**You cannot use this method directly, use the logout method instead (see https://daniil.it/MadelineProto for more info)**
### Return type: [Bool](../types/Bool.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$Bool = $MadelineProto->auth->logOut();
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - auth.logOut
* params - `{}`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.logOut`
Parameters:
Or, if you're into Lua:
```
Bool = auth.logOut({})
```

View File

@ -6,75 +6,8 @@ description: auth.sendCode parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the phone_login method instead (see https://daniil.it/MadelineProto for more info)*
**You cannot use this method directly, use the phone_login method instead (see https://daniil.it/MadelineProto for more info)**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|phone\_number|[string](../types/string.md) | Yes|
|sms\_type|[int](../types/int.md) | Yes|
|api\_id|[int](../types/int.md) | Yes|
|api\_hash|[string](../types/string.md) | Yes|
|lang\_code|[string](../types/string.md) | Yes|
### Return type: [auth\_SentCode](../types/auth_SentCode.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$auth_SentCode = $MadelineProto->auth->sendCode(['phone_number' => 'string', 'sms_type' => int, 'api_id' => int, 'api_hash' => 'string', 'lang_code' => 'string', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - auth.sendCode
* params - `{"phone_number": "string", "sms_type": int, "api_id": int, "api_hash": "string", "lang_code": "string", }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.sendCode`
Parameters:
phone_number - Json encoded string
sms_type - Json encoded int
api_id - Json encoded int
api_hash - Json encoded string
lang_code - Json encoded string
Or, if you're into Lua:
```
auth_SentCode = auth.sendCode({phone_number='string', sms_type=int, api_id=int, api_hash='string', lang_code='string', })
```

View File

@ -6,71 +6,8 @@ description: auth.signIn parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the complete_phone_login method instead (see https://daniil.it/MadelineProto for more info)*
**You cannot use this method directly, use the complete_phone_login method instead (see https://daniil.it/MadelineProto for more info)**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|phone\_number|[string](../types/string.md) | Yes|
|phone\_code\_hash|[string](../types/string.md) | Yes|
|phone\_code|[string](../types/string.md) | Yes|
### Return type: [auth\_Authorization](../types/auth_Authorization.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$auth_Authorization = $MadelineProto->auth->signIn(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - auth.signIn
* params - `{"phone_number": "string", "phone_code_hash": "string", "phone_code": "string", }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.signIn`
Parameters:
phone_number - Json encoded string
phone_code_hash - Json encoded string
phone_code - Json encoded string
Or, if you're into Lua:
```
auth_Authorization = auth.signIn({phone_number='string', phone_code_hash='string', phone_code='string', })
```

View File

@ -6,75 +6,8 @@ description: auth.signUp parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the complete_signup method instead (see https://daniil.it/MadelineProto for more info)*
**You cannot use this method directly, use the complete_signup method instead (see https://daniil.it/MadelineProto for more info)**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|phone\_number|[string](../types/string.md) | Yes|
|phone\_code\_hash|[string](../types/string.md) | Yes|
|phone\_code|[string](../types/string.md) | Yes|
|first\_name|[string](../types/string.md) | Yes|
|last\_name|[string](../types/string.md) | Yes|
### Return type: [auth\_Authorization](../types/auth_Authorization.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$auth_Authorization = $MadelineProto->auth->signUp(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', 'first_name' => 'string', 'last_name' => 'string', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - auth.signUp
* params - `{"phone_number": "string", "phone_code_hash": "string", "phone_code": "string", "first_name": "string", "last_name": "string", }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/auth.signUp`
Parameters:
phone_number - Json encoded string
phone_code_hash - Json encoded string
phone_code - Json encoded string
first_name - Json encoded string
last_name - Json encoded string
Or, if you're into Lua:
```
auth_Authorization = auth.signUp({phone_number='string', phone_code_hash='string', phone_code='string', first_name='string', last_name='string', })
```

View File

@ -6,67 +6,8 @@ description: contacts.resolveUsername parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://daniil.it/MadelineProto for more info)*
**You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://daniil.it/MadelineProto for more info)**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|username|[string](../types/string.md) | Yes|
### Return type: [User](../types/User.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$User = $MadelineProto->contacts->resolveUsername(['username' => 'string', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - contacts.resolveUsername
* params - `{"username": "string", }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/contacts.resolveUsername`
Parameters:
username - Json encoded string
Or, if you're into Lua:
```
User = contacts.resolveUsername({username='string', })
```

View File

@ -6,71 +6,8 @@ description: messages.acceptEncryption parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats*
**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|peer|[InputEncryptedChat](../types/InputEncryptedChat.md) | Yes|
|g\_b|[bytes](../types/bytes.md) | Yes|
|key\_fingerprint|[long](../types/long.md) | Yes|
### Return type: [EncryptedChat](../types/EncryptedChat.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$EncryptedChat = $MadelineProto->messages->acceptEncryption(['peer' => InputEncryptedChat, 'g_b' => 'bytes', 'key_fingerprint' => long, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - messages.acceptEncryption
* params - `{"peer": InputEncryptedChat, "g_b": "bytes", "key_fingerprint": long, }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.acceptEncryption`
Parameters:
peer - Json encoded InputEncryptedChat
g_b - Json encoded bytes
key_fingerprint - Json encoded long
Or, if you're into Lua:
```
EncryptedChat = messages.acceptEncryption({peer=InputEncryptedChat, g_b='bytes', key_fingerprint=long, })
```

View File

@ -6,67 +6,8 @@ description: messages.discardEncryption parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats*
**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|chat\_id|[int](../types/int.md) | Yes|
### Return type: [Bool](../types/Bool.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$Bool = $MadelineProto->messages->discardEncryption(['chat_id' => int, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - messages.discardEncryption
* params - `{"chat_id": int, }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.discardEncryption`
Parameters:
chat_id - Json encoded int
Or, if you're into Lua:
```
Bool = messages.discardEncryption({chat_id=int, })
```

View File

@ -6,67 +6,8 @@ description: messages.getFullChat parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://daniil.it/MadelineProto for more info)*
**You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://daniil.it/MadelineProto for more info)**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|chat\_id|[InputPeer](../types/InputPeer.md) | Yes|
### Return type: [messages\_ChatFull](../types/messages_ChatFull.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$messages_ChatFull = $MadelineProto->messages->getFullChat(['chat_id' => InputPeer, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - messages.getFullChat
* params - `{"chat_id": InputPeer, }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getFullChat`
Parameters:
chat_id - Json encoded InputPeer
Or, if you're into Lua:
```
messages_ChatFull = messages.getFullChat({chat_id=InputPeer, })
```

View File

@ -6,69 +6,8 @@ description: messages.requestEncryption parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats*
**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|user\_id|[InputUser](../types/InputUser.md) | Yes|
|g\_a|[bytes](../types/bytes.md) | Yes|
### Return type: [EncryptedChat](../types/EncryptedChat.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$EncryptedChat = $MadelineProto->messages->requestEncryption(['user_id' => InputUser, 'g_a' => 'bytes', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - messages.requestEncryption
* params - `{"user_id": InputUser, "g_a": "bytes", }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.requestEncryption`
Parameters:
user_id - Json encoded InputUser
g_a - Json encoded bytes
Or, if you're into Lua:
```
EncryptedChat = messages.requestEncryption({user_id=InputUser, g_a='bytes', })
```

View File

@ -6,71 +6,8 @@ description: updates.getDifference parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates*
**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|pts|[int](../types/int.md) | Yes|
|date|[int](../types/int.md) | Yes|
|qts|[int](../types/int.md) | Yes|
### Return type: [updates\_Difference](../types/updates_Difference.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$updates_Difference = $MadelineProto->updates->getDifference(['pts' => int, 'date' => int, 'qts' => int, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - updates.getDifference
* params - `{"pts": int, "date": int, "qts": int, }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/updates.getDifference`
Parameters:
pts - Json encoded int
date - Json encoded int
qts - Json encoded int
Or, if you're into Lua:
```
updates_Difference = updates.getDifference({pts=int, date=int, qts=int, })
```

View File

@ -6,61 +6,8 @@ description: updates.getState parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates*
**You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling updates**
### Return type: [updates\_State](../types/updates_State.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$updates_State = $MadelineProto->updates->getState();
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - updates.getState
* params - `{}`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/updates.getState`
Parameters:
Or, if you're into Lua:
```
updates_State = updates.getState({})
```

View File

@ -6,71 +6,8 @@ description: upload.getFile parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://daniil.it/MadelineProto for more info*
**You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://daniil.it/MadelineProto for more info**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|location|[InputFileLocation](../types/InputFileLocation.md) | Yes|
|offset|[int](../types/int.md) | Yes|
|limit|[int](../types/int.md) | Yes|
### Return type: [upload\_File](../types/upload_File.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$upload_File = $MadelineProto->upload->getFile(['location' => InputFileLocation, 'offset' => int, 'limit' => int, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - upload.getFile
* params - `{"location": InputFileLocation, "offset": int, "limit": int, }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/upload.getFile`
Parameters:
location - Json encoded InputFileLocation
offset - Json encoded int
limit - Json encoded int
Or, if you're into Lua:
```
upload_File = upload.getFile({location=InputFileLocation, offset=int, limit=int, })
```

View File

@ -6,73 +6,8 @@ description: upload.saveBigFilePart parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://daniil.it/MadelineProto for more info*
**You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://daniil.it/MadelineProto for more info**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|file\_id|[long](../types/long.md) | Yes|
|file\_part|[int](../types/int.md) | Yes|
|file\_total\_parts|[int](../types/int.md) | Yes|
|bytes|[bytes](../types/bytes.md) | Yes|
### Return type: [Bool](../types/Bool.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$Bool = $MadelineProto->upload->saveBigFilePart(['file_id' => long, 'file_part' => int, 'file_total_parts' => int, 'bytes' => 'bytes', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - upload.saveBigFilePart
* params - `{"file_id": long, "file_part": int, "file_total_parts": int, "bytes": "bytes", }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/upload.saveBigFilePart`
Parameters:
file_id - Json encoded long
file_part - Json encoded int
file_total_parts - Json encoded int
bytes - Json encoded bytes
Or, if you're into Lua:
```
Bool = upload.saveBigFilePart({file_id=long, file_part=int, file_total_parts=int, bytes='bytes', })
```

View File

@ -6,71 +6,8 @@ description: upload.saveFilePart parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://daniil.it/MadelineProto for more info*
**You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://daniil.it/MadelineProto for more info**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|file\_id|[long](../types/long.md) | Yes|
|file\_part|[int](../types/int.md) | Yes|
|bytes|[bytes](../types/bytes.md) | Yes|
### Return type: [Bool](../types/Bool.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$Bool = $MadelineProto->upload->saveFilePart(['file_id' => long, 'file_part' => int, 'bytes' => 'bytes', ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - upload.saveFilePart
* params - `{"file_id": long, "file_part": int, "bytes": "bytes", }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/upload.saveFilePart`
Parameters:
file_id - Json encoded long
file_part - Json encoded int
bytes - Json encoded bytes
Or, if you're into Lua:
```
Bool = upload.saveFilePart({file_id=long, file_part=int, bytes='bytes', })
```

View File

@ -6,67 +6,8 @@ description: users.getFullUser parameters, return type and example
[Back to methods index](index.md)
*You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://daniil.it/MadelineProto for more info)*
**You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://daniil.it/MadelineProto for more info)**
### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
|id|[InputUser](../types/InputUser.md) | Yes|
### Return type: [UserFull](../types/UserFull.md)
### Example:
```
$MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { // Login as a bot
$MadelineProto->bot_login($token);
}
if (isset($number)) { // Login as a user
$sentCode = $MadelineProto->phone_login($number);
echo 'Enter the code you received: ';
$code = '';
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
$code .= fgetc(STDIN);
}
$MadelineProto->complete_phone_login($code);
}
$UserFull = $MadelineProto->users->getFullUser(['id' => InputUser, ]);
```
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - users.getFullUser
* params - `{"id": InputUser, }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/users.getFullUser`
Parameters:
id - Json encoded InputUser
Or, if you're into Lua:
```
UserFull = users.getFullUser({id=InputUser, })
```

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