Commit f15973f6 authored by Armando Lüscher's avatar Armando Lüscher

Fix cancel command if no database is connected.

parent 990485bf
...@@ -60,7 +60,7 @@ class CancelCommand extends UserCommand ...@@ -60,7 +60,7 @@ class CancelCommand extends UserCommand
*/ */
public function executeNoDb() public function executeNoDb()
{ {
return $this->hideKeyboard(); return $this->hideKeyboard('Nothing to cancel.');
} }
/** /**
...@@ -70,7 +70,7 @@ class CancelCommand extends UserCommand ...@@ -70,7 +70,7 @@ class CancelCommand extends UserCommand
* *
* @return Entities\ServerResponse * @return Entities\ServerResponse
*/ */
private function hideKeyboard($text = '') private function hideKeyboard($text)
{ {
return Request::sendMessage([ return Request::sendMessage([
'reply_markup' => new ReplyKeyboardHide(['selective' => true]), 'reply_markup' => new ReplyKeyboardHide(['selective' => true]),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment