diff --git a/src/Commands/Command.php b/src/Commands/Command.php index 0d532508..5ddba9d6 100644 --- a/src/Commands/Command.php +++ b/src/Commands/Command.php @@ -193,7 +193,7 @@ public function preExecute(): ServerResponse 'text' => sprintf( "/%s command is only available in a private chat.\n(`%s`)", $this->getName(), - $message->getText() + $message->getText(), ), ]); } @@ -422,11 +422,11 @@ public function replyToChat(string $text, array $data = []): ServerResponse 'chat_id' => $message->getChat()->getId(), 'text' => $text, ]; - + if ($message->getIsTopicMessage()) { $reply['message_thread_id'] = $message->getMessageThreadId(); } - + return Request::sendMessage(array_merge($reply, $data)); }