Fixes
This commit is contained in:
parent
2680b68751
commit
a84c36b60f
14
a.php
14
a.php
@ -1,14 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
require 'vendor/autoload.php';
|
|
||||||
class a extends Volatile
|
|
||||||
{
|
|
||||||
// public $a = [];
|
|
||||||
public function __construct()
|
|
||||||
{
|
|
||||||
$this->a = 'le';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
$a = new a();
|
|
||||||
|
|
||||||
var_dump($a);
|
|
2
bot.php
2
bot.php
@ -27,6 +27,8 @@ try {
|
|||||||
die;
|
die;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
var_dump($MadelineProto->rle_decode($MadelineProto->base64url_decode('gRuWfE2EXVJtaecDLpxYs39tElkZtzLo2mwsdmkuRbZQLO6ofKSoTHedbY1N9lAeUfvgE8wqHIF1VJ95YIyCCLswdZlmf-RWdph_C8wcUeSxtNCTE1gdbmiZp77uIT77bDbUHHbNyfgsKwY30aZS91snXwIrOulsGGA_j7VQ0k9TzGO9AczSj0LZt6kVpPpXKqSraHopH59Tpv4UCX3qXPa5XbcyodpOIL_VN5TtpfEUxoF5asavCOgNj6V4KInLDjkpLr-8dgViLUGRZagxr0EFHUs7DT9dW66_A4_qnszPlIw6GHOIlhLxV8emke0JV_hvATN11uT_RlnHNY83vQ')));
|
||||||
|
|
||||||
$offset = 0;
|
$offset = 0;
|
||||||
while (true) {
|
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
|
$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
|
||||||
|
@ -60,7 +60,7 @@ class DataCenter extends \Volatile
|
|||||||
$test = $this->settings[$dc_config_number]['test_mode'] ? 'test' : 'main';
|
$test = $this->settings[$dc_config_number]['test_mode'] ? 'test' : 'main';
|
||||||
$ipv6 = $this->settings[$dc_config_number]['ipv6'] ? 'ipv6' : 'ipv4';
|
$ipv6 = $this->settings[$dc_config_number]['ipv6'] ? 'ipv6' : 'ipv4';
|
||||||
$address = $this->dclist[$test][$ipv6][$dc_number]['ip_address'];
|
$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'];
|
$port = $this->dclist[$test][$ipv6][$dc_number]['port'];
|
||||||
if ($this->settings[$dc_config_number]['protocol'] === 'https') {
|
if ($this->settings[$dc_config_number]['protocol'] === 'https') {
|
||||||
$subdomain = $this->dclist['ssl_subdomains'][$dc_number];
|
$subdomain = $this->dclist['ssl_subdomains'][$dc_number];
|
||||||
|
@ -99,6 +99,14 @@ class MTProto extends \Volatile
|
|||||||
|
|
||||||
private $dialog_params = ['limit' => 0, 'offset_date' => 0, 'offset_id' => 0, 'offset_peer' => ['_' => 'inputPeerEmpty']];
|
private $dialog_params = ['limit' => 0, 'offset_date' => 0, 'offset_id' => 0, 'offset_peer' => ['_' => 'inputPeerEmpty']];
|
||||||
public $storage = [];
|
public $storage = [];
|
||||||
|
private $zero;
|
||||||
|
private $one;
|
||||||
|
private $two;
|
||||||
|
private $three;
|
||||||
|
private $four;
|
||||||
|
private $twoe1984;
|
||||||
|
private $twoe2047;
|
||||||
|
private $twoe2048;
|
||||||
|
|
||||||
public function ___construct($settings = [])
|
public function ___construct($settings = [])
|
||||||
{
|
{
|
||||||
@ -161,7 +169,7 @@ class MTProto extends \Volatile
|
|||||||
|
|
||||||
public function __sleep()
|
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()
|
public function __wakeup()
|
||||||
@ -605,7 +613,7 @@ class MTProto extends \Volatile
|
|||||||
|
|
||||||
public function getV()
|
public function getV()
|
||||||
{
|
{
|
||||||
return 32;
|
return 34;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function get_self()
|
public function get_self()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user