mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-27 08:34:41 +01:00
Apply fixes from StyleCI
This commit is contained in:
parent
d5b589877a
commit
558246ab90
@ -375,7 +375,7 @@ Slv8kg9qv1m6XHVQY3PnEw+QQtqSIXklHwIDAQAB
|
||||
public function setup_logger()
|
||||
{
|
||||
\Rollbar\Rollbar::init(['environment' => 'production', 'root' => __DIR__, 'access_token' => '31979a2053e045548573d29232dde9c5'], true, false);
|
||||
\danog\MadelineProto\Logger::constructor($this->settings['logger']['logger'], $this->settings['logger']['logger_param'],isset($this->authorization['user']) ? (isset($this->authorization['user']['username']) ? $this->authorization['user']['username'] : $this->authorization['user']['id']) : '', isset($this->settings['logger']['logger_level']) ? $this->settings['logger']['logger_level'] : Logger::VERBOSE);
|
||||
\danog\MadelineProto\Logger::constructor($this->settings['logger']['logger'], $this->settings['logger']['logger_param'], isset($this->authorization['user']) ? (isset($this->authorization['user']['username']) ? $this->authorization['user']['username'] : $this->authorization['user']['id']) : '', isset($this->settings['logger']['logger_level']) ? $this->settings['logger']['logger_level'] : Logger::VERBOSE);
|
||||
}
|
||||
|
||||
public function reset_session($de = true, $auth_key = false)
|
||||
|
@ -17,11 +17,11 @@ class RPCErrorException extends \Exception
|
||||
public function __construct($message = null, $code = 0, Exception $previous = null)
|
||||
{
|
||||
switch ($message) {
|
||||
case 'RPC_CALL_FAIL': $message = 'Telegram is having internal issues, please try again later.';break;
|
||||
case 'CHANNEL_PRIVATE':$message = "You haven't joined this channel/supergroup";break;
|
||||
case 'FLOOD_WAIT_666':$message = 'Spooky af m8';break;
|
||||
case 'BOT_METHOD_INVALID':$message = 'This method cannot be run by a bot';break;
|
||||
|
||||
case 'RPC_CALL_FAIL': $message = 'Telegram is having internal issues, please try again later.'; break;
|
||||
case 'CHANNEL_PRIVATE':$message = "You haven't joined this channel/supergroup"; break;
|
||||
case 'FLOOD_WAIT_666':$message = 'Spooky af m8'; break;
|
||||
case 'BOT_METHOD_INVALID':$message = 'This method cannot be run by a bot'; break;
|
||||
|
||||
}
|
||||
parent::__construct($message, $code, $previous);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user