Longman\TelegramBot\Commands\SystemCommands\GenericmessageCommand::execute PHP Метод

execute() публичный Метод

Execute command
public execute ( ) : ServerResponse
Результат Longman\TelegramBot\Entities\ServerResponse
    public function execute()
    {
        //If a conversation is busy, execute the conversation command after handling the message
        $conversation = new Conversation($this->getMessage()->getFrom()->getId(), $this->getMessage()->getChat()->getId());
        //Fetch conversation command if it exists and execute it
        if ($conversation->exists() && ($command = $conversation->getCommand())) {
            return $this->telegram->executeCommand($command);
        }
        return Request::emptyResponse();
    }
GenericmessageCommand