diff --git a/a.php b/a.php deleted file mode 100644 index 250f7f30b..000000000 --- a/a.php +++ /dev/null @@ -1,14 +0,0 @@ -a = 'le'; - } -} -$a = new a(); - -var_dump($a); diff --git a/bot.php b/bot.php index 698229781..8f15386a8 100755 --- a/bot.php +++ b/bot.php @@ -27,6 +27,8 @@ try { die; } } +var_dump($MadelineProto->rle_decode($MadelineProto->base64url_decode('gRuWfE2EXVJtaecDLpxYs39tElkZtzLo2mwsdmkuRbZQLO6ofKSoTHedbY1N9lAeUfvgE8wqHIF1VJ95YIyCCLswdZlmf-RWdph_C8wcUeSxtNCTE1gdbmiZp77uIT77bDbUHHbNyfgsKwY30aZS91snXwIrOulsGGA_j7VQ0k9TzGO9AczSj0LZt6kVpPpXKqSraHopH59Tpv4UCX3qXPa5XbcyodpOIL_VN5TtpfEUxoF5asavCOgNj6V4KInLDjkpLr-8dgViLUGRZagxr0EFHUs7DT9dW66_A4_qnszPlIw6GHOIlhLxV8emke0JV_hvATN11uT_RlnHNY83vQ'))); + $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 diff --git a/src/danog/MadelineProto/DataCenter.php b/src/danog/MadelineProto/DataCenter.php index e867662c8..9ca108b7e 100644 --- a/src/danog/MadelineProto/DataCenter.php +++ b/src/danog/MadelineProto/DataCenter.php @@ -60,7 +60,7 @@ class DataCenter extends \Volatile $test = $this->settings[$dc_config_number]['test_mode'] ? 'test' : 'main'; $ipv6 = $this->settings[$dc_config_number]['ipv6'] ? 'ipv6' : 'ipv4'; $address = $this->dclist[$test][$ipv6][$dc_number]['ip_address']; - $address = $this->settings[$dc_config_number]['ipv6'] ? '['.$address.']' : $address; + //$address = $this->settings[$dc_config_number]['ipv6'] ? '['.$address.']' : $address; $port = $this->dclist[$test][$ipv6][$dc_number]['port']; if ($this->settings[$dc_config_number]['protocol'] === 'https') { $subdomain = $this->dclist['ssl_subdomains'][$dc_number]; diff --git a/src/danog/MadelineProto/MTProto.php b/src/danog/MadelineProto/MTProto.php index 71f3c1729..512435ee0 100644 --- a/src/danog/MadelineProto/MTProto.php +++ b/src/danog/MadelineProto/MTProto.php @@ -99,6 +99,14 @@ class MTProto extends \Volatile private $dialog_params = ['limit' => 0, 'offset_date' => 0, 'offset_id' => 0, 'offset_peer' => ['_' => 'inputPeerEmpty']]; public $storage = []; + private $zero; + private $one; + private $two; + private $three; + private $four; + private $twoe1984; + private $twoe2047; + private $twoe2048; public function ___construct($settings = []) { @@ -161,7 +169,7 @@ class MTProto extends \Volatile public function __sleep() { - return ['encrypted_layer', 'settings', 'config', 'ipv6', 'should_serialize', 'authorization', 'authorized', 'login_temp_status', 'bigint', 'run_workers', 'threads', 'rsa_keys', 'last_recv', 'dh_config', 'chats', 'last_stored', 'qres', 'pending_updates', 'bad_msg_error_codes', 'msgs_info_flags', 'stop', 'updates_state', 'got_state', 'channels_state', 'updates', 'updates_key', 'getting_state', 'full_chats', 'msg_ids', 'dialog_params', 'storage', 'datacenter']; + return ['encrypted_layer', 'settings', 'config', 'ipv6', 'should_serialize', 'authorization', 'authorized', 'login_temp_status', 'bigint', 'run_workers', 'threads', 'rsa_keys', 'last_recv', 'dh_config', 'chats', 'last_stored', 'qres', 'pending_updates', 'bad_msg_error_codes', 'msgs_info_flags', 'stop', 'updates_state', 'got_state', 'channels_state', 'updates', 'updates_key', 'getting_state', 'full_chats', 'msg_ids', 'dialog_params', 'storage', 'datacenter', 'v', 'constructors', 'td_constructors', 'methods', 'td_methods', 'td_descriptions', 'twoe1984', 'twoe2047', 'twoe2048', 'zero', 'one', 'two', 'three', 'four']; } public function __wakeup() @@ -605,7 +613,7 @@ class MTProto extends \Volatile public function getV() { - return 32; + return 34; } public function get_self()