def METHOD_NAME(
    cls,
    path: Union[str, Path],
    filename: Optional[str] = None,
    chunk_size: int = DEFAULT_CHUNK_SIZE,
) -> BufferedInputFile:
    """
    Create buffer from file
    :param path: Path to file
    :param filename: Filename to be propagated to telegram.
        By default, will be parsed from path
    :param chunk_size: Uploading chunk size
    :return: instance of :obj:`BufferedInputFile`
    """
    if filename is None:
        filename = os.path.basename(path)
    with open(path, "rb") as f:
        data = f.read()
    return cls(data, filename=filename, chunk_size=chunk_size)