|
@@ -401,7 +401,7 @@ class Config extends Controller
|
|
|
$telegram->pinChatMessage(['chat_id' => "@{$config['chatId']}", 'message_id' => $messageId]);
|
|
$telegram->pinChatMessage(['chat_id' => "@{$config['chatId']}", 'message_id' => $messageId]);
|
|
|
}
|
|
}
|
|
|
} catch (TelegramSDKException $e) {
|
|
} catch (TelegramSDKException $e) {
|
|
|
- return $this->error(HttpStatus::CUSTOM_ERROR, '保存成功,发送失败');
|
|
|
|
|
|
|
+ return $this->error(HttpStatus::CUSTOM_ERROR, '保存成功,发送失败',$e->getMessage());
|
|
|
} catch (Exception $e) {
|
|
} catch (Exception $e) {
|
|
|
return $this->error($e->getCode(), '保存成功,发送失败');
|
|
return $this->error($e->getCode(), '保存成功,发送失败');
|
|
|
}
|
|
}
|