mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-01 02:24:52 +00:00
Fix
This commit is contained in:
parent
011f0c9b56
commit
bf62324e79
1 changed files with 2 additions and 2 deletions
|
|
@ -103,7 +103,7 @@ async def nekopaste(_, message):
|
|||
uname = message.sender_chat.title
|
||||
|
||||
try:
|
||||
x = await http.post("https://nekobin.com/api/documents", json={"content": data})
|
||||
x = (await http.post("https://nekobin.com/api/documents", json={"content": data})).json()
|
||||
url = f"https://nekobin.com/{x['result']['key']}"
|
||||
except Exception as e:
|
||||
await msg.edit(f"ERROR: {e}")
|
||||
|
|
@ -161,7 +161,7 @@ async def spacebinn(_, message):
|
|||
|
||||
try:
|
||||
siteurl = "https://spaceb.in/api/v1/documents/"
|
||||
response = await http.post(siteurl, data={"content": data, "extension": 'txt'} )
|
||||
response = await http.post(siteurl, data={"content": data, "extension": 'txt'})
|
||||
response = response.json()
|
||||
url = "https://spaceb.in/"+response['payload']['id']
|
||||
except Exception as e:
|
||||
|
|
|
|||
Loading…
Reference in a new issue