mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-03 19:14:51 +00:00
Fix spacebin paste
This commit is contained in:
parent
a89a3cabcd
commit
6d855662a0
1 changed files with 2 additions and 2 deletions
|
|
@ -350,8 +350,8 @@ async def spacebinn(_, message):
|
||||||
uname = message.sender_chat.title
|
uname = message.sender_chat.title
|
||||||
|
|
||||||
try:
|
try:
|
||||||
siteurl = "https://spaceb.in/api/v1/documents/"
|
siteurl = "https://spaceb.in/api/"
|
||||||
response = await fetch.post(siteurl, data={"content": data, "extension": "txt"})
|
response = await fetch.post(siteurl, json={"content": data, "extension": "txt"})
|
||||||
response = response.json()
|
response = response.json()
|
||||||
url = "https://spaceb.in/" + response["payload"]["id"]
|
url = "https://spaceb.in/" + response["payload"]["id"]
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue