fix botname

This commit is contained in:
yasirarism 2023-05-22 15:24:25 +00:00 committed by GitHub
parent 6348766cce
commit f5889bbfea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -95,7 +95,7 @@ async def byPassPh(url: str, name: str):
html = chevron.render(template, kusonime)
telegraph = Telegraph()
if not telegraph.get_access_token():
await telegraph.create_account(short_name=bot_name)
await telegraph.create_account(short_name=BOT_USERNAME)
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"]