Longman\TelegramBot\Commands\UserCommands\ForceReplyCommand::execute PHP 메소드

execute() 공개 메소드

public execute ( )
    public function execute()
    {
        $chat_id = $this->getMessage()->getChat()->getId();
        $data = ['chat_id' => $chat_id, 'text' => 'Write something:', 'reply_markup' => Keyboard::forceReply()];
        return Request::sendMessage($data);
    }
ForceReplyCommand