<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def from_url(cls, url, filename=None, chunk_size=CHUNK_SIZE):
 """ Download file from URL Manually is not required action. You can send urls instead! :param url: target URL :param filename: optional. set custom file name :param chunk_size: :return: InputFile """

        pipe = _WebPipe(url, chunk_size=chunk_size)
        if filename is None:
            filename = pipe.name

        return cls(pipe, filename, chunk_size)