Bugfixes
This commit is contained in:
parent
970b79d973
commit
47a77c498b
@ -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.')');
|
||||
|
@ -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],
|
||||
|
Loading…
Reference in New Issue
Block a user