pwr fixes

This commit is contained in:
Daniil Gentili 2017-01-22 02:34:56 +01:00
parent e469f05d64
commit 3d5e0baee9
2 changed files with 2 additions and 1 deletions

View File

@ -55,6 +55,7 @@ trait UpdateHandler
\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)

View File

@ -78,7 +78,7 @@ trait TL
{
$tl_method = $this->methods->find_by_method($method);
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) {