This commit is contained in:
Daniil Gentili 2017-04-23 18:03:37 +02:00
parent 290c17b76a
commit 7d0efdb8ab
2 changed files with 3 additions and 1 deletions

View File

@ -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;

View File

@ -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;