pwr fixes
This commit is contained in:
parent
e469f05d64
commit
3d5e0baee9
@ -55,6 +55,7 @@ trait UpdateHandler
|
|||||||
\danog\MadelineProto\Logger::log($e->getMessage());
|
\danog\MadelineProto\Logger::log($e->getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (isset($this->settings['pwr']['update_handler'])) $this->settings['pwr']['update_handler']($update);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function get_updates_update_handler($update)
|
public function get_updates_update_handler($update)
|
||||||
|
@ -78,7 +78,7 @@ trait TL
|
|||||||
{
|
{
|
||||||
$tl_method = $this->methods->find_by_method($method);
|
$tl_method = $this->methods->find_by_method($method);
|
||||||
if ($tl_method === false) {
|
if ($tl_method === false) {
|
||||||
throw new Exception('Could not extract type: '.$method);
|
throw new Exception('Could not extract method: '.$method);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count(array_filter(array_keys($arguments), 'is_string')) == 0) {
|
if (count(array_filter(array_keys($arguments), 'is_string')) == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user