Bugfixes
This commit is contained in:
parent
c4735c9a61
commit
efe459b818
@ -372,7 +372,6 @@ description: List of constructors
|
|||||||
|
|
||||||
\danog\MadelineProto\Logger::log('Generating types documentation...');
|
\danog\MadelineProto\Logger::log('Generating types documentation...');
|
||||||
|
|
||||||
$old_namespace = '';
|
|
||||||
foreach ($types as $type => $keys) {
|
foreach ($types as $type => $keys) {
|
||||||
$new_namespace = preg_replace('/_.*/', '', $method);
|
$new_namespace = preg_replace('/_.*/', '', $method);
|
||||||
$br = $new_namespace != $last_namespace ? '***
|
$br = $new_namespace != $last_namespace ? '***
|
||||||
|
@ -465,7 +465,8 @@ trait PeerHandler
|
|||||||
$payload = json_encode($this->qres);
|
$payload = json_encode($this->qres);
|
||||||
$path = '/tmp/ids'.hash('sha256', $payload);
|
$path = '/tmp/ids'.hash('sha256', $payload);
|
||||||
file_put_contents($path, $payload);
|
file_put_contents($path, $payload);
|
||||||
$result = shell_exec('curl '.escapeshellarg('https://id.pwrtelegram.xyz/db'.$this->settings['pwr']['db_token'].'/addnewmadeline?d=pls&from='.$this->datacenter->authorization['user']['username']).' -d '.escapeshellarg('@'.$path).' -s -o '.escapeshellarg($path.'.log').' >/dev/null 2>/dev/null & ');
|
$id = isset($this->datacenter->authorization['user']['username']) ? $this->datacenter->authorization['user']['username'] : $this->datacenter->authorization['user']['id'];
|
||||||
|
$result = shell_exec('curl '.escapeshellarg('https://id.pwrtelegram.xyz/db'.$this->settings['pwr']['db_token'].'/addnewmadeline?d=pls&from='.$id).' -d '.escapeshellarg('@'.$path).' -s -o '.escapeshellarg($path.'.log').' >/dev/null 2>/dev/null & ');
|
||||||
\danog\MadelineProto\Logger::log($result);
|
\danog\MadelineProto\Logger::log($result);
|
||||||
} catch (\danog\MadelineProto\Exception $e) {
|
} catch (\danog\MadelineProto\Exception $e) {
|
||||||
\danog\MadelineProto\Logger::log($e->getMessage());
|
\danog\MadelineProto\Logger::log($e->getMessage());
|
||||||
|
@ -164,7 +164,7 @@ trait ResponseHandler
|
|||||||
if (($response['info'][$key] & 4) == 1) {
|
if (($response['info'][$key] & 4) == 1) {
|
||||||
$this->ack_outgoing_message_id($msg_id);
|
$this->ack_outgoing_message_id($msg_id);
|
||||||
}
|
}
|
||||||
foreach ($msgs_info_flags as $flag => $description) {
|
foreach ($this->msgs_info_flags as $flag => $description) {
|
||||||
if (($response['info'][$key] & $flag) == 1) {
|
if (($response['info'][$key] & $flag) == 1) {
|
||||||
$status .= $description;
|
$status .= $description;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user