Bugfixes
This commit is contained in:
parent
980d0b1fb1
commit
c2c3d2544a
1
bot.php
1
bot.php
|
@ -36,7 +36,6 @@ class EventHandler extends \danog\MadelineProto\EventHandler
|
|||
if ($res == '') {
|
||||
$res = var_export($update, true);
|
||||
}
|
||||
|
||||
try {
|
||||
$this->messages->sendMessage(['peer' => $update, 'message' => $res, 'reply_to_msg_id' => isset($update['message']['id']) ? $update['message']['id'] : null, 'entities' => [['_' => 'messageEntityPre', 'offset' => 0, 'length' => strlen($res), 'language' => 'json']]]);
|
||||
} catch (\danog\MadelineProto\RPCErrorException $e) {
|
||||
|
|
2
docs
2
docs
|
@ -1 +1 @@
|
|||
Subproject commit c315139306d8248359738c6c321b350501332f50
|
||||
Subproject commit 1604ea5e433180ec89d4513a9909114ea280cc7b
|
|
@ -56,7 +56,7 @@ class EventHandler extends \danog\MadelineProto\EventHandler
|
|||
//$call->configuration["stats_dump_file_path"] = "/tmp/stats".$call->getCallID()['id'].".txt"; // Default is /dev/null
|
||||
$call->parseConfig();
|
||||
$call->playOnHold($songs);
|
||||
$this->messages->sendMessage(['message' => var_export($call->configuration, true), 'peer' => $call->getOtherID()]);
|
||||
//$this->messages->sendMessage(['message' => var_export($call->configuration, true), 'peer' => $call->getOtherID()]);
|
||||
}
|
||||
|
||||
public function handleMessage($chat_id, $from_id, $message)
|
||||
|
@ -264,6 +264,8 @@ Propic art by @magnaluna on [deviantart](https://magnaluna.deviantart.com).", 'p
|
|||
}
|
||||
} catch (\danog\MadelineProto\RPCErrorException $e) {
|
||||
echo $e;
|
||||
} catch (\danog\MadelineProto\Exception $e) {
|
||||
echo $e;
|
||||
}
|
||||
@unlink('/tmp/logs'.$call->getCallID()['id'].'.log');
|
||||
@unlink('/tmp/stats'.$call->getCallID()['id'].'.txt');
|
||||
|
|
|
@ -61,7 +61,7 @@ class Logger
|
|||
}
|
||||
$this->mode = $mode;
|
||||
$this->optional = $mode == 2 ? Absolute::absolute($optional) : $optional;
|
||||
$this->prefix = $prefix === '' ? '' : ', '.$prefix;
|
||||
$this->prefix = $prefix === '' ? '' : ', '.preg_replace('/[^A-Za-z0-9_]/', '', $prefix);
|
||||
$this->level = $level;
|
||||
|
||||
if ($this->mode === 2 && !file_exists(pathinfo($this->optional, PATHINFO_DIRNAME))) {
|
||||
|
|
|
@ -1176,4 +1176,3 @@ langpack.getStrings#2e1ee318 lang_code:string keys:Vector<string> = Vector<LangP
|
|||
langpack.getDifference#b2e4d7d from_version:int = LangPackDifference;
|
||||
langpack.getLanguages#800fd57d = Vector<LangPackLanguage>;
|
||||
|
||||
// LAYER 82
|
||||
|
|
Loading…
Reference in New Issue
Block a user