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