public function verifyRequest(): void
    {
        $type = $this->request->getParameter('type');
        $object = $this->request->getParameter('object');

        if ($type === null || $type !== 'message_new') {
            throw new InvalidRequest('Invalid type');
        }

        if ($object === null) {
            throw new InvalidRequest('Invalid object');
        }

        if (!isset($object['user_id'])) {
            throw new InvalidRequest('Invalid user_id');
        }

        if (!isset($object['body'])) {
            throw new InvalidRequest('Invalid body');
        }
    }