add tgraph

This commit is contained in:
yasir 2023-02-09 14:10:42 +07:00
parent b5617f17f1
commit 85b2fd0d85
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,7 @@ from utils import LOGGER
async def post_to_telegraph(is_media: bool, title=None, content=None, media=None):
telegraph = Telegraph()
LOGGER.info(await telegraph.create_account(short_name='MissKaty'))
await telegraph.create_account(short_name='MissKaty')
if is_media:
"""Create a Telegram Post Foto/Video"""
response = await telegraph.upload_file(media)

View file

@ -115,7 +115,7 @@ async def telegraph_paste(_, message):
data = message.text.split(None, 1)[1]
try:
url = await post_to_telegraph(False, title, data)
url = await post_to_telegraph(False, title=title, data=data)
except Exception as e:
await msg.edit(f"ERROR: {e}")
return