diff options
Diffstat (limited to 'src/NeonXP/BotScript.php')
-rw-r--r-- | src/NeonXP/BotScript.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/NeonXP/BotScript.php b/src/NeonXP/BotScript.php index 5b912c5..3e94d1b 100644 --- a/src/NeonXP/BotScript.php +++ b/src/NeonXP/BotScript.php @@ -23,6 +23,9 @@ class BotScript }; $showLink = function (Message $message, Telegram $telegram) { $link = $telegram->getCache()->fetch("link_{$message->getChat()->getId()}"); + if (!$link) { + $link = 'Ссылка не задана! Используй /setlink'; + } $telegram->getMethods()->sendMessage($message->getChat(), $link); return State::INITIAL; |