mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 17:44:50 +00:00
add tgraph
This commit is contained in:
parent
b5617f17f1
commit
85b2fd0d85
2 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue