mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-03 02:54:52 +00:00
fix
This commit is contained in:
parent
c6c61cd5ab
commit
9aa6152950
1 changed files with 2 additions and 2 deletions
|
|
@ -1,8 +1,8 @@
|
|||
import html
|
||||
import re
|
||||
import traceback
|
||||
import chevron
|
||||
import logging
|
||||
from html import escape
|
||||
from telegraph.aio import Telegraph
|
||||
from misskaty.helper.http import http
|
||||
from misskaty import BOT_USERNAME
|
||||
|
|
@ -97,7 +97,7 @@ async def byPassPh(url: str, name: str):
|
|||
telegraph = Telegraph()
|
||||
if not telegraph.get_access_token():
|
||||
await telegraph.create_account(short_name=BOT_USERNAME)
|
||||
page = await telegraph.create_page(f"{kusonime.get('title')} By {html.escape(name)}", html_content=html)
|
||||
page = await telegraph.create_page(f"{kusonime.get('title')} By {escape(name)}", html_content=html)
|
||||
results.update({"error": False, "url": "https://telegra.ph/{}".format(page["path"])})
|
||||
del results["error_message"]
|
||||
return results
|
||||
|
|
|
|||
Loading…
Reference in a new issue