This commit is contained in:
Daniil Gentili 2017-01-23 17:27:20 +01:00
parent 970b79d973
commit 47a77c498b
2 changed files with 2 additions and 2 deletions

View File

@ -135,7 +135,7 @@ trait CallHandler
$this->datacenter->outgoing_messages[$int_message_id]['args'] = [];
}
}
if ($server_answer == null) {
if ($server_answer === null) {
throw new \danog\MadelineProto\Exception('An error occurred while calling method '.$method.'.');
}
\danog\MadelineProto\Logger::log('Got response for method '.$method.' @ try '.$count.' (response try '.$res_count.')');

View File

@ -38,7 +38,7 @@ class TLMethod extends TLParams
public function find_by_method($method)
{
$key = array_search(strtolower($method), array_map('strtolower', $this->method));
$key = array_search($method, $this->method);
return ($key === false) ? false : [
'id' => $this->id[$key],