Log
This commit is contained in:
parent
290c17b76a
commit
7d0efdb8ab
@ -270,6 +270,8 @@ trait Files
|
||||
$res = $cdn ? $this->method_call('upload.getCdnFile', ['file_token' => $info['file_token'], 'offset' => $offset, 'limit' => $part_size], ['heavy' => true, 'datacenter' => $datacenter]) : $this->method_call('upload.getFile', ['location' => $info['InputFileLocation'], 'offset' => $offset, 'limit' => $part_size], ['heavy' => true, 'datacenter' => $datacenter]);
|
||||
} catch (\danog\MadelineProto\RPCErrorException $e) {
|
||||
if ($e->getMessage() === 'OFFSET_INVALID') {
|
||||
\Rollbar\Rollbar::log($info);
|
||||
\Rollbar\Rollbar::log($offset);
|
||||
break;
|
||||
} else {
|
||||
throw $e;
|
||||
|
@ -518,7 +518,7 @@ trait PeerHandler
|
||||
|
||||
public function resolve_username($username)
|
||||
{
|
||||
\Rollbar\Rollbar::log($username);
|
||||
//\Rollbar\Rollbar::log($username);
|
||||
$res = $this->method_call('contacts.resolveUsername', ['username' => str_replace('@', '', $username)], ['datacenter' => $this->datacenter->curdc]);
|
||||
if ($res['_'] === 'contacts.resolvedPeer') {
|
||||
return $res;
|
||||
|
Loading…
Reference in New Issue
Block a user