Added custom TL exception trace, reduced memory usage, fixed fetching of dialog list
This commit is contained in:
parent
e1503ab68a
commit
849ee4aa73
23
bot.php
23
bot.php
@ -29,27 +29,8 @@ try {
|
||||
}
|
||||
//var_dump($MadelineProto->API->get_config([], ['datacenter' => $MadelineProto->API->datacenter->curdc]));
|
||||
//var_dump($MadelineProto->API->settings['connection']);
|
||||
/*
|
||||
$dialog_params = ['limit' => 0, 'offset_date' => 0, 'offset_id' => 0, 'offset_peer' => ['_' => 'inputPeerEmpty']];
|
||||
$MadelineProto->API->updates_state['sync_loading'] = true;
|
||||
$res = ['dialogs' => [0]];
|
||||
$datacenter = $MadelineProto->API->datacenter->curdc;
|
||||
$count = 0;
|
||||
while (count($res['dialogs'])) {
|
||||
\danog\MadelineProto\Logger::log(['Getting dialogs...']);
|
||||
$res = $MadelineProto->API->method_call('messages.getDialogs', $MadelineProto->API->dialog_params, ['datacenter' => $datacenter, 'FloodWaitLimit' => 100]);
|
||||
$count += count($res['dialogs']);
|
||||
$old_params = $MadelineProto->API->dialog_params;
|
||||
$MadelineProto->API->dialog_params['offset_date'] = end($res['messages'])['date'];
|
||||
$MadelineProto->API->dialog_params['offset_peer'] = end($res['dialogs'])['peer'];
|
||||
$MadelineProto->API->dialog_params['offset_id'] = end($res['messages'])['id'];
|
||||
if ($MadelineProto->API->dialog_params === $old_params) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
echo 'Wrote '.\danog\MadelineProto\Serialization::serialize('bot.madeline', $MadelineProto).' bytes'.PHP_EOL;
|
||||
|
||||
$MadelineProto->API->updates_state['sync_loading'] = false;
|
||||
*/
|
||||
$offset = 0;
|
||||
while (true) {
|
||||
$updates = $MadelineProto->API->get_updates(['offset' => $offset, 'limit' => 50, 'timeout' => 0]); // Just like in the bot API, you can specify an offset, a limit and a timeout
|
||||
@ -72,7 +53,7 @@ while (true) {
|
||||
$MadelineProto->messages->sendMessage(['peer' => '@danogentili', 'message' => $e->getCode().': '.$e->getMessage().PHP_EOL.$e->getTraceAsString()]);
|
||||
}
|
||||
try {
|
||||
if (isset($update['update']['message']['from_id']) && isset($update['update']['message']['media']) && ($update['update']['message']['media']['_'] == 'messageMediaPhoto' || $update['update']['message']['media']['_'] == 'messageMediaDocument')) {
|
||||
if (isset($update['update']['message']['media']) && ($update['update']['message']['media']['_'] == 'messageMediaPhoto' || $update['update']['message']['media']['_'] == 'messageMediaDocument')) {
|
||||
$time = time();
|
||||
$file = $MadelineProto->download_to_dir($update['update']['message']['media'], '/tmp');
|
||||
$MadelineProto->messages->sendMessage(['peer' => $update['update']['message']['from_id'], 'message' => 'Downloaded to '.$file.' in '.(time() - $time).' seconds', 'reply_to_msg_id' => $update['update']['message']['id'], 'entities' => [['_' => 'messageEntityPre', 'offset' => 0, 'length' => strlen($res), 'language' => 'json']]]);
|
||||
|
@ -6,6 +6,11 @@ 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)*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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)*
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### Return type: [Bool](../types/Bool.md)
|
||||
|
@ -6,6 +6,11 @@ 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)*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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)*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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)*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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)*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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)*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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)*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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)*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### Return type: [updates\_State](../types/updates_State.md)
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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)*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -1,8 +1,8 @@
|
||||
---
|
||||
title: integer
|
||||
description: A 32 bit signed integer ranging from -2147483647 to 2147483647
|
||||
description: A 32 bit signed integer ranging from -2147483648 to 2147483647
|
||||
---
|
||||
## Type: int
|
||||
[Back to constructor index](index.md)
|
||||
|
||||
A 32 bit signed integer ranging from `-2147483647` to `2147483647`.
|
||||
A 32 bit signed integer ranging from `-2147483648` to `2147483647`.
|
||||
|
@ -1,8 +1,8 @@
|
||||
---
|
||||
title: long
|
||||
description: A 32 bit signed integer ranging from -9223372036854775807 to 9223372036854775807
|
||||
description: A 32 bit signed integer ranging from -9223372036854775808 to 9223372036854775807
|
||||
---
|
||||
## Type: long
|
||||
[Back to constructor index](index.md)
|
||||
|
||||
A 64 bit signed integer ranging from `-9223372036854775807` to `9223372036854775807`.
|
||||
A 64 bit signed integer ranging from `-9223372036854775808` to `9223372036854775807`.
|
||||
|
@ -1,8 +1,8 @@
|
||||
---
|
||||
title: integer
|
||||
description: A 32 bit signed integer ranging from -2147483647 to 2147483647
|
||||
description: A 32 bit signed integer ranging from -2147483648 to 2147483647
|
||||
---
|
||||
## Type: int
|
||||
[Back to constructor index](index.md)
|
||||
|
||||
A 32 bit signed integer ranging from `-2147483647` to `2147483647`.
|
||||
A 32 bit signed integer ranging from `-2147483648` to `2147483647`.
|
||||
|
@ -1,8 +1,8 @@
|
||||
---
|
||||
title: long
|
||||
description: A 32 bit signed integer ranging from -9223372036854775807 to 9223372036854775807
|
||||
description: A 32 bit signed integer ranging from -9223372036854775808 to 9223372036854775807
|
||||
---
|
||||
## Type: long
|
||||
[Back to constructor index](index.md)
|
||||
|
||||
A 64 bit signed integer ranging from `-9223372036854775807` to `9223372036854775807`.
|
||||
A 64 bit signed integer ranging from `-9223372036854775808` to `9223372036854775807`.
|
||||
|
@ -1,8 +1,8 @@
|
||||
---
|
||||
title: integer
|
||||
description: A 32 bit signed integer ranging from -2147483647 to 2147483647
|
||||
description: A 32 bit signed integer ranging from -2147483648 to 2147483647
|
||||
---
|
||||
## Type: int
|
||||
[Back to constructor index](index.md)
|
||||
|
||||
A 32 bit signed integer ranging from `-2147483647` to `2147483647`.
|
||||
A 32 bit signed integer ranging from `-2147483648` to `2147483647`.
|
||||
|
@ -1,8 +1,8 @@
|
||||
---
|
||||
title: long
|
||||
description: A 32 bit signed integer ranging from -9223372036854775807 to 9223372036854775807
|
||||
description: A 32 bit signed integer ranging from -9223372036854775808 to 9223372036854775807
|
||||
---
|
||||
## Type: long
|
||||
[Back to constructor index](index.md)
|
||||
|
||||
A 64 bit signed integer ranging from `-9223372036854775807` to `9223372036854775807`.
|
||||
A 64 bit signed integer ranging from `-9223372036854775808` to `9223372036854775807`.
|
||||
|
@ -6,6 +6,11 @@ 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)*
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### Return type: [Bool](../types/Bool.md)
|
||||
|
@ -6,6 +6,11 @@ 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)*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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)*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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)*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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)*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### Return type: [updates\_State](../types/updates_State.md)
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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)*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -1,8 +1,8 @@
|
||||
---
|
||||
title: integer
|
||||
description: A 32 bit signed integer ranging from -2147483647 to 2147483647
|
||||
description: A 32 bit signed integer ranging from -2147483648 to 2147483647
|
||||
---
|
||||
## Type: int
|
||||
[Back to constructor index](index.md)
|
||||
|
||||
A 32 bit signed integer ranging from `-2147483647` to `2147483647`.
|
||||
A 32 bit signed integer ranging from `-2147483648` to `2147483647`.
|
||||
|
@ -1,8 +1,8 @@
|
||||
---
|
||||
title: long
|
||||
description: A 32 bit signed integer ranging from -9223372036854775807 to 9223372036854775807
|
||||
description: A 32 bit signed integer ranging from -9223372036854775808 to 9223372036854775807
|
||||
---
|
||||
## Type: long
|
||||
[Back to constructor index](index.md)
|
||||
|
||||
A 64 bit signed integer ranging from `-9223372036854775807` to `9223372036854775807`.
|
||||
A 64 bit signed integer ranging from `-9223372036854775808` to `9223372036854775807`.
|
||||
|
@ -6,6 +6,11 @@ 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)*
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### Return type: [Bool](../types/Bool.md)
|
||||
|
@ -6,6 +6,11 @@ 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)*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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)*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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)*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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)*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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)*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### Return type: [updates\_State](../types/updates_State.md)
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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)*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -1,8 +1,8 @@
|
||||
---
|
||||
title: integer
|
||||
description: A 32 bit signed integer ranging from -2147483647 to 2147483647
|
||||
description: A 32 bit signed integer ranging from -2147483648 to 2147483647
|
||||
---
|
||||
## Type: int
|
||||
[Back to constructor index](index.md)
|
||||
|
||||
A 32 bit signed integer ranging from `-2147483647` to `2147483647`.
|
||||
A 32 bit signed integer ranging from `-2147483648` to `2147483647`.
|
||||
|
@ -1,8 +1,8 @@
|
||||
---
|
||||
title: long
|
||||
description: A 32 bit signed integer ranging from -9223372036854775807 to 9223372036854775807
|
||||
description: A 32 bit signed integer ranging from -9223372036854775808 to 9223372036854775807
|
||||
---
|
||||
## Type: long
|
||||
[Back to constructor index](index.md)
|
||||
|
||||
A 64 bit signed integer ranging from `-9223372036854775807` to `9223372036854775807`.
|
||||
A 64 bit signed integer ranging from `-9223372036854775808` to `9223372036854775807`.
|
||||
|
@ -6,6 +6,11 @@ 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)*
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### Return type: [Bool](../types/Bool.md)
|
||||
|
@ -6,6 +6,11 @@ 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)*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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)*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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)*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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)*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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)*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### Return type: [updates\_State](../types/updates_State.md)
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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)*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -1,8 +1,8 @@
|
||||
---
|
||||
title: integer
|
||||
description: A 32 bit signed integer ranging from -2147483647 to 2147483647
|
||||
description: A 32 bit signed integer ranging from -2147483648 to 2147483647
|
||||
---
|
||||
## Type: int
|
||||
[Back to constructor index](index.md)
|
||||
|
||||
A 32 bit signed integer ranging from `-2147483647` to `2147483647`.
|
||||
A 32 bit signed integer ranging from `-2147483648` to `2147483647`.
|
||||
|
@ -1,8 +1,8 @@
|
||||
---
|
||||
title: long
|
||||
description: A 32 bit signed integer ranging from -9223372036854775807 to 9223372036854775807
|
||||
description: A 32 bit signed integer ranging from -9223372036854775808 to 9223372036854775807
|
||||
---
|
||||
## Type: long
|
||||
[Back to constructor index](index.md)
|
||||
|
||||
A 64 bit signed integer ranging from `-9223372036854775807` to `9223372036854775807`.
|
||||
A 64 bit signed integer ranging from `-9223372036854775808` to `9223372036854775807`.
|
||||
|
@ -6,6 +6,11 @@ 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)*
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### Return type: [Bool](../types/Bool.md)
|
||||
|
@ -6,6 +6,11 @@ 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)*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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)*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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)*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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)*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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)*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### Return type: [updates\_State](../types/updates_State.md)
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -6,6 +6,11 @@ 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)*
|
||||
|
||||
|
||||
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Required |
|
||||
|
@ -1,8 +1,8 @@
|
||||
---
|
||||
title: integer
|
||||
description: A 32 bit signed integer ranging from -2147483647 to 2147483647
|
||||
description: A 32 bit signed integer ranging from -2147483648 to 2147483647
|
||||
---
|
||||
## Type: int
|
||||
[Back to constructor index](index.md)
|
||||
|
||||
A 32 bit signed integer ranging from `-2147483647` to `2147483647`.
|
||||
A 32 bit signed integer ranging from `-2147483648` to `2147483647`.
|
||||
|
@ -1,8 +1,8 @@
|
||||
---
|
||||
title: long
|
||||
description: A 32 bit signed integer ranging from -9223372036854775807 to 9223372036854775807
|
||||
description: A 32 bit signed integer ranging from -9223372036854775808 to 9223372036854775807
|
||||
---
|
||||
## Type: long
|
||||
[Back to constructor index](index.md)
|
||||
|
||||
A 64 bit signed integer ranging from `-9223372036854775807` to `9223372036854775807`.
|
||||
A 64 bit signed integer ranging from `-9223372036854775808` to `9223372036854775807`.
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user