mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 09:44:50 +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
|
||||
|
||||
try:
|
||||
siteurl = "https://spaceb.in/api/v1/documents/"
|
||||
response = await fetch.post(siteurl, data={"content": data, "extension": "txt"})
|
||||
siteurl = "https://spaceb.in/api/"
|
||||
response = await fetch.post(siteurl, json={"content": data, "extension": "txt"})
|
||||
response = response.json()
|
||||
url = "https://spaceb.in/" + response["payload"]["id"]
|
||||
except Exception as e:
|
||||
|
|
|
|||
Loading…
Reference in a new issue