@classmethod<EOL><INDENT>def from_url(cls, url, *, adapter):<DEDENT>
m = re.search(r'<STR_LIT>', url)<EOL>if m is None:<EOL><INDENT>raise InvalidArgument('<STR_LIT>')<EOL><DEDENT>return cls(m.groupdict(), adapter=adapter)<EOL>
Creates a partial :class:`Webhook` from a webhook URL.

        Parameters
        ------------
        url: :class:`str`
            The URL of the webhook.
        adapter: :class:`WebhookAdapter`
            The webhook adapter to use when sending requests. This is
            typically :class:`AsyncWebhookAdapter` for ``aiohttp`` or
            :class:`RequestsWebhookAdapter` for ``requests``.

        Raises
        -------
        InvalidArgument
            The URL is invalid.