import html import datetime page: str = ''' Files

Files

''' pub index: str = f''' {page}
Uploading…
''' def file_page(file_id: str, filename: str, expires: str) -> str: href = f'{file_id}/download' expires_in = datetime.datetime.strptime(expires, '%Y-%m-%d %H:%M:%S') - datetime.datetime.now() print() print(href) print() return f''' {page}
{html.escape(filename)}
Expires in {expires_in}
''' not_found: str = f''' {page} Oops, not found! '''